diff --git a/smmapdfw/configure.ac b/smmapdfw/configure.ac index b6637f5..89b5243 100644 --- a/smmapdfw/configure.ac +++ b/smmapdfw/configure.ac @@ -19,6 +19,41 @@ AC_ARG_ENABLE(verify-cache, ) AC_DEFINE_UNQUOTED(ENABLE_VERIFY_CACHE, ${ENABLE_VERIFY_CACHE}, [enable verify cache]) +AC_ARG_WITH(bdb-lib-dir, + [AC_HELP_STRING(--with-bdb-lib-dir, [ + Directory for Berkeley DB library files])], + [ case "$withval" in + no) + if test "x$ENABLE_VERIFY_CACHE" = "x1"; then + AC_MSG_ERROR(Need bdb-lib-dir) + fi + ;; + yes) + ;; + *) + LDFLAGS="$LDFLAGS -L$withval" + ;; + esac ] +) + +AC_ARG_WITH(bdb-inc-dir, + [AC_HELP_STRING(--with-bdb-inc-dir, [ + Directory for Berkeley include files])], + [ case "$withval" in + no) + if test "x$ENABLE_VERIFY_CACHE" = "x1"; then + AC_MSG_ERROR(Need bdb-inc-dir) + fi + ;; + yes) + ;; + *) + CPPFLAGS="$CPPFLAGS -I$withval" + ;; + esac ] +) + + # Checks for programs. AC_PROG_CC @@ -41,10 +76,12 @@ AC_CHECK_LIB(pthread, pthread_create, AC_CHECK_LIB([resolv], [inet_aton]) AC_CHECK_LIB([socket], [connect]) + # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h strings.h sys/socket.h syslog.h unistd.h dlfcn.h]) + # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T @@ -60,6 +97,7 @@ AC_CHECK_FUNCS([inet_ntoa memset select socket strchr strdup strerror strrchr st [AC_MSG_ERROR([*** missing function, we can't go without it])]) + AC_CONFIG_FILES([Makefile libsmmapdfw/Makefile smmapd/Makefile modules/test/Makefile modules/verify/Makefile modules/cyrus/Makefile]) AC_OUTPUT