some people just can't read the instructions
[openssl.git] / Configure
index 1c00b7fdf1f1d0807ecee90036494d534ea57160..11a3566cf4b009377c88202ee9203e22455a5c57 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -712,7 +712,7 @@ PROCESS_ARGS:
                        { $threads=1; }
                elsif (/^no-shared$/)
                        { $no_shared=1; }
-               elsif (/^shared$/)
+               elsif (/^shared$/ || /^-shared$/ || /^--shared$/)
                        { $no_shared=0; }
                elsif (/^no-zlib$/)
                        { $zlib=0; }
@@ -1117,6 +1117,17 @@ else
        $no_shared = 1;
        }
 
+if ($no_shared)
+       {
+       $cflags="-DOPENSSL_NO_DYNAMIC_ENGINE $cflags";
+       $openssl_other_defines.="#define OPENSSL_NO_DYNAMIC_ENGINE\n";
+       }
+else
+       {
+       $cflags="-DOPENSSL_NO_STATIC_ENGINE $cflags";
+       $openssl_other_defines.="#define OPENSSL_NO_STATIC_ENGINE\n";
+       }
+
 if ($sys_id ne "")
        {
        $cflags="-DOPENSSL_SYSNAME_$sys_id $cflags";