summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsteve <steve>2011-06-24 14:04:03 +0000
committersteve <steve>2011-06-24 14:04:03 +0000
commit359d070c2dfa31b64c0a51c731ceeb9d46a22bb0 (patch)
tree549dd3c4163b4d153488347643d152729003fded
parent4ec52d6622e697cb565f4f68f032a80b85ebcf9c (diff)
downloadopenssl-359d070c2dfa31b64c0a51c731ceeb9d46a22bb0.tar.gz
allow KERNEL_BITS to be specified in the environment
-rwxr-xr-xconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/config b/config
index 2827a458c..176644ff8 100755
--- a/config
+++ b/config
@@ -753,7 +753,7 @@ case "$GUESSOS" in
if [ $CC = "gcc" -a $GCC_BITS = "64" ]; then
OUT="hpux64-parisc2-gcc"
fi
- KERNEL_BITS=`(getconf KERNEL_BITS) 2>/dev/null`
+ [ "$KERNEL_BITS" ] || KERNEL_BITS=`(getconf KERNEL_BITS) 2>/dev/null`
KERNEL_BITS=${KERNEL_BITS:-32}
CPU_VERSION=`(getconf CPU_VERSION) 2>/dev/null`
CPU_VERSION=${CPU_VERSION:-0}
@@ -787,7 +787,7 @@ case "$GUESSOS" in
options="$options -D_REENTRANT" ;;
*-hpux) OUT="hpux-parisc-$CC" ;;
*-aix)
- KERNEL_BITS=`(getconf KERNEL_BITMODE) 2>/dev/null`
+ [ "$KERNEL_BITS" ] || KERNEL_BITS=`(getconf KERNEL_BITMODE) 2>/dev/null`
KERNEL_BITS=${KERNEL_BITS:-32}
OBJECT_MODE=${OBJECT_MODE:-32}
if [ "$CC" = "gcc" ]; then