11# -*- Autoconf -*-
22# Process this file with autoconf to produce a configure script.
33
4- AC_PREREQ ( 2.64 )
5- AC_INIT ( [ ifuse] , [ 1.1.5 ] , [ https://github.com/libimobiledevice/ifuse/issues] ,, [ https://libimobiledevice.org] )
4+ AC_PREREQ ( 2.68 )
5+ AC_INIT ( [ ifuse] , [ m4_esyscmd ( ./git-version-gen $RELEASE_VERSION ) ] , [ https://github.com/libimobiledevice/ifuse/issues] ,, [ https://libimobiledevice.org] )
66AM_INIT_AUTOMAKE ( [ dist-bzip2 no-dist-gzip check-news] )
77m4_ifdef ( [ AM_SILENT_RULES ] , [ AM_SILENT_RULES ] )
88AC_CONFIG_SRCDIR ( [ src/] )
99AC_CONFIG_HEADERS ( [ config.h] )
1010
11+ # Check if we have a version defined
12+ if test -z $PACKAGE_VERSION; then
13+ 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.] )
14+ fi
15+
1116# Checks for programs.
1217AC_PROG_CC
1318AM_PROG_CC_C_O
19+ LT_INIT
1420
1521# Checks for libraries.
1622PKG_CHECK_MODULES(libimobiledevice, libimobiledevice-1.0 >= 1.3.0)
1723PKG_CHECK_MODULES(libfuse, fuse3 >= 3.0.0)
1824PKG_CHECK_MODULES(libplist, libplist-2.0 >= 2.2.0)
1925
2026# Checks for header files.
21- AC_HEADER_STDC
22- AC_CHECK_HEADERS ( [ arpa/inet.h stdint.h stdlib.h string.h] )
27+ AC_CHECK_HEADERS ( [ stdint.h stdlib.h string.h] )
2328
2429# Checks for typedefs, structures, and compiler characteristics.
2530AC_C_CONST
@@ -36,17 +41,18 @@ AC_CHECK_FUNCS([strcasecmp strdup strerror strndup])
3641
3742m4_ifdef ( [ AM_SILENT_RULES ] ,[ AM_SILENT_RULES ([ yes] )] )
3843
39- AC_OUTPUT ([
44+ AC_CONFIG_FILES ( [
4045Makefile
4146src/Makefile
4247docs/Makefile
4348] )
49+ AC_OUTPUT
4450
4551echo "
4652Configuration for $PACKAGE $VERSION:
4753-------------------------------------------
4854
49- Install prefix . .........: $prefix
55+ Install prefix: .........: $prefix
5056
5157 Now type 'make' to build $PACKAGE $VERSION,
5258 and then 'make install' for installation.
0 commit comments