author | ladanyi |
Mon, 18 Apr 2005 17:29:11 +0000 | |
changeset 1371 | e1c99f5bdb3f |
child 1404 | 17c80cb3754b |
permissions | -rw-r--r-- |
ladanyi@1370 | 1 |
AC_DEFUN([LX_ENABLE_DOCS], |
ladanyi@1370 | 2 |
[ |
ladanyi@1370 | 3 |
AC_ARG_ENABLE([docs], |
ladanyi@1370 | 4 |
AS_HELP_STRING([--enable-docs@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@]) |
ladanyi@1370 | 5 |
AS_HELP_STRING([--disable-docs], [do not build the documentation]), |
ladanyi@1370 | 6 |
[], [enable_docs=yes]) |
ladanyi@1370 | 7 |
|
ladanyi@1370 | 8 |
AC_MSG_CHECKING([whether to build the documention]) |
ladanyi@1370 | 9 |
case "$enable_docs" in |
ladanyi@1370 | 10 |
yes) |
ladanyi@1370 | 11 |
DOXYGEN_INTERNAL_DOCS=NO |
ladanyi@1370 | 12 |
AC_MSG_RESULT([yes]) |
ladanyi@1370 | 13 |
;; |
ladanyi@1370 | 14 |
full) |
ladanyi@1370 | 15 |
DOXYGEN_INTERNAL_DOCS=YES |
ladanyi@1370 | 16 |
AC_MSG_RESULT([full]) |
ladanyi@1370 | 17 |
;; |
ladanyi@1370 | 18 |
no) |
ladanyi@1370 | 19 |
DOXYGEN_INTERNAL_DOCS=NO |
ladanyi@1370 | 20 |
AC_MSG_RESULT([no]) |
ladanyi@1370 | 21 |
;; |
ladanyi@1370 | 22 |
*) |
ladanyi@1370 | 23 |
AC_MSG_ERROR([bad value $enable_docs for option --enable-docs]) |
ladanyi@1370 | 24 |
;; |
ladanyi@1370 | 25 |
esac |
ladanyi@1370 | 26 |
AC_SUBST(DOXYGEN_INTERNAL_DOCS) |
ladanyi@1370 | 27 |
AM_CONDITIONAL([WANT_DOCS], [test x"$enable_docs" != x"no"]) |
ladanyi@1370 | 28 |
]) |