From 751480e70f1a2b56afe0b1e1bf07bc39a1d411b9 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 7 Mar 2016 23:13:46 +0100 Subject: Fix PTHREAD configure --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 3796ab0..2924d19 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,12 @@ LT_INIT AX_CXX_COMPILE_STDCXX_11(noext,mandatory) # std::thread requires pthread -AX_PTHREAD([], AC_MSG_ERROR([requires pthread])) +AX_PTHREAD( [ + AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]) + CLIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + LDFLAGS="$LDFLAGS $PTHREAD_CFLAGS" + CC="$PTHREAD_CC"], [AC_MSG_ERROR([requires pthread])] ) AC_CHECK_LIB([m], [sin]) -- cgit v1.2.3