/[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.5, Mon Mar 12 19:50:02 2001 UTC revision 1.9, Sat Jul 20 00:48:16 2002 UTC
# Line 16  Line 16 
16  ac_help="$ac_help  ac_help="$ac_help
17    --with-gd-lib=DIR       location of the gd library"    --with-gd-lib=DIR       location of the gd library"
18  ac_help="$ac_help  ac_help="$ac_help
19    --with-z-inc=DIR        location of zlib includes"    --with-freetype-lib=DIR    location of freetype library"
20  ac_help="$ac_help  ac_help="$ac_help
21    --with-z-lib=DIR        location of zlib library"    --with-freetype2-lib=DIR    location of freetype2 library"
22  ac_help="$ac_help  ac_help="$ac_help
23    --with-png-inc=DIR      location of png includes"    --with-png-inc=DIR      location of png includes"
24  ac_help="$ac_help  ac_help="$ac_help
# Line 28  Line 28 
28  ac_help="$ac_help  ac_help="$ac_help
29    --with-jpeg-lib=DIR    location of jpeg library"    --with-jpeg-lib=DIR    location of jpeg library"
30  ac_help="$ac_help  ac_help="$ac_help
31      --with-z-inc=DIR        location of zlib includes"
32    ac_help="$ac_help
33      --with-z-lib=DIR        location of zlib library"
34    ac_help="$ac_help
35    --disable-speed         Turn off lex table optimization reducing speed and size of executable"    --disable-speed         Turn off lex table optimization reducing speed and size of executable"
36    
37  # Initialize some variables set by options.  # Initialize some variables set by options.
# Line 544  Line 548 
548  # Extract the first word of "gcc", so it can be a program name with args.  # Extract the first word of "gcc", so it can be a program name with args.
549  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
550  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
551  echo "configure:548: checking for $ac_word" >&5  echo "configure:552: checking for $ac_word" >&5
552  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
553    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
554  else  else
# Line 574  Line 578 
578    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
579  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
580  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
581  echo "configure:578: checking for $ac_word" >&5  echo "configure:582: checking for $ac_word" >&5
582  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
583    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
584  else  else
# Line 625  Line 629 
629        # Extract the first word of "cl", so it can be a program name with args.        # Extract the first word of "cl", so it can be a program name with args.
630  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
631  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
632  echo "configure:629: checking for $ac_word" >&5  echo "configure:633: checking for $ac_word" >&5
633  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
634    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
635  else  else
# Line 657  Line 661 
661  fi  fi
662    
663  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
664  echo "configure:661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:665: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
665    
666  ac_ext=c  ac_ext=c
667  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 668  Line 672 
672    
673  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
674    
675  #line 672 "configure"  #line 676 "configure"
676  #include "confdefs.h"  #include "confdefs.h"
677    
678  main(){return(0);}  main(){return(0);}
679  EOF  EOF
680  if { (eval echo configure:677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
681    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
682    # If we can't run a trivial program, we are probably using a cross compiler.    # If we can't run a trivial program, we are probably using a cross compiler.
683    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 699  Line 703 
703    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
704  fi  fi
705  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
706  echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:707: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
707  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
708  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
709    
710  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
711  echo "configure:708: checking whether we are using GNU C" >&5  echo "configure:712: checking whether we are using GNU C" >&5
712  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
713    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
714  else  else
# Line 713  Line 717 
717    yes;    yes;
718  #endif  #endif
719  EOF  EOF
720  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
721    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
722  else  else
723    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 732  Line 736 
736  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
737  CFLAGS=  CFLAGS=
738  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
739  echo "configure:736: checking whether ${CC-cc} accepts -g" >&5  echo "configure:740: checking whether ${CC-cc} accepts -g" >&5
740  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
741    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
742  else  else
# Line 766  Line 770 
770  # Extract the first word of "flex", so it can be a program name with args.  # Extract the first word of "flex", so it can be a program name with args.
771  set dummy flex; ac_word=$2  set dummy flex; ac_word=$2
772  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
773  echo "configure:770: checking for $ac_word" >&5  echo "configure:774: checking for $ac_word" >&5
774  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
775    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
776  else  else
# Line 800  Line 804 
804    *) ac_lib=l ;;    *) ac_lib=l ;;
805    esac    esac
806    echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6    echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
807  echo "configure:804: checking for yywrap in -l$ac_lib" >&5  echo "configure:808: checking for yywrap in -l$ac_lib" >&5
808  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
809  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
810    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 808  Line 812 
812    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
813  LIBS="-l$ac_lib  $LIBS"  LIBS="-l$ac_lib  $LIBS"
814  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
815  #line 812 "configure"  #line 816 "configure"
816  #include "confdefs.h"  #include "confdefs.h"
817  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
818  /* 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 819  Line 823 
823  yywrap()  yywrap()
824  ; return 0; }  ; return 0; }
825  EOF  EOF
826  if { (eval echo configure:823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
827    rm -rf conftest*    rm -rf conftest*
828    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
829  else  else
# Line 846  Line 850 
850  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
851  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
852  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
853  echo "configure:850: checking for $ac_word" >&5  echo "configure:854: checking for $ac_word" >&5
854  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
855    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
856  else  else
# Line 898  Line 902 
902    
903    
904  LIBS="$LIBS -lgd"  LIBS="$LIBS -lgd"
905    LIBPATH=""
906    
907  # Check whether --with-z-inc or --without-z-inc was given.  # Check whether --with-freetype-lib or --without-freetype-lib was given.
908  if test "${with_z_inc+set}" = set; then  if test "${with_freetype_lib+set}" = set; then
909    withval="$with_z_inc"    withval="$with_freetype_lib"
910    INCL="${INCL} -I${withval}"    LIBS="${LIBS} -L${withval}"
911    
912  fi  fi
913    
914    
915  # Check whether --with-z-lib or --without-z-lib was given.  # Check whether --with-freetype2-lib or --without-freetype2-lib was given.
916  if test "${with_z_lib+set}" = set; then  if test "${with_freetype2_lib+set}" = set; then
917    withval="$with_z_lib"    withval="$with_freetype2_lib"
918    LIBS="${LIBS} -L${withval} -lz"    LIBS="${LIBS} -L${withval}"
919    
920  fi  fi
921    
# Line 926  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}"
935    
936  fi  fi
937    
# Line 942  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}"
951    
952    fi
953    
954    
955    # Check whether --with-z-inc or --without-z-inc was given.
956    if test "${with_z_inc+set}" = set; then
957      withval="$with_z_inc"
958      INCL="${INCL} -I${withval}"
959    
960    fi
961    
962    
963    # Check whether --with-z-lib or --without-z-lib was given.
964    if test "${with_z_lib+set}" = set; then
965      withval="$with_z_lib"
966      LIBS="${LIBS} -L${withval}"
967    
968  fi  fi
969    
# Line 966  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:970: 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 974  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 978 "configure"  #line 999 "configure"
999  #include "confdefs.h"  #include "confdefs.h"
1000    
1001  int main(void) {  int main(void) {
# Line 985  Line 1006 
1006    exit( Array[1] != -2 );    exit( Array[1] != -2 );
1007  }  }
1008  EOF  EOF
1009  if { (eval echo configure:989: \"$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 1006  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
1073    echo "configure:1074: checking how to run the C preprocessor" >&5
1074    # On Suns, sometimes $CPP names a directory.
1075    if test -n "$CPP" && test -d "$CPP"; then
1076      CPP=
1077    fi
1078    if test -z "$CPP"; then
1079    if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1080      echo $ac_n "(cached) $ac_c" 1>&6
1081    else
1082        # This must be in double quotes, not single quotes, because CPP may get
1083      # substituted into the Makefile and "${CC-cc}" will confuse make.
1084      CPP="${CC-cc} -E"
1085      # On the NeXT, cc -E runs the code through the compiler's parser,
1086      # not just through cpp.
1087      cat > conftest.$ac_ext <<EOF
1088    #line 1089 "configure"
1089    #include "confdefs.h"
1090    #include <assert.h>
1091    Syntax Error
1092    EOF
1093    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1094    { (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}\$"`
1096    if test -z "$ac_err"; then
1097      :
1098    else
1099      echo "$ac_err" >&5
1100      echo "configure: failed program was:" >&5
1101      cat conftest.$ac_ext >&5
1102      rm -rf conftest*
1103      CPP="${CC-cc} -E -traditional-cpp"
1104      cat > conftest.$ac_ext <<EOF
1105    #line 1106 "configure"
1106    #include "confdefs.h"
1107    #include <assert.h>
1108    Syntax Error
1109    EOF
1110    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1111    { (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}\$"`
1113    if test -z "$ac_err"; then
1114      :
1115    else
1116      echo "$ac_err" >&5
1117      echo "configure: failed program was:" >&5
1118      cat conftest.$ac_ext >&5
1119      rm -rf conftest*
1120      CPP="${CC-cc} -nologo -E"
1121      cat > conftest.$ac_ext <<EOF
1122    #line 1123 "configure"
1123    #include "confdefs.h"
1124    #include <assert.h>
1125    Syntax Error
1126    EOF
1127    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1128    { (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}\$"`
1130    if test -z "$ac_err"; then
1131      :
1132    else
1133      echo "$ac_err" >&5
1134      echo "configure: failed program was:" >&5
1135      cat conftest.$ac_ext >&5
1136      rm -rf conftest*
1137      CPP=/lib/cpp
1138    fi
1139    rm -f conftest*
1140    fi
1141    rm -f conftest*
1142    fi
1143    rm -f conftest*
1144      ac_cv_prog_CPP="$CPP"
1145    fi
1146      CPP="$ac_cv_prog_CPP"
1147    else
1148      ac_cv_prog_CPP="$CPP"
1149    fi
1150    echo "$ac_t""$CPP" 1>&6
1151    
1152    ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`
1153    echo $ac_n "checking for getopt.h""... $ac_c" 1>&6
1154    echo "configure:1155: checking for getopt.h" >&5
1155    if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1156      echo $ac_n "(cached) $ac_c" 1>&6
1157    else
1158      cat > conftest.$ac_ext <<EOF
1159    #line 1160 "configure"
1160    #include "confdefs.h"
1161    #include <getopt.h>
1162    EOF
1163    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1164    { (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}\$"`
1166    if test -z "$ac_err"; then
1167      rm -rf conftest*
1168      eval "ac_cv_header_$ac_safe=yes"
1169    else
1170      echo "$ac_err" >&5
1171      echo "configure: failed program was:" >&5
1172      cat conftest.$ac_ext >&5
1173      rm -rf conftest*
1174      eval "ac_cv_header_$ac_safe=no"
1175    fi
1176    rm -f conftest*
1177    fi
1178    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1179      echo "$ac_t""yes" 1>&6
1180       cat >> confdefs.h <<\EOF
1181    #define HAVE_GETOPT_H 1
1182    EOF
1183    
1184    else
1185      echo "$ac_t""no" 1>&6
1186    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:1012: 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 1016  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 1020 "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 1027  Line 1253 
1253  sqrt()  sqrt()
1254  ; return 0; }  ; return 0; }
1255  EOF  EOF
1256  if { (eval echo configure:1031: \"$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 1047  Line 1273 
1273  #define LIBM 1  #define LIBM 1
1274  EOF  EOF
1275    
1276          MATHLIBS="-lm"          MATHLIBS="-lm"
1277    
1278  else  else
1279    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
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:1058: 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  $LIBS"  LIBS="-lz ${LIBPATH} ${MATHLIBS}  $LIBS"
1291  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1292  #line 1066 "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:1077: \"$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 1089  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  EOF  
   
   
1322  else  else
1323    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1324    
1325            ac_have_libz="no"
1326    
1327  fi  fi
1328    
1329  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6  
1330  echo "configure:1103: checking for gdImagePng in -lgd" >&5  echo $ac_n "checking for FT_Load_Glyph in -lfreetype""... $ac_c" 1>&6
1331  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`  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  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1334    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1335  else  else
1336    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1337  LIBS="-lgd  $LIBS"  LIBS="-lfreetype ${LIBPATH} ${MATHLIBS}  $LIBS"
1338  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1339  #line 1111 "configure"  #line 1340 "configure"
1340  #include "confdefs.h"  #include "confdefs.h"
1341  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1342  /* 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
1343      builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
1344  char gdImagePng();  char FT_Load_Glyph();
1345    
1346  int main() {  int main() {
1347  gdImagePng()  FT_Load_Glyph()
1348  ; return 0; }  ; return 0; }
1349  EOF  EOF
1350  if { (eval echo configure:1122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1351    rm -rf conftest*    rm -rf conftest*
1352    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1353  else  else
# Line 1134  Line 1363 
1363  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1364    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1365    
1366          cat >> confdefs.h <<\EOF          ac_have_libfreetype="yes"
1367  #define HAVE_IMAGE_PNG 1          LIBFT="-lfreetype"
1368  EOF  
   
   
1369  else  else
1370    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1371    
1372            ac_have_libfreetype="no"
1373    
1374  fi  fi
1375    
1376  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6  
1377  echo "configure:1148: checking for gdImageJpeg in -lgd" >&5  echo $ac_n "checking for TT_Load_Glyph in -lttf""... $ac_c" 1>&6
1378  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`  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  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1381    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1382  else  else
1383    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1384  LIBS="-lgd  $LIBS"  LIBS="-lttf ${LIBPATH} ${MATHLIBS}  $LIBS"
1385  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1386  #line 1156 "configure"  #line 1387 "configure"
1387  #include "confdefs.h"  #include "confdefs.h"
1388  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1389  /* 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
1390      builtin and then its argument prototype would still apply.  */      builtin and then its argument prototype would still apply.  */
1391  char gdImageJpeg();  char TT_Load_Glyph();
1392    
1393  int main() {  int main() {
1394  gdImageJpeg()  TT_Load_Glyph()
1395  ; return 0; }  ; return 0; }
1396  EOF  EOF
1397  if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1398    rm -rf conftest*    rm -rf conftest*
1399    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1400  else  else
# Line 1179  Line 1410 
1410  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1411    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1412    
1413          cat >> confdefs.h <<\EOF          ac_have_libttf="yes"
1414  #define HAVE_IMAGE_JPEG 1          LIBTT="-lttf"
1415  EOF  
   
   
1416  else  else
1417    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
 fi  
1418    
1419            ac_have_libttf="no"
1420    
1421    fi
1422    
1423    
1424  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo $ac_n "checking for png_create_read_struct  in -lpng""... $ac_c" 1>&6
1425  echo "configure:1195: checking how to run the C preprocessor" >&5  echo "configure:1426: checking for png_create_read_struct  in -lpng" >&5
1426  # On Suns, sometimes $CPP names a directory.  ac_lib_var=`echo png'_'png_create_read_struct  | sed 'y%./+-%__p_%'`
1427  if test -n "$CPP" && test -d "$CPP"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   CPP=  
 fi  
 if test -z "$CPP"; then  
 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then  
1428    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1429  else  else
1430      # This must be in double quotes, not single quotes, because CPP may get    ac_save_LIBS="$LIBS"
1431    # substituted into the Makefile and "${CC-cc}" will confuse make.  LIBS="-lpng ${LIBPATH} ${ZLIB} ${MATHLIBS}  $LIBS"
1432    CPP="${CC-cc} -E"  cat > conftest.$ac_ext <<EOF
1433    # On the NeXT, cc -E runs the code through the compiler's parser,  #line 1434 "configure"
   # not just through cpp.  
   cat > conftest.$ac_ext <<EOF  
 #line 1210 "configure"  
1434  #include "confdefs.h"  #include "confdefs.h"
1435  #include <assert.h>  /* Override any gcc2 internal prototype to avoid an error.  */
1436  Syntax Error  /* 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  EOF
1444  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1445  { (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    rm -rf conftest*
1446  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    eval "ac_cv_lib_$ac_lib_var=yes"
 if test -z "$ac_err"; then  
   :  
1447  else  else
   echo "$ac_err" >&5  
1448    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
1449    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
1450    rm -rf conftest*    rm -rf conftest*
1451    CPP="${CC-cc} -E -traditional-cpp"    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    cat > conftest.$ac_ext <<EOF
1526  #line 1227 "configure"  #line 1527 "configure"
1527  #include "confdefs.h"  #include "confdefs.h"
1528  #include <assert.h>  /* Override any gcc2 internal prototype to avoid an error.  */
1529  Syntax Error  /* 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  EOF
1537  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1538  { (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    rm -rf conftest*
1539  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_cv_png_needs_z="no"
1540  if test -z "$ac_err"; then  
   :  
1541  else  else
   echo "$ac_err" >&5  
1542    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
1543    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
1544    rm -rf conftest*    rm -rf conftest*
1545    CPP="${CC-cc} -nologo -E"    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    cat > conftest.$ac_ext <<EOF
1563  #line 1244 "configure"  #line 1564 "configure"
1564  #include "confdefs.h"  #include "confdefs.h"
1565  #include <assert.h>  /* Override any gcc2 internal prototype to avoid an error.  */
1566  Syntax Error  /* 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  EOF
1574  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1575  { (eval echo configure:1250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    rm -rf conftest*
1576  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_cv_gd_needs_png="no"
1577  if test -z "$ac_err"; then  
   :  
1578  else  else
   echo "$ac_err" >&5  
1579    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
1580    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
1581    rm -rf conftest*    rm -rf conftest*
1582    CPP=/lib/cpp    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
1701            if test "$ac_have_libfreetype" != "yes"
1702            then
1703                    echo "** WARNING: Required library libfreetype not found"
1704            fi
1705            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
1730                    echo "** WARNING: Required library libpng not found"
1731            fi
1732            LIBS="${LIBS} ${LIBPNG}"
1733            if test "$ac_cv_png_needs_z" = "yes"
1734            then
1735                    if test "$ac_have_libz" != "yes"
1736                    then
1737                            echo "** WARNING: Required library libz not found"
1738                    fi
1739                    LIBS="${LIBS} ${LIBZ}"
1740            fi
1741    fi
1742    
1743    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  fi
1774  rm -f conftest*  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
1805    echo "configure:1806: checking for gdImagePng in -lgd" >&5
1806    ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
1807    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1808      echo $ac_n "(cached) $ac_c" 1>&6
1809    else
1810      ac_save_LIBS="$LIBS"
1811    LIBS="-lgd  $LIBS"
1812    cat > conftest.$ac_ext <<EOF
1813    #line 1814 "configure"
1814    #include "confdefs.h"
1815    /* Override any gcc2 internal prototype to avoid an error.  */
1816    /* We use char because int might match the return type of a gcc2
1817        builtin and then its argument prototype would still apply.  */
1818    char gdImagePng();
1819    
1820    int main() {
1821    gdImagePng()
1822    ; return 0; }
1823    EOF
1824    if { (eval echo configure:1825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1825      rm -rf conftest*
1826      eval "ac_cv_lib_$ac_lib_var=yes"
1827    else
1828      echo "configure: failed program was:" >&5
1829      cat conftest.$ac_ext >&5
1830      rm -rf conftest*
1831      eval "ac_cv_lib_$ac_lib_var=no"
1832  fi  fi
1833  rm -f conftest*  rm -f conftest*
1834    LIBS="$ac_save_LIBS"
1835    
1836    fi
1837    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1838      echo "$ac_t""yes" 1>&6
1839    
1840            cat >> confdefs.h <<\EOF
1841    #define HAVE_IMAGE_PNG 1
1842    EOF
1843    
1844    
1845    else
1846      echo "$ac_t""no" 1>&6
1847    fi
1848    
1849    echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6
1850    echo "configure:1851: checking for gdImageJpeg in -lgd" >&5
1851    ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`
1852    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1853      echo $ac_n "(cached) $ac_c" 1>&6
1854    else
1855      ac_save_LIBS="$LIBS"
1856    LIBS="-lgd  $LIBS"
1857    cat > conftest.$ac_ext <<EOF
1858    #line 1859 "configure"
1859    #include "confdefs.h"
1860    /* Override any gcc2 internal prototype to avoid an error.  */
1861    /* We use char because int might match the return type of a gcc2
1862        builtin and then its argument prototype would still apply.  */
1863    char gdImageJpeg();
1864    
1865    int main() {
1866    gdImageJpeg()
1867    ; return 0; }
1868    EOF
1869    if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1870      rm -rf conftest*
1871      eval "ac_cv_lib_$ac_lib_var=yes"
1872    else
1873      echo "configure: failed program was:" >&5
1874      cat conftest.$ac_ext >&5
1875      rm -rf conftest*
1876      eval "ac_cv_lib_$ac_lib_var=no"
1877  fi  fi
1878  rm -f conftest*  rm -f conftest*
1879    ac_cv_prog_CPP="$CPP"  LIBS="$ac_save_LIBS"
1880    
1881  fi  fi
1882    CPP="$ac_cv_prog_CPP"  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1883      echo "$ac_t""yes" 1>&6
1884    
1885            cat >> confdefs.h <<\EOF
1886    #define HAVE_IMAGE_JPEG 1
1887    EOF
1888    
1889    
1890  else  else
1891    ac_cv_prog_CPP="$CPP"    echo "$ac_t""no" 1>&6
1892  fi  fi
 echo "$ac_t""$CPP" 1>&6  
1893    
1894  ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`  echo $ac_n "checking for gdImageStringTTF in -lgd""... $ac_c" 1>&6
1895  echo $ac_n "checking for gd.h""... $ac_c" 1>&6  echo "configure:1896: checking for gdImageStringTTF in -lgd" >&5
1896  echo "configure:1276: checking for gd.h" >&5  ac_lib_var=`echo gd'_'gdImageStringTTF | sed 'y%./+-%__p_%'`
1897  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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
1899  else  else
1900    cat > conftest.$ac_ext <<EOF    ac_save_LIBS="$LIBS"
1901  #line 1281 "configure"  LIBS="-lgd  $LIBS"
1902    cat > conftest.$ac_ext <<EOF
1903    #line 1904 "configure"
1904  #include "confdefs.h"  #include "confdefs.h"
1905  #include <gd.h>  /* Override any gcc2 internal prototype to avoid an error.  */
1906    /* We use char because int might match the return type of a gcc2
1907        builtin and then its argument prototype would still apply.  */
1908    char gdImageStringTTF();
1909    
1910    int main() {
1911    gdImageStringTTF()
1912    ; return 0; }
1913  EOF  EOF
1914  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 { (eval echo configure:1286: \"$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  
1915    rm -rf conftest*    rm -rf conftest*
1916    eval "ac_cv_header_$ac_safe=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1917  else  else
   echo "$ac_err" >&5  
1918    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
1919    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
1920    rm -rf conftest*    rm -rf conftest*
1921    eval "ac_cv_header_$ac_safe=no"    eval "ac_cv_lib_$ac_lib_var=no"
1922  fi  fi
1923  rm -f conftest*  rm -f conftest*
1924    LIBS="$ac_save_LIBS"
1925    
1926  fi  fi
1927  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1928    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1929     have_gd_h="yes"  
1930            cat >> confdefs.h <<\EOF
1931    #define HAVE_GDIMAGESTRINGTTF 1
1932    EOF
1933    
1934    
1935  else  else
1936    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
  have_gd_h="no"  
1937  fi  fi
1938    
1939    echo $ac_n "checking for gdImageStringFT in -lgd""... $ac_c" 1>&6
1940    echo "configure:1941: checking for gdImageStringFT in -lgd" >&5
1941    ac_lib_var=`echo gd'_'gdImageStringFT | sed 'y%./+-%__p_%'`
1942    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1943      echo $ac_n "(cached) $ac_c" 1>&6
1944    else
1945      ac_save_LIBS="$LIBS"
1946    LIBS="-lgd  $LIBS"
1947    cat > conftest.$ac_ext <<EOF
1948    #line 1949 "configure"
1949    #include "confdefs.h"
1950    /* Override any gcc2 internal prototype to avoid an error.  */
1951    /* We use char because int might match the return type of a gcc2
1952        builtin and then its argument prototype would still apply.  */
1953    char gdImageStringFT();
1954    
1955    int main() {
1956    gdImageStringFT()
1957    ; return 0; }
1958    EOF
1959    if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1960      rm -rf conftest*
1961      eval "ac_cv_lib_$ac_lib_var=yes"
1962    else
1963      echo "configure: failed program was:" >&5
1964      cat conftest.$ac_ext >&5
1965      rm -rf conftest*
1966      eval "ac_cv_lib_$ac_lib_var=no"
1967    fi
1968    rm -f conftest*
1969    LIBS="$ac_save_LIBS"
1970    
 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  
1971  fi  fi
1972    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1973      echo "$ac_t""yes" 1>&6
1974    
1975            cat >> confdefs.h <<\EOF
1976    #define HAVE_GDIMAGESTRINGFT 1
1977    EOF
1978    
1979    
1980    else
1981      echo "$ac_t""no" 1>&6
1982    fi
1983    
1984    
1985    
1986    
1987    

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

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0