Commit 377935c9 authored by Swann Perarnau's avatar Swann Perarnau

[fix] ensure we fail if pthreads are not available

One more silent error. ax_pthreads will fail on -Werror, so we still
need to fix that.
parent 29d9a8b8
...@@ -67,7 +67,7 @@ AC_CHECK_LIB(dl, dlopen) ...@@ -67,7 +67,7 @@ AC_CHECK_LIB(dl, dlopen)
# add pthread support. # add pthread support.
# doc in m4/ax_pthread.m4. Defines automake PTHREAD_CFLAGS and PTHREAD_LIBS # doc in m4/ax_pthread.m4. Defines automake PTHREAD_CFLAGS and PTHREAD_LIBS
AX_PTHREAD AX_PTHREAD([],[AC_MSG_ERROR([Cannot find how to compile with pthreads.])])
CC="$PTHREAD_CC" CC="$PTHREAD_CC"
# NUMA support # NUMA support
......
AM_COLOR_TESTS = yes AM_COLOR_TESTS = yes
# add OpenMP to flags for test programs AM_CFLAGS = -I$(top_srcdir)/include $(PTHREAD_CFLAGS)
AM_CFLAGS = -I$(top_srcdir)/include AM_LDFLAGS = ../src/libaml.la $(PTHREAD_LIBS)
AM_LDFLAGS = ../src/libaml.la
# valgrind support # valgrind support
if TEST_VALGRIND if TEST_VALGRIND
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment