From 413cb59e22339901cbd7525e1c91c7ae8b1e16c5 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Wed, 26 Sep 2018 00:21:37 +0200 Subject: [PATCH] [137-improve-kea-compilation-time-2] Second try --- configure.ac | 4 +++- kea_version.h.in | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 kea_version.h.in 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@" -- GitLab