[nautilus-sendto] Fix distcheck of the nautilus extension
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-sendto] Fix distcheck of the nautilus extension
- Date: Tue, 17 Nov 2009 18:26:31 +0000 (UTC)
commit b3331f7d3f8ea9cf3675d786b77fe30ac4fd248b
Author: Bastien Nocera <hadess hadess net>
Date: Tue Nov 17 18:19:40 2009 +0000
Fix distcheck of the nautilus extension
Work-around shamelessly nicked from brasero
Makefile.am | 4 +++-
configure.in | 13 +++++++++++--
2 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 5d7048f..a814bb1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,7 +4,9 @@ endif
SUBDIRS = src $(EVOLUTION_PLUGIN_DIR) docs po
-DIST_SUBDIRS = evolution src po
+DIST_SUBDIRS = evolution src docs po
+
+DISTCHECK_CONFIGURE_FLAGS = --disable-schemas-install --enable-gtk-doc --with-nautilusdir='$${libdir}/nautilus/extensions-2.0-distcheck'
man_MANS = nautilus-sendto.1
diff --git a/configure.in b/configure.in
index 8328946..08e7166 100644
--- a/configure.in
+++ b/configure.in
@@ -69,8 +69,17 @@ AC_SUBST(NAUTILUS_EXT_SENDTO_LIBS)
dnl Get nautilus extensions directory
dnl ---------------------------------
-NAUTILUS_EXTENSION_DIR=`$PKG_CONFIG --variable=extensiondir libnautilus-extension`
-AC_SUBST(NAUTILUS_EXTENSION_DIR)
+
+AC_ARG_WITH(nautilusdir,
+ AS_HELP_STRING([--with-nautilusdir=DIR],[Installation path for Nautilus extension @<:@auto@:>@]),
+ [ac_with_nautilusdir=$withval],
+ [ac_with_nautilusdir=""])
+if test "${ac_with_nautilusdir}" = ""; then
+ ac_with_nautilusdir=`pkg-config --variable=extensiondir libnautilus-extension`
+fi
+
+AC_MSG_NOTICE([installing nautilus plugin in ${ac_with_nautilusdir}])
+AC_SUBST([NAUTILUS_EXTENSION_DIR],[${ac_with_nautilusdir}])
dnl Get details about evolution
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]