summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2011-09-03 16:53:24 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2011-09-05 12:15:58 +0100
commitb8eecfc131619a2c5752e1644f3df011b45ef4b4 (patch)
tree15af815a5966a065e82de6eb3eaab202afab3ae9
parentfdd2fcf6721eda9c753ff05e20226fd4ecf6cca0 (diff)
build: Make it possible to autogen without gtk-doc
On Windows, I don't want to go through installing gtk-doc just to get some DLLs compiled.
-rwxr-xr-xautogen.sh10
-rw-r--r--configure.ac5
2 files changed, 14 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index a591bfd..edf4db2 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,3 +1,11 @@
#!/bin/sh
-gtkdocize --flavour no-tmpl || exit 1
+GTKDOCIZE=`which gtkdocize`
+if test -z $GTKDOCIZE; then
+ echo "*** No gtk-doc support ***"
+ echo "EXTRA_DIST =" > gtk-doc.make
+ echo "CLEANFILES =" >> gtk-doc.make
+else
+ gtkdocize --flavour no-tmpl || exit 1
+fi
+
ACLOCAL="${ACLOCAL-aclocal} $ACLOCAL_FLAGS" autoreconf -v -i && ./configure $@
diff --git a/configure.ac b/configure.ac
index 2daba6a..129a495 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,7 +59,12 @@ AS_IF(
AC_MSG_RESULT([no])
)
+# gtkdocize greps for ^GTK_DOC_CHECK and parses it, so you need to have
+# it on it's own line.
+m4_ifdef([GTK_DOC_CHECK], [
GTK_DOC_CHECK([1.13], [--flavour no-tmpl])
+])
+
GOBJECT_INTROSPECTION_CHECK([0.6.7])
AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])