AC_SEARCH_LIBS([pcap_close], [pcap], [libpcap_LIBS="-lpcap"; LIBS=""])
AC_SUBST([libpcap_LIBS])
AM_CONDITIONAL([HAVE_PCAP], [test -n "$libpcap_LIBS"])
+if test "x$libpcap_LIBS" != "x"; then
+ enable_pcap="yes"
+else
+ enable_pcap="no"
+fi
dnl Checks for header files.
AC_HEADER_DIRENT
CT_CHECK_POSTGRES_DB()
AM_CONDITIONAL(HAVE_PGSQL, test "x$PQLIBPATH" != "x")
+if test "x$PQLIBPATH" != "x"; then
+ enable_pgsql="yes"
+else
+ enable_pgsql="no"
+fi
CT_CHECK_MYSQL_DB()
AM_CONDITIONAL(HAVE_MYSQL, test "x$MYSQL_LIB" != "x")
+if test "x$MYSQL_LIB" != "x"; then
+ enable_mysql="yes"
+else
+ enable_mysql="no"
+fi
PKG_CHECK_MODULES([libsqlite3], [sqlite3], [], [:])
AM_CONDITIONAL([HAVE_SQLITE3], [test -n "$libsqlite3_LIBS"])
+if test "x$libsqlite3_LIBS" != "x"; then
+ enable_sqlite3="yes"
+else
+ enable_sqlite3="no"
+fi
CT_CHECK_DBI()
AM_CONDITIONAL(HAVE_DBI, test "x$DBI_LIB" != "x")
-
-
+if test "x$DBI_LIB" != "x"; then
+ enable_dbi="yes"
+else
+ enable_dbi="no"
+fi
dnl AC_SUBST(DATABASE_DIR)
dnl AC_SUBST(DATABASE_LIB)
output/dbi/Makefile \
src/Makefile Makefile Rules.make)
AC_OUTPUT
+
+echo "
+Ulogd configuration:
+ Input plugins:
+ NFLOG plugin: ${enable_nflog}
+ NFCT plugin: ${enable_nfct}
+ NFACCT plugin: ${enable_nfacct}
+ Output plugins:
+ PCAP plugin: ${enable_pcap}
+ PGSQL plugin: ${enable_pgsql}
+ MySQL plugin: ${enable_mysql}
+ SQLITE3 plugin: ${enable_sqlite3}
+ DBI plugin: ${enable_dbi}
+"
+echo "You can now run 'make' and 'make install'"