Renamed AC var YAZ_VERSION_HEX to VERSION_HEX
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 5 Jan 2009 10:19:32 +0000 (11:19 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 5 Jan 2009 10:19:32 +0000 (11:19 +0100)
configure.ac
include/yaz/yaz-version.h.in

index 521d05f..02ffbb9 100644 (file)
@@ -394,8 +394,8 @@ dnl ------ versioning
 dnl
 WIN_FILEVERSION=`echo $PACKAGE_VERSION | $AWK 'BEGIN { FS = "."; } { m = $4; printf("%d,%d,%d,%d", $1, $2, $3 == "" ? "0" : $3, $4 == "" ? "1" : $4);}'`
 AC_SUBST([WIN_FILEVERSION])
 dnl
 WIN_FILEVERSION=`echo $PACKAGE_VERSION | $AWK 'BEGIN { FS = "."; } { m = $4; printf("%d,%d,%d,%d", $1, $2, $3 == "" ? "0" : $3, $4 == "" ? "1" : $4);}'`
 AC_SUBST([WIN_FILEVERSION])
-YAZ_VERSION_HEX=`echo $PACKAGE_VERSION | $AWK 'BEGIN { FS = "."; } { printf("%x", ($1 * 256 + $2) * 256 + $3);}'`
-AC_SUBST([YAZ_VERSION_HEX])
+VERSION_HEX=`echo $PACKAGE_VERSION | $AWK 'BEGIN { FS = "."; } { printf("%x", ($1 * 256 + $2) * 256 + $3);}'`
+AC_SUBST([VERSION_HEX])
 if test -d ${srcdir}/.git; then
     VERSION_SHA1=`git show --pretty=format:%H|head -1`
 else
 if test -d ${srcdir}/.git; then
     VERSION_SHA1=`git show --pretty=format:%H|head -1`
 else
index da6c22c..e440a8f 100644 (file)
@@ -36,7 +36,7 @@
 #define YAZ_VERSION "@VERSION@"
 
 /** \brief YAZ version as integer (for comparison purposes) */
 #define YAZ_VERSION "@VERSION@"
 
 /** \brief YAZ version as integer (for comparison purposes) */
-#define YAZ_VERSIONL 0x@YAZ_VERSION_HEX@
+#define YAZ_VERSIONL 0x@VERSION_HEX@
 
 /** \brief YAZ file version for YAZ DLL (resource) */
 #define YAZ_FILEVERSION @WIN_FILEVERSION@
 
 /** \brief YAZ file version for YAZ DLL (resource) */
 #define YAZ_FILEVERSION @WIN_FILEVERSION@