From 118ce808ca9d2a529d2410a1c39359dd1284e65b Mon Sep 17 00:00:00 2001 From: Elronnd Date: Sun, 5 Feb 2017 18:48:11 -0700 Subject: [PATCH] (hopefully) put -lpthread in LIBS instead of CFLAGS --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 8c63165..4000a22 100644 --- a/configure.ac +++ b/configure.ac @@ -15,9 +15,9 @@ if test -z "$LEX"; then AC_MSG_ERROR([lex or flex not found.]) fi -LIBS="$LIBS $LEXLIB" +AC_CHECK_LIB(pthread, pthread_create, [PTHREAD_LIBS+=-lpthread]) -AC_CHECK_LIB(pthread, pthread_create, [PTHREAD_CFLAGS+=-lpthread]) +LIBS="$LIBS $LEXLIB $PTHREAD_LIBS" AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc) if test -z "$YACC"; then -- 2.47.3