]> git.wh0rd.org - fontconfig.git/blobdiff - configure.in
Switch back to -version-info for fontconfig as its at minor 0. Add
[fontconfig.git] / configure.in
index 7702bb5ce65dd760069fb4d54b316e289fdab1cc..4a9bd92ed9e262ebb3c6d031799ad3a77035dfaf 100644 (file)
@@ -29,23 +29,20 @@ dnl ==========================================================================
 dnl                               Versioning              
 dnl ==========================================================================
 
-dnl This is the package version number, not the shared library version number
-dnl The shared library version lives in fontconfig/fontconfig.h
+dnl This is the package version number, not the shared library
+dnl version.  This same version number must appear in fontconfig/fontconfig.h
+dnl Yes, it is a pain to synchronize version numbers.  Unfortunately, it's
+dnl not possible to extract the version number here from fontconfig.h
 AM_INIT_AUTOMAKE(fontconfig, 2.1.90)
 
-FONTCONFIG_HEADER=fontconfig/fontconfig.h
-FONTCONFIG_MAJOR=`awk '/^#define FC_MAJOR/ { print $3 }' $FONTCONFIG_HEADER`
-FONTCONFIG_MINOR=`awk '/^#define FC_MINOR/ { print $3 }' $FONTCONFIG_HEADER`
-FONTCONFIG_REVISION=`awk '/^#define FC_REVISION/ { print $3 }' $FONTCONFIG_HEADER`
-
-AC_SUBST(FONTCONFIG_MAJOR)
-AC_SUBST(FONTCONFIG_MINOR)
-AC_SUBST(FONTCONFIG_REVISION)
-
 dnl libtool versioning
 
-LT_VERSION_NUMBER="$FONTCONFIG_MAJOR:$FONTCONFIG_MINOR:$FONTCONFIG_REVISION"
-AC_SUBST(LT_VERSION_NUMBER)
+LT_CURRENT=1
+LT_REVISION=4
+LT_AGE=0
+
+LT_VERSION_INFO="$LT_CURRENT:$LT_REVISION:$LT_AGE"
+AC_SUBST(LT_VERSION_INFO)
 
 dnl ==========================================================================