# HG changeset patch # User ladanyi # Date 1113845211 0 # Node ID 76a3f46d361c53acb20552129fcd13efc260cb68 # Parent f1cf6b80741483bb90fd1264f722fd5b19ebba2f added m4 macro to control documentation generation diff -r f1cf6b807414 -r 76a3f46d361c Makefile.am --- a/Makefile.am Mon Apr 18 17:23:42 2005 +0000 +++ b/Makefile.am Mon Apr 18 17:26:51 2005 +0000 @@ -1,10 +1,14 @@ EXTRA_DIST = autopackage/default.apspec.in -SUBDIRS = src doc +if WANT_DOCS + MAYBE_DOC = doc +endif +SUBDIRS = src $(MAYBE_DOC) MRPROPERFILES = \ aclocal.m4 \ config.h.in \ + config.h.in~ \ configure \ Makefile.in \ config/depcomp \ 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"]) +]) diff -r f1cf6b807414 -r 76a3f46d361c configure.ac --- a/configure.ac Mon Apr 18 17:23:42 2005 +0000 +++ b/configure.ac Mon Apr 18 17:26:51 2005 +0000 @@ -26,6 +26,8 @@ dnl Checks for libraries. LX_CHECK_GLPK +LX_ENABLE_DOCS + dnl Checks for header files. AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h) diff -r f1cf6b807414 -r 76a3f46d361c doc/Doxyfile.in --- a/doc/Doxyfile.in Mon Apr 18 17:23:42 2005 +0000 +++ b/doc/Doxyfile.in Mon Apr 18 17:26:51 2005 +0000 @@ -278,7 +278,7 @@ # to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. -INTERNAL_DOCS = NO +INTERNAL_DOCS = @DOXYGEN_INTERNAL_DOCS@ # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate # file names in lower-case letters. If set to YES upper-case letters are also