gegl r2576 - trunk/bindings/gegl-sharp



Author: rubenv
Date: Mon Aug 11 14:11:11 2008
New Revision: 2576
URL: http://svn.gnome.org/viewvc/gegl?rev=2576&view=rev

Log:
2008-08-11  Ruben Vermeersch  <ruben savanne be>

	* configure.in: Make sure BUILD_DOCS is set.


Modified:
   trunk/bindings/gegl-sharp/ChangeLog
   trunk/bindings/gegl-sharp/configure.in

Modified: trunk/bindings/gegl-sharp/configure.in
==============================================================================
--- trunk/bindings/gegl-sharp/configure.in	(original)
+++ trunk/bindings/gegl-sharp/configure.in	Mon Aug 11 14:11:11 2008
@@ -106,6 +106,29 @@
     [GEGL_HEADERS=../../../gegl])
 AC_SUBST(GEGL_HEADERS)
 
+dnl Find Monodoc
+AC_ARG_ENABLE(docs, AC_HELP_STRING([--disable-docs], 
+    [Do not build documentation]), with_docs=no, with_docs=yes)
+
+if test "x$with_docs" = "xyes"; then
+    AC_PATH_PROG(MONODOCER, monodocer, no)
+    if test "x$MONODOCER" = "xno"; then
+        AC_MSG_ERROR([You need to install monodoc, or pass --disable-docs to configure to skip documentation installation])
+    fi
+
+    AC_PATH_PROG(MDASSEMBLER, mdassembler, no)
+    if test "x$MDASSEMBLER" = "xno"; then
+        AC_MSG_ERROR([You need to install mdassembler, or pass --disable-docs to configure to skip documentation installation])
+    fi
+
+    DOCDIR=`$PKG_CONFIG monodoc --variable=sourcesdir`
+    AC_SUBST(DOCDIR)
+    AM_CONDITIONAL(BUILD_DOCS, true)
+else
+    AC_MSG_NOTICE([not building gegl-sharp API documentation])
+    AM_CONDITIONAL(BUILD_DOCS, false)
+fi
+
 AC_SUBST(CFLAGS)
 
 AC_OUTPUT([



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