Deleted Added
full compact
config (68651) config (72613)
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>.

--- 154 unchanged lines hidden (view full) ---

163 esac
164 case ${MACH} in
165 i[0-9]86 ) ARCH="pc" ;;
166 esac
167 echo "${MACH}-${ARCH}-freebsd${VERS}"; exit 0
168 ;;
169
170 NetBSD:*:*:*386*)
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>.

--- 154 unchanged lines hidden (view full) ---

163 esac
164 case ${MACH} in
165 i[0-9]86 ) ARCH="pc" ;;
166 esac
167 echo "${MACH}-${ARCH}-freebsd${VERS}"; exit 0
168 ;;
169
170 NetBSD:*:*:*386*)
171 echo "`/usr/sbin/sysctl -n hw.model | sed 's,.*\(.\)86-class.*,i\186,'`-whatever-netbsd"; exit 0
171 echo "`(/usr/sbin/sysctl -n hw.model || /sbin/sysctl -n hw.model) | sed 's,.*\(.\)86-class.*,i\186,'`-whatever-netbsd"; exit 0
172 ;;
173
174 NetBSD:*)
175 echo "${MACHINE}-whatever-netbsd"; exit 0
176 ;;
177
178 OpenBSD:*)
179 echo "${MACHINE}-whatever-openbsd"; exit 0

--- 209 unchanged lines hidden (view full) ---

389 else
390 options="$options -mips3"
391 fi
392 OUT="irix-mips3-$CC"
393 ;;
394 mips4-sgi-irix64)
395 echo "WARNING! If you wish to build 64-bit library, then you have to"
396 echo " invoke './Configre irix64-mips4-$CC' *manually*."
172 ;;
173
174 NetBSD:*)
175 echo "${MACHINE}-whatever-netbsd"; exit 0
176 ;;
177
178 OpenBSD:*)
179 echo "${MACHINE}-whatever-openbsd"; exit 0

--- 209 unchanged lines hidden (view full) ---

389 else
390 options="$options -mips3"
391 fi
392 OUT="irix-mips3-$CC"
393 ;;
394 mips4-sgi-irix64)
395 echo "WARNING! If you wish to build 64-bit library, then you have to"
396 echo " invoke './Configre irix64-mips4-$CC' *manually*."
397 echo " Type Ctrl-C if you don't want to continue."
397 echo " Type return if you want to continue, Ctrl-C to abort."
398 read waste < /dev/tty
399 options="$options -mips4"
400 OUT="irix-mips3-$CC"
401 ;;
402 alpha-*-linux2)
403 ISA=`awk '/cpu model/{print$4}' /proc/cpuinfo`
404 case ${ISA:-generic} in
405 *[67]) OUT="linux-alpha+bwx-$CC" ;;

--- 12 unchanged lines hidden (view full) ---

418 m68k-*-linux*) OUT="linux-m68k" ;;
419 ia64-*-linux?) OUT="linux-ia64" ;;
420 ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;;
421 sparc64-*-linux2)
422 #Before we can uncomment following lines we have to wait at least
423 #till 64-bit glibc for SPARC is operational:-(
424 #echo "WARNING! If you wish to build 64-bit library, then you have to"
425 #echo " invoke './Configure linux64-sparcv9' *manually*."
398 read waste < /dev/tty
399 options="$options -mips4"
400 OUT="irix-mips3-$CC"
401 ;;
402 alpha-*-linux2)
403 ISA=`awk '/cpu model/{print$4}' /proc/cpuinfo`
404 case ${ISA:-generic} in
405 *[67]) OUT="linux-alpha+bwx-$CC" ;;

--- 12 unchanged lines hidden (view full) ---

