diff options
author | Tushar Gohad <tushar.gohad@intel.com> | 2015-12-10 03:47:14 -0700 |
---|---|---|
committer | Tushar Gohad <tushar.gohad@intel.com> | 2015-12-10 04:00:29 -0700 |
commit | 92bad94311f93f32010c0df01a7ad8da400ec023 (patch) | |
tree | d37f3148ef5f31e5c66c36e7dd779db09cd2c793 /configure.ac | |
parent | debb72493d0ea54ec068a9400417586ed0d40473 (diff) | |
download | liberasurecode-92bad94311f93f32010c0df01a7ad8da400ec023.tar.gz |
Include major API version in pkg-config file name
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index a3d62b3..d468b77 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,18 @@ ################################################################################ # Standard Stuff ################################################################################ -AC_INIT(liberasurecode,1.1.0) + +# Release version +m4_define([package_version_major],[1]) +m4_define([package_version_minor],[1]) +m4_define([package_version_micro],[2]) + +# API version +m4_define([api_version],[1]) + +AC_INIT(liberasurecode, + [package_version_major.package_version_minor.package_version_micro]) + AC_GNU_SOURCE AC_PREREQ([2.61]) @@ -25,6 +36,14 @@ AC_PROG_CXX AC_PROG_INSTALL AC_PROG_MAKE_SET +PKG_PROG_PKG_CONFIG +PKG_INSTALLDIR + +AC_SUBST([PACKAGE_VERSION_MAJOR],package_version_major) +AC_SUBST([PACKAGE_VERSION_MINOR],package_version_minor) +AC_SUBST([PACKAGE_VERSION_MICRO],package_version_micro) +AC_SUBST([API_VERSION],api_version) + AX_EXT() ################################################################################ @@ -202,10 +221,13 @@ AC_CONFIG_FILES([\ test/Makefile \ doc/Makefile \ Makefile \ - erasurecode.pc \ Xorcode.pc ]) +AC_CONFIG_FILES([\ + erasurecode-$API_VERSION.pc:erasurecode.pc], [], + [API_VERSION='$API_VERSION']) + AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"]) AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([doc/doxygen.cfg])]) |