]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Fix to the gcc 2.95 patch for correctly testing the gcc version.
authorRobert Colquhoun <rjc@trump.net.au>
Fri, 27 Aug 1999 13:28:22 +0000 (13:28 +0000)
committerRobert Colquhoun <rjc@trump.net.au>
Fri, 27 Aug 1999 13:28:22 +0000 (13:28 +0000)
configure

index 33fe67175e93094c86799fdde272bb0d8188a7dc..9109183313a57abef0eac9d1750eae2993540fe4 100755 (executable)
--- a/configure
+++ b/configure
@@ -723,7 +723,18 @@ checkGCCVersion()
     eval `$app -v 2>&1 | \
        sed -n -e '/version/s/.* [a-z\-]*\([0-9]*\)\.\([0-9]*\).\([0-9]*\).*/GCCdist=\1;GCCmajor=\2;GCCminor=\3/p'`
     export GCCversion="${GCCdist}.${GCCmajor}.${GCCminor}"
-    capture test "${GCCdist}" -gt $1 -o "${GCCmajor}" -gt $2 -o "${GCCminor}" -ge $3
+    if [ ${GCCdist} -gt $1 ]; then
+        return 0
+    fi
+    if [ ${GCCdist} -eq $1 ]; then
+        if [ ${GCCmajor} -gt $2 ]; then
+            return 0
+        fi
+        if [ ${GCCmajor} -eq $2 -a ${GCCminor} -ge $3 ]; then
+            return 0
+        fi
+    fi
+    return 1
 }
 
 #