]> git.kaiwu.me - nginx.git/commitdiff
do not build OpenSSL with threads, if they are not used
authorIgor Sysoev <igor@sysoev.ru>
Wed, 10 Jan 2007 15:21:44 +0000 (15:21 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 10 Jan 2007 15:21:44 +0000 (15:21 +0000)
auto/lib/openssl/make

index 31e15dc4da310dbd6bd97e1839aadbd5fefe94bf..7da0d8dc1689f782d24591a54256e3c1cadc9a46 100644 (file)
@@ -8,9 +8,10 @@ else
     NGX_OPENSSL_CONFIG="./config"
 fi
 
-if test -n "$USE_THREADS"; then
-    NGX_OPENSSL_CONFIG="$NGX_OPENSSL_CONFIG threads"
-fi
+case $USE_THREADS in
+    NO) NGX_OPENSSL_CONFIG="$NGX_OPENSSL_CONFIG no-threads" ;;
+    *)  NGX_OPENSSL_CONFIG="$NGX_OPENSSL_CONFIG threads" ;;
+esac
 
 case "$NGX_PLATFORM" in
     *)