/[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.4, Sun Mar 4 20:15:02 2001 UTC revision 1.5, Mon Mar 12 19:50:02 2001 UTC
# Line 20  Line 20 
20  ac_help="$ac_help  ac_help="$ac_help
21    --with-z-lib=DIR        location of zlib library"    --with-z-lib=DIR        location of zlib library"
22  ac_help="$ac_help  ac_help="$ac_help
23    --with-png=DIR          location of png lib/inc"    --with-png-inc=DIR      location of png includes"
24    ac_help="$ac_help
25      --with-png-lib=DIR      location of png library"
26    ac_help="$ac_help
27      --with-jpeg-inc=DIR    location of jpeg includes"
28    ac_help="$ac_help
29      --with-jpeg-lib=DIR    location of jpeg library"
30  ac_help="$ac_help  ac_help="$ac_help
31    --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"
32    
# Line 538  Line 544 
544  # 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.
545  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
546  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
547  echo "configure:542: checking for $ac_word" >&5  echo "configure:548: checking for $ac_word" >&5
548  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
549    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
550  else  else
# Line 568  Line 574 
574    # 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.
575  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
576  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
577  echo "configure:572: checking for $ac_word" >&5  echo "configure:578: checking for $ac_word" >&5
578  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
579    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
580  else  else
# Line 619  Line 625 
625        # 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.
626  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
627  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628  echo "configure:623: checking for $ac_word" >&5  echo "configure:629: checking for $ac_word" >&5
629  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
631  else  else
# Line 651  Line 657 
657  fi  fi
658    
659  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
660  echo "configure:655: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
661    
662  ac_ext=c  ac_ext=c
663  # 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 662  Line 668 
668    
669  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
670    
671  #line 666 "configure"  #line 672 "configure"
672  #include "confdefs.h"  #include "confdefs.h"
673    
674  main(){return(0);}  main(){return(0);}
675  EOF  EOF
676  if { (eval echo configure:671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
677    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
678    # 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.
679    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 693  Line 699 
699    { 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; }
700  fi  fi
701  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
702  echo "configure:697: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
703  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
704  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
705    
706  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
707  echo "configure:702: checking whether we are using GNU C" >&5  echo "configure:708: checking whether we are using GNU C" >&5
708  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
709    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
710  else  else
# Line 707  Line 713 
713    yes;    yes;
714  #endif  #endif
715  EOF  EOF
716  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:711: \"$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:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
717    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
718  else  else
719    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 726  Line 732 
732  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
733  CFLAGS=  CFLAGS=
734  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
735  echo "configure:730: checking whether ${CC-cc} accepts -g" >&5  echo "configure:736: checking whether ${CC-cc} accepts -g" >&5
736  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
737    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
738  else  else
# Line 760  Line 766 
766  # 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.
767  set dummy flex; ac_word=$2  set dummy flex; ac_word=$2
768  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
769  echo "configure:764: checking for $ac_word" >&5  echo "configure:770: checking for $ac_word" >&5
770  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
771    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
772  else  else
# Line 794  Line 800 
800    *) ac_lib=l ;;    *) ac_lib=l ;;
801    esac    esac
802    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
803  echo "configure:798: checking for yywrap in -l$ac_lib" >&5  echo "configure:804: checking for yywrap in -l$ac_lib" >&5
804  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`  ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
805  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
806    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 802  Line 808 
808    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
809  LIBS="-l$ac_lib  $LIBS"  LIBS="-l$ac_lib  $LIBS"
810  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
811  #line 806 "configure"  #line 812 "configure"
812  #include "confdefs.h"  #include "confdefs.h"
813  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
814  /* 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 813  Line 819 
819  yywrap()  yywrap()
820  ; return 0; }  ; return 0; }
821  EOF  EOF
822  if { (eval echo configure:817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
823    rm -rf conftest*    rm -rf conftest*
824    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
825  else  else
# Line 840  Line 846 
846  # 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.
847  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
848  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849  echo "configure:844: checking for $ac_word" >&5  echo "configure:850: checking for $ac_word" >&5
850  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
851    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
852  else  else
# Line 873  Line 879 
879    
880  LEXFLAGS="-8"  LEXFLAGS="-8"
881  LEXSPEED="-Cf"  LEXSPEED="-Cf"
882    INCL=""
883    
884  # Check whether --with-gd or --without-gd was given.  # Check whether --with-gd-inc or --without-gd-inc was given.
885  if test "${with_gd+set}" = set; then  if test "${with_gd_inc+set}" = set; then
886    withval="$with_gd"    withval="$with_gd_inc"
887    CFLAGS="${CFLAGS} -I${withval}"    INCL="${INCL} -I${withval}"
888    
889  fi  fi
890    
891    
892  # Check whether --with-gd or --without-gd was given.  # Check whether --with-gd-lib or --without-gd-lib was given.
893  if test "${with_gd+set}" = set; then  if test "${with_gd_lib+set}" = set; then
894    withval="$with_gd"    withval="$with_gd_lib"
895    LDFLAGS="${LDFLAGS} -L${withval}"    LIBS="${LIBS} -L${withval}"
896    
897  fi  fi
898    
899    
900  # Check whether --with-z or --without-z was given.  LIBS="$LIBS -lgd"
901  if test "${with_z+set}" = set; then  
902    withval="$with_z"  # Check whether --with-z-inc or --without-z-inc was given.
903    CFLAGS="${CFLAGS} -I${withval}"  if test "${with_z_inc+set}" = set; then
904      withval="$with_z_inc"
905      INCL="${INCL} -I${withval}"
906    
907  fi  fi
908    
909    
910  # Check whether --with-z or --without-z was given.  # Check whether --with-z-lib or --without-z-lib was given.
911  if test "${with_z+set}" = set; then  if test "${with_z_lib+set}" = set; then
912    withval="$with_z"    withval="$with_z_lib"
913    LDFLAGS="${LDFLAGS} -L${withval} -lz"    LIBS="${LIBS} -L${withval} -lz"
914    
915  fi  fi
916    
917    
918  # Check whether --with-png or --without-png was given.  # Check whether --with-png-inc or --without-png-inc was given.
919  if test "${with_png+set}" = set; then  if test "${with_png_inc+set}" = set; then
920    withval="$with_png"    withval="$with_png_inc"
921    LDFLAGS="${LDFLAGS} -L${withval} -lpng"    INCL="${INCL} -I${withval}"
922                  CFLAGS="${CFLAGS} -I${withval}"  
923    fi
924    
925    
926    # Check whether --with-png-lib or --without-png-lib was given.
927    if test "${with_png_lib+set}" = set; then
928      withval="$with_png_lib"
929      LIBS="${LIBS} -L${withval} -lpng"
930    
931    fi
932    
933    
934    # Check whether --with-jpeg-inc or --without-jpeg-inc was given.
935    if test "${with_jpeg_inc+set}" = set; then
936      withval="$with_jpeg_inc"
937      INCL="${INCL} -I${withval}"
938    
939    fi
940    
941    
942    # Check whether --with-jpeg-lib or --without-jpeg-lib was given.
943    if test "${with_jpeg_lib+set}" = set; then
944      withval="$with_jpeg_lib"
945      LIBS="${LIBS} -L${withval} -ljpeg"
946    
947  fi  fi
948    
# Line 927  Line 959 
959    LEXFLAGS="$LEXFLAGS $LEXSPEED"    LEXFLAGS="$LEXFLAGS $LEXSPEED"
960  fi  fi
961    
962  LDFLAGS="${LDFLAGS} -lgd"  CPPFLAGS="$CPPFLAGS $INCL"
963    CFLAGS="$CFLAGS $INCL"
964    
965  if test "x${GCC}" = "xyes"  if test "x${GCC}" = "xyes"
966  then  then
967    CFLAGS="$CFLAGS -Wall"    CFLAGS="$CFLAGS -Wall"
968    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
969  echo "configure:938: checking "for gcc strength-reduce bug"" >&5  echo "configure:970: checking "for gcc strength-reduce bug"" >&5
970  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
971    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
972  else  else
# Line 942  Line 974 
974    ac_cv_c_gcc_strength_bug="yes"    ac_cv_c_gcc_strength_bug="yes"
975  else  else
976    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
977  #line 946 "configure"  #line 978 "configure"
978  #include "confdefs.h"  #include "confdefs.h"
979    
980  int main(void) {  int main(void) {
# Line 953  Line 985 
985    exit( Array[1] != -2 );    exit( Array[1] != -2 );
986  }  }
987  EOF  EOF
988  if { (eval echo configure:957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
989  then  then
990    ac_cv_c_gcc_strength_bug="no"    ac_cv_c_gcc_strength_bug="no"
991  else  else
# Line 976  Line 1008 
1008    
1009    
1010  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
1011  echo "configure:980: checking for sqrt in -lm" >&5  echo "configure:1012: checking for sqrt in -lm" >&5
1012  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
1013  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
1014    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 984  Line 1016 
1016    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1017  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
1018  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1019  #line 988 "configure"  #line 1020 "configure"
1020  #include "confdefs.h"  #include "confdefs.h"
1021  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1022  /* 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 995  Line 1027 
1027  sqrt()  sqrt()
1028  ; return 0; }  ; return 0; }
1029  EOF  EOF
1030  if { (eval echo configure:999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1031    rm -rf conftest*    rm -rf conftest*
1032    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1033  else  else
# Line 1022  Line 1054 
1054    
1055    
1056  echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
1057  echo "configure:1026: checking for gdImageGif in -lgd" >&5  echo "configure:1058: checking for gdImageGif in -lgd" >&5
1058  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
1059  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
1060    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1030  Line 1062 
1062    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1063  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1064  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1065  #line 1034 "configure"  #line 1066 "configure"
1066  #include "confdefs.h"  #include "confdefs.h"
1067  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1068  /* 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 1041  Line 1073 
1073  gdImageGif()  gdImageGif()
1074  ; return 0; }  ; return 0; }
1075  EOF  EOF
1076  if { (eval echo configure:1045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1077    rm -rf conftest*    rm -rf conftest*
1078    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1079  else  else
# Line 1067  Line 1099 
1099  fi  fi
1100    
1101  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
1102  echo "configure:1071: checking for gdImagePng in -lgd" >&5  echo "configure:1103: checking for gdImagePng in -lgd" >&5
1103  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
1104  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
1105    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1075  Line 1107 
1107    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1108  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1109  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1110  #line 1079 "configure"  #line 1111 "configure"
1111  #include "confdefs.h"  #include "confdefs.h"
1112  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1113  /* 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 1086  Line 1118 
1118  gdImagePng()  gdImagePng()
1119  ; return 0; }  ; return 0; }
1120  EOF  EOF
1121  if { (eval echo configure:1090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1122    rm -rf conftest*    rm -rf conftest*
1123    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1124  else  else
# Line 1106  Line 1138 
1138  #define HAVE_IMAGE_PNG 1  #define HAVE_IMAGE_PNG 1
1139  EOF  EOF
1140    
         LDFLAGS="$LDFLAGS -lpng -lz ${MATHLIBS}"  
1141    
1142  else  else
1143    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1144  fi  fi
1145    
1146  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6
1147  echo "configure:1117: checking for gdImageJpeg in -lgd" >&5  echo "configure:1148: checking for gdImageJpeg in -lgd" >&5
1148  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`
1149  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
1150    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1121  Line 1152 
1152    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1153  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1154  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1155  #line 1125 "configure"  #line 1156 "configure"
1156  #include "confdefs.h"  #include "confdefs.h"
1157  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1158  /* 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 1132  Line 1163 
1163  gdImageJpeg()  gdImageJpeg()
1164  ; return 0; }  ; return 0; }
1165  EOF  EOF
1166  if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1167    rm -rf conftest*    rm -rf conftest*
1168    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1169  else  else
# Line 1152  Line 1183 
1183  #define HAVE_IMAGE_JPEG 1  #define HAVE_IMAGE_JPEG 1
1184  EOF  EOF
1185    
         LDFLAGS="$LDFLAGS -ljpeg"  
1186    
1187  else  else
1188    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
# Line 1161  Line 1191 
1191    
1192    
1193  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
1194  echo "configure:1165: checking how to run the C preprocessor" >&5  echo "configure:1195: checking how to run the C preprocessor" >&5
1195  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1196  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1197    CPP=    CPP=
# Line 1176  Line 1206 
1206    # 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,
1207    # not just through cpp.    # not just through cpp.
1208    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1209  #line 1180 "configure"  #line 1210 "configure"
1210  #include "confdefs.h"  #include "confdefs.h"
1211  #include <assert.h>  #include <assert.h>
1212  Syntax Error  Syntax Error
1213  EOF  EOF
1214  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1215  { (eval echo configure:1186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1216  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1217  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1218    :    :
# Line 1193  Line 1223 
1223    rm -rf conftest*    rm -rf conftest*
1224    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
1225    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1226  #line 1197 "configure"  #line 1227 "configure"
1227  #include "confdefs.h"  #include "confdefs.h"
1228  #include <assert.h>  #include <assert.h>
1229  Syntax Error  Syntax Error
1230  EOF  EOF
1231  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1232  { (eval echo configure:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1233  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1234  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1235    :    :
# Line 1210  Line 1240 
1240    rm -rf conftest*    rm -rf conftest*
1241    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
1242    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1243  #line 1214 "configure"  #line 1244 "configure"
1244  #include "confdefs.h"  #include "confdefs.h"
1245  #include <assert.h>  #include <assert.h>
1246  Syntax Error  Syntax Error
1247  EOF  EOF
1248  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1249  { (eval echo configure:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1250  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1251  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1252    :    :
# Line 1242  Line 1272 
1272    
1273  ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`
1274  echo $ac_n "checking for gd.h""... $ac_c" 1>&6  echo $ac_n "checking for gd.h""... $ac_c" 1>&6
1275  echo "configure:1246: checking for gd.h" >&5  echo "configure:1276: checking for gd.h" >&5
1276  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1277    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1278  else  else
1279    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1280  #line 1251 "configure"  #line 1281 "configure"
1281  #include "confdefs.h"  #include "confdefs.h"
1282  #include <gd.h>  #include <gd.h>
1283  EOF  EOF
1284  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1285  { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1286  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1287  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1288    rm -rf conftest*    rm -rf conftest*

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

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0