1Index: cgicc-3.2.9/Makefile.am 2=================================================================== 3--- cgicc-3.2.9.orig/Makefile.am 2010-02-25 16:34:06.000000000 +0100 4+++ cgicc-3.2.9/Makefile.am 2010-02-25 16:34:14.000000000 +0100 5@@ -8,9 +8,15 @@ 6 DEMO = 7 endif 8 9+if DOC 10+DOCDIR = doc 11+else 12+DOC = 13+endif 14+ 15 ACLOCAL_AMFLAGS= 16 17-SUBDIRS = cgicc doc support $(DEMO) 18+SUBDIRS = cgicc $(DOCDIR) support $(DEMO) 19 20 CLEANFILES = *~ 21 22Index: cgicc-3.2.9/configure.ac 23=================================================================== 24--- cgicc-3.2.9.orig/configure.ac 2010-02-25 16:34:06.000000000 +0100 25+++ cgicc-3.2.9/configure.ac 2010-02-25 16:45:46.000000000 +0100 26@@ -17,9 +17,23 @@ 27 AC_PROG_CXX 28 AC_PROG_INSTALL 29 AC_PROG_LIBTOOL 30-AC_CHECK_PROG(DOXYGEN, doxygen, doxygen, /bin/echo) 31 32 33+AC_ARG_ENABLE(doc, 34+ [ --enable-doc build doc [[default=yes]]], 35+ [case "${enableval}" in 36+ yes) cgicc_doc=yes ;; 37+ no) cgicc_doc=no ;; 38+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-doc) ;; 39+ esac], cgicc_doc=yes) 40+ 41+if test "$cgicc_doc" = yes; then 42+ AC_CHECK_PROG(DOXYGEN, doxygen, doxygen) 43+ if test -z "$DOXYGEN" ; then 44+ AC_MSG_ERROR([Doxygen is required to build the documentation]) 45+ fi 46+fi 47+AM_CONDITIONAL(DOC, test "$cgicc_doc" = yes) 48 49 dnl Determine host system type 50 51