diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-03-07 23:13:46 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-03-07 23:13:46 +0100 |
commit | 751480e70f1a2b56afe0b1e1bf07bc39a1d411b9 (patch) | |
tree | 556ded776c6d893a6b16dc70b2835b503605e3fa /configure.ac | |
parent | bfd547b233c1603f6fec8dd03e76f024f788a37e (diff) | |
download | ODR-AudioEnc-751480e70f1a2b56afe0b1e1bf07bc39a1d411b9.tar.gz ODR-AudioEnc-751480e70f1a2b56afe0b1e1bf07bc39a1d411b9.tar.bz2 ODR-AudioEnc-751480e70f1a2b56afe0b1e1bf07bc39a1d411b9.zip |
Fix PTHREAD configure
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
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]) |