config (101613) | config (101618) |
---|---|
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>. --- 370 unchanged lines hidden (view full) --- 379esac 380done 381 382# figure out if gcc is available and if so we use it otherwise 383# we fallback to whatever cc does on the system 384GCCVER=`(gcc -dumpversion) 2>/dev/null` 385if [ "$GCCVER" != "" ]; then 386 CC=gcc | 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>. --- 370 unchanged lines hidden (view full) --- 379esac 380done 381 382# figure out if gcc is available and if so we use it otherwise 383# we fallback to whatever cc does on the system 384GCCVER=`(gcc -dumpversion) 2>/dev/null` 385if [ "$GCCVER" != "" ]; then 386 CC=gcc |
387 # then strip off whatever prefix egcs prepends the number with... 388 # Hopefully, this will work for any future prefixes as well. 389 GCCVER=`echo $GCCVER | sed 's/^[a-zA-Z]*\-//'` |
|
387 # Since gcc 3.1 gcc --version behaviour has changed. gcc -dumpversion 388 # does give us what we want though, so we use that. We just just the 389 # major and minor version numbers. 390 # peak single digit before and after first dot, e.g. 2.95.1 gives 29 391 GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'` 392else 393 CC=cc 394fi --- 324 unchanged lines hidden --- | 390 # Since gcc 3.1 gcc --version behaviour has changed. gcc -dumpversion 391 # does give us what we want though, so we use that. We just just the 392 # major and minor version numbers. 393 # peak single digit before and after first dot, e.g. 2.95.1 gives 29 394 GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'` 395else 396 CC=cc 397fi --- 324 unchanged lines hidden --- |