From: Francis Dupont Date: Tue, 25 Sep 2018 22:21:37 +0000 (+0200) Subject: [137-improve-kea-compilation-time-2] Second try X-Git-Tag: 65-libyang-class_base~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=413cb59e22339901cbd7525e1c91c7ae8b1e16c5;p=thirdparty%2Fkea.git [137-improve-kea-compilation-time-2] Second try --- diff --git a/configure.ac b/configure.ac index 6cc5a1e6d0..611830cf59 100644 --- a/configure.ac +++ b/configure.ac @@ -47,7 +47,8 @@ fi # horribly. When building different branches, the commit-id is different # and since the config.h is included in most files *and* has a different # content, ccache can't use cached content and thus has to do full compilation. -echo "#define EXTENDED_VERSION \"${KEA_SRCID}\"" > kea_version.h +# Now it is in kea_version.h and config.status substitutes it. +AC_SUBST(KEA_SRCID) # Find a separator for path_replacer for sep in "+" "," ";" "&" "__NONE__"; do @@ -1463,6 +1464,7 @@ AC_CONFIG_FILES([Makefile doc/version.ent ext/Makefile ext/gtest/Makefile + kea_version.h m4macros/Makefile src/Makefile src/bin/Makefile diff --git a/kea_version.h.in b/kea_version.h.in new file mode 100644 index 0000000000..67da352047 --- /dev/null +++ b/kea_version.h.in @@ -0,0 +1 @@ +#define EXTENDED_VERSION "@KEA_SRCID@"