[Snort-devel] [DAQ][PATCH 1/3] fix --enable-xyz-module options

Florian Westphal fwestphal at ...2119...
Tue Aug 3 06:49:30 EDT 2010


the "--enable" options were treated like "--disable".
---
 configure.ac |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 81c585f..42a3eeb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -96,7 +96,7 @@ AM_CONDITIONAL([BUILD_MODULES], [test "$disable_bundled_modules" = no])
 # AFPacket Module
 AC_ARG_ENABLE(afpacket-module,
               AC_HELP_STRING([--disable-afpacket-module],[don't build the bundled AFPacket module]),
-              [enable_afpacket_module=no], [enable_afpacket_module=yes])
+              [enable_afpacket_module="$enableval"], [enable_afpacket_module=yes])
 if test "$enable_afpacket_module" = yes; then
     AC_CHECK_HEADERS([linux/if_ether.h linux/if_packet.h], [], [enable_afpacket_module=no])
 fi
@@ -105,7 +105,7 @@ AM_CONDITIONAL([BUILD_AFPACKET_MODULE], [test "$enable_afpacket_module" = yes])
 # Dump Module
 AC_ARG_ENABLE(dump-module,
               AC_HELP_STRING([--disable-dump-module],[don't build the bundled Dump module]),
-              [enable_dump_module=no], [enable_dump_module=yes])
+              [enable_dump_module="$enableval"], [enable_dump_module=yes])
 if test "$enable_dump_module" = yes; then
     AC_CHECK_HEADER([pcap.h], [], [enable_dump_module=no])
 fi
@@ -114,13 +114,13 @@ AM_CONDITIONAL([BUILD_DUMP_MODULE], [test "$enable_dump_module" = yes])
 # IPFW Module
 AC_ARG_ENABLE(ipfw-module,
               AC_HELP_STRING([--disable-ipfw-module],[don't build the bundled IPFW module]),
-              [enable_ipfw_module=no], [enable_ipfw_module=yes])
+              [enable_ipfw_module="$enableval"], [enable_ipfw_module=yes])
 AM_CONDITIONAL([BUILD_IPFW_MODULE], [test "$enable_ipfw_module" = yes])
 
 # IPQ Module
 AC_ARG_ENABLE(ipq-module,
               AC_HELP_STRING([--disable-ipq-module],[don't build the bundled IPQ module]),
-              [enable_ipq_module=no], [enable_ipq_module=yes])
+              [enable_ipq_module="$enableval"], [enable_ipq_module=yes])
 if test "$enable_ipq_module" = yes; then
     AC_CHECK_HEADERS([dnet.h netinet/in.h libipq.h], [], [enable_ipq_module=no])
     AC_CHECK_HEADER([linux/netfilter.h], [], [enable_ipq_module=no],
@@ -133,7 +133,7 @@ AM_CONDITIONAL([BUILD_IPQ_MODULE], [test "$enable_ipq_module" = yes])
 # NFQ Module
 AC_ARG_ENABLE(nfq-module,
               AC_HELP_STRING([--disable-nfq-module],[don't build the bundled NFQ module]),
-              [enable_nfq_module=no], [enable_nfq_module=yes])
+              [enable_nfq_module="$enableval"], [enable_nfq_module=yes])
 if test "$enable_nfq_module" = yes; then
     AC_CHECK_HEADERS([dnet.h netinet/in.h libnetfilter_queue/libnetfilter_queue.h], [], [enable_nfq_module=no])
     AC_CHECK_HEADER([linux/netfilter.h], [], [enable_nfq_module=no],
@@ -146,7 +146,7 @@ AM_CONDITIONAL([BUILD_NFQ_MODULE], [test "$enable_nfq_module" = yes])
 # PCAP Module
 AC_ARG_ENABLE(pcap-module,
               AC_HELP_STRING([--disable-pcap-module],[don't build the bundled PCAP module]),
-              [enable_pcap_module=no], [enable_pcap_module=yes])
+              [enable_pcap_module="$enableval"], [enable_pcap_module=yes])
 if test "$enable_pcap_module" = yes; then
     AC_CHECK_HEADER([pcap.h], [], [enable_pcap_module=no])
 fi
-- 
1.7.1





More information about the Snort-devel mailing list