/[CvsGraph]/cvsgraph/configure
ViewVC logotype

Diff of /cvsgraph/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.8, Wed Jun 19 14:47:55 2002 UTC revision 1.9, Sat Jul 20 00:48:16 2002 UTC
# Line 902  Line 902 
902    
903    
904  LIBS="$LIBS -lgd"  LIBS="$LIBS -lgd"
905  have_lib_png="no"  LIBPATH=""
 have_lib_z="no"  
 have_lib_jpeg="no"  
906    
907  # Check whether --with-freetype-lib or --without-freetype-lib was given.  # Check whether --with-freetype-lib or --without-freetype-lib was given.
908  if test "${with_freetype_lib+set}" = set; then  if test "${with_freetype_lib+set}" = set; then
909    withval="$with_freetype_lib"    withval="$with_freetype_lib"
910    LIBS="${LIBS} -L${withval} -lttf"    LIBS="${LIBS} -L${withval}"
911    
912  fi  fi
913    
# Line 917  Line 915 
915  # Check whether --with-freetype2-lib or --without-freetype2-lib was given.  # Check whether --with-freetype2-lib or --without-freetype2-lib was given.
916  if test "${with_freetype2_lib+set}" = set; then  if test "${with_freetype2_lib+set}" = set; then
917    withval="$with_freetype2_lib"    withval="$with_freetype2_lib"
918    LIBS="${LIBS} -L${withval} -lfreetype"    LIBS="${LIBS} -L${withval}"
919    
920  fi  fi
921    
# Line 933  Line 931 
931  # Check whether --with-png-lib or --without-png-lib was given.  # Check whether --with-png-lib or --without-png-lib was given.
932  if test "${with_png_lib+set}" = set; then  if test "${with_png_lib+set}" = set; then
933    withval="$with_png_lib"    withval="$with_png_lib"
934    LIBS="${LIBS} -L${withval} -lpng"    LIBS="${LIBS} -L${withval}"
                  have_lib_png="yes"  
935    
936  fi  fi
937    
# Line 950  Line 947 
947  # Check whether --with-jpeg-lib or --without-jpeg-lib was given.  # Check whether --with-jpeg-lib or --without-jpeg-lib was given.
948  if test "${with_jpeg_lib+set}" = set; then  if test "${with_jpeg_lib+set}" = set; then
949    withval="$with_jpeg_lib"    withval="$with_jpeg_lib"
950    LIBS="${LIBS} -L${withval} -ljpeg"    LIBS="${LIBS} -L${withval}"
                  have_lib_jpeg="yes"  
951    
952  fi  fi
953    
# Line 967  Line 963 
963  # Check whether --with-z-lib or --without-z-lib was given.  # Check whether --with-z-lib or --without-z-lib was given.
964  if test "${with_z_lib+set}" = set; then  if test "${with_z_lib+set}" = set; then
965    withval="$with_z_lib"    withval="$with_z_lib"
966    LIBS="${LIBS} -L${withval} -lz"    LIBS="${LIBS} -L${withval}"
                  have_lib_z="yes"  
