... | ... |
@@ -974,6 +974,7 @@ with_user |
974 | 974 |
with_group |
975 | 975 |
enable_clamav |
976 | 976 |
enable_debug |
977 |
+with_version |
|
977 | 978 |
enable_no_cache |
978 | 979 |
enable_dns_fix |
979 | 980 |
enable_bigstack |
... | ... |
@@ -1683,6 +1684,7 @@ Optional Packages: |
1683 | 1683 |
--with-iconv supports iconv() (default=auto) |
1684 | 1684 |
--with-user=uid name of the clamav user (default=clamav) |
1685 | 1685 |
--with-group=gid name of the clamav group (default=clamav) |
1686 |
+ --with-version=STR use custom version string (dev only) |
|
1686 | 1687 |
--with-dbdir=path path to virus database directory |
1687 | 1688 |
--with-libncurses-prefix[=DIR] search for libncurses in DIR/include and DIR/lib |
1688 | 1689 |
--without-libncurses-prefix don't search for libncurses in includedir and libdir |
... | ... |
@@ -3487,11 +3489,6 @@ $as_echo "#define PACKAGE PACKAGE_NAME" >>confdefs.h |
3487 | 3487 |
|
3488 | 3488 |
VERSION="0.97.2" |
3489 | 3489 |
|
3490 |
-cat >>confdefs.h <<_ACEOF |
|
3491 |
-#define VERSION "$VERSION" |
|
3492 |
-_ACEOF |
|
3493 |
- |
|
3494 |
- |
|
3495 | 3490 |
LC_CURRENT=7 |
3496 | 3491 |
LC_REVISION=11 |
3497 | 3492 |
LC_AGE=1 |
... | ... |
@@ -5180,13 +5177,13 @@ if test "${lt_cv_nm_interface+set}" = set; then : |
5180 | 5180 |
else |
5181 | 5181 |
lt_cv_nm_interface="BSD nm" |
5182 | 5182 |
echo "int some_variable = 0;" > conftest.$ac_ext |
5183 |
- (eval echo "\"\$as_me:5183: $ac_compile\"" >&5) |
|
5183 |
+ (eval echo "\"\$as_me:5180: $ac_compile\"" >&5) |
|
5184 | 5184 |
(eval "$ac_compile" 2>conftest.err) |
5185 | 5185 |
cat conftest.err >&5 |
5186 |
- (eval echo "\"\$as_me:5186: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
|
5186 |
+ (eval echo "\"\$as_me:5183: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
|
5187 | 5187 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5188 | 5188 |
cat conftest.err >&5 |
5189 |
- (eval echo "\"\$as_me:5189: output\"" >&5) |
|
5189 |
+ (eval echo "\"\$as_me:5186: output\"" >&5) |
|
5190 | 5190 |
cat conftest.out >&5 |
5191 | 5191 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
5192 | 5192 |
lt_cv_nm_interface="MS dumpbin" |
... | ... |
@@ -6381,7 +6378,7 @@ ia64-*-hpux*) |
6381 | 6381 |
;; |
6382 | 6382 |
*-*-irix6*) |
6383 | 6383 |
# Find out which ABI we are using. |
6384 |
- echo '#line 6384 "configure"' > conftest.$ac_ext |
|
6384 |
+ echo '#line 6381 "configure"' > conftest.$ac_ext |
|
6385 | 6385 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6386 | 6386 |
(eval $ac_compile) 2>&5 |
6387 | 6387 |
ac_status=$? |
... | ... |
@@ -7908,11 +7905,11 @@ else |
7908 | 7908 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7909 | 7909 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7910 | 7910 |
-e 's:$: $lt_compiler_flag:'` |
7911 |
- (eval echo "\"\$as_me:7911: $lt_compile\"" >&5) |
|
7911 |
+ (eval echo "\"\$as_me:7908: $lt_compile\"" >&5) |
|
7912 | 7912 |
(eval "$lt_compile" 2>conftest.err) |
7913 | 7913 |
ac_status=$? |
7914 | 7914 |
cat conftest.err >&5 |
7915 |
- echo "$as_me:7915: \$? = $ac_status" >&5 |
|
7915 |
+ echo "$as_me:7912: \$? = $ac_status" >&5 |
|
7916 | 7916 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
7917 | 7917 |
# The compiler can only warn and ignore the option if not recognized |
7918 | 7918 |
# So say no if there are warnings other than the usual output. |
... | ... |
@@ -8247,11 +8244,11 @@ else |
8247 | 8247 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8248 | 8248 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8249 | 8249 |
-e 's:$: $lt_compiler_flag:'` |
8250 |
- (eval echo "\"\$as_me:8250: $lt_compile\"" >&5) |
|
8250 |
+ (eval echo "\"\$as_me:8247: $lt_compile\"" >&5) |
|
8251 | 8251 |
(eval "$lt_compile" 2>conftest.err) |
8252 | 8252 |
ac_status=$? |
8253 | 8253 |
cat conftest.err >&5 |
8254 |
- echo "$as_me:8254: \$? = $ac_status" >&5 |
|
8254 |
+ echo "$as_me:8251: \$? = $ac_status" >&5 |
|
8255 | 8255 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
8256 | 8256 |
# The compiler can only warn and ignore the option if not recognized |
8257 | 8257 |
# So say no if there are warnings other than the usual output. |
... | ... |
@@ -8352,11 +8349,11 @@ else |
8352 | 8352 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8353 | 8353 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8354 | 8354 |
-e 's:$: $lt_compiler_flag:'` |
8355 |
- (eval echo "\"\$as_me:8355: $lt_compile\"" >&5) |
|
8355 |
+ (eval echo "\"\$as_me:8352: $lt_compile\"" >&5) |
|
8356 | 8356 |
(eval "$lt_compile" 2>out/conftest.err) |
8357 | 8357 |
ac_status=$? |
8358 | 8358 |
cat out/conftest.err >&5 |
8359 |
- echo "$as_me:8359: \$? = $ac_status" >&5 |
|
8359 |
+ echo "$as_me:8356: \$? = $ac_status" >&5 |
|
8360 | 8360 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8361 | 8361 |
then |
8362 | 8362 |
# The compiler can only warn and ignore the option if not recognized |
... | ... |
@@ -8407,11 +8404,11 @@ else |
8407 | 8407 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8408 | 8408 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8409 | 8409 |
-e 's:$: $lt_compiler_flag:'` |
8410 |
- (eval echo "\"\$as_me:8410: $lt_compile\"" >&5) |
|
8410 |
+ (eval echo "\"\$as_me:8407: $lt_compile\"" >&5) |
|
8411 | 8411 |
(eval "$lt_compile" 2>out/conftest.err) |
8412 | 8412 |
ac_status=$? |
8413 | 8413 |
cat out/conftest.err >&5 |
8414 |
- echo "$as_me:8414: \$? = $ac_status" >&5 |
|
8414 |
+ echo "$as_me:8411: \$? = $ac_status" >&5 |
|
8415 | 8415 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8416 | 8416 |
then |
8417 | 8417 |
# The compiler can only warn and ignore the option if not recognized |
... | ... |
@@ -10791,7 +10788,7 @@ else |
10791 | 10791 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10792 | 10792 |
lt_status=$lt_dlunknown |
10793 | 10793 |
cat > conftest.$ac_ext <<_LT_EOF |
10794 |
-#line 10794 "configure" |
|
10794 |
+#line 10791 "configure" |
|
10795 | 10795 |
#include "confdefs.h" |
10796 | 10796 |
|
10797 | 10797 |
#if HAVE_DLFCN_H |
... | ... |
@@ -10887,7 +10884,7 @@ else |
10887 | 10887 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10888 | 10888 |
lt_status=$lt_dlunknown |
10889 | 10889 |
cat > conftest.$ac_ext <<_LT_EOF |
10890 |
-#line 10890 "configure" |
|
10890 |
+#line 10887 "configure" |
|
10891 | 10891 |
#include "confdefs.h" |
10892 | 10892 |
|
10893 | 10893 |
#if HAVE_DLFCN_H |
... | ... |
@@ -11559,7 +11556,7 @@ else |
11559 | 11559 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11560 | 11560 |
lt_status=$lt_dlunknown |
11561 | 11561 |
cat > conftest.$ac_ext <<_LT_EOF |
11562 |
-#line 11562 "configure" |
|
11562 |
+#line 11559 "configure" |
|
11563 | 11563 |
#include "confdefs.h" |
11564 | 11564 |
|
11565 | 11565 |
#if HAVE_DLFCN_H |
... | ... |
@@ -16649,6 +16646,13 @@ $as_echo "#define NDEBUG 1" >>confdefs.h |
16649 | 16649 |
|
16650 | 16650 |
fi |
16651 | 16651 |
|
16652 |
+ |
|
16653 |
+# Check whether --with-version was given. |
|
16654 |
+if test "${with_version+set}" = set; then : |
|
16655 |
+ withval=$with_version; VERSION="$withval" |
|
16656 |
+fi |
|
16657 |
+ |
|
16658 |
+ |
|
16652 | 16659 |
# Check whether --enable-no-cache was given. |
16653 | 16660 |
if test "${enable_no_cache+set}" = set; then : |
16654 | 16661 |
enableval=$enable_no_cache; enable_nocache=$enableval |
... | ... |
@@ -18369,6 +18373,11 @@ fi |
18369 | 18369 |
|
18370 | 18370 |
|
18371 | 18371 |
cat >>confdefs.h <<_ACEOF |
18372 |
+#define VERSION "$VERSION" |
|
18373 |
+_ACEOF |
|
18374 |
+ |
|
18375 |
+ |
|
18376 |
+cat >>confdefs.h <<_ACEOF |
|
18372 | 18377 |
#define VERSION_SUFFIX "$VERSION_SUFFIX" |
18373 | 18378 |
_ACEOF |
18374 | 18379 |
|
... | ... |
@@ -44,7 +44,6 @@ AC_DEFINE([PACKAGE], PACKAGE_NAME, [Name of package]) |
44 | 44 |
dnl change this on a release |
45 | 45 |
dnl VERSION="devel-`date +%Y%m%d`" |
46 | 46 |
VERSION="0.97.2" |
47 |
-AC_DEFINE_UNQUOTED([VERSION],"$VERSION",[Version number of package]) |
|
48 | 47 |
|
49 | 48 |
LC_CURRENT=7 |
50 | 49 |
LC_REVISION=11 |
... | ... |
@@ -856,6 +855,10 @@ else |
856 | 856 |
AC_DEFINE([NDEBUG],1,[disable assertions]) |
857 | 857 |
fi |
858 | 858 |
|
859 |
+AC_ARG_WITH([version], |
|
860 |
+[ --with-version=STR use custom version string (dev only)], |
|
861 |
+VERSION="$withval", ) |
|
862 |
+ |
|
859 | 863 |
AC_ARG_ENABLE([no-cache], |
860 | 864 |
[ --enable-no-cache use "Cache-Control: no-cache" in freshclam], |
861 | 865 |
enable_nocache=$enableval, enable_nocache="no") |
... | ... |
@@ -1528,6 +1531,7 @@ AC_MSG_RESULT([$have_signed_rightshift_extended]); |
1528 | 1528 |
|
1529 | 1529 |
AC_C_FDPASSING |
1530 | 1530 |
|
1531 |
+AC_DEFINE_UNQUOTED([VERSION],"$VERSION",[Version number of package]) |
|
1531 | 1532 |
AC_DEFINE_UNQUOTED([VERSION_SUFFIX],"$VERSION_SUFFIX",[Version suffix for package]) |
1532 | 1533 |
|
1533 | 1534 |
AC_ARG_ENABLE(clamdtop, |