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/config65
1 files changed, 53 insertions, 12 deletions
diff --git a/src/lib/libssl/src/config b/src/lib/libssl/src/config
index 68e7ea1737..965884a627 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]
@@ -48,10 +48,10 @@ done
48 48
49# First get uname entries that we use below 49# First get uname entries that we use below
50 50
51MACHINE=`(uname -m) 2>/dev/null` || MACHINE="unknown" 51[ "$MACHINE" ] || MACHINE=`(uname -m) 2>/dev/null` || MACHINE="unknown"
52RELEASE=`(uname -r) 2>/dev/null` || RELEASE="unknown" 52[ "$RELEASE" ] || RELEASE=`(uname -r) 2>/dev/null` || RELEASE="unknown"
53SYSTEM=`(uname -s) 2>/dev/null` || SYSTEM="unknown" 53[ "$SYSTEM" ] || SYSTEM=`(uname -s) 2>/dev/null` || SYSTEM="unknown"
54VERSION=`(uname -v) 2>/dev/null` || VERSION="unknown" 54[ "$BUILD" ] || VERSION=`(uname -v) 2>/dev/null` || VERSION="unknown"
55 55
56 56
57# Now test for ISC and SCO, since it is has a braindamaged uname. 57# Now test for ISC and SCO, since it is has a braindamaged uname.
@@ -122,6 +122,14 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
122 echo "${MACHINE}-ibm-aix3"; exit 0 122 echo "${MACHINE}-ibm-aix3"; exit 0
123 ;; 123 ;;
124 124
125 BeOS:*:BePC)
126 if [ -e /boot/develop/headers/be/bone ]; then
127 echo "beos-x86-bone"; exit 0
128 else
129 echo "beos-x86-r5"; exit 0
130 fi
131 ;;
132
125 dgux:*) 133 dgux:*)
126 echo "${MACHINE}-dg-dgux"; exit 0 134 echo "${MACHINE}-dg-dgux"; exit 0
127 ;; 135 ;;
@@ -270,7 +278,7 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
270 echo "ppc-apple-darwin${VERSION}" 278 echo "ppc-apple-darwin${VERSION}"
271 ;; 279 ;;
272 *) 280 *)
273 echo "i386-apple-darwin${VERSION}" 281 echo "i686-apple-darwin${VERSION}"
274 ;; 282 ;;
275 esac 283 esac
276 exit 0 284 exit 0
@@ -488,6 +496,12 @@ echo Operating system: $GUESSOS
488# script above so we end up with values in vars but that would take 496# script above so we end up with values in vars but that would take
489# more time that I want to waste at the moment 497# more time that I want to waste at the moment
490case "$GUESSOS" in 498case "$GUESSOS" in
499 uClinux*64*)
500 OUT=uClinux-dist64
501 ;;
502 uClinux*)
503 OUT=uClinux-dist
504 ;;
491 mips2-sgi-irix) 505 mips2-sgi-irix)
492 CPU=`(hinv -t cpu) 2>/dev/null | head -1 | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'` 506 CPU=`(hinv -t cpu) 2>/dev/null | head -1 | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
493 CPU=${CPU:-0} 507 CPU=${CPU:-0}
@@ -523,8 +537,28 @@ case "$GUESSOS" in
523 OUT="irix-mips3-$CC" 537 OUT="irix-mips3-$CC"
524 ;; 538 ;;
525 ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;; 539 ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;;
526 ppc-apple-darwin*) OUT="darwin-ppc-cc" ;; 540 ppc-apple-darwin*)
527 i386-apple-darwin*) OUT="darwin-i386-cc" ;; 541 ISA64=`(sysctl -n hw.optional.64bitops) 2>/dev/null`
542 if [ "$ISA64" = "1" ]; then
543 echo "WARNING! If you wish to build 64-bit library, then you have to"
544 echo " invoke './Configure darwin64-ppc-cc' *manually*."
545 if [ "$TEST" = "false" -a -t 1 ]; then
546 echo " You have about 5 seconds to press Ctrl-C to abort."
547 (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1
548 fi
549 fi
550 OUT="darwin-ppc-cc" ;;
551 i?86-apple-darwin*)
552 ISA64=`(sysctl -n hw.optional.x86_64) 2>/dev/null`
553 if [ "$ISA64" = "1" ]; then
554 echo "WARNING! If you wish to build 64-bit library, then you have to"
555 echo " invoke './Configure darwin64-x86_64-cc' *manually*."
556 if [ "$TEST" = "false" -a -t 1 ]; then
557 echo " You have about 5 seconds to press Ctrl-C to abort."
558 (trap "stty `stty -g`" 2 0; stty -icanon min 0 time 50; read waste) <&1
559 fi
560 fi
561 OUT="darwin-i386-cc" ;;
528 alpha-*-linux2) 562 alpha-*-linux2)
529 ISA=`awk '/cpu model/{print$4;exit(0);}' /proc/cpuinfo` 563 ISA=`awk '/cpu model/{print$4;exit(0);}' /proc/cpuinfo`
530 case ${ISA:-generic} in 564 case ${ISA:-generic} in
@@ -589,13 +623,13 @@ case "$GUESSOS" in
589 623
590 options="$options -DB_ENDIAN -mschedule=$CPUSCHEDULE -march=$CPUARCH" 624 options="$options -DB_ENDIAN -mschedule=$CPUSCHEDULE -march=$CPUARCH"
591 OUT="linux-generic32" ;; 625 OUT="linux-generic32" ;;
592 arm*b-*-linux2) OUT="linux-generic32"; options="$options -DB_ENDIAN" ;; 626 armv[1-3]*-*-linux2) OUT="linux-generic32" ;;
593 arm*l-*-linux2) OUT="linux-generic32"; options="$options -DL_ENDIAN" ;; 627 arm*-*-linux2) OUT="linux-armv4" ;;
594 sh*b-*-linux2) OUT="linux-generic32"; options="$options -DB_ENDIAN" ;; 628 sh*b-*-linux2) OUT="linux-generic32"; options="$options -DB_ENDIAN" ;;
595 sh*-*-linux2) OUT="linux-generic32"; options="$options -DL_ENDIAN" ;; 629 sh*-*-linux2) OUT="linux-generic32"; options="$options -DL_ENDIAN" ;;
596 m68k*-*-linux2) OUT="linux-generic32"; options="$options -DB_ENDIAN" ;; 630 m68k*-*-linux2) OUT="linux-generic32"; options="$options -DB_ENDIAN" ;;
597 s390-*-linux2) OUT="linux-generic32"; options="$options -DB_ENDIAN -DNO_ASM" ;; 631 s390-*-linux2) OUT="linux-generic32"; options="$options -DB_ENDIAN" ;;
598 s390x-*-linux2) OUT="linux-generic64"; options="$options -DB_ENDIAN" ;; 632 s390x-*-linux2) OUT="linux-s390x" ;;
599 x86_64-*-linux?) OUT="linux-x86_64" ;; 633 x86_64-*-linux?) OUT="linux-x86_64" ;;
600 *86-*-linux2) OUT="linux-elf" 634 *86-*-linux2) OUT="linux-elf"
601 if [ "$GCCVER" -gt 28 ]; then 635 if [ "$GCCVER" -gt 28 ]; then
@@ -741,6 +775,10 @@ case "$GUESSOS" in
741 OBJECT_MODE=${OBJECT_MODE:-32} 775 OBJECT_MODE=${OBJECT_MODE:-32}
742 if [ "$CC" = "gcc" ]; then 776 if [ "$CC" = "gcc" ]; then
743 OUT="aix-gcc" 777 OUT="aix-gcc"
778 if [ $OBJECT_MODE -eq 64 ]; then
779 echo 'Your $OBJECT_MODE was found to be set to 64'
780 OUT="aix64-gcc"
781 fi
744 elif [ $OBJECT_MODE -eq 64 ]; then 782 elif [ $OBJECT_MODE -eq 64 ]; then
745 echo 'Your $OBJECT_MODE was found to be set to 64' 783 echo 'Your $OBJECT_MODE was found to be set to 64'
746 OUT="aix64-cc" 784 OUT="aix64-cc"
@@ -769,6 +807,9 @@ case "$GUESSOS" in
769 t3e-cray-unicosmk) OUT="cray-t3e" ;; 807 t3e-cray-unicosmk) OUT="cray-t3e" ;;
770 j90-cray-unicos) OUT="cray-j90" ;; 808 j90-cray-unicos) OUT="cray-j90" ;;
771 nsr-tandem-nsk) OUT="tandem-c89" ;; 809 nsr-tandem-nsk) OUT="tandem-c89" ;;
810 beos-*) OUT="$GUESSOS" ;;
811 x86pc-*-qnx6) OUT="QNX6-i386" ;;
812 *-*-qnx6) OUT="QNX6" ;;
772 *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;; 813 *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
773esac 814esac
774 815