Browse code

add --enable-experimental switch

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@2194 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2006/08/14 05:16:50
Showing 4 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sun Aug 13 22:13:45 CEST 2006 (tk)
2
+----------------------------------
3
+  * configure: add --enable-experimental switch
4
+
1 5
 Sun Aug 13 21:41:59 CEST 2006 (tk)
2 6
 ----------------------------------
3 7
   * shared/cdiff.c: add support for command MOVE
... ...
@@ -21,6 +21,9 @@
21 21
 /* enable debugging */
22 22
 #undef CL_DEBUG
23 23
 
24
+/* enable experimental code */
25
+#undef CL_EXPERIMENTAL
26
+
24 27
 /* thread safe */
25 28
 #undef CL_THREAD_SAFE
26 29
 
... ...
@@ -1481,6 +1481,7 @@ Optional Features:
1481 1481
   --enable-yp-check	  use ypmatch utility instead of /etc/passwd parsing
1482 1482
   --disable-clamav	  disable test for clamav user/group
1483 1483
   --enable-debug	  enable debug code
1484
+  --enable-experimental	enable experimental code
1484 1485
   --enable-bigstack	  increase thread stack size
1485 1486
   --disable-gethostbyname_r	  disable support for gethostbyname_r
1486 1487
   --enable-readdir_r		    enable support for readdir_r
... ...
@@ -5880,7 +5881,7 @@ test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5880 5880
 case $host in
5881 5881
 *-*-irix6*)
5882 5882
   # Find out which ABI we are using.
5883
-  echo '#line 5883 "configure"' > conftest.$ac_ext
5883
+  echo '#line 5884 "configure"' > conftest.$ac_ext
5884 5884
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5885 5885
   (eval $ac_compile) 2>&5
5886 5886
   ac_status=$?
... ...
@@ -6513,7 +6514,7 @@ chmod -w .
6513 6513
 save_CFLAGS="$CFLAGS"
6514 6514
 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6515 6515
 compiler_c_o=no
6516
-if { (eval echo configure:6516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6516
+if { (eval echo configure:6517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6517 6517
   # The compiler can only warn and ignore the option if not recognized
6518 6518
   # So say no if there are warnings
6519 6519
   if test -s out/conftest.err; then
... ...
@@ -8549,7 +8550,7 @@ else
8549 8549
     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8550 8550
   lt_status=$lt_dlunknown
8551 8551
   cat > conftest.$ac_ext <<EOF
8552
-#line 8552 "configure"
8552
+#line 8553 "configure"
8553 8553
 #include "confdefs.h"
8554 8554
 
8555 8555
 #if HAVE_DLFCN_H
... ...
@@ -8647,7 +8648,7 @@ else
8647 8647
     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8648 8648
   lt_status=$lt_dlunknown
8649 8649
   cat > conftest.$ac_ext <<EOF
8650
-#line 8650 "configure"
8650
+#line 8651 "configure"
8651 8651
 #include "confdefs.h"
8652 8652
 
8653 8653
 #if HAVE_DLFCN_H
... ...
@@ -13156,6 +13157,22 @@ _ACEOF
13156 13156
 
13157 13157
 fi
13158 13158
 
13159
+# Check whether --enable-experimental was given.
13160
+if test "${enable_experimental+set}" = set; then
13161
+  enableval=$enable_experimental; enable_experimental=$enableval
13162
+else
13163
+  enable_experimental="no"
13164
+fi
13165
+
13166
+
13167
+if test "$enable_experimental" = "yes"; then
13168
+
13169
+cat >>confdefs.h <<\_ACEOF
13170
+#define CL_EXPERIMENTAL 1
13171
+_ACEOF
13172
+
13173
+fi
13174
+
13159 13175
 # Check whether --enable-bigstack was given.
13160 13176
 if test "${enable_bigstack+set}" = set; then
13161 13177
   enableval=$enable_bigstack; enable_bigstack=$enableval
... ...
@@ -291,6 +291,14 @@ if test "$enable_debug" = "yes"; then
291 291
   AC_DEFINE(CL_DEBUG,1,[enable debugging])
292 292
 fi
293 293
 
294
+AC_ARG_ENABLE(experimental,
295
+[  --enable-experimental	enable experimental code],
296
+enable_experimental=$enableval, enable_experimental="no")
297
+
298
+if test "$enable_experimental" = "yes"; then
299
+  AC_DEFINE(CL_EXPERIMENTAL,1,[enable experimental code])
300
+fi
301
+
294 302
 AC_ARG_ENABLE(bigstack,
295 303
 [  --enable-bigstack	  increase thread stack size],
296 304
 enable_bigstack=$enableval, enable_bigstack="no")