+2009-03-28 Rodney Dawes <dobey@gnome.org>
+
+ * macros2/gnome-autogen.sh:
+ Only pass --enable-maintainer-mode when AM_MAINTAINER_MODE is present
+
+ FIxes #577037
+
2008-11-25 Vincent Untz <vuntz@gnome.org>
* macros2/gnome-common.m4: add -DWNCK_DISABLE_DEPRECATED
want_pkg_config=false
want_gtk_doc=false
want_gnome_doc_utils=false
+want_maintainer_mode=false
configure_files="`find $srcdir -name '{arch}' -prune -o -name '_darcs' -prune -o -name '.??*' -prune -o -name configure.ac -print -o -name configure.in -print`"
for configure_ac in $configure_files; do
want_gnome_doc_utils=true
fi
+ # check that AM_MAINTAINER_MODE is used
+ if grep "^AM_MAINTAINER_MODE" $configure_ac >/dev/null; then
+ want_maintainer_mode=true
+ fi
+
# check to make sure gnome-common macros can be found ...
if grep "^GNOME_COMMON_INIT" $configure_ac >/dev/null ||
grep "^GNOME_DEBUG_CHECK" $configure_ac >/dev/null ||
fi
done
-conf_flags="--enable-maintainer-mode"
+conf_flags=""
+
+if $want_maintainer_mode; then
+ conf_flags="--enable-maintainer-mode"
+fi
if test x$NOCONFIGURE = x; then
printbold Running $srcdir/configure $conf_flags "$@" ...