418 m68k-*-linux*) OUT="linux-m68k" ;;
419 ia64-*-linux?) OUT="linux-ia64" ;;
420 ppc-apple-rhapsody) OUT="rhapsody-ppc-cc" ;;
421 sparc64-*-linux2)
422 #Before we can uncomment following lines we have to wait at least
423 #till 64-bit glibc for SPARC is operational:-(
424 #echo "WARNING! If you wish to build 64-bit library, then you have to"
425 #echo " invoke './Configure linux64-sparcv9' *manually*."
426 #echo " Type Ctrl-C if you don't want to continue."
426 #echo " Type return if you want to continue, Ctrl-C to abort."
427 #read waste < /dev/tty
428 OUT="linux-sparcv9" ;;
429 sparc-*-linux2)
427 #read waste < /dev/tty
428 OUT="linux-sparcv9" ;;
429 sparc-*-linux2)
430 KARCH=`awk '/type/{print$3}' /proc/cpuinfo`
430 KARCH=`awk '/^type/{print$3}' /proc/cpuinfo`
431 case ${KARCH:-sun4} in
432 sun4u*) OUT="linux-sparcv9" ;;
433 sun4m) OUT="linux-sparcv8" ;;
434 sun4d) OUT="linux-sparcv8" ;;
435 *) OUT="linux-sparcv7" ;;
436 esac ;;
437 arm*-*-linux2) OUT="linux-elf-arm" ;;
431 case ${KARCH:-sun4} in
432 sun4u*) OUT="linux-sparcv9" ;;
433 sun4m) OUT="linux-sparcv8" ;;
434 sun4d) OUT="linux-sparcv8" ;;
435 *) OUT="linux-sparcv7" ;;
436 esac ;;
437 arm*-*-linux2) OUT="linux-elf-arm" ;;
438 s390-*-linux2) OUT="linux-s390" ;;
438 *-*-linux2) OUT="linux-elf" ;;
439 *-*-linux1) OUT="linux-aout" ;;
440 sun4u*-*-solaris2)
441 ISA64=`(isalist) 2>/dev/null | grep sparcv9`
442 if [ "$ISA64" != "" -a "$CC" = "cc" -a $CCVER -ge 50 ]; then
443 echo "WARNING! If you wish to build 64-bit library, then you have to"
444 echo " invoke './Configure solaris64-sparcv9-cc' *manually*."
439 *-*-linux2) OUT="linux-elf" ;;
440 *-*-linux1) OUT="linux-aout" ;;
441 sun4u*-*-solaris2)
442 ISA64=`(isalist) 2>/dev/null | grep sparcv9`
443 if [ "$ISA64" != "" -a "$CC" = "cc" -a $CCVER -ge 50 ]; then
444 echo "WARNING! If you wish to build 64-bit library, then you have to"
445 echo " invoke './Configure solaris64-sparcv9-cc' *manually*."
445 echo " Type Ctrl-C if you don't want to continue."
446 echo " Type return if you want to continue, Ctrl-C to abort."
446 read waste < /dev/tty
447 fi
448 OUT="solaris-sparcv9-$CC" ;;
449 sun4m-*-solaris2) OUT="solaris-sparcv8-$CC" ;;
450 sun4d-*-solaris2) OUT="solaris-sparcv8-$CC" ;;
451 sun4*-*-solaris2) OUT="solaris-sparcv7-$CC" ;;
452 *86*-*-solaris2) OUT="solaris-x86-$CC" ;;
453 *-*-sunos4) OUT="sunos-$CC" ;;

--- 98 unchanged lines hidden (view full) ---

552if [ $? = "0" ]; then
553 OUT="$OUT-$CC"
554fi
555
556OUT="$PREFIX$OUT"
557
558$PERL ./Configure LIST | grep "$OUT" > /dev/null
559if [ $? = "0" ]; then
447 read waste < /dev/tty
448 fi
449 OUT="solaris-sparcv9-$CC" ;;
450 sun4m-*-solaris2) OUT="solaris-sparcv8-$CC" ;;
451 sun4d-*-solaris2) OUT="solaris-sparcv8-$CC" ;;
452 sun4*-*-solaris2) OUT="solaris-sparcv7-$CC" ;;
453 *86*-*-solaris2) OUT="solaris-x86-$CC" ;;
454 *-*-sunos4) OUT="sunos-$CC" ;;

--- 98 unchanged lines hidden (view full) ---

553if [ $? = "0" ]; then
554 OUT="$OUT-$CC"
555fi
556
557OUT="$PREFIX$OUT"
558
559$PERL ./Configure LIST | grep "$OUT" > /dev/null
560if [ $? = "0" ]; then
560 #echo Configuring for $OUT
561 echo Configuring for $OUT
561
562 if [ "$TEST" = "true" ]; then
563 echo $PERL ./Configure $OUT $options
564 else
565 $PERL ./Configure $OUT $options
566 fi
567else
568 echo "This system ($OUT) is not supported. See file INSTALL for details."
569fi
570)
562
563 if [ "$TEST" = "true" ]; then
564 echo $PERL ./Configure $OUT $options
565 else
566 $PERL ./Configure $OUT $options
567 fi
568else
569 echo "This system ($OUT) is not supported. See file INSTALL for details."
570fi
571)