diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-10-22 15:04:26 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-10-22 15:05:24 +0200 |
commit | 1042857f33fb771da6c934bcbad358a981468d3c (patch) | |
tree | b82f5f7ddfecee5cf4bfd4b7b90e63b94eafbd89 /configure.ac | |
parent | 32d7d5923b35a76cb2e8b6805372b74dc5f73f01 (diff) |
configure: Properly check for pthread
The old check failed on Android for example.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 748e4a77f..511dc4351 100644 --- a/configure.ac +++ b/configure.ac @@ -313,8 +313,8 @@ dnl Check for stdio_ext.f for __fbufsize AC_CHECK_HEADERS([stdio_ext.h], [], [], [AC_INCLUDES_DEFAULT]) dnl check for pthreads -AC_CHECK_HEADERS([pthread.h], [HAVE_PTHREAD_H=yes], [HAVE_PTHREAD_H=no], [AC_INCLUDES_DEFAULT]) -AM_CONDITIONAL(HAVE_PTHREAD_H, test "x$HAVE_PTHREAD_H" = "xyes") +AX_PTHREAD([HAVE_PTHREAD=yes], [HAVE_PTHREAD=no]) +AM_CONDITIONAL(HAVE_PTHREAD, test "x$HAVE_PTHREAD" = "xyes") dnl check for sys/prctl for setting thread name on Linux AC_CHECK_HEADERS([sys/prctl.h], [], [], [AC_INCLUDES_DEFAULT]) |