/[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.7, Wed Jan 9 00:28:36 2002 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-freetype-lib=DIR    location of freetype library"    --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  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    
# Line 546  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:550: 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 576  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:580: 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 627  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:631: 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 659  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:663: 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 670  Line 672 
672    
673  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
674    
675  #line 674 "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:679: \"$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 701  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:705: 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:710: 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 715  Line 717 
717    yes;    yes;
718  #endif  #endif
719  EOF  EOF
720  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:719: \"$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 734  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:738: 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 768  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:772: 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 802  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:806: 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 810  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 814 "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 821  Line 823 
823  yywrap()  yywrap()
824  ; return 0; }  ; return 0; }
825  EOF  EOF
826  if { (eval echo configure:825: \"$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 848  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:852: 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 900  Line 902 
902    
903    
904  LIBS="$LIBS -lgd"  LIBS="$LIBS -lgd"
905    have_lib_png="no"
906    have_lib_z="no"
907    have_lib_jpeg="no"
908    
909  # Check whether --with-z-inc or --without-z-inc was given.  # Check whether --with-freetype-lib or --without-freetype-lib was given.
910  if test "${with_z_inc+set}" = set; then  if test "${with_freetype_lib+set}" = set; then
911    withval="$with_z_inc"    withval="$with_freetype_lib"
912    INCL="${INCL} -I${withval}"    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 929  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 945  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  fi
957    
958    
959  # Check whether --with-freetype-lib or --without-freetype-lib was given.  # Check whether --with-z-inc or --without-z-inc was given.
960  if test "${with_freetype_lib+set}" = set; then  if test "${with_z_inc+set}" = set; then
961    withval="$with_freetype_lib"    withval="$with_z_inc"
962    LIBS="${LIBS} -L${withval} -lttf"    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 976  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:980: 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 984  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 988 "configure"  #line 1004 "configure"
1004  #include "confdefs.h"  #include "confdefs.h"
1005    
1006  int main(void) {  int main(void) {
# Line 995  Line 1011 
1011    exit( Array[1] != -2 );    exit( Array[1] != -2 );
1012  }  }
1013  EOF  EOF
1014  if { (eval echo configure:999: \"$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 1017  Line 1033 
1033  fi  fi
1034    
1035  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
1036  echo "configure:1021: checking how to run the C preprocessor" >&5  echo "configure:1037: checking how to run the C preprocessor" >&5
1037  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1038  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1039    CPP=    CPP=
# Line 1032  Line 1048 
1048    # 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,
1049    # not just through cpp.    # not just through cpp.
1050    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1051  #line 1036 "configure"  #line 1052 "configure"
1052  #include "confdefs.h"  #include "confdefs.h"
1053  #include <assert.h>  #include <assert.h>
1054  Syntax Error  Syntax Error
1055  EOF  EOF
1056  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1057  { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (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}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1059  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1060    :    :
# Line 1049  Line 1065 
1065    rm -rf conftest*    rm -rf conftest*
1066    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
1067    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1068  #line 1053 "configure"  #line 1069 "configure"
1069  #include "confdefs.h"  #include "confdefs.h"
1070  #include <assert.h>  #include <assert.h>
1071  Syntax Error  Syntax Error
1072  EOF  EOF
1073  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1074  { (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (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}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1076  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1077    :    :
# Line 1066  Line 1082 
1082    rm -rf conftest*    rm -rf conftest*
1083    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
1084    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1085  #line 1070 "configure"  #line 1086 "configure"
1086  #include "confdefs.h"  #include "confdefs.h"
1087  #include <assert.h>  #include <assert.h>
1088  Syntax Error  Syntax Error
1089  EOF  EOF
1090  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1091  { (eval echo configure:1076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (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}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1093  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1094    :    :
# Line 1098  Line 1114 
1114    
1115  ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`
1116  echo $ac_n "checking for getopt.h""... $ac_c" 1>&6  echo $ac_n "checking for getopt.h""... $ac_c" 1>&6
1117  echo "configure:1102: checking for getopt.h" >&5  echo "configure:1118: checking for getopt.h" >&5
1118  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1119    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1120  else  else
1121    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1122  #line 1107 "configure"  #line 1123 "configure"
1123  #include "confdefs.h"  #include "confdefs.h"
1124  #include <getopt.h>  #include <getopt.h>
1125  EOF  EOF
1126  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1127  { (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (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}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1129  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1130    rm -rf conftest*    rm -rf conftest*
# Line 1134  Line 1150 
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:1138: 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 1142  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 1146 "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 1153  Line 1169 
1169  sqrt()  sqrt()
1170  ; return 0; }  ; return 0; }
1171  EOF  EOF
1172  if { (eval echo configure:1157: \"$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 1173  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:1184: 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 1192 "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 1199  Line 1216 
1216  gdImageGif()  gdImageGif()
1217  ; return 0; }  ; return 0; }
1218  EOF  EOF
1219  if { (eval echo configure:1203: \"$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 1220  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  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
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:1229: 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 1233  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 1237 "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 1244  Line 1282 
1282  gdImagePng()  gdImagePng()
1283  ; return 0; }  ; return 0; }
1284  EOF  EOF
1285  if { (eval echo configure:1248: \"$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 1270  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:1274: 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 1278  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 1282 "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 1289  Line 1327 
1327  gdImageJpeg()  gdImageJpeg()
1328  ; return 0; }  ; return 0; }
1329  EOF  EOF
1330  if { (eval echo configure:1293: \"$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 1315  Line 1353 
1353  fi  fi
1354    
1355  echo $ac_n "checking for gdImageStringTTF in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageStringTTF in -lgd""... $ac_c" 1>&6
1356  echo "configure:1319: checking for gdImageStringTTF in -lgd" >&5  echo "configure:1357: checking for gdImageStringTTF in -lgd" >&5
1357  ac_lib_var=`echo gd'_'gdImageStringTTF | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageStringTTF | sed 'y%./+-%__p_%'`
1358  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
1359    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1323  Line 1361 
1361    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1362  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1363  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1364  #line 1327 "configure"  #line 1365 "configure"
1365  #include "confdefs.h"  #include "confdefs.h"
1366  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1367  /* 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 1334  Line 1372 
1372  gdImageStringTTF()  gdImageStringTTF()
1373  ; return 0; }  ; return 0; }
1374  EOF  EOF
1375  if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1376    rm -rf conftest*    rm -rf conftest*
1377    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1378  else  else
# Line 1360  Line 1398 
1398  fi  fi
1399    
1400  echo $ac_n "checking for gdImageStringFT in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageStringFT in -lgd""... $ac_c" 1>&6
1401  echo "configure:1364: checking for gdImageStringFT in -lgd" >&5  echo "configure:1402: checking for gdImageStringFT in -lgd" >&5
1402  ac_lib_var=`echo gd'_'gdImageStringFT | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageStringFT | sed 'y%./+-%__p_%'`
1403  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
1404    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1368  Line 1406 
1406    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1407  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1408  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1409  #line 1372 "configure"  #line 1410 "configure"
1410  #include "confdefs.h"  #include "confdefs.h"
1411  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1412  /* 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 1379  Line 1417 
1417  gdImageStringFT()  gdImageStringFT()
1418  ; return 0; }  ; return 0; }
1419  EOF  EOF
1420  if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1421    rm -rf conftest*    rm -rf conftest*
1422    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1423  else  else
# Line 1408  Line 1446 
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:1412: 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 1417 "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:1422: \"$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.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0