From 09fef0e15b20d0c987c301787d4cc5377d1cc649 Mon Sep 17 00:00:00 2001 From: Dan Sagunov Date: Mon, 15 Oct 2012 17:32:01 +0400 Subject: Added --without-pthread flag. --- configure.ac | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 256f17507..46d88b797 100755 --- a/configure.ac +++ b/configure.ac @@ -30,8 +30,14 @@ AC_PATH_PROG(PKG_CONFIG, pkg-config) AC_PATH_PROG(CURL_CONFIG, curl-config) # Checks for libraries -AC_CHECK_LIB([pthread], [pthread_create], , -AC_MSG_ERROR([ *** Unable to find pthread library])) +AC_ARG_WITH(pthread,[ --without-pthread don't check for pthread ] ) +if test "x$with_pthread" == "xno"; then + without_pthread=yes +else + AC_CHECK_LIB([pthread], [pthread_create], , + AC_MSG_ERROR([ *** Unable to find pthread library])) + withoud_pthread=no +fi if test -n "$SDL_CONFIG"; then -- cgit v1.2.3-60-g2f50