summaryrefslogtreecommitdiff
path: root/community/mldonkey/gd_version.patch
blob: 666bd2c7137896664656a702681a89c1dadc4bb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- config/configure.in	2013/07/07 11:46:34	1.357
+++ config/configure.in	2013/07/20 10:14:57	1.358
@@ -932,13 +932,30 @@
     GDMAJORVERSION=`$GDLIBCONFIG --majorversion`
     GDMINORVERSION=`$GDLIBCONFIG --minorversion`
     GDREVISION=`$GDLIBCONFIG --revision`
-    if [ [ $GDMAJORVERSION = 2 ] && [ $GDMINORVERSION = 0 ] && [ $GDREVISION -gt 14 ]]; then
-	AC_MSG_RESULT($GDVERSION)
-	LIBGD=yes
-    else
-	AC_MSG_RESULT(no (found $GDVERSION))
-	LIBGD=no
-    fi
+    case $GDMAJORVERSION in
+        1)
+            AC_MSG_RESULT(no (found $GDVERSION))
+            LIBGD=no
+            ;;
+        2)
+            if test $GDMINORVERSION -ge 1; then
+                AC_MSG_RESULT($GDVERSION)
+                LIBGD=yes
+            else
+                if test $GDREVISION -gt 14; then
+                    AC_MSG_RESULT($GDVERSION)
+                    LIBGD=yes
+                else
+                    AC_MSG_RESULT(no (found $GDVERSION))
+                    LIBGD=no
+                fi
+            fi
+            ;;
+        *)
+            AC_MSG_RESULT($GDVERSION)
+            LIBGD=yes
+            ;;
+    esac
   else
     LIBGD=yes
   fi