diff options
Diffstat (limited to 'src/lib/libssl/src/config')
-rw-r--r-- | src/lib/libssl/src/config | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/lib/libssl/src/config b/src/lib/libssl/src/config index ece3248393..3d443da6fb 100644 --- a/src/lib/libssl/src/config +++ b/src/lib/libssl/src/config | |||
@@ -390,13 +390,11 @@ exit 0 | |||
390 | 390 | ||
391 | # figure out if gcc is available and if so we use it otherwise | 391 | # figure out if gcc is available and if so we use it otherwise |
392 | # we fallback to whatever cc does on the system | 392 | # we fallback to whatever cc does on the system |
393 | GCCVER=`(gcc --version) 2>/dev/null | head -1` | 393 | GCCVER=`(gcc --version) 2>/dev/null` |
394 | if [ "$GCCVER" != "" ]; then | 394 | if [ "$GCCVER" != "" ]; then |
395 | CC=gcc | 395 | CC=gcc |
396 | # then strip off whatever prefix Cygnus as well as GCC 3.1 prepends | 396 | # then strip off whatever prefix Cygnus prepends the number with... |
397 | # the number with... Hopefully, this will work for any future prefixes | 397 | GCCVER=`echo $GCCVER | sed 's/^[a-z]*\-//'` |
398 | # as well. | ||
399 | GCCVER=`echo $GCCVER | sed 's/^[a-zA-Z ()]*\-//'` | ||
400 | # peak single digit before and after first dot, e.g. 2.95.1 gives 29 | 398 | # peak single digit before and after first dot, e.g. 2.95.1 gives 29 |
401 | GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'` | 399 | GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'` |
402 | else | 400 | else |
@@ -525,6 +523,7 @@ EOF | |||
525 | OUT="linux-ppc" ;; | 523 | OUT="linux-ppc" ;; |
526 | ppc-*-linux2) OUT="linux-ppc" ;; | 524 | ppc-*-linux2) OUT="linux-ppc" ;; |
527 | m68k-*-linux*) OUT="linux-m68k" ;; | 525 | m68k-*-linux*) OUT="linux-m68k" ;; |
526 | ia64-*-linux?) OUT="linux-ia64" ;; | ||
528 | ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;; | 527 | ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;; |
529 | ppc-apple-darwin*) OUT="darwin-ppc-cc" ;; | 528 | ppc-apple-darwin*) OUT="darwin-ppc-cc" ;; |
530 | i386-apple-darwin*) OUT="darwin-i386-cc" ;; | 529 | i386-apple-darwin*) OUT="darwin-i386-cc" ;; |
@@ -625,10 +624,17 @@ EOF | |||
625 | *86*-*-netbsd) OUT="NetBSD-x86" ;; | 624 | *86*-*-netbsd) OUT="NetBSD-x86" ;; |
626 | sun3*-*-netbsd) OUT="NetBSD-m68" ;; | 625 | sun3*-*-netbsd) OUT="NetBSD-m68" ;; |
627 | *-*-netbsd) OUT="NetBSD-sparc" ;; | 626 | *-*-netbsd) OUT="NetBSD-sparc" ;; |
628 | *86*-*-openbsd) OUT="OpenBSD-x86" ;; | ||
629 | alpha*-*-openbsd) OUT="OpenBSD-alpha" ;; | 627 | alpha*-*-openbsd) OUT="OpenBSD-alpha" ;; |
628 | *86*-*-openbsd) OUT="OpenBSD-i386" ;; | ||
629 | m68k*-*-openbsd) OUT="OpenBSD-m68k" ;; | ||
630 | m88k*-*-openbsd) OUT="OpenBSD-m88k" ;; | ||
631 | mips*-*-openbsd) OUT="OpenBSD-mips" ;; | ||
630 | pmax*-*-openbsd) OUT="OpenBSD-mips" ;; | 632 | pmax*-*-openbsd) OUT="OpenBSD-mips" ;; |
633 | powerpc*-*-openbsd) OUT="OpenBSD-powerpc" ;; | ||
634 | sparc64*-*-openbsd) OUT="OpenBSD-sparc64" ;; | ||
635 | sparc*-*-openbsd) OUT="OpenBSD-sparc" ;; | ||
631 | vax*-*-openbsd) OUT="OpenBSD-vax" ;; | 636 | vax*-*-openbsd) OUT="OpenBSD-vax" ;; |
637 | hppa*-*-openbsd) OUT="OpenBSD-hppa" ;; | ||
632 | *-*-openbsd) OUT="OpenBSD" ;; | 638 | *-*-openbsd) OUT="OpenBSD" ;; |
633 | *86*-*-bsdi4) OUT="bsdi-elf-gcc" ;; | 639 | *86*-*-bsdi4) OUT="bsdi-elf-gcc" ;; |
634 | *-*-osf) OUT="alphaold-cc" ;; | 640 | *-*-osf) OUT="alphaold-cc" ;; |