@@ -8,7 +8,6 @@ AC_PROG_CC_STDC
88
99AM_PROG_LIBTOOL
1010
11-
1211AC_CANONICAL_HOST
1312
1413build_linux=no
@@ -487,35 +486,35 @@ AC_SUBST([VERSION])
487486
488487CURRENT_ABI=0 # Default for ABI current
489488REVISION_ABI=0 # Default for ABI revision
489+ AGE_ABI=0 # Default for ABI age
490490
491491# Extract the initial part that looks like MAJOR.MINOR.PATCH (e.g., "0.10.0")
492- # This sed command grabs digits.digits.digits at the beginning,
493- # or digits.digits if the patch is missing.
494492BASE_VERSION_PREFIX=$(echo $VERSION | awk -F. '{print $1"."$2}')
495493
496494if test -n "$BASE_VERSION_PREFIX" ; then
497495 # If we got a base prefix like "0.10.0" or "0.10"
498496 CURRENT_ABI=`echo $BASE_VERSION_PREFIX | cut -d. -f1`
499497 REVISION_ABI=`echo $BASE_VERSION_PREFIX | cut -d. -f2`
500-
498+ AGE_ABI = `echo $VERSION | cut -d '-' -f 2-`
501499 # Ensure defaults if parsing failed or results are empty
502500 if test -z "$CURRENT_ABI"; then CURRENT_ABI=0; fi
503501 if test -z "$REVISION_ABI"; then REVISION_ABI=0; fi
502+ if test -z "$AGE_ABI"; then AGE_ABI=0; fi
504503else
505504 AC_MSG_WARN ( [ Could not parse ABI versions from "$VERSION". Defaulting to 0:0] )
506505 CURRENT_ABI=0
507506 REVISION_ABI=0
507+ AGE_ABI=0
508508fi
509509
510510# Set variables for libtool (CURRENT:REVISION:RELEASE)
511511AM_LIBTOOL_CURRENT="$CURRENT_ABI"
512512AM_LIBTOOL_REVISION="$REVISION_ABI"
513- AM_LIBTOOL_RELEASE="$VERSION" # Use the full, descriptive version string for RELEASE
513+ AM_LIBTOOL_RELEASE="$AGE_ABI"
514514
515515AC_SUBST ( [ AM_LIBTOOL_CURRENT] )
516516AC_SUBST ( [ AM_LIBTOOL_REVISION] )
517517AC_SUBST ( [ AM_LIBTOOL_RELEASE] ) # Substitute the full string
518518
519-
520519AC_CONFIG_FILES ( [ Makefile] )
521520AC_OUTPUT
0 commit comments