[nginx] Configure: search OpenSSL in a bunch of standard places.

Ruslan Ermilov ru at nginx.com
Wed Jun 10 09:30:22 UTC 2015


details:   http://hg.nginx.org/nginx/rev/4d25ec8f0adb
branches:  
changeset: 6177:4d25ec8f0adb
user:      Ruslan Ermilov <ru at nginx.com>
date:      Wed Jun 10 12:25:45 2015 +0300
description:
Configure: search OpenSSL in a bunch of standard places.

diffstat:

 auto/lib/openssl/conf |  48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 48 insertions(+), 0 deletions(-)

diffs (58 lines):

diff -r c983c8dea44c -r 4d25ec8f0adb auto/lib/openssl/conf
--- a/auto/lib/openssl/conf	Wed Jun 10 12:25:31 2015 +0300
+++ b/auto/lib/openssl/conf	Wed Jun 10 12:25:45 2015 +0300
@@ -55,6 +55,54 @@ else
         ngx_feature_test="SSL_library_init()"
         . auto/feature
 
+        if [ $ngx_found = no ]; then
+
+            # FreeBSD port
+
+            ngx_feature="OpenSSL library in /usr/local/"
+            ngx_feature_path="/usr/local/include"
+
+            if [ $NGX_RPATH = YES ]; then
+                ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lssl -lcrypto"
+            else
+                ngx_feature_libs="-L/usr/local/lib -lssl -lcrypto"
+            fi
+
+            . auto/feature
+        fi
+
+        if [ $ngx_found = no ]; then
+
+            # NetBSD port
+
+            ngx_feature="OpenSSL library in /usr/pkg/"
+            ngx_feature_path="/usr/pkg/include"
+
+            if [ $NGX_RPATH = YES ]; then
+                ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lssl -lcrypto"
+            else
+                ngx_feature_libs="-L/usr/pkg/lib -lssl -lcrypto"
+            fi
+
+            . auto/feature
+        fi
+
+        if [ $ngx_found = no ]; then
+
+            # MacPorts
+
+            ngx_feature="OpenSSL library in /opt/local/"
+            ngx_feature_path="/opt/local/include"
+
+            if [ $NGX_RPATH = YES ]; then
+                ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lssl -lcrypto"
+            else
+                ngx_feature_libs="-L/opt/local/lib -lssl -lcrypto"
+            fi
+
+            . auto/feature
+        fi
+
         if [ $ngx_found = yes ]; then
             have=NGX_SSL . auto/have
             CORE_LIBS="$CORE_LIBS $ngx_feature_libs $NGX_LIBDL"



More information about the nginx-devel mailing list