Make phtread a non-optional requirement

This commit is contained in:
pd 2008-08-18 23:29:37 +02:00
parent 2c864a296c
commit 1a95b536de
4 changed files with 3 additions and 34 deletions

View file

@ -124,7 +124,9 @@ AC_CHECK_LIB([pthread], pthread_create,
[AC_CHECK_HEADERS(pthread.h, have_pthread=true, have_pthread=false)],
have_pthread=false)
AM_CONDITIONAL(HAVE_PTHREAD, test "$have_pthread" = "true")
if test "$have_pthread" = "false"; then
AC_MSG_ERROR([You need the POSIX Thread library (pthreads)])
fi
if test "$enable_debug" = "yes" ; then
CXXFLAGS="$CXXFLAGS -Wall -ggdb -O0 -DDEBUG"