AC_INIT([konforka], [0.0.1], [konforka-bugs@klever.net]) AC_CONFIG_SRCDIR([include/konforka/exception.h]) AC_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE([dist-bzip2]) AC_PROG_INSTALL AC_PROG_AWK AC_PROG_CXX AC_PROG_CC AC_PROG_LIBTOOL AC_HEADER_STDC AC_C_CONST AC_FUNC_MALLOC AC_FUNC_REALLOC AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) AC_WITH_PKGCONFIG WANT_DOXYGEN="yes" AC_ARG_ENABLE([doxygen], AC_HELP_STRING([--disable-doxygen],[do not generate documentation]), [ test "${enableval}" = "no" && WANT_DOXYGEN="no" ] ) if test "${WANT_DOXYGEN}" = "yes" ; then AC_WITH_DOXYGEN AC_WITH_DOT else AM_CONDITIONAL([HAVE_DOXYGEN],[false]) AM_CONDITIONAL([HAVE_DOT],[false]) fi WANT_PQXX="yes" AC_ARG_WITH([libpqxx], AC_HELP_STRING([--without-libpqxx],[do not build libpqxx connection pool support]), [ test "${withval}" = "no" && WANT_PQXX="no" ] ) HAVE_PQXX="no" PC_REQ_PQXX="" if test "${WANT_PQXX}" = "yes" ; then PKG_CHECK_MODULES([PQXX],[libpqxx],[ HAVE_PQXX="yes" PC_REQ_PQXX="libpqxx" ],[ AC_MSG_NOTICE([no libpqxx found, no connection piling support will be built]) ] ) fi AC_SUBST([PC_REQ_PQXX],[${PC_REQ_PQXX}]) AM_CONDITIONAL([HAVE_PQXX],[test "${HAVE_PQXX}" = "yes"]) AC_CONFIG_FILES([ Makefile konforka.pc Doxyfile include/Makefile lib/Makefile ]) AC_OUTPUT