/[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.10, Sat Jul 20 20:41:40 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    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 928  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 944  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  fi
953    
954    
955  # Check whether --with-freetype-lib or --without-freetype-lib was given.  # Check whether --with-z-inc or --without-z-inc was given.
956  if test "${with_freetype_lib+set}" = set; then  if test "${with_z_inc+set}" = set; then
957    withval="$with_freetype_lib"    withval="$with_z_inc"
958    LIBS="${LIBS} -L${withval} -lttf"    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 976  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:980: 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 984  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 988 "configure"  #line 999 "configure"
999  #include "confdefs.h"  #include "confdefs.h"
1000    
1001  int main(void) {  int main(void) {
# Line 995  Line 1006 
1006    exit( Array[1] != -2 );    exit( Array[1] != -2 );
1007  }  }
1008  EOF  EOF
1009  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: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 1016  Line 1027 
1027    fi    fi
1028  fi  fi
1029    
1030    echo $ac_n "checking "sizes of int and void *"""... $ac_c" 1>&6
1031    echo "configure:1032: checking "sizes of int and void *"" >&5
1032    if eval "test \"`echo '$''{'ac_cv_c_size_int_ptr'+set}'`\" = set"; then
1033      echo $ac_n "(cached) $ac_c" 1>&6
1034    else
1035      if test "$cross_compiling" = yes; then
1036      ac_cv_c_size_int_ptr="yes"
1037    else
1038      cat > conftest.$ac_ext <<EOF
1039    #line 1040 "configure"
1040    #include "confdefs.h"
1041    
1042    int main(void) {
1043      return sizeof(int) == sizeof(void *);
1044    }
1045    EOF
1046    if { (eval echo configure:1047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1047    then
1048      ac_cv_c_size_int_ptr="no"
1049    else
1050      echo "configure: failed program was:" >&5
1051      cat conftest.$ac_ext >&5
1052      rm -fr conftest*
1053      ac_cv_c_size_int_ptr="yes"
1054    fi
1055    rm -fr conftest*
1056    fi
1057    
1058    fi
1059    
1060    echo "$ac_t""$ac_cv_c_size_int_ptr" 1>&6
1061    if test "$ac_cv_c_size_int_ptr" = "no"
1062    then
1063            echo "** The size of an integer is not equal to a pointer."
1064            echo "   There are currently assumtions in the app that"
1065            echo "   prevents it from running if these sizes are not"
1066            echo "   equal."
1067            echo "   Please configure with a compiler that uses the"
1068            echo "   same sizes for ints and pointers."
1069            exit 1
1070    fi
1071    
1072  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1073  echo "configure:1021: checking how to run the C preprocessor" >&5  echo "configure:1074: checking how to run the C preprocessor" >&5
1074  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1075  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1076    CPP=    CPP=
# Line 1032  Line 1085 
1085    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
1086    # not just through cpp.    # not just through cpp.
1087    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1088  #line 1036 "configure"  #line 1089 "configure"
1089  #include "confdefs.h"  #include "confdefs.h"
1090  #include <assert.h>  #include <assert.h>
1091  Syntax Error  Syntax Error
1092  EOF  EOF
1093  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1094  { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1095  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1096  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1097    :    :
# Line 1049  Line 1102 
1102    rm -rf conftest*    rm -rf conftest*
1103    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
1104    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1105  #line 1053 "configure"  #line 1106 "configure"
1106  #include "confdefs.h"  #include "confdefs.h"
1107  #include <assert.h>  #include <assert.h>
1108  Syntax Error  Syntax Error
1109  EOF  EOF
1110  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1111  { (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1112  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1113  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1114    :    :
# Line 1066  Line 1119 
1119    rm -rf conftest*    rm -rf conftest*
1120    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
1121    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1122  #line 1070 "configure"  #line 1123 "configure"
1123  #include "confdefs.h"  #include "confdefs.h"
1124  #include <assert.h>  #include <assert.h>
1125  Syntax Error  Syntax Error
1126  EOF  EOF
1127  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1128  { (eval echo configure:1076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1129  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1130  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1131    :    :
# Line 1098  Line 1151 
1151    
1152  ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'`
1153  echo $ac_n "checking for getopt.h""... $ac_c" 1>&6  echo $ac_n "checking for getopt.h""... $ac_c" 1>&6
1154  echo "configure:1102: checking for getopt.h" >&5  echo "configure:1155: checking for getopt.h" >&5
1155  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1156    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1157  else  else
1158    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1159  #line 1107 "configure"  #line 1160 "configure"
1160  #include "confdefs.h"  #include "confdefs.h"
1161  #include <getopt.h>  #include <getopt.h>
1162  EOF  EOF
1163  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1164  { (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1165  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1166  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1167    rm -rf conftest*    rm -rf conftest*
# Line 1133  Line 1186 
1186  fi  fi
1187    
1188    
1189    ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`
1190    echo $ac_n "checking for gd.h""... $ac_c" 1>&6
1191    echo "configure:1192: checking for gd.h" >&5
1192    if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1193      echo $ac_n "(cached) $ac_c" 1>&6
1194    else
1195      cat > conftest.$ac_ext <<EOF
1196    #line 1197 "configure"
1197    #include "confdefs.h"
1198    #include <gd.h>
1199    EOF
1200    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1201    { (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1202    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1203    if test -z "$ac_err"; then
1204      rm -rf conftest*
1205      eval "ac_cv_header_$ac_safe=yes"
1206    else
1207      echo "$ac_err" >&5
1208      echo "configure: failed program was:" >&5
1209      cat conftest.$ac_ext >&5
1210      rm -rf conftest*
1211      eval "ac_cv_header_$ac_safe=no"
1212    fi
1213    rm -f conftest*
1214    fi
1215    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1216      echo "$ac_t""yes" 1>&6
1217       have_gd_h="yes"
1218    else
1219      echo "$ac_t""no" 1>&6
1220     have_gd_h="no"
1221    fi
1222    
1223    
1224    if test "$have_gd_h" != "yes"; then
1225    echo
1226            echo "** The GD library is required for CvsGraph to function."
1227            echo "   Get it from http://www.boutell.com, compile it and"
1228            echo "   use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify"
1229            echo "   its location. You might also have to use --with-z-inc, --with-z-lib"
1230            echo "   and --with-png-inc, --with-png-lib for gd versions 1.6 and higher."
1231            echo "   Check config.log for more information on the problem. If your system"
1232            echo "   has libgd installed, you probably mis the gd.h header file."
1233            exit 1
1234    fi
1235    
1236  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
1237  echo "configure:1138: 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 1142  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 1146 "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 1153  Line 1253 
1253  sqrt()  sqrt()
1254  ; return 0; }  ; return 0; }
1255  EOF  EOF
1256  if { (eval echo configure:1157: \"$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 1173  Line 1273 
1273  #define LIBM 1  #define LIBM 1
1274  EOF  EOF
1275    
1276          MATHLIBS="-lm"          MATHLIBS="-lm"
1277    
1278    else
1279      echo "$ac_t""no" 1>&6
1280    fi
1281    
1282    
1283    echo $ac_n "checking for compress in -lz""... $ac_c" 1>&6
1284    echo "configure:1285: checking for compress in -lz" >&5
1285    ac_lib_var=`echo z'_'compress | sed 'y%./+-%__p_%'`
1286    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1287      echo $ac_n "(cached) $ac_c" 1>&6
1288    else
1289      ac_save_LIBS="$LIBS"
1290    LIBS="-lz ${LIBPATH} ${MATHLIBS}  $LIBS"
1291    cat > conftest.$ac_ext <<EOF
1292    #line 1293 "configure"
1293    #include "confdefs.h"
1294    /* Override any gcc2 internal prototype to avoid an error.  */
1295    /* We use char because int might match the return type of a gcc2
1296        builtin and then its argument prototype would still apply.  */
1297    char compress();
1298    
1299    int main() {
1300    compress()
1301    ; return 0; }
1302    EOF
1303    if { (eval echo configure:1304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1304      rm -rf conftest*
1305      eval "ac_cv_lib_$ac_lib_var=yes"
1306    else
1307      echo "configure: failed program was:" >&5
1308      cat conftest.$ac_ext >&5
1309      rm -rf conftest*
1310      eval "ac_cv_lib_$ac_lib_var=no"
1311    fi
1312    rm -f conftest*
1313    LIBS="$ac_save_LIBS"
1314    
1315    fi
1316    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1317      echo "$ac_t""yes" 1>&6
1318    
1319            ac_have_libz="yes"
1320            ZLIB="-lz"
1321    
1322    else
1323      echo "$ac_t""no" 1>&6
1324    
1325            ac_have_libz="no"
1326    
1327    fi
1328    
1329    
1330    echo $ac_n "checking for FT_Load_Glyph in -lfreetype""... $ac_c" 1>&6
1331    echo "configure:1332: checking for FT_Load_Glyph in -lfreetype" >&5
1332    ac_lib_var=`echo freetype'_'FT_Load_Glyph | sed 'y%./+-%__p_%'`
1333    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1334      echo $ac_n "(cached) $ac_c" 1>&6
1335    else
1336      ac_save_LIBS="$LIBS"
1337    LIBS="-lfreetype ${LIBPATH} ${MATHLIBS}  $LIBS"
1338    cat > conftest.$ac_ext <<EOF
1339    #line 1340 "configure"
1340    #include "confdefs.h"
1341    /* Override any gcc2 internal prototype to avoid an error.  */
1342    /* We use char because int might match the return type of a gcc2
1343        builtin and then its argument prototype would still apply.  */
1344    char FT_Load_Glyph();
1345    
1346    int main() {
1347    FT_Load_Glyph()
1348    ; return 0; }
1349    EOF
1350    if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1351      rm -rf conftest*
1352      eval "ac_cv_lib_$ac_lib_var=yes"
1353    else
1354      echo "configure: failed program was:" >&5
1355      cat conftest.$ac_ext >&5
1356      rm -rf conftest*
1357      eval "ac_cv_lib_$ac_lib_var=no"
1358    fi
1359    rm -f conftest*
1360    LIBS="$ac_save_LIBS"
1361    
1362    fi
1363    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1364      echo "$ac_t""yes" 1>&6
1365    
1366            ac_have_libfreetype="yes"
1367            LIBFT="-lfreetype"
1368    
1369    else
1370      echo "$ac_t""no" 1>&6
1371    
1372            ac_have_libfreetype="no"
1373    
1374    fi
1375    
1376    
1377    echo $ac_n "checking for TT_Load_Glyph in -lttf""... $ac_c" 1>&6
1378    echo "configure:1379: checking for TT_Load_Glyph in -lttf" >&5
1379    ac_lib_var=`echo ttf'_'TT_Load_Glyph | sed 'y%./+-%__p_%'`
1380    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1381      echo $ac_n "(cached) $ac_c" 1>&6
1382    else
1383      ac_save_LIBS="$LIBS"
1384    LIBS="-lttf ${LIBPATH} ${MATHLIBS}  $LIBS"
1385    cat > conftest.$ac_ext <<EOF
1386    #line 1387 "configure"
1387    #include "confdefs.h"
1388    /* Override any gcc2 internal prototype to avoid an error.  */
1389    /* We use char because int might match the return type of a gcc2
1390        builtin and then its argument prototype would still apply.  */
1391    char TT_Load_Glyph();
1392    
1393    int main() {
1394    TT_Load_Glyph()
1395    ; return 0; }
1396    EOF
1397    if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1398      rm -rf conftest*
1399      eval "ac_cv_lib_$ac_lib_var=yes"
1400    else
1401      echo "configure: failed program was:" >&5
1402      cat conftest.$ac_ext >&5
1403      rm -rf conftest*
1404      eval "ac_cv_lib_$ac_lib_var=no"
1405    fi
1406    rm -f conftest*
1407    LIBS="$ac_save_LIBS"
1408    
1409    fi
1410    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1411      echo "$ac_t""yes" 1>&6
1412    
1413            ac_have_libttf="yes"
1414            LIBTT="-lttf"
1415    
1416    else
1417      echo "$ac_t""no" 1>&6
1418    
1419            ac_have_libttf="no"
1420    
1421    fi
1422    
1423    
1424    echo $ac_n "checking for png_create_read_struct  in -lpng""... $ac_c" 1>&6
1425    echo "configure:1426: checking for png_create_read_struct  in -lpng" >&5
1426    ac_lib_var=`echo png'_'png_create_read_struct  | sed 'y%./+-%__p_%'`
1427    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1428      echo $ac_n "(cached) $ac_c" 1>&6
1429    else
1430      ac_save_LIBS="$LIBS"
1431    LIBS="-lpng ${LIBPATH} ${ZLIB} ${MATHLIBS}  $LIBS"
1432    cat > conftest.$ac_ext <<EOF
1433    #line 1434 "configure"
1434    #include "confdefs.h"
1435    /* Override any gcc2 internal prototype to avoid an error.  */
1436    /* We use char because int might match the return type of a gcc2
1437        builtin and then its argument prototype would still apply.  */
1438    char png_create_read_struct ();
1439    
1440    int main() {
1441    png_create_read_struct ()
1442    ; return 0; }
1443    EOF
1444    if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1445      rm -rf conftest*
1446      eval "ac_cv_lib_$ac_lib_var=yes"
1447    else
1448      echo "configure: failed program was:" >&5
1449      cat conftest.$ac_ext >&5
1450      rm -rf conftest*
1451      eval "ac_cv_lib_$ac_lib_var=no"
1452    fi
1453    rm -f conftest*
1454    LIBS="$ac_save_LIBS"
1455    
1456    fi
1457    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1458      echo "$ac_t""yes" 1>&6
1459    
1460            ac_have_libpng="yes"
1461            LIBPNG="-lpng"
1462    
1463  else  else
1464    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1465    
1466            ac_have_libpng="no"
1467    
1468  fi  fi
1469    
1470    
1471    echo $ac_n "checking for jpeg_CreateCompress in -ljpeg""... $ac_c" 1>&6
1472    echo "configure:1473: checking for jpeg_CreateCompress in -ljpeg" >&5
1473    ac_lib_var=`echo jpeg'_'jpeg_CreateCompress | sed 'y%./+-%__p_%'`
1474    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1475      echo $ac_n "(cached) $ac_c" 1>&6
1476    else
1477      ac_save_LIBS="$LIBS"
1478    LIBS="-ljpeg ${LIBPATH} ${MATHLIBS}  $LIBS"
1479    cat > conftest.$ac_ext <<EOF
1480    #line 1481 "configure"
1481    #include "confdefs.h"
1482    /* Override any gcc2 internal prototype to avoid an error.  */
1483    /* We use char because int might match the return type of a gcc2
1484        builtin and then its argument prototype would still apply.  */
1485    char jpeg_CreateCompress();
1486    
1487    int main() {
1488    jpeg_CreateCompress()
1489    ; return 0; }
1490    EOF
1491    if { (eval echo configure:1492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1492      rm -rf conftest*
1493      eval "ac_cv_lib_$ac_lib_var=yes"
1494    else
1495      echo "configure: failed program was:" >&5
1496      cat conftest.$ac_ext >&5
1497      rm -rf conftest*
1498      eval "ac_cv_lib_$ac_lib_var=no"
1499    fi
1500    rm -f conftest*
1501    LIBS="$ac_save_LIBS"
1502    
1503    fi
1504    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1505      echo "$ac_t""yes" 1>&6
1506    
1507            ac_have_libjpeg="yes"
1508            LIBJPEG="-ljpeg"
1509    
1510    else
1511      echo "$ac_t""no" 1>&6
1512    
1513            ac_have_libjpeg="no"
1514    
1515    fi
1516    
1517    
1518    OLIBS="${LIBS}"
1519    LIBS="${LIBS} ${MATHLIB}"
1520    echo $ac_n "checking "whether libpng needs -lz"""... $ac_c" 1>&6
1521    echo "configure:1522: checking "whether libpng needs -lz"" >&5
1522    if eval "test \"`echo '$''{'ac_cv_png_needs_z'+set}'`\" = set"; then
1523      echo $ac_n "(cached) $ac_c" 1>&6
1524    else
1525      cat > conftest.$ac_ext <<EOF
1526    #line 1527 "configure"
1527    #include "confdefs.h"
1528    /* Override any gcc2 internal prototype to avoid an error.  */
1529    /* We use char because int might match the return type of a gcc2
1530        builtin and then its argument prototype would still apply.  */
1531    char png_create_read_struct();
1532    
1533    int main() {
1534    png_create_read_struct()
1535    ; return 0; }
1536    EOF
1537    if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1538      rm -rf conftest*
1539      ac_cv_png_needs_z="no"
1540    
1541    else
1542      echo "configure: failed program was:" >&5
1543      cat conftest.$ac_ext >&5
1544      rm -rf conftest*
1545      ac_cv_png_needs_z="yes"
1546    
1547    fi
1548    rm -f conftest*
1549    fi
1550    
1551    echo "$ac_t""$ac_cv_png_needs_z" 1>&6
1552    LIBS="${OLIBS}"
1553    
1554    
1555    OLIBS="${LIBS}"
1556    LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBJPEG} ${MATHLIB}"
1557    echo $ac_n "checking "whether libgd needs -lpng"""... $ac_c" 1>&6
1558    echo "configure:1559: checking "whether libgd needs -lpng"" >&5
1559    if eval "test \"`echo '$''{'ac_cv_gd_needs_png'+set}'`\" = set"; then
1560      echo $ac_n "(cached) $ac_c" 1>&6
1561    else
1562      cat > conftest.$ac_ext <<EOF
1563    #line 1564 "configure"
1564    #include "confdefs.h"
1565    /* Override any gcc2 internal prototype to avoid an error.  */
1566    /* We use char because int might match the return type of a gcc2
1567        builtin and then its argument prototype would still apply.  */
1568    char gdImagePng();
1569    
1570    int main() {
1571    gdImagePng()
1572    ; return 0; }
1573    EOF
1574    if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1575      rm -rf conftest*
1576      ac_cv_gd_needs_png="no"
1577    
1578    else
1579      echo "configure: failed program was:" >&5
1580      cat conftest.$ac_ext >&5
1581      rm -rf conftest*
1582      ac_cv_gd_needs_png="yes"
1583    
1584    fi
1585    rm -f conftest*
1586    fi
1587    
1588    echo "$ac_t""$ac_cv_gd_needs_png" 1>&6
1589    LIBS="${OLIBS}"
1590    
1591    OLIBS="${LIBS}"
1592    LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBPNG} ${LIBZ} ${MATHLIB}"
1593    echo $ac_n "checking "whether libgd needs -ljpeg"""... $ac_c" 1>&6
1594    echo "configure:1595: checking "whether libgd needs -ljpeg"" >&5
1595    if eval "test \"`echo '$''{'ac_cv_gd_needs_jpeg'+set}'`\" = set"; then
1596      echo $ac_n "(cached) $ac_c" 1>&6
1597    else
1598      cat > conftest.$ac_ext <<EOF
1599    #line 1600 "configure"
1600    #include "confdefs.h"
1601    /* Override any gcc2 internal prototype to avoid an error.  */
1602    /* We use char because int might match the return type of a gcc2
1603        builtin and then its argument prototype would still apply.  */
1604    char gdImageJpeg();
1605    
1606    int main() {
1607    gdImageJpeg()
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 gdImageStringTTF();
1641    
1642    int main() {
1643    gdImageStringTTF()
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 gdImageStringFT();
1677    
1678    int main() {
1679    gdImageStringFT()
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" -a "$ac_have_libttf" != "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" -a "$ac_have_libfreetype" != "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  echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
1746  echo "configure:1184: checking for gdImageGif in -lgd" >&5  echo "configure:1747: checking for gdImageGif in -lgd" >&5
1747  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
1748  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
1749    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1188  Line 1751 
1751    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1752  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1753  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1754  #line 1192 "configure"  #line 1755 "configure"
1755  #include "confdefs.h"  #include "confdefs.h"
1756  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1757  /* 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 1762 
1762  gdImageGif()  gdImageGif()
1763  ; return 0; }  ; return 0; }
1764  EOF  EOF
1765  if { (eval echo configure:1203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1766    rm -rf conftest*    rm -rf conftest*
1767    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1768  else  else
# Line 1219  Line 1782 
1782  #define HAVE_IMAGE_GIF 1  #define HAVE_IMAGE_GIF 1
1783  EOF  EOF
1784    
1785            have_gifs="yes"
1786    
1787  else  else
1788    echo "$ac_t""no" 1>&6    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  fi
1803    
1804  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6
1805  echo "configure:1229: checking for gdImagePng in -lgd" >&5  echo "configure:1806: checking for gdImagePng in -lgd" >&5
1806  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'`
1807  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1808    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1233  Line 1810 
1810    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1811  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1812  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1813  #line 1237 "configure"  #line 1814 "configure"
1814  #include "confdefs.h"  #include "confdefs.h"
1815  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1816  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1244  Line 1821 
1821  gdImagePng()  gdImagePng()
1822  ; return 0; }  ; return 0; }
1823  EOF  EOF
1824  if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1825    rm -rf conftest*    rm -rf conftest*
1826    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1827  else  else
# Line 1270  Line 1847 
1847  fi  fi
1848    
1849  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6
1850  echo "configure:1274: checking for gdImageJpeg in -lgd" >&5  echo "configure:1851: checking for gdImageJpeg in -lgd" >&5
1851  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'`
1852  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1853    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1278  Line 1855 
1855    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1856  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1857  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1858  #line 1282 "configure"  #line 1859 "configure"
1859  #include "confdefs.h"  #include "confdefs.h"
1860  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1861  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1289  Line 1866 
1866  gdImageJpeg()  gdImageJpeg()
1867  ; return 0; }  ; return 0; }
1868  EOF  EOF
1869  if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1870    rm -rf conftest*    rm -rf conftest*
1871    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1872  else  else
# Line 1315  Line 1892 
1892  fi  fi
1893    
1894  echo $ac_n "checking for gdImageStringTTF in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageStringTTF in -lgd""... $ac_c" 1>&6
1895  echo "configure:1319: checking for gdImageStringTTF in -lgd" >&5  echo "configure:1896: checking for gdImageStringTTF in -lgd" >&5
1896  ac_lib_var=`echo gd'_'gdImageStringTTF | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageStringTTF | sed 'y%./+-%__p_%'`
1897  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1898    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1323  Line 1900 
1900    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1901  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1902  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1903  #line 1327 "configure"  #line 1904 "configure"
1904  #include "confdefs.h"  #include "confdefs.h"
1905  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1906  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1334  Line 1911 
1911  gdImageStringTTF()  gdImageStringTTF()
1912  ; return 0; }  ; return 0; }
1913  EOF  EOF
1914  if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1915    rm -rf conftest*    rm -rf conftest*
1916    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1917  else  else
# Line 1350  Line 1927 
1927  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = 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    
1930          cat >> confdefs.h <<\EOF          if test "$ac_have_libttf" = "yes"
1931            then
1932                    cat >> confdefs.h <<\EOF
1933  #define HAVE_GDIMAGESTRINGTTF 1  #define HAVE_GDIMAGESTRINGTTF 1
1934  EOF  EOF
1935    
1936            fi
1937    
1938  else  else
1939    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1940  fi  fi
1941    
1942  echo $ac_n "checking for gdImageStringFT in -lgd""... $ac_c" 1>&6  echo $ac_n "checking for gdImageStringFT in -lgd""... $ac_c" 1>&6
1943  echo "configure:1364: checking for gdImageStringFT in -lgd" >&5  echo "configure:1944: checking for gdImageStringFT in -lgd" >&5
1944  ac_lib_var=`echo gd'_'gdImageStringFT | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gd'_'gdImageStringFT | sed 'y%./+-%__p_%'`
1945  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
1946    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1368  Line 1948 
1948    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1949  LIBS="-lgd  $LIBS"  LIBS="-lgd  $LIBS"
1950  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1951  #line 1372 "configure"  #line 1952 "configure"
1952  #include "confdefs.h"  #include "confdefs.h"
1953  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1954  /* 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 1959 
1959  gdImageStringFT()  gdImageStringFT()
1960  ; return 0; }  ; return 0; }
1961  EOF  EOF
1962  if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1963    rm -rf conftest*    rm -rf conftest*
1964    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1965  else  else
# Line 1395  Line 1975 
1975  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1976    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1977    
1978          cat >> confdefs.h <<\EOF          if test "$ac_have_libfreetype" = "yes"
1979            then
1980                    cat >> confdefs.h <<\EOF
1981  #define HAVE_GDIMAGESTRINGFT 1  #define HAVE_GDIMAGESTRINGFT 1
1982  EOF  EOF
1983    
1984            fi
1985    
1986  else  else
1987    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
# Line 1406  Line 1989 
1989    
1990    
1991    
 ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'`  
 echo $ac_n "checking for gd.h""... $ac_c" 1>&6  
 echo "configure:1412: checking for gd.h" >&5  
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   cat > conftest.$ac_ext <<EOF  
 #line 1417 "configure"  
 #include "confdefs.h"  
 #include <gd.h>  
 EOF  
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  
 { (eval echo configure:1422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  
 if test -z "$ac_err"; then  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=yes"  
 else  
   echo "$ac_err" >&5  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   rm -rf conftest*  
   eval "ac_cv_header_$ac_safe=no"  
 fi  
 rm -f conftest*  
 fi  
 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  
   echo "$ac_t""yes" 1>&6  
    have_gd_h="yes"  
 else  
   echo "$ac_t""no" 1>&6  
  have_gd_h="no"  
 fi  
   
   
 if test $have_gd_h != "yes"; then  
 echo  
         echo "** The GD library is required for CvsGraph to function."  
         echo "   Get it from http://www.boutell.com, compile it and"  
         echo "   use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify"  
         echo "   its location. You might also have to use --with-z-inc, --with-z-lib"  
         echo "   and --with-png-inc, --with-png-lib for gd versions 1.6 and higher."  
         echo "   Check config.log for more information on the problem. If your system"  
         echo "   has libgd installed, you probably mis the gd.h header file."  
         exit 1  
 fi  
   
1992    
1993    
1994  trap '' 1 2 15  trap '' 1 2 15

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0