harfbuzz: security bump to version 1.4.4
[buildroot-gz.git] / package / libcgicc / 0001-disable-documentation-option.patch
bloba7b04a83a7a10716663a74281f03acd3bc097a91
1 Index: 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
9 +if DOC
10 +DOCDIR = doc
11 +else
12 +DOC =
13 +endif
15 ACLOCAL_AMFLAGS=
17 -SUBDIRS = cgicc doc support $(DEMO)
18 +SUBDIRS = cgicc $(DOCDIR) support $(DEMO)
20 CLEANFILES = *~
22 Index: 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)
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)
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)
49 dnl Determine host system type