summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Sagunov <danilka.pro@gmail.com>2012-10-15 17:32:01 +0400
committerAndrei Karas <akaras@inbox.ru>2012-10-15 17:45:56 +0300
commitf3593249db70b99ebf85342b4d6e5e02a14cad88 (patch)
treeb75db2d4decf6fea50c1ab0f506a1749f3dbe6c5
parent5658a770c18b99807e4a598e7dc70ea3f765ba81 (diff)
downloadManaVerse-f3593249db70b99ebf85342b4d6e5e02a14cad88.tar.gz
ManaVerse-f3593249db70b99ebf85342b4d6e5e02a14cad88.tar.bz2
ManaVerse-f3593249db70b99ebf85342b4d6e5e02a14cad88.tar.xz
ManaVerse-f3593249db70b99ebf85342b4d6e5e02a14cad88.zip
Added --without-pthread flag.
-rwxr-xr-xconfigure.ac10
1 files changed, 8 insertions, 2 deletions
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