/[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.8, Wed Jun 19 14:47:55 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    have_lib_png="no"
906  # Check whether --with-z-inc or --without-z-inc was given.  have_lib_z="no"
907  if test "${with_z_inc+set}" = set; then  have_lib_jpeg="no"
908    withval="$with_z_inc"  
909    INCL="${INCL} -I${withval}"  # Check whether --with-freetype-lib or --without-freetype-lib was given.
910    if test "${with_freetype_lib+set}" = set; then
911      withval="$with_freetype_lib"
912      LIBS="${LIBS} -L${withval} -lttf"
913    
914  fi  fi
915    
916    
917  # Check whether --with-z-lib or --without-z-lib was given.  # Check whether --with-freetype2-lib or --without-freetype2-lib was given.
918  if test "${with_z_lib+set}" = set; then  if test "${with_freetype2_lib+set}" = set; then
919    withval="$with_z_lib"    withval="$with_freetype2_lib"
920    LIBS="${LIBS} -L${withval} -lz"    LIBS="${LIBS} -L${withval} -lfreetype"
921    
922  fi  fi
923    
# Line 927  Line 934 
934  if test "${with_png_lib+set}" = set; then  if test "${with_png_lib+set}" = set; then
935    withval="$with_png_lib"    withval="$with_png_lib"
936    LIBS="${LIBS} -L${withval} -lpng"    LIBS="${LIBS} -L${withval} -lpng"
937                     have_lib_png="yes"
938    
939  fi  fi
940    
# Line 943  Line 951 
951  if test "${with_jpeg_lib+set}" = set; then  if test "${with_jpeg_lib+set}" = set; then
952    withval="$with_jpeg_lib"    withval="$with_jpeg_lib"
953    LIBS="${LIBS} -L${withval} -ljpeg"    LIBS="${LIBS} -L${withval} -ljpeg"
954                     have_lib_jpeg="yes"
955    
956    fi
957    
958    
959    # Check whether --with-z-inc or --without-z-inc was given.
960    if test "${with_z_inc+set}" = set; then
961      withval="$with_z_inc"
962      INCL="${INCL} -I${withval}"
963    
964    fi
965    
966    
967    # Check whether --with-z-lib or --without-z-lib was given.
968    if test "${with_z_lib+set}" = set; then
969      withval="$with_z_lib"
970      LIBS="${LIBS} -L${withval} -lz"
971                     have_lib_z="yes"
972    
973  fi  fi
974    
# Line 966  Line 992 
992  then  then
993    CFLAGS="$CFLAGS -Wall"    CFLAGS="$CFLAGS -Wall"
994    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
995  echo "configure:970: checking "for gcc strength-reduce bug"" >&5  echo "configure:996: checking "for gcc strength-reduce bug"" >&5
996  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
997    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
998  else  else
# Line 974  Line 1000 
1000    ac_cv_c_gcc_strength_bug="yes"    ac_cv_c_gcc_strength_bug="yes"
1001  else  else
1002    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1003  #line 978 "configure"  #line 1004 "configure"
1004  #include "confdefs.h"  #include "confdefs.h"
1005    
1006  int main(void) {  int main(void) {
# Line 985  Line 1011 
1011    exit( Array[1] != -2 );    exit( Array[1] != -2 );
1012  }  }
1013  EOF  EOF
1014  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:1015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1015  then  then
1016    ac_cv_c_gcc_strength_bug="no"    ac_cv_c_gcc_strength_bug="no"
1017  else  else
# Line 1006  Line 1032 
1032    fi    fi
1033  fi  fi
1034    
1035    echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1036    echo "configure:1037: checking how to run the C preprocessor" >&5
1037    # On Suns, sometimes $CPP names a directory.
1038    if test -n "$CPP" && test -d "$CPP"; then
1039      CPP=
1040    fi
1041    if test -z "$CPP"; then
1042    if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1043      echo $ac_n "(cached) $ac_c" 1>&6
1044    else
1045        # This must be in double quotes, not single quotes, because CPP may get
1046      # substituted into the Makefile and "${CC-cc}" will confuse make.
1047      CPP="${CC-cc} -E"
1048      # On the NeXT, cc -E runs the code through the compiler's parser,
1049      # not just through cpp.
1050      cat > conftest.$ac_ext <<EOF
1051    #line 1052 "configure"
1052    #include "confdefs.h"
1053    #include <assert.h>
1054    Syntax Error
1055    EOF
1056    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1057    { (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1058    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1059    if test -z "$ac_err"; then
1060      :
1061    else
1062      echo "$ac_err" >&5
1063      echo "configure: failed program was:" >&5
1064      cat conftest.$ac_ext >&5
1065      rm -rf conftest*
1066      CPP="${CC-cc} -E -traditional-cpp"
1067      cat > conftest.$ac_ext <<EOF
1068    #line 1069 "configure"
1069    #include "confdefs.h"
1070    #include <assert.h>
1071    Syntax Error
1072    EOF
1073    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1074    { (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1075    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1076    if test -z "$ac_err"; then
1077      :
1078    else
1079      echo "$ac_err" >&5
1080      echo "configure: failed program was:" >&5
1081      cat conftest.$ac_ext >&5
1082      rm -rf conftest*
1083      CPP="${CC-cc} -nologo -E"
1084      cat > conftest.$ac_ext <<EOF
1085    #line 1086 "configure"
1086    #include "confdefs.h"
1087    #include <assert.h>
1088    Syntax Error
1089    EOF
1090    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1091    { (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1092    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1093    if test -z "$ac_err"; then
1094      :
1095    else
1096      echo "$ac_err" >&5
1097      echo "configure: failed program was:" >&5
1098      cat conftest.$ac_ext >&5
1099      rm -rf conftest*
1100      CPP=/lib/cpp
1101    fi
1102    rm -f conftest*
1103    fi
1104    rm -f conftest*
1105    fi
1106    rm -f conftest*
1107      ac_cv_prog_CPP="$CPP"
1108    fi
1109      CPP="$ac_cv_prog_CPP"
1110    else
1111      ac_cv_prog_CPP="$CPP"
1112    fi
1113    echo "$ac_t""$CPP" 1>&6
1114    
1115    ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`
1116    echo $ac_n "checking for getopt.h""... $ac_c" 1>&6
1117    echo "configure:1118: checking for getopt.h" >&5
1118    if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1119      echo $ac_n "(cached) $ac_c" 1>&6
1120    else
1121      cat > conftest.$ac_ext <<EOF
1122    #line 1123 "configure"
1123    #include "confdefs.h"
1124    #include <getopt.h>
1125    EOF
1126    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1127    { (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1128    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1129    if test -z "$ac_err"; then
1130      rm -rf conftest*
1131      eval "ac_cv_header_$ac_safe=yes"
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      eval "ac_cv_header_$ac_safe=no"
1138    fi
1139    rm -f conftest*
1140    fi
1141    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1142      echo "$ac_t""yes" 1>&6
1143       cat >> confdefs.h <<\EOF
1144    #define HAVE_GETOPT_H 1
1145    EOF
1146    
1147    else
1148      echo "$ac_t""no" 1>&6
1149    fi
1150    
1151    
1152  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
1153  echo "configure:1012: checking for sqrt in -lm" >&5  echo "configure:1154: checking for sqrt in -lm" >&5
1154  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
1155  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
1156    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1016  Line 1158 
1158    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1159  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
1160  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1161  #line 1020 "configure"  #line 1162 "configure"
1162  #include "confdefs.h"  #include "confdefs.h"
1163  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1164  /* 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 1169 
1169  sqrt()  sqrt()
1170  ; return 0; }  ; return 0; }
1171  EOF  EOF
1172  if { (eval echo configure:1031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1173    rm -rf conftest*    rm -rf conftest*
1174    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1175  else  else
# Line 1047  Line 1189 
1189  #define LIBM 1  #define LIBM 1
1190  EOF  EOF
1191    
1192          MATHLIBS="-lm"          MATHLIBS="-lm"
1193    
1194  else  else
1195    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1196  fi  fi
1197    
1198    
1199  echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
1200  echo "configure:1058: checking for gdImageGif in -lgd" >&5  echo "configure:1201: checking for gdImageGif in -lgd" >&5
1201  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
1202  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
1203    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1204  else  else
1205    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1206  LIBS="-lgd  $LIBS"  LIBS="-lgd $MATHLIBS  $LIBS"
1207  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1208  #line 1066 "configure"  #line 1209 "configure"
1209  #include "confdefs.h"  #include "confdefs.h"
1210  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1211  /* 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 1073  Line 1216 
1216  gdImageGif()  gdImageGif()
1217  ; return 0; }  ; return 0; }
1218  EOF  EOF
1219  if { (eval echo configure:1077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1220    rm -rf conftest*    rm -rf conftest*
1221    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1222  else  else
# Line 1094  Line 1237 
1237  EOF  EOF
1238    
1239    
1240            have_gifs="yes"
1241  else  else
1242    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1243    have_gifs="no"
1244    fi
1245    
1246    
1247    if test "$have_gifs" = "no"
1248    then
1249            if test "$have_lib_jpeg" = "no"
1250            then
1251                    LIBS="${LIBS} -ljpeg"
1252            fi
1253            if test "$have_lib_png" = "no"
1254            then
1255                    LIBS="${LIBS} -lpng"
1256            fi
1257            if test "$have_lib_z" = "no"
1258            then
1259                    LIBS="${LIBS} -lz"
1260            fi
1261  fi  fi
1262    
1263    LIBS="${LIBS} ${MATHLIBS}"
1264    
1265  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
1266  echo "configure:1103: checking for gdImagePng in -lgd" >&5  echo "configure:1267: checking for gdImagePng in -lgd" >&5
1267  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
1268  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
1269    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1107  Line 1271 
1271    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1272  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1273  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1274  #line 1111 "configure"  #line 1275 "configure"
1275  #include "confdefs.h"  #include "confdefs.h"
1276  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1277  /* 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 1118  Line 1282 
1282  gdImagePng()  gdImagePng()
1283  ; return 0; }  ; return 0; }
1284  EOF  EOF
1285  if { (eval echo configure:1122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1286    rm -rf conftest*    rm -rf conftest*
1287    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1288  else  else
# Line 1144  Line 1308 
1308  fi  fi
1309    
1310  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6
1311  echo "configure:1148: checking for gdImageJpeg in -lgd" >&5  echo "configure:1312: checking for gdImageJpeg in -lgd" >&5
1312  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`
1313  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
1314    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1152  Line 1316 
1316    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1317  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1318  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1319  #line 1156 "configure"  #line 1320 "configure"
1320  #include "confdefs.h"  #include "confdefs.h"
1321  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1322  /* 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 1163  Line 1327 
1327  gdImageJpeg()  gdImageJpeg()
1328  ; return 0; }  ; return 0; }
1329  EOF  EOF
1330  if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1331    rm -rf conftest*    rm -rf conftest*
1332    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1333  else  else
# Line 1188  Line 1352 
1352    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1353  fi  fi
1354    
1355    echo $ac_n "checking for gdImageStringTTF in -lgd""... $ac_c" 1>&6
1356    echo "configure:1357: checking for gdImageStringTTF in -lgd" >&5
1357  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  ac_lib_var=`echo gd'_'gdImageStringTTF | sed 'y%./+-%__p_%'`
1358  echo "configure:1195: checking how to run the C preprocessor" >&5  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 # On Suns, sometimes $CPP names a directory.  
 if test -n "$CPP" && test -d "$CPP"; then  
   CPP=  
 fi  
 if test -z "$CPP"; then  
 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then  
1359    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1360  else  else
1361      # This must be in double quotes, not single quotes, because CPP may get    ac_save_LIBS="$LIBS"
1362    # substituted into the Makefile and "${CC-cc}" will confuse make.  LIBS="-lgd  $LIBS"
1363    CPP="${CC-cc} -E"  cat > conftest.$ac_ext <<EOF
1364    # On the NeXT, cc -E runs the code through the compiler's parser,  #line 1365 "configure"
   # not just through cpp.  
   cat > conftest.$ac_ext <<EOF  
 #line 1210 "configure"  
1365  #include "confdefs.h"  #include "confdefs.h"
1366  #include <assert.h>  /* Override any gcc2 internal prototype to avoid an error.  */
1367  Syntax Error  /* We use char because int might match the return type of a gcc2
1368        builtin and then its argument prototype would still apply.  */
1369    char gdImageStringTTF();
1370    
1371    int main() {
1372    gdImageStringTTF()
1373    ; return 0; }
1374  EOF  EOF
1375  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo configure:1376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1376  { (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    rm -rf conftest*
1377  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  
   :  
1378  else  else
   echo "$ac_err" >&5  
1379    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
1380    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
1381    rm -rf conftest*    rm -rf conftest*
1382    CPP="${CC-cc} -E -traditional-cpp"    eval "ac_cv_lib_$ac_lib_var=no"
1383    cat > conftest.$ac_ext <<EOF  fi
1384  #line 1227 "configure"  rm -f conftest*
1385  #include "confdefs.h"  LIBS="$ac_save_LIBS"
1386  #include <assert.h>  
1387  Syntax Error  fi
1388    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1389      echo "$ac_t""yes" 1>&6
1390    
1391            cat >> confdefs.h <<\EOF
1392    #define HAVE_GDIMAGESTRINGTTF 1
1393  EOF  EOF
1394  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
1395  { (eval echo configure:1233: \"$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  
   :  
1396  else  else
1397    echo "$ac_err" >&5    echo "$ac_t""no" 1>&6
1398    echo "configure: failed program was:" >&5  fi
1399    cat conftest.$ac_ext >&5  
1400    rm -rf conftest*  echo $ac_n "checking for gdImageStringFT in -lgd""... $ac_c" 1>&6
1401    CPP="${CC-cc} -nologo -E"  echo "configure:1402: checking for gdImageStringFT in -lgd" >&5
1402    cat > conftest.$ac_ext <<EOF  ac_lib_var=`echo gd'_'gdImageStringFT | sed 'y%./+-%__p_%'`
1403  #line 1244 "configure"  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1404      echo $ac_n "(cached) $ac_c" 1>&6
1405    else
1406      ac_save_LIBS="$LIBS"
1407    LIBS="-lgd  $LIBS"
1408    cat > conftest.$ac_ext <<EOF
1409    #line 1410 "configure"
1410  #include "confdefs.h"  #include "confdefs.h"
1411  #include <assert.h>  /* Override any gcc2 internal prototype to avoid an error.  */
1412  Syntax Error  /* We use char because int might match the return type of a gcc2
1413        builtin and then its argument prototype would still apply.  */
1414    char gdImageStringFT();
1415    
1416    int main() {
1417    gdImageStringFT()
1418    ; return 0; }
1419  EOF  EOF
1420  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1421  { (eval echo configure:1250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    rm -rf conftest*
1422  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  
   :  
1423  else  else
   echo "$ac_err" >&5  
1424    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
1425    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
1426    rm -rf conftest*    rm -rf conftest*
1427    CPP=/lib/cpp    eval "ac_cv_lib_$ac_lib_var=no"
 fi  
 rm -f conftest*  
 fi  
 rm -f conftest*  
1428  fi  fi
1429  rm -f conftest*  rm -f conftest*
1430    ac_cv_prog_CPP="$CPP"  LIBS="$ac_save_LIBS"
1431    
1432  fi  fi
1433    CPP="$ac_cv_prog_CPP"  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1434      echo "$ac_t""yes" 1>&6
1435    
1436            cat >> confdefs.h <<\EOF
1437    #define HAVE_GDIMAGESTRINGFT 1
1438    EOF
1439    
1440    
1441  else  else
1442    ac_cv_prog_CPP="$CPP"    echo "$ac_t""no" 1>&6
1443  fi  fi
1444  echo "$ac_t""$CPP" 1>&6  
1445    
1446    
1447  ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`
1448  echo $ac_n "checking for gd.h""... $ac_c" 1>&6  echo $ac_n "checking for gd.h""... $ac_c" 1>&6
1449  echo "configure:1276: checking for gd.h" >&5  echo "configure:1450: checking for gd.h" >&5
1450  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1451    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1452  else  else
1453    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1454  #line 1281 "configure"  #line 1455 "configure"
1455  #include "confdefs.h"  #include "confdefs.h"
1456  #include <gd.h>  #include <gd.h>
1457  EOF  EOF
1458  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1459  { (eval echo configure:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1460  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1461  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1462    rm -rf conftest*    rm -rf conftest*

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

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0