Fix for AIX shared build, see RT#463.
[openssl.git] / config
diff --git a/config b/config
index fe8a441b286ebe3bb0e5757e5776e3db5bb059c8..e72b982288c5264e43fbdaafa2fc96f8c9770d5b 100755 (executable)
--- a/config
+++ b/config
@@ -464,6 +464,10 @@ if [ "${SYSTEM}-${MACHINE}" = "Linux-alpha" ]; then
   fi
 fi
 
+if [ "${SYSTEM}" = "AIX" ]; then       # favor vendor cc over gcc
+    (cc) 2>&1 | grep -iv "command not found" > /dev/null && CC=cc
+fi
+
 CCVER=${CCVER:-0}
 
 # read the output of the embedded GuessOS