1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/config/misc.m4 Mon Apr 18 17:26:51 2005 +0000
1.3 @@ -0,0 +1,28 @@
1.4 +AC_DEFUN([LX_ENABLE_DOCS],
1.5 +[
1.6 + AC_ARG_ENABLE([docs],
1.7 +AS_HELP_STRING([--enable-docs@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
1.8 +AS_HELP_STRING([--disable-docs], [do not build the documentation]),
1.9 + [], [enable_docs=yes])
1.10 +
1.11 + AC_MSG_CHECKING([whether to build the documention])
1.12 + case "$enable_docs" in
1.13 + yes)
1.14 + DOXYGEN_INTERNAL_DOCS=NO
1.15 + AC_MSG_RESULT([yes])
1.16 + ;;
1.17 + full)
1.18 + DOXYGEN_INTERNAL_DOCS=YES
1.19 + AC_MSG_RESULT([full])
1.20 + ;;
1.21 + no)
1.22 + DOXYGEN_INTERNAL_DOCS=NO
1.23 + AC_MSG_RESULT([no])
1.24 + ;;
1.25 + *)
1.26 + AC_MSG_ERROR([bad value $enable_docs for option --enable-docs])
1.27 + ;;
1.28 + esac
1.29 + AC_SUBST(DOXYGEN_INTERNAL_DOCS)
1.30 + AM_CONDITIONAL([WANT_DOCS], [test x"$enable_docs" != x"no"])
1.31 +])