diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 18 |
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 | |||
| 66 | fi | 66 | fi |
| 67 | 67 | ||
| 68 | # Check for operating system | 68 | # Check for operating system |
| 69 | AC_MSG_CHECKING([whether to enable WIN32 build settings]) | 69 | AC_MSG_CHECKING([whether we need platform-specific build settings]) |
| 70 | case ${host_os} in | 70 | case ${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 | ;; | ||
| 81 | esac | 83 | esac |
| 82 | AM_CONDITIONAL(WIN32, test x$win32 = xtrue) | 84 | AM_CONDITIONAL(WIN32, test x$win32 = xtrue) |
| 83 | 85 | ||
| 84 | if 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])]) | ||
| 86 | fi | ||
| 87 | |||
| 88 | # Cython Python Bindings | 86 | # Cython Python Bindings |
| 89 | AC_ARG_WITH([cython], | 87 | AC_ARG_WITH([cython], |
| 90 | [AS_HELP_STRING([--without-cython], | 88 | [AS_HELP_STRING([--without-cython], |
