From ba83b9daaba3795ced35bf19e15ed1317d5fe7de Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 20 Nov 2016 20:51:04 +0100 Subject: [PATCH] Explicitly link with pthread library --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 5beea972..5e82924d 100644 --- a/configure.ac +++ b/configure.ac @@ -177,6 +177,13 @@ if test "$ax_cv_lib_readline_history" = "no"; then AC_MSG_WARN([readline library has no history functionality]) fi +dnl ======================== +dnl = checking for pthread = +dnl ======================== +AC_CHECK_LIB(pthread, pthread_create, LIBS="$LIBS -lpthread", + AC_MSG_ERROR([pthread library is required]) +) + dnl ======================== dnl = checking for ncurses = dnl ========================