diff options
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index b4f747a..426ca2f 100644 --- a/configure.ac +++ b/configure.ac @@ -1647,12 +1647,15 @@ if test "X$THREADSAFE" = "Xyes"; then [withval=check]) case "$withval" in - check) + check | yes) AC_CHECK_HEADERS([pthread.h],, [unset HAVE_PTHREAD]) if test "x$HAVE_PTHREAD" = "xyes"; then AC_CHECK_LIB([pthread], [pthread_self],, [unset HAVE_PTHREAD]) fi ;; + no) + AC_MSG_ERROR([Must use Pthreads with thread safety]) + ;; *) case "$withval" in *,*) |