]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
configure: display info about build plugins
authorEric Leblond <eric@regit.org>
Sat, 3 Nov 2012 11:19:59 +0000 (12:19 +0100)
committerEric Leblond <eric@regit.org>
Sun, 4 Nov 2012 07:58:13 +0000 (08:58 +0100)
This patch modifies configure to display the list of plugins that
will be built.

configure.ac

index 930aef04ce6a66d087e0dcfcaab7afc8ecd0ab86..c70887d6efee37dd8adbcd733ce98f37dc71ce9c 100644 (file)
@@ -22,6 +22,11 @@ AC_SUBST([libdl_LIBS])
 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
@@ -68,17 +73,35 @@ AM_CONDITIONAL([BUILD_NFACCT], [test "x$enable_nfacct" = "xyes"])
 
 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)
@@ -102,3 +125,18 @@ AC_CONFIG_FILES(include/Makefile include/ulogd/Makefile include/libipulog/Makefi
          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'"