diff -r f1cf6b807414 -r 76a3f46d361c config/misc.m4 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/misc.m4 Mon Apr 18 17:26:51 2005 +0000 @@ -0,0 +1,28 @@ +AC_DEFUN([LX_ENABLE_DOCS], +[ + AC_ARG_ENABLE([docs], +AS_HELP_STRING([--enable-docs@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@]) +AS_HELP_STRING([--disable-docs], [do not build the documentation]), + [], [enable_docs=yes]) + + AC_MSG_CHECKING([whether to build the documention]) + case "$enable_docs" in + yes) + DOXYGEN_INTERNAL_DOCS=NO + AC_MSG_RESULT([yes]) + ;; + full) + DOXYGEN_INTERNAL_DOCS=YES + AC_MSG_RESULT([full]) + ;; + no) + DOXYGEN_INTERNAL_DOCS=NO + AC_MSG_RESULT([no]) + ;; + *) + AC_MSG_ERROR([bad value $enable_docs for option --enable-docs]) + ;; + esac + AC_SUBST(DOXYGEN_INTERNAL_DOCS) + AM_CONDITIONAL([WANT_DOCS], [test x"$enable_docs" != x"no"]) +])