From d7de1b5c6d4b8800825913ac40a9cea00824f2f8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 7 Jan 2013 20:10:14 -0600 Subject: [PATCH] Fix pthreads setup As reported by Raimund Steger. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 4beca08..227a6f8 100644 --- a/configure.ac +++ b/configure.ac @@ -598,6 +598,9 @@ if test "$os_win32" = no; then AX_PTHREAD([have_pthread=true]) fi if $have_pthread; then + LIBS="$PTHREAD_LIBS $LIBS" + CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + CC="$PTHREAD_CC" AC_DEFINE(HAVE_PTHREAD, 1, [Have POSIX threads]) fi AM_CONDITIONAL(HAVE_PTHREAD, $have_pthread)