]> www.fi.muni.cz Git - evince.git/commitdiff
Inform about --disable-nautilus in the error message
authorChristian Persch <chpe@gnome.org>
Fri, 12 Jun 2009 20:10:14 +0000 (22:10 +0200)
committerChristian Persch <chpe@gnome.org>
Fri, 12 Jun 2009 20:10:14 +0000 (22:10 +0200)
If libnautilus-extension is not found, tell the user about
--disable-nautilus.

configure.ac

index fda9bac87127720ca31b49ca6e04978c6c92888d..320612d47f1e11e3feaeecb295243aa8b7920bd5 100644 (file)
@@ -324,7 +324,7 @@ AC_SUBST(FRONTEND_LIBS)
 
 # Check for Nautilus property page build
 AC_ARG_ENABLE([nautilus],
-  [AS_HELP_STRING([--enable-nautilus],[compile the nautilus plugin])],
+  [AS_HELP_STRING([--disable-nautilus],[Build the nautilus extensions])],
   [],
   [case "$with_platform" in
      gnome) enable_nautilus=yes ;;
@@ -332,7 +332,8 @@ AC_ARG_ENABLE([nautilus],
     esac])
 
 if test "$enable_nautilus" = "yes" ; then
-  PKG_CHECK_MODULES([NAUTILUS],[gtk+-x11-2.0 $MM gthread-2.0 libnautilus-extension])
+  PKG_CHECK_MODULES([NAUTILUS],[gtk+-x11-2.0 $MM gthread-2.0 libnautilus-extension],
+                    [],[AC_MSG_ERROR([libnautilus-extension not found; use --disable-nautilus to disable the nautilus extensions])])
   NAUTILUS_EXTENSION_DIR=`$PKG_CONFIG --variable=extensiondir libnautilus-extension`
   AC_SUBST([nautilusextensiondir],[$NAUTILUS_EXTENSION_DIR])
   AC_SUBST(NAUTILUS_CFLAGS)