[f-spot] [build] Allow building without gnome-doc-utils



commit f3de10c00fc47671f57e890f819e06a941779612
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Fri Jun 18 20:28:02 2010 +0200

    [build] Allow building without gnome-doc-utils

 autogen.sh |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 3aa1698..ecab345 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -63,10 +63,15 @@ check_autotool_version autoconf 2.53
 check_autotool_version $LIBTOOLIZE 1.4.3
 check_autotool_version intltoolize 0.35.0
 check_autotool_version pkg-config 0.14.0
-check_autotool_version gnome-doc-prepare 0.17.3
 
 run git submodule update --init
-run gnome-doc-prepare --automake
+if [ $(pkg-config --modversion gnome-doc-utils 2> /dev/null) ]; then
+    run gnome-doc-prepare --automake --force
+else
+    echo "gnome-doc-utils not found; user help will not be built"
+    echo "AC_DEFUN([GNOME_DOC_INIT], [AC_MSG_NOTICE([])])" > gnome-doc-utils.make
+fi
+
 run intltoolize --force --copy
 run $LIBTOOLIZE --force --copy --automake
 run aclocal -I build/m4/f-spot -I build/m4/shamrock -I build/m4/shave $ACLOCAL_FLAGS



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]