... | ... |
@@ -848,6 +848,7 @@ with_user |
848 | 848 |
with_group |
849 | 849 |
enable_clamav |
850 | 850 |
enable_debug |
851 |
+with_version |
|
851 | 852 |
enable_no_cache |
852 | 853 |
enable_dns_fix |
853 | 854 |
enable_bigstack |
... | ... |
@@ -1559,6 +1560,7 @@ Optional Packages: |
1559 | 1559 |
--with-iconv supports iconv() (default=auto) |
1560 | 1560 |
--with-user=uid name of the clamav user (default=clamav) |
1561 | 1561 |
--with-group=gid name of the clamav group (default=clamav) |
1562 |
+ --with-version=STR use custom version string (dev only) |
|
1562 | 1563 |
--with-dbdir=path path to virus database directory |
1563 | 1564 |
--with-libncurses-prefix[=DIR] search for libncurses in DIR/include and DIR/lib |
1564 | 1565 |
--without-libncurses-prefix don't search for libncurses in includedir and libdir |
... | ... |
@@ -3363,11 +3365,6 @@ $as_echo "#define PACKAGE PACKAGE_NAME" >>confdefs.h |
3363 | 3363 |
|
3364 | 3364 |
VERSION="devel-`date +%Y%m%d`" |
3365 | 3365 |
|
3366 |
-cat >>confdefs.h <<_ACEOF |
|
3367 |
-#define VERSION "$VERSION" |
|
3368 |
-_ACEOF |
|
3369 |
- |
|
3370 |
- |
|
3371 | 3366 |
LC_CURRENT=7 |
3372 | 3367 |
LC_REVISION=11 |
3373 | 3368 |
LC_AGE=1 |
... | ... |
@@ -17460,6 +17457,13 @@ $as_echo "#define NDEBUG 1" >>confdefs.h |
17460 | 17460 |
|
17461 | 17461 |
fi |
17462 | 17462 |
|
17463 |
+ |
|
17464 |
+# Check whether --with-version was given. |
|
17465 |
+if test "${with_version+set}" = set; then : |
|
17466 |
+ withval=$with_version; VERSION="$withval" |
|
17467 |
+fi |
|
17468 |
+ |
|
17469 |
+ |
|
17463 | 17470 |
# Check whether --enable-no-cache was given. |
17464 | 17471 |
if test "${enable_no_cache+set}" = set; then : |
17465 | 17472 |
enableval=$enable_no_cache; enable_nocache=$enableval |
... | ... |
@@ -19180,6 +19184,11 @@ fi |
19180 | 19180 |
|
19181 | 19181 |
|
19182 | 19182 |
cat >>confdefs.h <<_ACEOF |
19183 |
+#define VERSION "$VERSION" |
|
19184 |
+_ACEOF |
|
19185 |
+ |
|
19186 |
+ |
|
19187 |
+cat >>confdefs.h <<_ACEOF |
|
19183 | 19188 |
#define VERSION_SUFFIX "$VERSION_SUFFIX" |
19184 | 19189 |
_ACEOF |
19185 | 19190 |
|
... | ... |
@@ -44,7 +44,6 @@ AC_DEFINE([PACKAGE], PACKAGE_NAME, [Name of package]) |
44 | 44 |
dnl change this on a release |
45 | 45 |
VERSION="devel-`date +%Y%m%d`" |
46 | 46 |
dnl VERSION="0.94rc1" |
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, |