-rw-r--r-- | configure.ac | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac index 109eddf..5ae7b27 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,62 +1,67 @@ | |||
1 | AC_INIT([kingate], [0.0], [kingate-bugs@klever.net]) | 1 | AC_INIT([kingate], [0.0.1], [kingate-bugs@klever.net]) |
2 | AC_CONFIG_SRCDIR([include/kingate/cgi_gateway.h]) | 2 | AC_CONFIG_SRCDIR([include/kingate/cgi_gateway.h]) |
3 | AC_CONFIG_HEADER([config.h]) | 3 | AC_CONFIG_HEADER([config.h]) |
4 | AM_INIT_AUTOMAKE([dist-bzip2]) | 4 | AM_INIT_AUTOMAKE([dist-bzip2]) |
5 | 5 | ||
6 | AC_PROG_INSTALL | 6 | AC_PROG_INSTALL |
7 | AC_PROG_AWK | 7 | AC_PROG_AWK |
8 | AC_PROG_CXX | 8 | AC_PROG_CXX |
9 | AC_PROG_CC | 9 | AC_PROG_CC |
10 | AC_PROG_LIBTOOL | 10 | AC_PROG_LIBTOOL |
11 | 11 | ||
12 | AC_HEADER_STDC | 12 | AC_HEADER_STDC |
13 | AC_CHECK_HEADERS([sys/types.h sys/stat.h]) | 13 | AC_CHECK_HEADERS([sys/types.h sys/stat.h]) |
14 | 14 | ||
15 | HAVE_FCGI=false | ||
15 | AC_LANG_PUSH(C++) | 16 | AC_LANG_PUSH(C++) |
16 | AC_CHECK_HEADERS([fcgio.h],,[ | 17 | AC_CHECK_HEADERS([fcgio.h],[ |
17 | exit 1 | 18 | AC_CHECK_LIB(fcgi,FCGX_Init,[ |
18 | ]) | 19 | LIBS="-lfcgi ${LIBS}" |
19 | AC_CHECK_LIB(fcgi,FCGX_Init,,[ | 20 | AC_CHECK_LIB([fcgi++],[main],[ |
20 | exit 1 | 21 | LIBS="-lfcgi++ ${LIBS}" |
21 | ]) | 22 | HAVE_FCGI=true |
22 | AC_CHECK_LIB([fcgi++],[main],,[ | 23 | ]) |
23 | exit 1 | 24 | ]) |
24 | ]) | 25 | ]) |
25 | AC_LANG_POP(C++) | 26 | AC_LANG_POP(C++) |
27 | if ! ${HAVE_FCGI} ; then | ||
28 | AC_MSG_NOTICE([no FastCGI development kit found. It is highly recommnded that you get one. Meanwhile we will proceed without FastCGI support]) | ||
29 | fi | ||
30 | AM_CONDITIONAL([HAVE_FCGI],[${HAVE_FCGI}]) | ||
26 | 31 | ||
27 | AC_C_CONST | 32 | AC_C_CONST |
28 | 33 | ||
29 | AC_FUNC_MALLOC | 34 | AC_FUNC_MALLOC |
30 | AC_FUNC_REALLOC | 35 | AC_FUNC_REALLOC |
31 | 36 | ||
32 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) | 37 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) |
33 | 38 | ||
34 | AC_WITH_PKGCONFIG | 39 | AC_WITH_PKGCONFIG |
35 | 40 | ||
36 | PKG_CHECK_MODULES([KONFORKA],[konforka],,[ | 41 | PKG_CHECK_MODULES([KONFORKA],[konforka],,[ |
37 | AC_MSG_ERROR([no konforka library found. get one from http://kin.klever.net/konforka/]) | 42 | AC_MSG_ERROR([no konforka library found. get one from http://kin.klever.net/konforka/]) |
38 | ]) | 43 | ]) |
39 | 44 | ||
40 | WANT_DOXYGEN="yes" | 45 | WANT_DOXYGEN="yes" |
41 | AC_ARG_ENABLE([doxygen], | 46 | AC_ARG_ENABLE([doxygen], |
42 | AC_HELP_STRING([--disable-doxygen],[do not generate documentation]), | 47 | AC_HELP_STRING([--disable-doxygen],[do not generate documentation]), |
43 | [ | 48 | [ |
44 | test "${enableval}" = "no" && WANT_DOXYGEN="no" | 49 | test "${enableval}" = "no" && WANT_DOXYGEN="no" |
45 | ] | 50 | ] |
46 | ) | 51 | ) |
47 | if test "${WANT_DOXYGEN}" = "yes" ; then | 52 | if test "${WANT_DOXYGEN}" = "yes" ; then |
48 | AC_WITH_DOXYGEN | 53 | AC_WITH_DOXYGEN |
49 | AC_WITH_DOT | 54 | AC_WITH_DOT |
50 | else | 55 | else |
51 | AM_CONDITIONAL([HAVE_DOXYGEN],[false]) | 56 | AM_CONDITIONAL([HAVE_DOXYGEN],[false]) |
52 | AM_CONDITIONAL([HAVE_DOT],[false]) | 57 | AM_CONDITIONAL([HAVE_DOT],[false]) |
53 | fi | 58 | fi |
54 | 59 | ||
55 | AC_CONFIG_FILES([ | 60 | AC_CONFIG_FILES([ |
56 | Makefile | 61 | Makefile |
57 | kingate.pc kingate-fcgi.pc | 62 | kingate.pc kingate-fcgi.pc kingate-plaincgi.pc |
58 | Doxyfile | 63 | Doxyfile |
59 | include/Makefile | 64 | include/Makefile |
60 | src/Makefile | 65 | src/Makefile |
61 | ]) | 66 | ]) |
62 | AC_OUTPUT | 67 | AC_OUTPUT |