967    
968  fi  fi
969    
# Line 992  Line 987 
987  then  then
988    CFLAGS="$CFLAGS -Wall"    CFLAGS="$CFLAGS -Wall"
989    echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6    echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
990  echo "configure:996: checking "for gcc strength-reduce bug"" >&5  echo "configure:991: checking "for gcc strength-reduce bug"" >&5
991  if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
992    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
993  else  else
# Line 1000  Line 995 
995    ac_cv_c_gcc_strength_bug="yes"    ac_cv_c_gcc_strength_bug="yes"
996  else  else
997    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
998  #line 1004 "configure"  #line 999 "configure"
999  #include "confdefs.h"  #include "confdefs.h"
1000    
1001  int main(void) {  int main(void) {
# Line 1011  Line 1006 
1006    exit( Array[1] != -2 );    exit( Array[1] != -2 );
1007  }  }
1008  EOF  EOF
1009  if { (eval echo configure:1015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1010  then  then
1011    ac_cv_c_gcc_strength_bug="no"    ac_cv_c_gcc_strength_bug="no"
1012  else  else
# Line 1032  Line 1027 
1027    fi    fi
1028  fi  fi
1029    
1030    echo $ac_n "checking "sizes of int and void *"""... $ac_c" 1>&6
1031    echo "configure:1032: checking "sizes of int and void *"" >&5
1032    if eval "test \"`echo '$''{'ac_cv_c_size_int_ptr'+set}'`\" = set"; then
1033      echo $ac_n "(cached) $ac_c" 1>&6
1034    else
1035      if test "$cross_compiling" = yes; then
1036      ac_cv_c_size_int_ptr="yes"
1037    else
1038      cat > conftest.$ac_ext <<EOF
1039    #line 1040 "configure"
1040    #include "confdefs.h"
1041    
1042    int main(void) {
1043      return sizeof(int) == sizeof(void *);
1044    }
1045    EOF
1046    if { (eval echo configure:1047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1047    then
1048      ac_cv_c_size_int_ptr="no"
1049    else
1050      echo "configure: failed program was:" >&5
1051      cat conftest.$ac_ext >&5
1052      rm -fr conftest*
1053      ac_cv_c_size_int_ptr="yes"
1054    fi
1055    rm -fr conftest*
1056    fi
1057    
1058    fi
1059    
1060    echo "$ac_t""$ac_cv_c_size_int_ptr" 1>&6
1061    if test "$ac_cv_c_size_int_ptr" = "no"
1062    then
1063            echo "** The size of an integer is not equal to a pointer."
1064            echo "   There are currently assumtions in the app that"
1065            echo "   prevents it from running if these sizes are not"
1066            echo "   equal."
1067            echo "   Please configure with a compiler that uses the"
1068            echo "   same sizes for ints and pointers."
1069            exit 1
1070    fi
1071    
1072  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1073  echo "configure:1037: checking how to run the C preprocessor" >&5  echo "configure:1074: checking how to run the C preprocessor" >&5
1074  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1075  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1076    CPP=    CPP=
# Line 1048  Line 1085 
1085    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
1086    # not just through cpp.    # not just through cpp.
1087    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1088  #line 1052 "configure"  #line 1089 "configure"
1089  #include "confdefs.h"  #include "confdefs.h"
1090  #include <assert.h>  #include <assert.h>
1091  Syntax Error  Syntax Error
1092  EOF  EOF
1093  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1094  { (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1095  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1096  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1097    :    :
# Line 1065  Line 1102 
1102    rm -rf conftest*    rm -rf conftest*
1103    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
1104    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1105  #line 1069 "configure"  #line 1106 "configure"
1106  #include "confdefs.h"  #include "confdefs.h"
1107  #include <assert.h>  #include <assert.h>
1108  Syntax Error  Syntax Error
1109  EOF  EOF
1110  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1111  { (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1112  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1113  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1114    :    :
# Line 1082  Line 1119 
1119    rm -rf conftest*    rm -rf conftest*
1120    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
1121    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1122  #line 1086 "configure"  #line 1123 "configure"
1123  #include "confdefs.h"  #include "confdefs.h"
1124  #include <assert.h>  #include <assert.h>
1125  Syntax Error  Syntax Error
1126  EOF  EOF
1127  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1128  { (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1129  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1130  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1131    :    :
# Line 1114  Line 1151 
1151    
1152  ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`
1153  echo $ac_n "checking for getopt.h""... $ac_c" 1>&6  echo $ac_n "checking for getopt.h""... $ac_c" 1>&6
1154  echo "configure:1118: checking for getopt.h" >&5  echo "configure:1155: checking for getopt.h" >&5
1155  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1156    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1157  else  else
1158    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1159  #line 1123 "configure"  #line 1160 "configure"
1160  #include "confdefs.h"  #include "confdefs.h"
1161  #include <getopt.h>  #include <getopt.h>
1162  EOF  EOF
1163  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1164  { (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1165  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1166  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1167    rm -rf conftest*    rm -rf conftest*
# Line 1149  Line 1186 
1186  fi  fi
1187    
1188    
1189    ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`
1190    echo $ac_n "checking for gd.h""... $ac_c" 1>&6
1191    echo "configure:1192: checking for gd.h" >&5
1192    if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1193      echo $ac_n "(cached) $ac_c" 1>&6
1194    else
1195      cat > conftest.$ac_ext <<EOF
1196    #line 1197 "configure"
1197    #include "confdefs.h"
1198    #include <gd.h>
1199    EOF
1200    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1201    { (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1202    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1203    if test -z "$ac_err"; then
1204      rm -rf conftest*
1205      eval "ac_cv_header_$ac_safe=yes"
1206    else
1207      echo "$ac_err" >&5
1208      echo "configure: failed program was:" >&5
1209      cat conftest.$ac_ext >&5
1210      rm -rf conftest*
1211      eval "ac_cv_header_$ac_safe=no"
1212    fi
1213    rm -f conftest*
1214    fi
1215    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1216      echo "$ac_t""yes" 1>&6
1217       have_gd_h="yes"
1218    else
1219      echo "$ac_t""no" 1>&6
1220     have_gd_h="no"
1221    fi
1222    
1223    
1224    if test "$have_gd_h" != "yes"; then
1225    echo
1226            echo "** The GD library is required for CvsGraph to function."
1227            echo "   Get it from http://www.boutell.com, compile it and"
1228            echo "   use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify"
1229            echo "   its location. You might also have to use --with-z-inc, --with-z-lib"
1230            echo "   and --with-png-inc, --with-png-lib for gd versions 1.6 and higher."
1231            echo "   Check config.log for more information on the problem. If your system"
1232            echo "   has libgd installed, you probably mis the gd.h header file."
1233            exit 1
1234    fi
1235    
1236  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
1237  echo "configure:1154: checking for sqrt in -lm" >&5  echo "configure:1238: checking for sqrt in -lm" >&5
1238  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
1239  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1240    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1158  Line 1242 
1242    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1243  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
1244  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1245  #line 1162 "configure"  #line 1246 "configure"
1246  #include "confdefs.h"  #include "confdefs.h"
1247  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1248  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1169  Line 1253 
1253  sqrt()  sqrt()
1254  ; return 0; }  ; return 0; }
1255  EOF  EOF
1256  if { (eval echo configure:1173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1257    rm -rf conftest*    rm -rf conftest*
1258    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1259  else  else
# Line 1196  Line 1280 
1280  fi  fi
1281    
1282    
1283  echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for compress in -lz""... $ac_c" 1>&6
1284  echo "configure:1201: checking for gdImageGif in -lgd" >&5  echo "configure:1285: checking for compress in -lz" >&5
1285  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`  ac_lib_var=`echo z'_'compress | sed 'y%./+-%__p_%'`
1286  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1287    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1288  else  else
1289    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1290  LIBS="-lgd $MATHLIBS  $LIBS"  LIBS="-lz ${LIBPATH} ${MATHLIBS}  $LIBS"
1291  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1292  #line 1209 "configure"  #line 1293 "configure"
1293  #include "confdefs.h"  #include "confdefs.h"
1294  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1295  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
1296      builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
1297  char gdImageGif();  char compress();
1298    
1299  int main() {  int main() {
1300  gdImageGif()  compress()
1301  ; return 0; }  ; return 0; }
1302  EOF  EOF
1303  if { (eval echo configure:1220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1304    rm -rf conftest*    rm -rf conftest*
1305    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1306  else  else
# Line 1232  Line 1316 
1316  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1317    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1318    
1319          cat >> confdefs.h <<\EOF          ac_have_libz="yes"
1320  #define HAVE_IMAGE_GIF 1          ZLIB="-lz"
1321    
1322    else
1323      echo "$ac_t""no" 1>&6
1324    
1325            ac_have_libz="no"
1326    
1327    fi
1328    
1329    
1330    echo $ac_n "checking for FT_Load_Glyph in -lfreetype""... $ac_c" 1>&6
1331    echo "configure:1332: checking for FT_Load_Glyph in -lfreetype" >&5
1332    ac_lib_var=`echo freetype'_'FT_Load_Glyph | sed 'y%./+-%__p_%'`
1333    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1334      echo $ac_n "(cached) $ac_c" 1>&6
1335    else
1336      ac_save_LIBS="$LIBS"
1337    LIBS="-lfreetype ${LIBPATH} ${MATHLIBS}  $LIBS"
1338    cat > conftest.$ac_ext <<EOF
1339    #line 1340 "configure"
1340    #include "confdefs.h"
1341    /* Override any gcc2 internal prototype to avoid an error.  */
1342    /* We use char because int might match the return type of a gcc2
1343        builtin and then its argument prototype would still apply.  */
1344    char FT_Load_Glyph();
1345    
1346    int main() {
1347    FT_Load_Glyph()
1348    ; return 0; }
1349  EOF  EOF
1350    if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1351      rm -rf conftest*
1352      eval "ac_cv_lib_$ac_lib_var=yes"
1353    else
1354      echo "configure: failed program was:" >&5
1355      cat conftest.$ac_ext >&5
1356      rm -rf conftest*
1357      eval "ac_cv_lib_$ac_lib_var=no"
1358    fi
1359    rm -f conftest*
1360    LIBS="$ac_save_LIBS"
1361    
1362    fi
1363          have_gifs="yes"  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1364      echo "$ac_t""yes" 1>&6
1365    
1366            ac_have_libfreetype="yes"
1367            LIBFT="-lfreetype"
1368    
1369  else  else
1370    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1371  have_gifs="no"  
1372            ac_have_libfreetype="no"
1373    
1374  fi  fi
1375    
1376    
1377  if test "$have_gifs" = "no"  echo $ac_n "checking for TT_Load_Glyph in -lttf""... $ac_c" 1>&6
1378    echo "configure:1379: checking for TT_Load_Glyph in -lttf" >&5
1379    ac_lib_var=`echo ttf'_'TT_Load_Glyph | sed 'y%./+-%__p_%'`
1380    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1381      echo $ac_n "(cached) $ac_c" 1>&6
1382    else
1383      ac_save_LIBS="$LIBS"
1384    LIBS="-lttf ${LIBPATH} ${MATHLIBS}  $LIBS"
1385    cat > conftest.$ac_ext <<EOF
1386    #line 1387 "configure"
1387    #include "confdefs.h"
1388    /* Override any gcc2 internal prototype to avoid an error.  */
1389    /* We use char because int might match the return type of a gcc2
1390        builtin and then its argument prototype would still apply.  */
1391    char TT_Load_Glyph();
1392    
1393    int main() {
1394    TT_Load_Glyph()
1395    ; return 0; }
1396    EOF
1397    if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1398      rm -rf conftest*
1399      eval "ac_cv_lib_$ac_lib_var=yes"
1400    else
1401      echo "configure: failed program was:" >&5
1402      cat conftest.$ac_ext >&5
1403      rm -rf conftest*
1404      eval "ac_cv_lib_$ac_lib_var=no"
1405    fi
1406    rm -f conftest*
1407    LIBS="$ac_save_LIBS"
1408    
1409    fi
1410    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1411      echo "$ac_t""yes" 1>&6
1412    
1413            ac_have_libttf="yes"
1414            LIBTT="-lttf"
1415    
1416    else
1417      echo "$ac_t""no" 1>&6
1418    
1419            ac_have_libttf="no"
1420    
1421    fi
1422    
1423    
1424    echo $ac_n "checking for png_create_read_struct  in -lpng""... $ac_c" 1>&6
1425    echo "configure:1426: checking for png_create_read_struct  in -lpng" >&5
1426    ac_lib_var=`echo png'_'png_create_read_struct  | sed 'y%./+-%__p_%'`
1427    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1428      echo $ac_n "(cached) $ac_c" 1>&6
1429    else
1430      ac_save_LIBS="$LIBS"
1431    LIBS="-lpng ${LIBPATH} ${ZLIB} ${MATHLIBS}  $LIBS"
1432    cat > conftest.$ac_ext <<EOF
1433    #line 1434 "configure"
1434    #include "confdefs.h"
1435    /* Override any gcc2 internal prototype to avoid an error.  */
1436    /* We use char because int might match the return type of a gcc2
1437        builtin and then its argument prototype would still apply.  */
1438    char png_create_read_struct ();
1439    
1440    int main() {
1441    png_create_read_struct ()
1442    ; return 0; }
1443    EOF
1444    if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1445      rm -rf conftest*
1446      eval "ac_cv_lib_$ac_lib_var=yes"
1447    else
1448      echo "configure: failed program was:" >&5
1449      cat conftest.$ac_ext >&5
1450      rm -rf conftest*
1451      eval "ac_cv_lib_$ac_lib_var=no"
1452    fi
1453    rm -f conftest*
1454    LIBS="$ac_save_LIBS"
1455    
1456    fi
1457    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1458      echo "$ac_t""yes" 1>&6
1459    
1460            ac_have_libpng="yes"
1461            LIBPNG="-lpng"
1462    
1463    else
1464      echo "$ac_t""no" 1>&6
1465    
1466            ac_have_libpng="no"
1467    
1468    fi
1469    
1470    
1471    echo $ac_n "checking for jpeg_CreateCompress in -ljpeg""... $ac_c" 1>&6
1472    echo "configure:1473: checking for jpeg_CreateCompress in -ljpeg" >&5
1473    ac_lib_var=`echo jpeg'_'jpeg_CreateCompress | sed 'y%./+-%__p_%'`
1474    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1475      echo $ac_n "(cached) $ac_c" 1>&6
1476    else
1477      ac_save_LIBS="$LIBS"
1478    LIBS="-ljpeg ${LIBPATH} ${MATHLIBS}  $LIBS"
1479    cat > conftest.$ac_ext <<EOF
1480    #line 1481 "configure"
1481    #include "confdefs.h"
1482    /* Override any gcc2 internal prototype to avoid an error.  */
1483    /* We use char because int might match the return type of a gcc2
1484        builtin and then its argument prototype would still apply.  */
1485    char jpeg_CreateCompress();
1486    
1487    int main() {
1488    jpeg_CreateCompress()
1489    ; return 0; }
1490    EOF
1491    if { (eval echo configure:1492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1492      rm -rf conftest*
1493      eval "ac_cv_lib_$ac_lib_var=yes"
1494    else
1495      echo "configure: failed program was:" >&5
1496      cat conftest.$ac_ext >&5
1497      rm -rf conftest*
1498      eval "ac_cv_lib_$ac_lib_var=no"
1499    fi
1500    rm -f conftest*
1501    LIBS="$ac_save_LIBS"
1502    
1503    fi
1504    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1505      echo "$ac_t""yes" 1>&6
1506    
1507            ac_have_libjpeg="yes"
1508            LIBJPEG="-ljpeg"
1509    
1510    else
1511      echo "$ac_t""no" 1>&6
1512    
1513            ac_have_libjpeg="no"
1514    
1515    fi
1516    
1517    
1518    OLIBS="${LIBS}"
1519    LIBS="${LIBS} ${MATHLIB}"
1520    echo $ac_n "checking "whether libpng needs -lz"""... $ac_c" 1>&6
1521    echo "configure:1522: checking "whether libpng needs -lz"" >&5
1522    if eval "test \"`echo '$''{'ac_cv_png_needs_z'+set}'`\" = set"; then
1523      echo $ac_n "(cached) $ac_c" 1>&6
1524    else
1525      cat > conftest.$ac_ext <<EOF
1526    #line 1527 "configure"
1527    #include "confdefs.h"
1528    /* Override any gcc2 internal prototype to avoid an error.  */
1529    /* We use char because int might match the return type of a gcc2
1530        builtin and then its argument prototype would still apply.  */
1531    char png_create_read_struct();
1532    
1533    int main() {
1534    png_create_read_struct()
1535    ; return 0; }
1536    EOF
1537    if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1538      rm -rf conftest*
1539      ac_cv_png_needs_z="no"
1540    
1541    else
1542      echo "configure: failed program was:" >&5
1543      cat conftest.$ac_ext >&5
1544      rm -rf conftest*
1545      ac_cv_png_needs_z="yes"
1546    
1547    fi
1548    rm -f conftest*
1549    fi
1550    
1551    echo "$ac_t""$ac_cv_png_needs_z" 1>&6
1552    LIBS="${OLIBS}"
1553    
1554    
1555    OLIBS="${LIBS}"
1556    LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBJPEG} ${MATHLIB}"
1557    echo $ac_n "checking "whether libgd needs -lpng"""... $ac_c" 1>&6
1558    echo "configure:1559: checking "whether libgd needs -lpng"" >&5
1559    if eval "test \"`echo '$''{'ac_cv_gd_needs_png'+set}'`\" = set"; then
1560      echo $ac_n "(cached) $ac_c" 1>&6
1561    else
1562      cat > conftest.$ac_ext <<EOF
1563    #line 1564 "configure"
1564    #include "confdefs.h"
1565    /* Override any gcc2 internal prototype to avoid an error.  */
1566    /* We use char because int might match the return type of a gcc2
1567        builtin and then its argument prototype would still apply.  */
1568    char gdImageCreate();
1569    
1570    int main() {
1571    gdImageCreate()
1572    ; return 0; }
1573    EOF
1574    if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1575      rm -rf conftest*
1576      ac_cv_gd_needs_png="no"
1577    
1578    else
1579      echo "configure: failed program was:" >&5
1580      cat conftest.$ac_ext >&5
1581      rm -rf conftest*
1582      ac_cv_gd_needs_png="yes"
1583    
1584    fi
1585    rm -f conftest*
1586    fi
1587    
1588    echo "$ac_t""$ac_cv_gd_needs_png" 1>&6
1589    LIBS="${OLIBS}"
1590    
1591    OLIBS="${LIBS}"
1592    LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBPNG} ${LIBZ} ${MATHLIB}"
1593    echo $ac_n "checking "whether libgd needs -ljpeg"""... $ac_c" 1>&6
1594    echo "configure:1595: checking "whether libgd needs -ljpeg"" >&5
1595    if eval "test \"`echo '$''{'ac_cv_gd_needs_jpeg'+set}'`\" = set"; then
1596      echo $ac_n "(cached) $ac_c" 1>&6
1597    else
1598      cat > conftest.$ac_ext <<EOF
1599    #line 1600 "configure"
1600    #include "confdefs.h"
1601    /* Override any gcc2 internal prototype to avoid an error.  */
1602    /* We use char because int might match the return type of a gcc2
1603        builtin and then its argument prototype would still apply.  */
1604    char gdImageCreate();
1605    
1606    int main() {
1607    gdImageCreate()
1608    ; return 0; }
1609    EOF
1610    if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1611      rm -rf conftest*
1612      ac_cv_gd_needs_jpeg="no"
1613    
1614    else
1615      echo "configure: failed program was:" >&5
1616      cat conftest.$ac_ext >&5
1617      rm -rf conftest*
1618      ac_cv_gd_needs_jpeg="yes"
1619    
1620    fi
1621    rm -f conftest*
1622    fi
1623    
1624    echo "$ac_t""$ac_cv_gd_needs_jpeg" 1>&6
1625    LIBS="${OLIBS}"
1626    
1627    OLIBS="${LIBS}"
1628    LIBS="${LIBS} ${LIBFT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}"
1629    echo $ac_n "checking "whether libgd needs -lttf"""... $ac_c" 1>&6
1630    echo "configure:1631: checking "whether libgd needs -lttf"" >&5
1631    if eval "test \"`echo '$''{'ac_cv_gd_needs_ttf'+set}'`\" = set"; then
1632      echo $ac_n "(cached) $ac_c" 1>&6
1633    else
1634      cat > conftest.$ac_ext <<EOF
1635    #line 1636 "configure"
1636    #include "confdefs.h"
1637    /* Override any gcc2 internal prototype to avoid an error.  */
1638    /* We use char because int might match the return type of a gcc2
1639        builtin and then its argument prototype would still apply.  */
1640    char gdImageCreate();
1641    
1642    int main() {
1643    gdImageCreate()
1644    ; return 0; }
1645    EOF
1646    if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1647      rm -rf conftest*
1648      ac_cv_gd_needs_ttf="no"
1649    
1650    else
1651      echo "configure: failed program was:" >&5
1652      cat conftest.$ac_ext >&5
1653      rm -rf conftest*
1654      ac_cv_gd_needs_ttf="yes"
1655    
1656    fi
1657    rm -f conftest*
1658    fi
1659    
1660    echo "$ac_t""$ac_cv_gd_needs_ttf" 1>&6
1661    LIBS="${OLIBS}"
1662    
1663    OLIBS="${LIBS}"
1664    LIBS="${LIBS} ${LIBTT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}"
1665    echo $ac_n "checking "whether libgd needs -lfreetype"""... $ac_c" 1>&6
1666    echo "configure:1667: checking "whether libgd needs -lfreetype"" >&5
1667    if eval "test \"`echo '$''{'ac_cv_gd_needs_freetype'+set}'`\" = set"; then
1668      echo $ac_n "(cached) $ac_c" 1>&6
1669    else
1670      cat > conftest.$ac_ext <<EOF
1671    #line 1672 "configure"
1672    #include "confdefs.h"
1673    /* Override any gcc2 internal prototype to avoid an error.  */
1674    /* We use char because int might match the return type of a gcc2
1675        builtin and then its argument prototype would still apply.  */
1676    char gdImageCreate();
1677    
1678    int main() {
1679    gdImageCreate()
1680    ; return 0; }
1681    EOF
1682    if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1683      rm -rf conftest*
1684      ac_cv_gd_needs_freetype="no"
1685    
1686    else
1687      echo "configure: failed program was:" >&5
1688      cat conftest.$ac_ext >&5
1689      rm -rf conftest*
1690      ac_cv_gd_needs_freetype="yes"
1691    
1692    fi
1693    rm -f conftest*
1694    fi
1695    
1696    echo "$ac_t""$ac_cv_gd_needs_freetype" 1>&6
1697    LIBS="${OLIBS}"
1698    
1699    if test "$ac_cv_gd_needs_freetype" = "yes"
1700  then  then
1701          if test "$have_lib_jpeg" = "no"          if test "$ac_have_libfreetype" != "yes"
1702          then          then
1703                  LIBS="${LIBS} -ljpeg"                  echo "** WARNING: Required library libfreetype not found"
1704          fi          fi
1705          if test "$have_lib_png" = "no"          LIBS="${LIBS} ${LIBFT}"
1706    fi
1707    
1708    if test "$ac_cv_gd_needs_ttf" = "yes"
1709    then
1710            if test "$ac_have_libttf" != "yes"
1711            then
1712                    echo "** WARNING: Required library libttf not found"
1713            fi
1714            LIBS="${LIBS} ${LIBTT}"
1715    fi
1716    
1717    if test "$ac_cv_gd_needs_jpeg" = "yes"
1718    then
1719            if test "$ac_have_libjpeg" != "yes"
1720            then
1721                    echo "** WARNING: Required library libjpeg not found"
1722            fi
1723            LIBS="${LIBS} ${LIBJPEG}"
1724    fi
1725    
1726    if test "$ac_cv_gd_needs_png" = "yes"
1727    then
1728            if test "$ac_have_libpng" != "yes"
1729          then          then
1730                  LIBS="${LIBS} -lpng"                  echo "** WARNING: Required library libpng not found"
1731          fi          fi
1732          if test "$have_lib_z" = "no"          LIBS="${LIBS} ${LIBPNG}"
1733            if test "$ac_cv_png_needs_z" = "yes"
1734          then          then
1735                  LIBS="${LIBS} -lz"                  if test "$ac_have_libz" != "yes"
1736                    then
1737                            echo "** WARNING: Required library libz not found"
1738                    fi
1739                    LIBS="${LIBS} ${LIBZ}"
1740          fi          fi
1741  fi  fi
1742    
1743  LIBS="${LIBS} ${MATHLIBS}"  LIBS="${LIBS} ${MATHLIBS}"
1744    
1745    echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
1746    echo "configure:1747: checking for gdImageGif in -lgd" >&5
1747    ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
1748    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1749      echo $ac_n "(cached) $ac_c" 1>&6
1750    else
1751      ac_save_LIBS="$LIBS"
1752    LIBS="-lgd  $LIBS"
1753    cat > conftest.$ac_ext <<EOF
1754    #line 1755 "configure"
1755    #include "confdefs.h"
1756    /* Override any gcc2 internal prototype to avoid an error.  */
1757    /* We use char because int might match the return type of a gcc2
1758        builtin and then its argument prototype would still apply.  */
1759    char gdImageGif();
1760    
1761    int main() {
1762    gdImageGif()
1763    ; return 0; }
1764    EOF
1765    if { (eval echo configure:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1766      rm -rf conftest*
1767      eval "ac_cv_lib_$ac_lib_var=yes"
1768    else
1769      echo "configure: failed program was:" >&5
1770      cat conftest.$ac_ext >&5
1771      rm -rf conftest*
1772      eval "ac_cv_lib_$ac_lib_var=no"
1773    fi
1774    rm -f conftest*
1775    LIBS="$ac_save_LIBS"
1776    
1777    fi
1778    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1779      echo "$ac_t""yes" 1>&6
1780    
1781            cat >> confdefs.h <<\EOF
1782    #define HAVE_IMAGE_GIF 1
1783    EOF
1784    
1785            have_gifs="yes"
1786    
1787    else
1788      echo "$ac_t""no" 1>&6
1789    have_gifs="no"
1790    
1791    fi
1792    
1793    
1794    if test "${have_gifs}" = "yes"
1795    then
1796            echo "** You have a very old GD library. Please consider"
1797            echo "   upgrading to a more recent version (1.8.4 or newer)."
1798            echo "   --Note that f.x. ViewCVS needs CvsGraph to generate PNG"
1799            echo "     images and ancient GD libraries might contain many bugs."
1800            echo "     However, if you need GIFs, then you must stick to this"
1801            echo "     old version."
1802    fi
1803    
1804  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
1805  echo "configure:1267: checking for gdImagePng in -lgd" >&5  echo "configure:1806: checking for gdImagePng in -lgd" >&5
1806  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
1807  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1808    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1271  Line 1810 
1810    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1811  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1812  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1813  #line 1275 "configure"  #line 1814 "configure"
1814  #include "confdefs.h"  #include "confdefs.h"
1815  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1816  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1282  Line 1821 
1821  gdImagePng()  gdImagePng()
1822  ; return 0; }  ; return 0; }
1823  EOF  EOF
1824  if { (eval echo configure:1286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1825    rm -rf conftest*    rm -rf conftest*
1826    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1827  else  else
# Line 1308  Line 1847 
1847  fi  fi
1848    
1849  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6
1850  echo "configure:1312: checking for gdImageJpeg in -lgd" >&5  echo "configure:1851: checking for gdImageJpeg in -lgd" >&5
1851  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`
1852  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1853    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1316  Line 1855 
1855    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1856  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1857  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1858  #line 1320 "configure"  #line 1859 "configure"
1859  #include "confdefs.h"  #include "confdefs.h"
1860  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1861  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1327  Line 1866 
1866  gdImageJpeg()  gdImageJpeg()
1867  ; return 0; }  ; return 0; }
1868  EOF  EOF
1869  if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1870    rm -rf conftest*    rm -rf conftest*
1871    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1872  else  else
# Line 1353  Line 1892 
1892  fi  fi
1893    
1894  echo $ac_n "checking for gdImageStringTTF in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageStringTTF in -lgd""... $ac_c" 1>&6
1895  echo "configure:1357: checking for gdImageStringTTF in -lgd" >&5  echo "configure:1896: checking for gdImageStringTTF in -lgd" >&5
1896  ac_lib_var=`echo gd'_'gdImageStringTTF | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageStringTTF | sed 'y%./+-%__p_%'`
1897  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1898    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1361  Line 1900 
1900    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1901  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1902  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1903  #line 1365 "configure"  #line 1904 "configure"
1904  #include "confdefs.h"  #include "confdefs.h"
1905  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1906  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1372  Line 1911 
1911  gdImageStringTTF()  gdImageStringTTF()
1912  ; return 0; }  ; return 0; }
1913  EOF  EOF
1914  if { (eval echo configure:1376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1915    rm -rf conftest*    rm -rf conftest*
1916    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1917  else  else
# Line 1398  Line 1937 
1937  fi  fi
1938    
1939  echo $ac_n "checking for gdImageStringFT in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageStringFT in -lgd""... $ac_c" 1>&6
1940  echo "configure:1402: checking for gdImageStringFT in -lgd" >&5  echo "configure:1941: checking for gdImageStringFT in -lgd" >&5
1941  ac_lib_var=`echo gd'_'gdImageStringFT | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageStringFT | sed 'y%./+-%__p_%'`
1942  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1943    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1406  Line 1945 
1945    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1946  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1947  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1948  #line 1410 "configure"  #line 1949 "configure"
1949  #include "confdefs.h"  #include "confdefs.h"
1950  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1951  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1417  Line 1956 
1956  gdImageStringFT()  gdImageStringFT()
1957  ; return 0; }  ; return 0; }
1958  EOF  EOF
1959  if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1960    rm -rf conftest*    rm -rf conftest*
1961    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1962  else  else
# Line 1444  Line 1983 
1983    
1984    
1985    
 ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`  
 echo $ac_n "checking for gd.h""... $ac_c" 1>&6  
 echo "configure:1450: checking for gd.h" >&5  
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   cat > conftest.$ac_ext <<EOF  
 #line 1455 "configure"  
 #include "confdefs.h"  
 #include <gd.h>  
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:1460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
 else  
   echo "$ac_err" >&5  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
 fi  
 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
    have_gd_h="yes"  
 else  
   echo "$ac_t""no" 1>&6  
  have_gd_h="no"  
 fi  
   
   
 if test $have_gd_h != "yes"; then  
 echo  
         echo "** The GD library is required for CvsGraph to function."  
         echo "   Get it from http://www.boutell.com, compile it and"  
         echo "   use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify"  
         echo "   its location. You might also have to use --with-z-inc, --with-z-lib"  
         echo "   and --with-png-inc, --with-png-lib for gd versions 1.6 and higher."  
         echo "   Check config.log for more information on the problem. If your system"  
         echo "   has libgd installed, you probably mis the gd.h header file."  
         exit 1  
 fi  
   
1986    
1987    
1988  trap '' 1 2 15  trap '' 1 2 15

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0