[netperf-dev] netperf2 commit notice r212 - trunk

raj at netperf.org raj at netperf.org
Mon Feb 4 12:43:55 PST 2008


Author: raj
Date: 2008-02-04 12:43:55 -0800 (Mon, 04 Feb 2008)
New Revision: 212

Modified:
   trunk/configure
   trunk/configure.ac
Log:
allow WANT_DCCP to be enabled via configure

Modified: trunk/configure
===================================================================
--- trunk/configure	2008-02-04 20:20:49 UTC (rev 211)
+++ trunk/configure	2008-02-04 20:43:55 UTC (rev 212)
@@ -1305,7 +1305,8 @@
                           results.
   --enable-unixdomain     include Unix Domain socket tests
   --enable-dlpi           include DLPI (link-layer) tests
-  --enable-omni           include OMNI (link-layer) tests
+  --enable-dccp           include DCCP tests
+  --enable-omni           include OMNI tests
   --enable-xti            include XTI socket tests
   --enable-sdp            include SDP socket tests
   --enable-exs            include ICSC async sockets tests
@@ -7865,6 +7866,52 @@
 
 fi
 
+# see if we should be including the DCCP tests
+
+{ echo "$as_me:$LINENO: checking whether to include DCCP tests" >&5
+echo $ECHO_N "checking whether to include DCCP tests... $ECHO_C" >&6; }
+
+# Check whether --enable-dccp was given.
+if test "${enable_dccp+set}" = set; then
+  enableval=$enable_dccp;
+fi
+
+
+case "$enable_dccp" in
+     yes)
+		use_dccp=true
+		;;
+     no)
+		use_dccp=false
+		;;
+     '')
+		use_dccp=false
+		;;
+     *)
+		{ { echo "$as_me:$LINENO: error: --enable-dccp takes yes or no" >&5
+echo "$as_me: error: --enable-dccp takes yes or no" >&2;}
+   { (exit 1); exit 1; }; }
+		;;
+esac
+
+if $use_dccp
+then
+	{ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+else
+	{ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+if $use_dccp
+then
+
+cat >>confdefs.h <<\_ACEOF
+#define WANT_DCCP
+_ACEOF
+
+fi
+
 # see if we should be including the OMNI tests
 
 { echo "$as_me:$LINENO: checking whether to include OMNI tests" >&5

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2008-02-04 20:20:49 UTC (rev 211)
+++ trunk/configure.ac	2008-02-04 20:43:55 UTC (rev 212)
@@ -267,12 +267,46 @@
 	AC_DEFINE([WANT_DLPI],,[Define to one to include DLPI tests.])
 fi
 
+# see if we should be including the DCCP tests
+
+AC_MSG_CHECKING(whether to include DCCP tests)
+
+AC_ARG_ENABLE(dccp,
+	[AS_HELP_STRING([--enable-dccp],[include DCCP tests])])
+
+case "$enable_dccp" in
+     yes)
+		use_dccp=true
+		;;
+     no)	
+		use_dccp=false
+		;;
+     '')
+		use_dccp=false
+		;;
+     *)
+		AC_MSG_ERROR([--enable-dccp takes yes or no])
+		;;
+esac
+
+if $use_dccp
+then
+	AC_MSG_RESULT(yes)
+else
+	AC_MSG_RESULT(no)
+fi
+
+if $use_dccp
+then
+	AC_DEFINE([WANT_DCCP],,[Define to one to include DCCP tests.])
+fi
+
 # see if we should be including the OMNI tests
 
 AC_MSG_CHECKING(whether to include OMNI tests)
 
 AC_ARG_ENABLE(omni,
-	[AS_HELP_STRING([--enable-omni],[include OMNI (link-layer) tests])])
+	[AS_HELP_STRING([--enable-omni],[include OMNI tests])])
 
 case "$enable_omni" in
      yes)



More information about the netperf-dev mailing list