summaryrefslogtreecommitdiffabout
path: root/configure.ac
Unidiff
Diffstat (limited to 'configure.ac') (more/less context) (ignore whitespace changes)
-rw-r--r--configure.ac62
1 files changed, 62 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..109eddf
--- a/dev/null
+++ b/configure.ac
@@ -0,0 +1,62 @@
1AC_INIT([kingate], [0.0], [kingate-bugs@klever.net])
2AC_CONFIG_SRCDIR([include/kingate/cgi_gateway.h])
3AC_CONFIG_HEADER([config.h])
4AM_INIT_AUTOMAKE([dist-bzip2])
5
6AC_PROG_INSTALL
7AC_PROG_AWK
8AC_PROG_CXX
9AC_PROG_CC
10AC_PROG_LIBTOOL
11
12AC_HEADER_STDC
13AC_CHECK_HEADERS([sys/types.h sys/stat.h])
14
15AC_LANG_PUSH(C++)
16AC_CHECK_HEADERS([fcgio.h],,[
17 exit 1
18])
19AC_CHECK_LIB(fcgi,FCGX_Init,,[
20 exit 1
21])
22AC_CHECK_LIB([fcgi++],[main],,[
23 exit 1
24])
25AC_LANG_POP(C++)
26
27AC_C_CONST
28
29AC_FUNC_MALLOC
30AC_FUNC_REALLOC
31
32AC_PATH_PROG([XSLTPROC],[xsltproc],[true])
33
34AC_WITH_PKGCONFIG
35
36PKG_CHECK_MODULES([KONFORKA],[konforka],,[
37 AC_MSG_ERROR([no konforka library found. get one from http://kin.klever.net/konforka/])
38])
39
40WANT_DOXYGEN="yes"
41AC_ARG_ENABLE([doxygen],
42 AC_HELP_STRING([--disable-doxygen],[do not generate documentation]),
43 [
44 test "${enableval}" = "no" && WANT_DOXYGEN="no"
45 ]
46)
47if test "${WANT_DOXYGEN}" = "yes" ; then
48 AC_WITH_DOXYGEN
49 AC_WITH_DOT
50else
51 AM_CONDITIONAL([HAVE_DOXYGEN],[false])
52 AM_CONDITIONAL([HAVE_DOT],[false])
53fi
54
55AC_CONFIG_FILES([
56 Makefile
57 kingate.pc kingate-fcgi.pc
58 Doxyfile
59 include/Makefile
60 src/Makefile
61])
62AC_OUTPUT