if test "$ok_nls" != "no"; then
AC_MSG_RESULT(citadel will be built with national language support.)
AC_DEFINE(ENABLE_NLS, [], [whether we have NLS support])
- PROG_SUBDIRS="$PROG_SUBDIRS po"
+ PROG_SUBDIRS="$PROG_SUBDIRS po/citadel-setup"
else
AC_MSG_RESULT(citadel will be built without national language support.)
fi
CFLAGS="$saved_CFLAGS"
+dnl experimental libevent smtp client remove this to...
+AC_ARG_WITH(experimental_eventsmtp,
+ [ --with-experimental_eventsmtp enable experimental event smtp clients],
+ [ if test "x$withval" != "xno" ; then
+ CFLAGS="$CFLAGS -rdynamic "
+ LDFLAGS="$LDFLAGS -rdynamic "
+ SERVER_LDFLAGS="$SERVER_LDFLAGS -rdynamic "
+
+AC_DEFINE(EXPERIMENTAL_SMTP_EVENT_CLIENT, [], [should we use the experimental libevent smtp client?])
+dnl here...
+saved_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS $SERVER_LIBS"
+dnl Check for libevent
+AC_CHECK_HEADER(event.h,
+ [AC_CHECK_LIB(event, libcitadel_version_string,
+ [
+ LIBS="-levent $LIBS $SERVER_LIBS"
+ ],
+ [
+ AC_MSG_ERROR(libevent was not found or is not usable. Please install libevent.)
+ ]
+ ,
+ )],
+ [
+ AC_MSG_ERROR(event.h was not found or is not usable. Please install libevent.)
+ ]
+)
+
+CFLAGS="$saved_CFLAGS"
+dnl and from here to...
+ fi
+ ]
+)
+dnl here to make it final.
# The big search for OpenSSL
if test "$with_ssl" != "no"; then
AC_SUBST(SERVER_LIBS)
AC_SUBST(SETUP_LIBS)
AC_CONFIG_FILES([Makefile])
-AC_OUTPUT(database_cleanup.sh po/Makefile)
+AC_OUTPUT(database_cleanup.sh po/citadel-setup/Makefile)
if test -z "$DATABASE"; then
AC_MSG_WARN([No database driver was found. Please install Berkeley DB.])