summaryrefslogtreecommitdiffabout
path: root/configure.ac
authorMichael Krelin <hacker@klever.net>2005-01-29 19:41:34 (UTC)
committer Michael Krelin <hacker@klever.net>2005-01-29 19:41:34 (UTC)
commitee7ac58694c16cdd922a6eeddbe1a2eba0da7b4e (patch) (unidiff)
treebe8029ce4a68870d991651927a27df8ee9d89617 /configure.ac
parentd851b00e16839d6ec14da3a5c442be62ca868bba (diff)
downloadkonforka-ee7ac58694c16cdd922a6eeddbe1a2eba0da7b4e.zip
konforka-ee7ac58694c16cdd922a6eeddbe1a2eba0da7b4e.tar.gz
konforka-ee7ac58694c16cdd922a6eeddbe1a2eba0da7b4e.tar.bz2
initial commit.0.0
Diffstat (limited to 'configure.ac') (more/less context) (ignore whitespace changes)
-rw-r--r--configure.ac65
1 files changed, 65 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..96d9325
--- a/dev/null
+++ b/configure.ac
@@ -0,0 +1,65 @@
1AC_INIT([konforka], [0.0], [konforka-bugs@klever.net])
2AC_CONFIG_SRCDIR([include/konforka/exception.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
13
14AC_C_CONST
15
16AC_FUNC_MALLOC
17AC_FUNC_REALLOC
18
19AC_PATH_PROG([XSLTPROC],[xsltproc],[true])
20
21AC_WITH_PKGCONFIG
22WANT_DOXYGEN="yes"
23AC_ARG_ENABLE([doxygen],
24 AC_HELP_STRING([--disable-doxygen],[do not generate documentation]),
25 [
26 test "${enableval}" = "no" && WANT_DOXYGEN="no"
27 ]
28)
29if test "${WANT_DOXYGEN}" = "yes" ; then
30 AC_WITH_DOXYGEN
31 AC_WITH_DOT
32else
33 AM_CONDITIONAL([HAVE_DOXYGEN],[false])
34 AM_CONDITIONAL([HAVE_DOT],[false])
35fi
36
37WANT_PQXX="yes"
38AC_ARG_WITH([libpqxx],
39 AC_HELP_STRING([--without-libpqxx],[do not build libpqxx connection pool support]),
40 [
41 test "${withval}" = "no" && WANT_PQXX="no"
42 ]
43)
44HAVE_PQXX="no"
45PC_REQ_PQXX=""
46if test "${WANT_PQXX}" = "yes" ; then
47 PKG_CHECK_MODULES([PQXX],[libpqxx],[
48 HAVE_PQXX="yes"
49 PC_REQ_PQXX="libpqxx"
50 ],[
51 AC_MSG_NOTICE([no libpqxx found, no connection piling support will be built])
52 ]
53 )
54fi
55AC_SUBST([PC_REQ_PQXX],[${PC_REQ_PQXX}])
56AM_CONDITIONAL([HAVE_PQXX],[test "${HAVE_PQXX}" = "yes"])
57
58AC_CONFIG_FILES([
59 Makefile
60 konforka.pc
61 Doxyfile
62 include/Makefile
63 lib/Makefile
64])
65AC_OUTPUT