gd version checking code is wrong
https://github.com/mapserver/mapserver/issues/4696
--- configure.orig 2013-04-19 23:08:49.000000000 -0500
+++ configure 2013-07-10 21:32:55.000000000 -0500
- if test $GDMAJOR -lt 2 -o $GDMINOR -lt 0 -o $GDREV -lt 28 ; then
+ GDVERSION_NUM=`expr $GDMAJOR \* 1000000 \+ $GDMINOR \* 1000 \+ $GDREV`
+ GDVERSION_REQ=`expr 2 \* 1000000 \+ 0 \* 1000 \+ 28`
+ if test $GDVERSION_NUM -lt $GDVERSION_REQ ; then
as_fn_error $? "GD version $GDVERSION too old. need at least 2.0.28" "$LINENO" 5