]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Bug 869: configure failes to detect GCC Version on gentoo
authorAidan Van Dyk <aidan@ifax.com>
Wed, 22 Aug 2007 15:00:00 +0000 (15:00 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Wed, 22 Aug 2007 15:00:00 +0000 (15:00 +0000)
Gentoo brands their GCC, and the version check needs some massaging

configure

index 17861a338e9bdea5385e72d67a8f7bfdaf1b34c5..6bcec1a94fefb23c5fa30588ae3f250cbd8a7d3d 100755 (executable)
--- a/configure
+++ b/configure
@@ -788,7 +788,7 @@ checkGCCVersion()
 {
     app=$1; shift
     eval `$app -v 2>&1 | \
-       sed -n -e '/[Vv]ersion/s/.* [a-z\-]*\([0-9]*\)\.\([0-9]*\).\([0-9]*\).*/GCCdist=\1;GCCmajor=\2;GCCminor=\3/p'`
+       sed -n -e '/[Vv]ersion/s/[^(]* [a-z\-]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/GCCdist=\1;GCCmajor=\2;GCCminor=\3/p'`
     GCCversion="${GCCdist}.${GCCmajor}.${GCCminor}"; export GCCversion
     if [ ${GCCdist} -gt $1 ]; then
         return 0