summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/config')
-rw-r--r--src/lib/libssl/src/config18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/lib/libssl/src/config b/src/lib/libssl/src/config
index dde9275b76..68e7ea1737 100644
--- a/src/lib/libssl/src/config
+++ b/src/lib/libssl/src/config
@@ -29,7 +29,7 @@ EXE=""
29for i 29for i
30do 30do
31case "$i" in 31case "$i" in
32-d*) PREFIX="debug-";; 32-d) PREFIX="debug-";;
33-t*) TEST="true";; 33-t*) TEST="true";;
34-h*) TEST="true"; cat <<EOF 34-h*) TEST="true"; cat <<EOF
35Usage: config [options] 35Usage: config [options]
@@ -399,11 +399,8 @@ exit 0
399# this is where the translation occurs into SSLeay terms 399# this is where the translation occurs into SSLeay terms
400# --------------------------------------------------------------------------- 400# ---------------------------------------------------------------------------
401 401
402# figure out if gcc is available and if so we use it otherwise
403# we fallback to whatever cc does on the system
404GCCVER=`(gcc -dumpversion) 2>/dev/null` 402GCCVER=`(gcc -dumpversion) 2>/dev/null`
405if [ "$GCCVER" != "" ]; then 403if [ "$GCCVER" != "" ]; then
406 CC=gcc
407 # then strip off whatever prefix egcs prepends the number with... 404 # then strip off whatever prefix egcs prepends the number with...
408 # Hopefully, this will work for any future prefixes as well. 405 # Hopefully, this will work for any future prefixes as well.
409 GCCVER=`echo $GCCVER | LC_ALL=C sed 's/^[a-zA-Z]*\-//'` 406 GCCVER=`echo $GCCVER | LC_ALL=C sed 's/^[a-zA-Z]*\-//'`
@@ -412,8 +409,17 @@ if [ "$GCCVER" != "" ]; then
412 # major and minor version numbers. 409 # major and minor version numbers.
413 # peak single digit before and after first dot, e.g. 2.95.1 gives 29 410 # peak single digit before and after first dot, e.g. 2.95.1 gives 29
414 GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'` 411 GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'`
415else 412fi
416 CC=cc 413
414# Only set CC if not supplied already
415if [ -z "$CC" ]; then
416# figure out if gcc is available and if so we use it otherwise
417# we fallback to whatever cc does on the system
418 if [ "$GCCVER" != "" ]; then
419 CC=gcc
420 else
421 CC=cc
422 fi
417fi 423fi
418GCCVER=${GCCVER:-0} 424GCCVER=${GCCVER:-0}
419if [ "$SYSTEM" = "HP-UX" ];then 425if [ "$SYSTEM" = "HP-UX" ];then