diff options
author | Arty Gus | 2016-04-29 21:47:32 +0200 |
---|---|---|
committer | Nikias Bassen | 2016-04-29 21:47:32 +0200 |
commit | e6486dbd29470939ed032972ca693888465e9ff4 (patch) | |
tree | 7d674a35570b3a61511479a06d006e7b2e34346e | |
parent | b5a70e9aaf538dad0aba0b800b122955e8ac494b (diff) | |
download | libimobiledevice-e6486dbd29470939ed032972ca693888465e9ff4.tar.gz libimobiledevice-e6486dbd29470939ed032972ca693888465e9ff4.tar.bz2 |
configure.ac: Only check for pthread support on non-win32 platforms
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index bade848..26fe819 100644 --- a/configure.ac +++ b/configure.ac @@ -37,7 +37,6 @@ AC_PROG_LIBTOOL PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= $LIBUSBMUXD_VERSION) PKG_CHECK_MODULES(libplist, libplist >= $LIBPLIST_VERSION) PKG_CHECK_MODULES(libplistmm, libplist++ >= $LIBPLISTMM_VERSION) -AC_CHECK_LIB(pthread, [pthread_create, pthread_mutex_lock], [AC_SUBST(libpthread_LIBS,[-lpthread])], [AC_MSG_ERROR([libpthread is required to build libimobiledevice])]) # Checks for header files. AC_HEADER_STDC @@ -82,6 +81,10 @@ case ${host_os} in esac AM_CONDITIONAL(WIN32, test x$win32 = xtrue) +if test "x$win32" != xtrue; then + AC_CHECK_LIB(pthread, [pthread_create, pthread_mutex_lock], [AC_SUBST(libpthread_LIBS,[-lpthread])], [AC_MSG_ERROR([libpthread is required to build libimobiledevice])]) +fi + # Cython Python Bindings AC_ARG_WITH([cython], [AS_HELP_STRING([--without-cython], |