[folks] Actually check for the valadoc version when building docs.



commit 5d5edb05b975ca79263dec21226cd4d3de057388
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Mon Aug 1 14:16:24 2011 -0700

    Actually check for the valadoc version when building docs.

 configure.ac |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7f8c1d9..4214908 100644
--- a/configure.ac
+++ b/configure.ac
@@ -348,9 +348,12 @@ AC_ARG_ENABLE([docs],
 AM_CONDITIONAL([ENABLE_DOCS], [test x$enable_docs = xyes])
 
 have_valadoc=no
-AS_IF([test "x$enable_docs" != xno],
-      [AC_PATH_PROG([VALADOC], [valadoc], [:])
-       AS_IF([test "$VALADOC" != :], have_valadoc=yes)])
+if test x$enable_docs = xyes; then
+  # make sure the library is new enough and the program exists
+  PKG_CHECK_MODULES([VALADOC], [valadoc-1.0 >= $VALADOC_REQUIRED])
+  AC_PATH_PROG([VALADOC], [valadoc], [:])
+  AS_IF([test "$VALADOC" != :], have_valadoc=yes)
+fi
 AM_CONDITIONAL([HAVE_VALADOC], [test x$have_valadoc = xyes])
 
 if test "x$enable_docs" = "xyes" -a "x$have_valadoc" != "xyes"; then



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