]> The Tcpdump Group git mirrors - libpcap/blobdiff - configure.ac
Merge pull request #645 from sgeto/m4_esyscmd_s
[libpcap] / configure.ac
index 3e7b67fc76cf4d99a7a3d591d5b1eee3cdaf0ad7..d74dc0a1fc5ec43c62cb782e8ebeee60bb1ac51b 100644 (file)
@@ -14,23 +14,9 @@ dnl
 # config.sub.
 #
 
-AC_PREREQ(2.61)
+AC_PREREQ(2.64)
 
-#
-# XXX - the version is a required argument to AC_INIT and, to quote the
-# autoconf documentation, "The arguments of AC_INIT must be static,
-# i.e., there should not be any shell computation, quotes, or newlines",
-# so we can't get the version from the VERSION file.
-#
-# So we put a place holder here.  The alternative would be to eliminate
-# the VERSION file, directly set the version here, CMakeLists.txt,
-# and msdos/makefile.dj, have pcap_version.h and version.c not be
-# expanded from .in files but instead use PACKAGE_VERSION, use
-# @PACKAGE_VERSION@ in Makefile.in for the full version string, and do
-# what's necessary to get the version in .travis-coverity-scan-build.sh.
-# That would involve updating three files when the version changes.
-#
-AC_INIT(pcap, place-holder-version)
+AC_INIT(pcap, m4_esyscmd_s([cat VERSION]))
 AC_SUBST(PACKAGE_NAME)
 
 AC_CANONICAL_SYSTEM