config (89837) | config (100928) |
---|---|
1#!/bin/sh 2# 3# OpenSSL config: determine the operating system and run ./Configure 4# 5# "config -h" for usage information. 6# 7# this is a merge of minarch and GuessOS from the Apache Group. 8# Originally written by Tim Hudson <tjh@cryptsoft.com>. --- 285 unchanged lines hidden (view full) --- 294 echo "${MACHINE}-v11-${SYSTEM}"; exit 0; 295 ;; 296 297 NEWS-OS:4.*) 298 echo "mips-sony-newsos4"; exit 0; 299 ;; 300 301 CYGWIN*) | 1#!/bin/sh 2# 3# OpenSSL config: determine the operating system and run ./Configure 4# 5# "config -h" for usage information. 6# 7# this is a merge of minarch and GuessOS from the Apache Group. 8# Originally written by Tim Hudson <tjh@cryptsoft.com>. --- 285 unchanged lines hidden (view full) --- 294 echo "${MACHINE}-v11-${SYSTEM}"; exit 0; 295 ;; 296 297 NEWS-OS:4.*) 298 echo "mips-sony-newsos4"; exit 0; 299 ;; 300 301 CYGWIN*) |
302 echo "${MACHINE}-whatever-cygwin32"; exit 0 | 302 case "$RELEASE" in 303 [bB]*|1.0|1.[12].*) 304 echo "${MACHINE}-whatever-cygwin_pre1.3" 305 ;; 306 *) 307 echo "${MACHINE}-whatever-cygwin" 308 ;; 309 esac 310 exit 0 |
303 ;; 304 | 311 ;; 312 |
313 *"CRAY T3E") 314 echo "t3e-cray-unicosmk"; exit 0; 315 ;; 316 317 *CRAY*) 318 echo "j90-cray-unicos"; exit 0; 319 ;; |
|
305esac 306 307# 308# Ugg. These are all we can determine by what we know about 309# the output of uname. Be more creative: 310# 311 312# Do the Apollo stuff first. Here, we just simply assume --- 185 unchanged lines hidden (view full) --- 498 sparc-*-linux2) 499 KARCH=`awk '/^type/{print$3}' /proc/cpuinfo` 500 case ${KARCH:-sun4} in 501 sun4u*) OUT="linux-sparcv9" ;; 502 sun4m) OUT="linux-sparcv8" ;; 503 sun4d) OUT="linux-sparcv8" ;; 504 *) OUT="linux-sparcv7" ;; 505 esac ;; | 320esac 321 322# 323# Ugg. These are all we can determine by what we know about 324# the output of uname. Be more creative: 325# 326 327# Do the Apollo stuff first. Here, we just simply assume --- 185 unchanged lines hidden (view full) --- 513 sparc-*-linux2) 514 KARCH=`awk '/^type/{print$3}' /proc/cpuinfo` 515 case ${KARCH:-sun4} in 516 sun4u*) OUT="linux-sparcv9" ;; 517 sun4m) OUT="linux-sparcv8" ;; 518 sun4d) OUT="linux-sparcv8" ;; 519 *) OUT="linux-sparcv7" ;; 520 esac ;; |
521 parisc-*-linux2) 522 CPUARCH=`awk '/cpu family/{print substr($5,1,3)}' /proc/cpuinfo` 523 CPUSCHEDULE=`awk '/^cpu.[ ]: PA/{print substr($3,3)}' /proc/cpuinfo` 524 525 # ??TODO ?? Model transformations 526 # 0. CPU Architecture for the 1.1 processor has letter suffixes. We strip that off 527 # assuming no further arch. identification will ever be used by GCC. 528 # 1. I'm most concerned about whether is a 7300LC is closer to a 7100 versus a 7100LC. 529 # 2. The variant 64-bit processors cause concern should GCC support explicit schedulers 530 # for these chips in the future. 531 # PA7300LC -> 7100LC (1.1) 532 # PA8200 -> 8000 (2.0) 533 # PA8500 -> 8000 (2.0) 534 # PA8600 -> 8000 (2.0) 535 536 CPUSCHEDULE=`echo $CPUSCHEDULE|sed -e 's/7300LC/7100LC/' -e 's/8?00/8000/'` 537 # Finish Model transformations 538 539 options="$options -mschedule=$CPUSCHEDULE -march=$CPUARCH" 540 OUT="linux-parisc" ;; |
|
506 arm*-*-linux2) OUT="linux-elf-arm" ;; 507 s390-*-linux2) OUT="linux-s390" ;; | 541 arm*-*-linux2) OUT="linux-elf-arm" ;; 542 s390-*-linux2) OUT="linux-s390" ;; |
543 s390x-*-linux?) OUT="linux-s390x" ;; |
|
508 *-*-linux2) OUT="linux-elf" ;; 509 *-*-linux1) OUT="linux-aout" ;; 510 sun4u*-*-solaris2) 511 ISA64=`(isalist) 2>/dev/null | grep sparcv9` 512 if [ "$ISA64" != "" -a "$CC" = "cc" -a $CCVER -ge 50 ]; then 513 echo "WARNING! If you wish to build 64-bit library, then you have to" 514 echo " invoke './Configure solaris64-sparcv9-cc' *manually*." 515 echo " Type return if you want to continue, Ctrl-C to abort." --- 39 unchanged lines hidden (view full) --- 555 *-siemens-sysv4) OUT="SINIX" ;; 556 *-hpux1*) OUT="hpux-parisc-$CC" 557 options="$options -D_REENTRANT" ;; 558 *-hpux) OUT="hpux-parisc-$CC" ;; 559 # these are all covered by the catchall below 560 # *-aix) OUT="aix-$CC" ;; 561 # *-dgux) OUT="dgux" ;; 562 mips-sony-newsos4) OUT="newsos4-gcc" ;; | 544 *-*-linux2) OUT="linux-elf" ;; 545 *-*-linux1) OUT="linux-aout" ;; 546 sun4u*-*-solaris2) 547 ISA64=`(isalist) 2>/dev/null | grep sparcv9` 548 if [ "$ISA64" != "" -a "$CC" = "cc" -a $CCVER -ge 50 ]; then 549 echo "WARNING! If you wish to build 64-bit library, then you have to" 550 echo " invoke './Configure solaris64-sparcv9-cc' *manually*." 551 echo " Type return if you want to continue, Ctrl-C to abort." --- 39 unchanged lines hidden (view full) --- 591 *-siemens-sysv4) OUT="SINIX" ;; 592 *-hpux1*) OUT="hpux-parisc-$CC" 593 options="$options -D_REENTRANT" ;; 594 *-hpux) OUT="hpux-parisc-$CC" ;; 595 # these are all covered by the catchall below 596 # *-aix) OUT="aix-$CC" ;; 597 # *-dgux) OUT="dgux" ;; 598 mips-sony-newsos4) OUT="newsos4-gcc" ;; |
563 *-*-cygwin32) OUT="CygWin32" 564 options="$options no-threads no-asm" ;; | 599 *-*-cygwin_pre1.3) OUT="Cygwin-pre1.3" ;; 600 *-*-cygwin) OUT="Cygwin" ;; 601 t3e-cray-unicosmk) OUT="cray-t3e" ;; 602 j90-cray-unicos) OUT="cray-j90" ;; |
565 *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;; 566esac 567 568# See whether we can compile Atalla support 569if [ -f /usr/include/atasi.h ] 570then 571 options="$options -DATALLA" 572fi --- 81 unchanged lines hidden --- | 603 *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;; 604esac 605 606# See whether we can compile Atalla support 607if [ -f /usr/include/atasi.h ] 608then 609 options="$options -DATALLA" 610fi --- 81 unchanged lines hidden --- |