diff options
Diffstat (limited to 'src/lib/libssl/src/config')
-rw-r--r-- | src/lib/libssl/src/config | 87 |
1 files changed, 49 insertions, 38 deletions
diff --git a/src/lib/libssl/src/config b/src/lib/libssl/src/config index 3e9af7680a..b3bd96bbfc 100644 --- a/src/lib/libssl/src/config +++ b/src/lib/libssl/src/config | |||
@@ -74,34 +74,27 @@ if [ "x$XREL" != "x" ]; then | |||
74 | echo "whatever-whatever-sco5"; exit 0 | 74 | echo "whatever-whatever-sco5"; exit 0 |
75 | ;; | 75 | ;; |
76 | 4.2MP) | 76 | 4.2MP) |
77 | if [ "x$VERSION" = "x2.01" ]; then | 77 | case "x${VERSION}" in |
78 | echo "${MACHINE}-whatever-unixware201"; exit 0 | 78 | x2.0*) echo "whatever-whatever-unixware20"; exit 0 ;; |
79 | elif [ "x$VERSION" = "x2.02" ]; then | 79 | x2.1*) echo "whatever-whatever-unixware21"; exit 0 ;; |
80 | echo "${MACHINE}-whatever-unixware202"; exit 0 | 80 | x2*) echo "whatever-whatever-unixware2"; exit 0 ;; |
81 | elif [ "x$VERSION" = "x2.03" ]; then | 81 | esac |
82 | echo "${MACHINE}-whatever-unixware203"; exit 0 | ||
83 | elif [ "x$VERSION" = "x2.1.1" ]; then | ||
84 | echo "${MACHINE}-whatever-unixware211"; exit 0 | ||
85 | elif [ "x$VERSION" = "x2.1.2" ]; then | ||
86 | echo "${MACHINE}-whatever-unixware212"; exit 0 | ||
87 | elif [ "x$VERSION" = "x2.1.3" ]; then | ||
88 | echo "${MACHINE}-whatever-unixware213"; exit 0 | ||
89 | else | ||
90 | echo "${MACHINE}-whatever-unixware2"; exit 0 | ||
91 | fi | ||
92 | ;; | 82 | ;; |
93 | 4.2) | 83 | 4.2) |
94 | echo "whatever-whatever-unixware1"; exit 0 | 84 | echo "i386-whatever-unixware1"; exit 0 |
95 | ;; | ||
96 | OpenUNIX) | ||
97 | if [ "`echo x$VERSION | sed -e 's/\..*//'`" = "x8" ]; then | ||
98 | echo "${MACHINE}-unknown-OpenUNIX${VERSION}"; exit 0 | ||
99 | fi | ||
100 | ;; | 85 | ;; |
101 | 5) | 86 | 5) |
102 | if [ "`echo x$VERSION | sed -e 's/\..*//'`" = "x7" ]; then | 87 | case "x${VERSION}" in |
103 | echo "${MACHINE}-sco-unixware7"; exit 0 | 88 | # We hardcode i586 in place of ${MACHINE} for the |
104 | fi | 89 | # following reason. The catch is that even though Pentium |
90 | # is minimum requirement for platforms in question, | ||
91 | # ${MACHINE} gets always assigned to i386. Now, problem | ||
92 | # with i386 is that it makes ./config pass 386 to | ||
93 | # ./Configure, which in turn makes make generate | ||
94 | # inefficient SHA-1 (for this moment) code. | ||
95 | x7*) echo "i586-sco-unixware7"; exit 0 ;; | ||
96 | x8*) echo "i586-unkn-OpenUNIX${VERSION}"; exit 0 ;; | ||
97 | esac | ||
105 | ;; | 98 | ;; |
106 | esac | 99 | esac |
107 | fi | 100 | fi |
@@ -196,7 +189,7 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
196 | echo "${MACHINE}-whatever-bsdi"; exit 0 | 189 | echo "${MACHINE}-whatever-bsdi"; exit 0 |
197 | ;; | 190 | ;; |
198 | 191 | ||
199 | FreeBSD:*) | 192 | FreeBSD:*:*:*386*) |
200 | VERS=`echo ${RELEASE} | sed -e 's/[-(].*//'` | 193 | VERS=`echo ${RELEASE} | sed -e 's/[-(].*//'` |
201 | MACH=`sysctl -n hw.model` | 194 | MACH=`sysctl -n hw.model` |
202 | ARCH='whatever' | 195 | ARCH='whatever' |
@@ -205,7 +198,6 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
205 | *486* ) MACH="i486" ;; | 198 | *486* ) MACH="i486" ;; |
206 | Pentium\ II*) MACH="i686" ;; | 199 | Pentium\ II*) MACH="i686" ;; |
207 | Pentium* ) MACH="i586" ;; | 200 | Pentium* ) MACH="i586" ;; |
208 | Alpha* ) MACH="alpha" ;; | ||
209 | * ) MACH="$MACHINE" ;; | 201 | * ) MACH="$MACHINE" ;; |
210 | esac | 202 | esac |
211 | case ${MACH} in | 203 | case ${MACH} in |
@@ -214,6 +206,10 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
214 | echo "${MACH}-${ARCH}-freebsd${VERS}"; exit 0 | 206 | echo "${MACH}-${ARCH}-freebsd${VERS}"; exit 0 |
215 | ;; | 207 | ;; |
216 | 208 | ||
209 | FreeBSD:*) | ||
210 | echo "${MACHINE}-whatever-freebsd"; exit 0 | ||
211 | ;; | ||
212 | |||
217 | NetBSD:*:*:*386*) | 213 | NetBSD:*:*:*386*) |
218 | echo "`(/usr/sbin/sysctl -n hw.model || /sbin/sysctl -n hw.model) | sed 's,.*\(.\)86-class.*,i\186,'`-whatever-netbsd"; exit 0 | 214 | echo "`(/usr/sbin/sysctl -n hw.model || /sbin/sysctl -n hw.model) | sed 's,.*\(.\)86-class.*,i\186,'`-whatever-netbsd"; exit 0 |
219 | ;; | 215 | ;; |
@@ -351,6 +347,10 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
351 | *CRAY*) | 347 | *CRAY*) |
352 | echo "j90-cray-unicos"; exit 0; | 348 | echo "j90-cray-unicos"; exit 0; |
353 | ;; | 349 | ;; |
350 | |||
351 | NONSTOP_KERNEL*) | ||
352 | echo "nsr-tandem-nsk"; exit 0; | ||
353 | ;; | ||
354 | esac | 354 | esac |
355 | 355 | ||
356 | # | 356 | # |
@@ -457,6 +457,10 @@ if [ "${SYSTEM}-${MACHINE}" = "Linux-alpha" ]; then | |||
457 | fi | 457 | fi |
458 | fi | 458 | fi |
459 | 459 | ||
460 | if [ "${SYSTEM}" = "AIX" ]; then # favor vendor cc over gcc | ||
461 | (cc) 2>&1 | grep -iv "not found" > /dev/null && CC=cc | ||
462 | fi | ||
463 | |||
460 | CCVER=${CCVER:-0} | 464 | CCVER=${CCVER:-0} |
461 | 465 | ||
462 | # read the output of the embedded GuessOS | 466 | # read the output of the embedded GuessOS |
@@ -469,7 +473,7 @@ echo Operating system: $GUESSOS | |||
469 | # more time that I want to waste at the moment | 473 | # more time that I want to waste at the moment |
470 | case "$GUESSOS" in | 474 | case "$GUESSOS" in |
471 | mips2-sgi-irix) | 475 | mips2-sgi-irix) |
472 | CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'` | 476 | CPU=`(hinv -t cpu) 2>/dev/null | head -1 | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'` |
473 | CPU=${CPU:-0} | 477 | CPU=${CPU:-0} |
474 | if [ $CPU -ge 4000 ]; then | 478 | if [ $CPU -ge 4000 ]; then |
475 | options="$options -mips2" | 479 | options="$options -mips2" |
@@ -477,7 +481,7 @@ case "$GUESSOS" in | |||
477 | OUT="irix-$CC" | 481 | OUT="irix-$CC" |
478 | ;; | 482 | ;; |
479 | mips3-sgi-irix) | 483 | mips3-sgi-irix) |
480 | CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'` | 484 | CPU=`(hinv -t cpu) 2>/dev/null | head -1 | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'` |
481 | CPU=${CPU:-0} | 485 | CPU=${CPU:-0} |
482 | if [ $CPU -ge 5000 ]; then | 486 | if [ $CPU -ge 5000 ]; then |
483 | options="$options -mips4" | 487 | options="$options -mips4" |
@@ -493,7 +497,7 @@ case "$GUESSOS" in | |||
493 | echo " You have about 5 seconds to press Ctrl-C to abort." | 497 | echo " You have about 5 seconds to press Ctrl-C to abort." |
494 | (stty -icanon min 0 time 50; read waste) < /dev/tty | 498 | (stty -icanon min 0 time 50; read waste) < /dev/tty |
495 | fi | 499 | fi |
496 | CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'` | 500 | CPU=`(hinv -t cpu) 2>/dev/null | head -1 | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'` |
497 | CPU=${CPU:-0} | 501 | CPU=${CPU:-0} |
498 | if [ $CPU -ge 5000 ]; then | 502 | if [ $CPU -ge 5000 ]; then |
499 | options="$options -mips4" | 503 | options="$options -mips4" |
@@ -543,12 +547,13 @@ EOF | |||
543 | ppc-apple-darwin*) OUT="darwin-ppc-cc" ;; | 547 | ppc-apple-darwin*) OUT="darwin-ppc-cc" ;; |
544 | i386-apple-darwin*) OUT="darwin-i386-cc" ;; | 548 | i386-apple-darwin*) OUT="darwin-i386-cc" ;; |
545 | sparc64-*-linux2) | 549 | sparc64-*-linux2) |
546 | #Before we can uncomment following lines we have to wait at least | 550 | echo "WARNING! If you *know* that your GNU C supports 64-bit/V9 ABI" |
547 | #till 64-bit glibc for SPARC is operational:-( | 551 | echo " and wish to build 64-bit library, then you have to" |
548 | #echo "WARNING! If you wish to build 64-bit library, then you have to" | 552 | echo " invoke './Configure linux64-sparcv9' *manually*." |
549 | #echo " invoke './Configure linux64-sparcv9' *manually*." | 553 | if [ "$TEST" = "false" ]; then |
550 | #echo " Type return if you want to continue, Ctrl-C to abort." | 554 | echo " You have about 5 seconds to press Ctrl-C to abort." |
551 | #read waste < /dev/tty | 555 | (stty -icanon min 0 time 50; read waste) < /dev/tty |
556 | fi | ||
552 | OUT="linux-sparcv9" ;; | 557 | OUT="linux-sparcv9" ;; |
553 | sparc-*-linux2) | 558 | sparc-*-linux2) |
554 | KARCH=`awk '/^type/{print$3}' /proc/cpuinfo` | 559 | KARCH=`awk '/^type/{print$3}' /proc/cpuinfo` |
@@ -581,6 +586,7 @@ EOF | |||
581 | arm*-*-linux2) OUT="linux-elf-arm" ;; | 586 | arm*-*-linux2) OUT="linux-elf-arm" ;; |
582 | s390-*-linux2) OUT="linux-s390" ;; | 587 | s390-*-linux2) OUT="linux-s390" ;; |
583 | s390x-*-linux?) OUT="linux-s390x" ;; | 588 | s390x-*-linux?) OUT="linux-s390x" ;; |
589 | x86_64-*-linux?) OUT="linux-x86_64" ;; | ||
584 | *-*-linux2) OUT="linux-elf" | 590 | *-*-linux2) OUT="linux-elf" |
585 | if [ "$GCCVER" -gt 28 ]; then | 591 | if [ "$GCCVER" -gt 28 ]; then |
586 | if grep '^model.*Pentium' /proc/cpuinfo >/dev/null ; then | 592 | if grep '^model.*Pentium' /proc/cpuinfo >/dev/null ; then |
@@ -634,6 +640,8 @@ EOF | |||
634 | *86*-*-solaris2) OUT="solaris-x86-$CC" ;; | 640 | *86*-*-solaris2) OUT="solaris-x86-$CC" ;; |
635 | *-*-sunos4) OUT="sunos-$CC" ;; | 641 | *-*-sunos4) OUT="sunos-$CC" ;; |
636 | alpha*-*-freebsd*) OUT="FreeBSD-alpha" ;; | 642 | alpha*-*-freebsd*) OUT="FreeBSD-alpha" ;; |
643 | sparc64-*-freebsd*) OUT="FreeBSD-sparc64" ;; | ||
644 | ia64-*-freebsd*) OUT="FreeBSD-ia64" ;; | ||
637 | *-freebsd[3-9]*) OUT="FreeBSD-elf" ;; | 645 | *-freebsd[3-9]*) OUT="FreeBSD-elf" ;; |
638 | *-freebsd[1-2]*) OUT="FreeBSD" ;; | 646 | *-freebsd[1-2]*) OUT="FreeBSD" ;; |
639 | *86*-*-netbsd) OUT="NetBSD-x86" ;; | 647 | *86*-*-netbsd) OUT="NetBSD-x86" ;; |
@@ -690,9 +698,11 @@ EOF | |||
690 | CPU_VERSION=${CPU_VERSION:-0} | 698 | CPU_VERSION=${CPU_VERSION:-0} |
691 | # See <sys/unistd.h> for further info on CPU_VERSION. | 699 | # See <sys/unistd.h> for further info on CPU_VERSION. |
692 | if [ $CPU_VERSION -ge 768 ]; then # IA-64 CPU | 700 | if [ $CPU_VERSION -ge 768 ]; then # IA-64 CPU |
693 | echo "NOTICE! 64-bit is the only ABI currently operational on HP-UXi." | 701 | echo "WARNING! 64-bit ABI is the default configured ABI on HP-UXi." |
694 | echo " Post request to openssl-dev@openssl.org for 32-bit support." | 702 | echo " If you wish to build 32-bit library, the you have to" |
703 | echo " invoke './Configure hpux-ia32-cc' *manually*." | ||
695 | if [ "$TEST" = "false" ]; then | 704 | if [ "$TEST" = "false" ]; then |
705 | echo " You have about 5 seconds to press Ctrl-C to abort." | ||
696 | (stty -icanon min 0 time 50; read waste) < /dev/tty | 706 | (stty -icanon min 0 time 50; read waste) < /dev/tty |
697 | fi | 707 | fi |
698 | OUT="hpux64-ia64-cc" | 708 | OUT="hpux64-ia64-cc" |
@@ -725,6 +735,7 @@ EOF | |||
725 | *-*-cygwin) OUT="Cygwin" ;; | 735 | *-*-cygwin) OUT="Cygwin" ;; |
726 | t3e-cray-unicosmk) OUT="cray-t3e" ;; | 736 | t3e-cray-unicosmk) OUT="cray-t3e" ;; |
727 | j90-cray-unicos) OUT="cray-j90" ;; | 737 | j90-cray-unicos) OUT="cray-j90" ;; |
738 | nsr-tandem-nsk) OUT="tandem-c89" ;; | ||
728 | *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;; | 739 | *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;; |
729 | esac | 740 | esac |
730 | 741 | ||
@@ -759,7 +770,7 @@ case "$GUESSOS" in | |||
759 | i386-*) options="$options 386" ;; | 770 | i386-*) options="$options 386" ;; |
760 | esac | 771 | esac |
761 | 772 | ||
762 | for i in bf cast des dh dsa ec hmac idea md2 md5 mdc2 rc2 rc4 rc5 rijndael ripemd rsa sha | 773 | for i in bf cast des dh dsa ec hmac idea md2 md5 mdc2 rc2 rc4 rc5 aes ripemd rsa sha |
763 | do | 774 | do |
764 | if [ ! -d crypto/$i ] | 775 | if [ ! -d crypto/$i ] |
765 | then | 776 | then |