diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/src/config | 58 |
1 files changed, 32 insertions, 26 deletions
diff --git a/src/lib/libssl/src/config b/src/lib/libssl/src/config index 53b219a1f9..458838d800 100644 --- a/src/lib/libssl/src/config +++ b/src/lib/libssl/src/config | |||
| @@ -71,6 +71,10 @@ fi | |||
| 71 | # Now we simply scan though... In most cases, the SYSTEM info is enough | 71 | # Now we simply scan though... In most cases, the SYSTEM info is enough |
| 72 | # | 72 | # |
| 73 | case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | 73 | case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in |
| 74 | MPE/iX:*) | ||
| 75 | MACHINE=`echo "$MACHINE" | sed -e 's/-/_/g'` | ||
| 76 | echo "parisc-hp-MPE/iX"; exit 0 | ||
| 77 | ;; | ||
| 74 | A/UX:*) | 78 | A/UX:*) |
| 75 | echo "m68k-apple-aux3"; exit 0 | 79 | echo "m68k-apple-aux3"; exit 0 |
| 76 | ;; | 80 | ;; |
| @@ -164,7 +168,7 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
| 164 | ;; | 168 | ;; |
| 165 | 169 | ||
| 166 | NetBSD:*:*:*386*) | 170 | NetBSD:*:*:*386*) |
| 167 | echo "`sysctl -n hw.model | sed 's,.*\(.\)86-class.*,i\186,'`-whateve\r-netbsd"; exit 0 | 171 | echo "`/usr/sbin/sysctl -n hw.model | sed 's,.*\(.\)86-class.*,i\186,'`-whatever-netbsd"; exit 0 |
| 168 | ;; | 172 | ;; |
| 169 | 173 | ||
| 170 | NetBSD:*) | 174 | NetBSD:*) |
| @@ -181,11 +185,11 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
| 181 | 185 | ||
| 182 | QNX:*) | 186 | QNX:*) |
| 183 | case "$VERSION" in | 187 | case "$VERSION" in |
| 184 | 423) | 188 | 4*) |
| 185 | echo "${MACHINE}-qssl-qnx32" | 189 | echo "${MACHINE}-whatever-qnx4" |
| 186 | ;; | 190 | ;; |
| 187 | *) | 191 | *) |
| 188 | echo "${MACHINE}-qssl-qnx" | 192 | echo "${MACHINE}-whatever-qnx" |
| 189 | ;; | 193 | ;; |
| 190 | esac | 194 | esac |
| 191 | exit 0 | 195 | exit 0 |
| @@ -200,7 +204,7 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
| 200 | ;; | 204 | ;; |
| 201 | 205 | ||
| 202 | SunOS:5.*) | 206 | SunOS:5.*) |
| 203 | echo "${MACHINE}-sun-solaris2"; exit 0 | 207 | echo "${MACHINE}-whatever-solaris2"; exit 0 |
| 204 | ;; | 208 | ;; |
| 205 | 209 | ||
| 206 | SunOS:*) | 210 | SunOS:*) |
| @@ -247,6 +251,10 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in | |||
| 247 | echo "${MACHINE}-v11-${SYSTEM}"; exit 0; | 251 | echo "${MACHINE}-v11-${SYSTEM}"; exit 0; |
| 248 | ;; | 252 | ;; |
| 249 | 253 | ||
| 254 | NEWS-OS:4.*) | ||
| 255 | echo "mips-sony-newsos4"; exit 0; | ||
| 256 | ;; | ||
| 257 | |||
| 250 | esac | 258 | esac |
| 251 | 259 | ||
| 252 | # | 260 | # |
| @@ -407,6 +415,7 @@ case "$GUESSOS" in | |||
| 407 | ;; | 415 | ;; |
| 408 | mips-*-linux?) OUT="linux-mips" ;; | 416 | mips-*-linux?) OUT="linux-mips" ;; |
| 409 | ppc-*-linux2) OUT="linux-ppc" ;; | 417 | ppc-*-linux2) OUT="linux-ppc" ;; |
| 418 | m68k-*-linux*) OUT="linux-m68k" ;; | ||
| 410 | ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;; | 419 | ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;; |
| 411 | sparc64-*-linux2) | 420 | sparc64-*-linux2) |
| 412 | #Before we can uncomment following lines we have to wait at least | 421 | #Before we can uncomment following lines we have to wait at least |
| @@ -424,9 +433,10 @@ case "$GUESSOS" in | |||
| 424 | sun4d) OUT="linux-sparcv8" ;; | 433 | sun4d) OUT="linux-sparcv8" ;; |
| 425 | *) OUT="linux-sparcv7" ;; | 434 | *) OUT="linux-sparcv7" ;; |
| 426 | esac ;; | 435 | esac ;; |
| 436 | arm*-*-linux2) OUT="linux-elf-arm" ;; | ||
| 427 | *-*-linux2) OUT="linux-elf" ;; | 437 | *-*-linux2) OUT="linux-elf" ;; |
| 428 | *-*-linux1) OUT="linux-aout" ;; | 438 | *-*-linux1) OUT="linux-aout" ;; |
| 429 | sun4u*-sun-solaris2) | 439 | sun4u*-*-solaris2) |
| 430 | ISA64=`(isalist) 2>/dev/null | grep sparcv9` | 440 | ISA64=`(isalist) 2>/dev/null | grep sparcv9` |
| 431 | if [ "$ISA64" != "" -a "$CC" = "cc" -a $CCVER -ge 50 ]; then | 441 | if [ "$ISA64" != "" -a "$CC" = "cc" -a $CCVER -ge 50 ]; then |
| 432 | echo "WARNING! If you wish to build 64-bit library, then you have to" | 442 | echo "WARNING! If you wish to build 64-bit library, then you have to" |
| @@ -435,10 +445,10 @@ case "$GUESSOS" in | |||
| 435 | read waste < /dev/tty | 445 | read waste < /dev/tty |
| 436 | fi | 446 | fi |
| 437 | OUT="solaris-sparcv9-$CC" ;; | 447 | OUT="solaris-sparcv9-$CC" ;; |
| 438 | sun4m-sun-solaris2) OUT="solaris-sparcv8-$CC" ;; | 448 | sun4m-*-solaris2) OUT="solaris-sparcv8-$CC" ;; |
| 439 | sun4d-sun-solaris2) OUT="solaris-sparcv8-$CC" ;; | 449 | sun4d-*-solaris2) OUT="solaris-sparcv8-$CC" ;; |
| 440 | sun4*-sun-solaris2) OUT="solaris-sparcv7-$CC" ;; | 450 | sun4*-*-solaris2) OUT="solaris-sparcv7-$CC" ;; |
| 441 | *86*-sun-solaris2) OUT="solaris-x86-$CC" ;; | 451 | *86*-*-solaris2) OUT="solaris-x86-$CC" ;; |
| 442 | *-*-sunos4) OUT="sunos-$CC" ;; | 452 | *-*-sunos4) OUT="sunos-$CC" ;; |
| 443 | alpha*-*-freebsd*) OUT="FreeBSD-alpha" ;; | 453 | alpha*-*-freebsd*) OUT="FreeBSD-alpha" ;; |
| 444 | *-freebsd[3-9]*) OUT="FreeBSD-elf" ;; | 454 | *-freebsd[3-9]*) OUT="FreeBSD-elf" ;; |
| @@ -468,14 +478,21 @@ case "$GUESSOS" in | |||
| 468 | # these are all covered by the catchall below | 478 | # these are all covered by the catchall below |
| 469 | # *-aix) OUT="aix-$CC" ;; | 479 | # *-aix) OUT="aix-$CC" ;; |
| 470 | # *-dgux) OUT="dgux" ;; | 480 | # *-dgux) OUT="dgux" ;; |
| 481 | mips-sony-newsos4) OUT="newsos4-gcc" ;; | ||
| 471 | *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;; | 482 | *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;; |
| 472 | esac | 483 | esac |
| 473 | 484 | ||
| 485 | # NB: This atalla support has been superceded by the ENGINE support | ||
| 486 | # That contains its own header and definitions anyway. Support can | ||
| 487 | # be enabled or disabled on any supported platform without external | ||
| 488 | # headers, eg. by adding the "hw-atalla" switch to ./config or | ||
| 489 | # perl Configure | ||
| 490 | # | ||
| 474 | # See whether we can compile Atalla support | 491 | # See whether we can compile Atalla support |
| 475 | if [ -f /usr/include/atasi.h ] | 492 | #if [ -f /usr/include/atasi.h ] |
| 476 | then | 493 | #then |
| 477 | options="$options -DATALLA" | 494 | # options="$options -DATALLA" |
| 478 | fi | 495 | #fi |
| 479 | 496 | ||
| 480 | # gcc < 2.8 does not support -mcpu=ultrasparc | 497 | # gcc < 2.8 does not support -mcpu=ultrasparc |
| 481 | if [ "$OUT" = solaris-sparcv9-gcc -a $GCCVER -lt 28 ] | 498 | if [ "$OUT" = solaris-sparcv9-gcc -a $GCCVER -lt 28 ] |
| @@ -491,17 +508,6 @@ then | |||
| 491 | sleep 5 | 508 | sleep 5 |
| 492 | OUT=linux-sparcv8 | 509 | OUT=linux-sparcv8 |
| 493 | fi | 510 | fi |
| 494 | # To start with $OUT is never i86pc-sun-solaris2. Secondly why | ||
| 495 | # ban *all* assembler implementation if it can't stand only one, | ||
| 496 | # SHA-0 implementation. | ||
| 497 | #if [ "$OUT" = "i86pc-sun-solaris2" ] | ||
| 498 | #then | ||
| 499 | # ASM=`as -V /dev/null 2>&1` | ||
| 500 | # case "$ASM" in | ||
| 501 | # GNU*) ;; | ||
| 502 | # *) options="$options no-asm" ; echo "WARNING: You need the GNU assembler to use OpenSSL assembler code." ; echo "Sun as is not supported on Solaris x86." ;; | ||
| 503 | # esac | ||
| 504 | #fi | ||
| 505 | 511 | ||
| 506 | case "$GUESSOS" in | 512 | case "$GUESSOS" in |
| 507 | i386-*) options="$options 386" ;; | 513 | i386-*) options="$options 386" ;; |
| @@ -557,7 +563,7 @@ OUT="$PREFIX$OUT" | |||
| 557 | 563 | ||
| 558 | $PERL ./Configure LIST | grep "$OUT" > /dev/null | 564 | $PERL ./Configure LIST | grep "$OUT" > /dev/null |
| 559 | if [ $? = "0" ]; then | 565 | if [ $? = "0" ]; then |
| 560 | echo Configuring for $OUT | 566 | #echo Configuring for $OUT |
| 561 | 567 | ||
| 562 | if [ "$TEST" = "true" ]; then | 568 | if [ "$TEST" = "true" ]; then |
| 563 | echo $PERL ./Configure $OUT $options | 569 | echo $PERL ./Configure $OUT $options |
