about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2001-12-25 22:01:47 +0000
committerAlexander Barton <alex@barton.de>2001-12-25 22:01:47 +0000
commit22e7c845b4d2f64222516c0eddeef290329fd98e (patch)
tree7c3f789aefc804f7a9efac874f0319cafa524933
parent78a6e3c67136e32ba71abe58a7f755400db595e8 (diff)
downloadngircd-22e7c845b4d2f64222516c0eddeef290329fd98e.tar.gz
ngircd-22e7c845b4d2f64222516c0eddeef290329fd98e.zip
- neue configure-Option "--enable-sniffer".
-rw-r--r--acconfig.h7
-rw-r--r--configure.in19
2 files changed, 22 insertions, 4 deletions
diff --git a/acconfig.h b/acconfig.h
index eef17713..0a6ed0e9 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -9,9 +9,12 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: acconfig.h,v 1.2 2001/12/21 23:54:15 alex Exp $
+ * $Id: acconfig.h,v 1.3 2001/12/25 22:01:47 alex Exp $
  *
  * $Log: acconfig.h,v $
+ * Revision 1.3  2001/12/25 22:01:47  alex
+ * - neue configure-Option "--enable-sniffer".
+ *
  * Revision 1.2  2001/12/21 23:54:15  alex
  * - zusaetzliche Debug-Ausgaben koennen eingeschaltet werden.
  *
@@ -24,5 +27,7 @@
 
 #undef DEBUG
 
+#undef SNIFFER
+
 
 /* -eof- */
diff --git a/configure.in b/configure.in
index 87df99e8..5b3b07ba 100644
--- a/configure.in
+++ b/configure.in
@@ -9,9 +9,12 @@
 # Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
 # der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
 #
-# $Id: configure.in,v 1.5 2001/12/21 23:54:26 alex Exp $
+# $Id: configure.in,v 1.6 2001/12/25 22:01:47 alex Exp $
 #
 # $Log: configure.in,v $
+# Revision 1.6  2001/12/25 22:01:47  alex
+# - neue configure-Option "--enable-sniffer".
+#
 # Revision 1.5  2001/12/21 23:54:26  alex
 # - zusaetzliche Debug-Ausgaben koennen eingeschaltet werden.
 #
@@ -86,10 +89,20 @@ AC_CHECK_FUNCS([socket],,[required functions missing!])
 # -- Konfigurationsoptionen --
 
 AC_ARG_ENABLE(debug,
-	[  --enable-debug          enable extra debug output],
+	[  --enable-debug          show additional debug output],
+	if test "$enableval" = "yes"; then
+		AC_DEFINE(DEBUG, 1)
+		AC_MSG_RESULT([enabling additional debug output])
+	fi
+)
+
+AC_ARG_ENABLE(sniffer,
+	[  --enable-sniffer        enable network traffic monitor (enables debug mode!)],
 	if test "$enableval" = "yes"; then
 		AC_DEFINE(DEBUG, 1)
-		AC_MSG_RESULT([enabling extra debug output])
+		AC_MSG_RESULT([enabling additional debug output])
+		AC_DEFINE(SNIFFER, 1)
+		AC_MSG_RESULT([enabling network traffic monitor])
 	fi
 )