From 932d6a6fb2e574d395484206f3bcfaf542981ec5 Mon Sep 17 00:00:00 2001 From: Dimitri Stolnikov Date: Fri, 25 May 2012 22:55:54 +0200 Subject: [PATCH] autotools: check for pthread library --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 3af474a..3703c37 100644 --- a/configure.ac +++ b/configure.ac @@ -26,6 +26,11 @@ AC_CONFIG_MACRO_DIR([m4]) dnl checks for header files AC_HEADER_STDC AC_CHECK_HEADERS(sys/types.h) +AC_CHECK_HEADERS(pthread.h,, [AC_MSG_ERROR([pthread.h required])]) + +dnl checks for required libraries +dnl pthreads +AC_CHECK_LIB(pthread, pthread_create, [LIBS="$LIBS -lpthread"]) # The following test is taken from WebKit's webkit.m4 saved_CFLAGS="$CFLAGS"