summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 4 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 3e41809..be124b9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,7 @@
1# -*- Autoconf -*- 1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script. 2# Process this file with autoconf to produce a configure script.
3 3
4AC_PREREQ(2.68) 4AC_PREREQ([2.68])
5AC_INIT([ideviceinstaller], [m4_esyscmd(./git-version-gen $RELEASE_VERSION)], [https://github.com/libimobiledevice/ideviceinstaller/issues], [], [https://libimobiledevice.org]) 5AC_INIT([ideviceinstaller], [m4_esyscmd(./git-version-gen $RELEASE_VERSION)], [https://github.com/libimobiledevice/ideviceinstaller/issues], [], [https://libimobiledevice.org])
6AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip check-news]) 6AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip check-news])
7m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) 7m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
@@ -25,7 +25,6 @@ PKG_CHECK_MODULES(libplist, libplist-2.0 >= 2.3.0)
25PKG_CHECK_MODULES(libzip, libzip >= 0.10) 25PKG_CHECK_MODULES(libzip, libzip >= 0.10)
26 26
27# Checks for header files. 27# Checks for header files.
28AC_HEADER_STDC
29AC_CHECK_HEADERS([stdint.h stdlib.h string.h]) 28AC_CHECK_HEADERS([stdint.h stdlib.h string.h])
30 29
31# Checks for typedefs, structures, and compiler characteristics. 30# Checks for typedefs, structures, and compiler characteristics.
@@ -44,16 +43,16 @@ AC_CHECK_FUNCS([strdup strerror asprintf vasprintf])
44# Check for lstat 43# Check for lstat
45 44
46AC_MSG_CHECKING([whether lstat is available]) 45AC_MSG_CHECKING([whether lstat is available])
47AC_TRY_LINK([ 46AC_LINK_IFELSE([AC_LANG_PROGRAM([[
48#include <sys/types.h> 47#include <sys/types.h>
49#include <sys/stat.h> 48#include <sys/stat.h>
50#if defined(HAVE_UNISTD_H) 49#if defined(HAVE_UNISTD_H)
51#include <unistd.h> 50#include <unistd.h>
52#endif 51#endif
53],[ 52]],[[
54struct stat st; 53struct stat st;
55lstat("/tmp", &st); 54lstat("/tmp", &st);
56], [have_lstat="yes"], [have_lstat="no"]) 55]])], [have_lstat="yes"], [have_lstat="no"])
57AC_MSG_RESULT([${have_lstat}]) 56AC_MSG_RESULT([${have_lstat}])
58 57
59if test "x${have_lstat}" = "xyes" ; then 58if test "x${have_lstat}" = "xyes" ; then