summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2016-12-31 02:59:36 +0100
committerGravatar Nikias Bassen2016-12-31 02:59:36 +0100
commit038bb5902fcc4e981fb349fbba629eab2bdf93ff (patch)
tree7e30ed15205d6d2ea76507066aad60d1fb92aa51 /configure.ac
parenta80ba9363b4dc0ea1bcdad152cf2cdc974636ad6 (diff)
downloadlibimobiledevice-038bb5902fcc4e981fb349fbba629eab2bdf93ff.tar.gz
libimobiledevice-038bb5902fcc4e981fb349fbba629eab2bdf93ff.tar.bz2
Add ax_pthread.m4 for proper pthread cflags/ldflags
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac18
1 files changed, 8 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index 26fe819..e41baa3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,25 +66,23 @@ if test "x$ac_cv_have_endian_h" = "xno"; then
66fi 66fi
67 67
68# Check for operating system 68# Check for operating system
69AC_MSG_CHECKING([whether to enable WIN32 build settings]) 69AC_MSG_CHECKING([whether we need platform-specific build settings])
70case ${host_os} in 70case ${host_os} in
71 *mingw32*|*cygwin*) 71 *mingw32*|*cygwin*)
72 win32=true
73 AC_MSG_RESULT([yes]) 72 AC_MSG_RESULT([yes])
74 AC_CHECK_TOOL([WINDRES], [windres], AC_MSG_ERROR([windres not found])) 73 win32=true
75 AC_SUBST(WINDRES)
76 ;; 74 ;;
77 *) 75 darwin*)
78 win32=false
79 AC_MSG_RESULT([no]) 76 AC_MSG_RESULT([no])
80 ;; 77 ;;
78 *)
79 AC_MSG_RESULT([yes])
80 AX_PTHREAD([], [AC_MSG_ERROR([pthread is required to build $PACKAGE_NAME])])
81 AC_CHECK_LIB(pthread, [pthread_once], [], [AC_MSG_ERROR([pthread with pthread_once required to build $PACKAGE_NAME])])
82 ;;
81esac 83esac
82AM_CONDITIONAL(WIN32, test x$win32 = xtrue) 84AM_CONDITIONAL(WIN32, test x$win32 = xtrue)
83 85
84if test "x$win32" != xtrue; then
85 AC_CHECK_LIB(pthread, [pthread_create, pthread_mutex_lock], [AC_SUBST(libpthread_LIBS,[-lpthread])], [AC_MSG_ERROR([libpthread is required to build libimobiledevice])])
86fi
87
88# Cython Python Bindings 86# Cython Python Bindings
89AC_ARG_WITH([cython], 87AC_ARG_WITH([cython],
90 [AS_HELP_STRING([--without-cython], 88 [AS_HELP_STRING([--without-cython],