summaryrefslogtreecommitdiff
path: root/lib/version.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'lib/version.h.in')
-rw-r--r--lib/version.h.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/version.h.in b/lib/version.h.in
index 429474d1..7e9985f0 100644
--- a/lib/version.h.in
+++ b/lib/version.h.in
@@ -24,9 +24,20 @@
#ifndef _ZEBRA_VERSION_H
#define _ZEBRA_VERSION_H
+#ifdef GIT_VERSION
+#include "gitversion.h"
+#endif
+
+#ifndef GIT_SUFFIX
+#define GIT_SUFFIX ""
+#endif
+#ifndef GIT_INFO
+#define GIT_INFO ""
+#endif
+
#define QUAGGA_PROGNAME "@PACKAGE_NAME@"
-#define QUAGGA_VERSION "@PACKAGE_VERSION@"
+#define QUAGGA_VERSION "@PACKAGE_VERSION@" GIT_SUFFIX
#define ZEBRA_BUG_ADDRESS "@PACKAGE_BUGREPORT@"