diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0d13e04..d1b1f62 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | # Process this file with autoconf to produce a configure script. | 2 | # Process this file with autoconf to produce a configure script. |
| 3 | 3 | ||
| 4 | AC_PREREQ(2.68) | 4 | AC_PREREQ(2.68) |
| 5 | AC_INIT([libplist], [2.2.1], [https://github.com/libimobiledevice/libplist/issues],, [https://libimobiledevice.org]) | 5 | AC_INIT([libplist], [m4_esyscmd(./git-version-gen $RELEASE_VERSION)], [https://github.com/libimobiledevice/libplist/issues],, [https://libimobiledevice.org]) |
| 6 | AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip check-news]) | 6 | AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip check-news]) |
| 7 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) | 7 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) |
| 8 | AC_CONFIG_SRCDIR([src/]) | 8 | AC_CONFIG_SRCDIR([src/]) |
| @@ -19,6 +19,11 @@ LIBPLIST_SO_VERSION=6:0:3 | |||
| 19 | 19 | ||
| 20 | AC_SUBST(LIBPLIST_SO_VERSION) | 20 | AC_SUBST(LIBPLIST_SO_VERSION) |
| 21 | 21 | ||
| 22 | # Check if we have a version defined | ||
| 23 | if test -z $PACKAGE_VERSION; then | ||
| 24 | AC_MSG_ERROR([PACKAGE_VERSION is not defined. Make sure to configure a source tree checked out from git or that .tarball-version is present.]) | ||
| 25 | fi | ||
| 26 | |||
| 22 | # Checks for programs. | 27 | # Checks for programs. |
| 23 | AC_PROG_CC | 28 | AC_PROG_CC |
| 24 | AC_PROG_CXX | 29 | AC_PROG_CXX |
