aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-03-07 23:13:46 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-03-07 23:13:46 +0100
commit751480e70f1a2b56afe0b1e1bf07bc39a1d411b9 (patch)
tree556ded776c6d893a6b16dc70b2835b503605e3fa
parentbfd547b233c1603f6fec8dd03e76f024f788a37e (diff)
downloadfdk-aac-dabplus-751480e70f1a2b56afe0b1e1bf07bc39a1d411b9.tar.gz
fdk-aac-dabplus-751480e70f1a2b56afe0b1e1bf07bc39a1d411b9.tar.bz2
fdk-aac-dabplus-751480e70f1a2b56afe0b1e1bf07bc39a1d411b9.zip
Fix PTHREAD configure
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
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])