aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-08-09 07:32:24 +0000
committerRichard Levitte <levitte@openssl.org>2002-08-09 07:32:24 +0000
commitf8fe7fa4913d34f33fac12181a0fc722ef367238 (patch)
tree84a44e73fba57919d6fced1b4840e1d9919491b7 /config
parentfbe792f0ac378a56ba77178bb319d07ed42df0e4 (diff)
downloadopenssl-f8fe7fa4913d34f33fac12181a0fc722ef367238.zip
openssl-f8fe7fa4913d34f33fac12181a0fc722ef367238.tar.gz
openssl-f8fe7fa4913d34f33fac12181a0fc722ef367238.tar.bz2
Parse version numbers prefixed with text (egcs does that, even with
-dumpversion). PR: 203, part 1
Diffstat (limited to 'config')
-rwxr-xr-xconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/config b/config
index 972cdb7..3e9af76 100755
--- a/config
+++ b/config
@@ -393,6 +393,9 @@ exit 0
GCCVER=`(gcc -dumpversion) 2>/dev/null`
if [ "$GCCVER" != "" ]; then
CC=gcc
+ # then strip off whatever prefix egcs prepends the number with...
+ # Hopefully, this will work for any future prefixes as well.
+ GCCVER=`echo $GCCVER | sed 's/^[a-zA-Z]*\-//'`
# Since gcc 3.1 gcc --version behaviour has changed. gcc -dumpversion
# does give us what we want though, so we use that. We just just the
# major and minor version numbers.