summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2007-08-31 10:09:34 +0000
committerAndy Polyakov <appro@openssl.org>2007-08-31 10:09:34 +0000
commit0bb01b7df099ad4d45262138b7958ea652c42401 (patch)
tree5ce8a952b619b3f84427b53bdd124b2661caa53e /config
parent1c56e95e284c44f0b6c05e9d629b6af76e434a7e (diff)
downloadopenssl-new-0bb01b7df099ad4d45262138b7958ea652c42401.tar.gz
Offer darwin64-x86_64-cc as option.
Diffstat (limited to 'config')
-rwxr-xr-xconfig12
1 files changed, 11 insertions, 1 deletions
diff --git a/config b/config
index 2b73f27aa4..5a75047021 100755
--- a/config
+++ b/config
@@ -536,7 +536,17 @@ case "$GUESSOS" in
fi
fi
OUT="darwin-ppc-cc" ;;
- i386-apple-darwin*) OUT="darwin-i386-cc" ;;
+ i386-apple-darwin*)
+ ISA64=`(sysctl -n hw.optional.x86_64) 2>/dev/null`
+ if [ "$ISA64" = "1" ]; then
+ echo "WARNING! If you wish to build 64-bit library, then you have to"
+ echo " invoke './Configure darwin64-x86_86-cc' *manually*."
+ if [ "$TEST" = "false" -a -t 1 ]; then
+ echo " You have about 5 seconds to press Ctrl-C to abort."
+ (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1
+ fi
+ fi
+ OUT="darwin-i386-cc" ;;
alpha-*-linux2)
ISA=`awk '/cpu model/{print$4;exit(0);}' /proc/cpuinfo`
case ${ISA:-generic} in