/[public]/psiconv/trunk/configure
ViewVC logotype

Diff of /psiconv/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 16 Revision 21
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20ac_help="$ac_help 20ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22ac_help="$ac_help 22ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)" 23 --disable-libtool-lock avoid locking (might break parallel builds)"
24ac_help="$ac_help
25 --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings."
26ac_help="$ac_help
27 --enable-iso-c Try to warn if code is not ISO C "
24ac_help="$ac_help 28ac_help="$ac_help
25 --with-imagemagick enable ImageMagick (default = yes)" 29 --with-imagemagick enable ImageMagick (default = yes)"
26ac_help="$ac_help 30ac_help="$ac_help
27 --disable-html-docs Disable generation of HTML 3.2 docs (default: on)" 31 --disable-html-docs Disable generation of HTML 3.2 docs (default: on)"
28ac_help="$ac_help 32ac_help="$ac_help
570# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 574# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
571# AFS /usr/afsws/bin/install, which mishandles nonexistent args 575# AFS /usr/afsws/bin/install, which mishandles nonexistent args
572# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 576# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
573# ./install, which can be erroneously created by make from ./install.sh. 577# ./install, which can be erroneously created by make from ./install.sh.
574echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 578echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
575echo "configure:576: checking for a BSD compatible install" >&5 579echo "configure:580: checking for a BSD compatible install" >&5
576if test -z "$INSTALL"; then 580if test -z "$INSTALL"; then
577if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 581if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
578 echo $ac_n "(cached) $ac_c" 1>&6 582 echo $ac_n "(cached) $ac_c" 1>&6
579else 583else
580 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 584 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
623test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 627test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
624 628
625test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 629test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
626 630
627echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 631echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
628echo "configure:629: checking whether build environment is sane" >&5 632echo "configure:633: checking whether build environment is sane" >&5
629# Just in case 633# Just in case
630sleep 1 634sleep 1
631echo timestamp > conftestfile 635echo timestamp > conftestfile
632# Do `set' in a subshell so we don't clobber the current shell's 636# Do `set' in a subshell so we don't clobber the current shell's
633# arguments. Must try -L first in case configure is actually a 637# arguments. Must try -L first in case configure is actually a
680 684
681# sed with no file args requires a program. 685# sed with no file args requires a program.
682test "$program_transform_name" = "" && program_transform_name="s,x,x," 686test "$program_transform_name" = "" && program_transform_name="s,x,x,"
683 687
684echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 688echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
685echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5 689echo "configure:690: checking whether ${MAKE-make} sets \${MAKE}" >&5
686set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 690set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
687if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 691if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
688 echo $ac_n "(cached) $ac_c" 1>&6 692 echo $ac_n "(cached) $ac_c" 1>&6
689else 693else
690 cat > conftestmake <<\EOF 694 cat > conftestmake <<\EOF
726 730
727 731
728 732
729missing_dir=`cd $ac_aux_dir && pwd` 733missing_dir=`cd $ac_aux_dir && pwd`
730echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 734echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
731echo "configure:732: checking for working aclocal" >&5 735echo "configure:736: checking for working aclocal" >&5
732# Run test in a subshell; some versions of sh will print an error if 736# Run test in a subshell; some versions of sh will print an error if
733# an executable is not found, even if stderr is redirected. 737# an executable is not found, even if stderr is redirected.
734# Redirect stdin to placate older versions of autoconf. Sigh. 738# Redirect stdin to placate older versions of autoconf. Sigh.
735if (aclocal --version) < /dev/null > /dev/null 2>&1; then 739if (aclocal --version) < /dev/null > /dev/null 2>&1; then
736 ACLOCAL=aclocal 740 ACLOCAL=aclocal
739 ACLOCAL="$missing_dir/missing aclocal" 743 ACLOCAL="$missing_dir/missing aclocal"
740 echo "$ac_t""missing" 1>&6 744 echo "$ac_t""missing" 1>&6
741fi 745fi
742 746
743echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 747echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
744echo "configure:745: checking for working autoconf" >&5 748echo "configure:749: checking for working autoconf" >&5
745# Run test in a subshell; some versions of sh will print an error if 749# Run test in a subshell; some versions of sh will print an error if
746# an executable is not found, even if stderr is redirected. 750# an executable is not found, even if stderr is redirected.
747# Redirect stdin to placate older versions of autoconf. Sigh. 751# Redirect stdin to placate older versions of autoconf. Sigh.
748if (autoconf --version) < /dev/null > /dev/null 2>&1; then 752if (autoconf --version) < /dev/null > /dev/null 2>&1; then
749 AUTOCONF=autoconf 753 AUTOCONF=autoconf
752 AUTOCONF="$missing_dir/missing autoconf" 756 AUTOCONF="$missing_dir/missing autoconf"
753 echo "$ac_t""missing" 1>&6 757 echo "$ac_t""missing" 1>&6
754fi 758fi
755 759
756echo $ac_n "checking for working automake""... $ac_c" 1>&6 760echo $ac_n "checking for working automake""... $ac_c" 1>&6
757echo "configure:758: checking for working automake" >&5 761echo "configure:762: checking for working automake" >&5
758# Run test in a subshell; some versions of sh will print an error if 762# Run test in a subshell; some versions of sh will print an error if
759# an executable is not found, even if stderr is redirected. 763# an executable is not found, even if stderr is redirected.
760# Redirect stdin to placate older versions of autoconf. Sigh. 764# Redirect stdin to placate older versions of autoconf. Sigh.
761if (automake --version) < /dev/null > /dev/null 2>&1; then 765if (automake --version) < /dev/null > /dev/null 2>&1; then
762 AUTOMAKE=automake 766 AUTOMAKE=automake
765 AUTOMAKE="$missing_dir/missing automake" 769 AUTOMAKE="$missing_dir/missing automake"
766 echo "$ac_t""missing" 1>&6 770 echo "$ac_t""missing" 1>&6
767fi 771fi
768 772
769echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 773echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
770echo "configure:771: checking for working autoheader" >&5 774echo "configure:775: checking for working autoheader" >&5
771# Run test in a subshell; some versions of sh will print an error if 775# Run test in a subshell; some versions of sh will print an error if
772# an executable is not found, even if stderr is redirected. 776# an executable is not found, even if stderr is redirected.
773# Redirect stdin to placate older versions of autoconf. Sigh. 777# Redirect stdin to placate older versions of autoconf. Sigh.
774if (autoheader --version) < /dev/null > /dev/null 2>&1; then 778if (autoheader --version) < /dev/null > /dev/null 2>&1; then
775 AUTOHEADER=autoheader 779 AUTOHEADER=autoheader
778 AUTOHEADER="$missing_dir/missing autoheader" 782 AUTOHEADER="$missing_dir/missing autoheader"
779 echo "$ac_t""missing" 1>&6 783 echo "$ac_t""missing" 1>&6
780fi 784fi
781 785
782echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 786echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
783echo "configure:784: checking for working makeinfo" >&5 787echo "configure:788: checking for working makeinfo" >&5
784# Run test in a subshell; some versions of sh will print an error if 788# Run test in a subshell; some versions of sh will print an error if
785# an executable is not found, even if stderr is redirected. 789# an executable is not found, even if stderr is redirected.
786# Redirect stdin to placate older versions of autoconf. Sigh. 790# Redirect stdin to placate older versions of autoconf. Sigh.
787if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 791if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
788 MAKEINFO=makeinfo 792 MAKEINFO=makeinfo
872if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 876if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
873else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 877else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
874fi 878fi
875 879
876echo $ac_n "checking host system type""... $ac_c" 1>&6 880echo $ac_n "checking host system type""... $ac_c" 1>&6
877echo "configure:878: checking host system type" >&5 881echo "configure:882: checking host system type" >&5
878 882
879host_alias=$host 883host_alias=$host
880case "$host_alias" in 884case "$host_alias" in
881NONE) 885NONE)
882 case $nonopt in 886 case $nonopt in
893host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 897host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
894host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 898host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
895echo "$ac_t""$host" 1>&6 899echo "$ac_t""$host" 1>&6
896 900
897echo $ac_n "checking build system type""... $ac_c" 1>&6 901echo $ac_n "checking build system type""... $ac_c" 1>&6
898echo "configure:899: checking build system type" >&5 902echo "configure:903: checking build system type" >&5
899 903
900build_alias=$build 904build_alias=$build
901case "$build_alias" in 905case "$build_alias" in
902NONE) 906NONE)
903 case $nonopt in 907 case $nonopt in
913echo "$ac_t""$build" 1>&6 917echo "$ac_t""$build" 1>&6
914 918
915# Extract the first word of "ranlib", so it can be a program name with args. 919# Extract the first word of "ranlib", so it can be a program name with args.
916set dummy ranlib; ac_word=$2 920set dummy ranlib; ac_word=$2
917echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
918echo "configure:919: checking for $ac_word" >&5 922echo "configure:923: checking for $ac_word" >&5
919if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 923if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
920 echo $ac_n "(cached) $ac_c" 1>&6 924 echo $ac_n "(cached) $ac_c" 1>&6
921else 925else
922 if test -n "$RANLIB"; then 926 if test -n "$RANLIB"; then
923 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
943fi 947fi
944 948
945# Extract the first word of "gcc", so it can be a program name with args. 949# Extract the first word of "gcc", so it can be a program name with args.
946set dummy gcc; ac_word=$2 950set dummy gcc; ac_word=$2
947echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 951echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
948echo "configure:949: checking for $ac_word" >&5 952echo "configure:953: checking for $ac_word" >&5
949if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 953if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6 954 echo $ac_n "(cached) $ac_c" 1>&6
951else 955else
952 if test -n "$CC"; then 956 if test -n "$CC"; then
953 ac_cv_prog_CC="$CC" # Let the user override the test. 957 ac_cv_prog_CC="$CC" # Let the user override the test.
973 977
974if test -z "$CC"; then 978if test -z "$CC"; then
975 # Extract the first word of "cc", so it can be a program name with args. 979 # Extract the first word of "cc", so it can be a program name with args.
976set dummy cc; ac_word=$2 980set dummy cc; ac_word=$2
977echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 981echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
978echo "configure:979: checking for $ac_word" >&5 982echo "configure:983: checking for $ac_word" >&5
979if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 983if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6 984 echo $ac_n "(cached) $ac_c" 1>&6
981else 985else
982 if test -n "$CC"; then 986 if test -n "$CC"; then
983 ac_cv_prog_CC="$CC" # Let the user override the test. 987 ac_cv_prog_CC="$CC" # Let the user override the test.
1024 case "`uname -s`" in 1028 case "`uname -s`" in
1025 *win32* | *WIN32*) 1029 *win32* | *WIN32*)
1026 # Extract the first word of "cl", so it can be a program name with args. 1030 # Extract the first word of "cl", so it can be a program name with args.
1027set dummy cl; ac_word=$2 1031set dummy cl; ac_word=$2
1028echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1032echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1029echo "configure:1030: checking for $ac_word" >&5 1033echo "configure:1034: checking for $ac_word" >&5
1030if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1034if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1031 echo $ac_n "(cached) $ac_c" 1>&6 1035 echo $ac_n "(cached) $ac_c" 1>&6
1032else 1036else
1033 if test -n "$CC"; then 1037 if test -n "$CC"; then
1034 ac_cv_prog_CC="$CC" # Let the user override the test. 1038 ac_cv_prog_CC="$CC" # Let the user override the test.
1056 fi 1060 fi
1057 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1061 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1058fi 1062fi
1059 1063
1060echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1064echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1061echo "configure:1062: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1065echo "configure:1066: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1062 1066
1063ac_ext=c 1067ac_ext=c
1064# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1068# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1065ac_cpp='$CPP $CPPFLAGS' 1069ac_cpp='$CPP $CPPFLAGS'
1066ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1070ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1067ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1071ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1068cross_compiling=$ac_cv_prog_cc_cross 1072cross_compiling=$ac_cv_prog_cc_cross
1069 1073
1070cat > conftest.$ac_ext << EOF 1074cat > conftest.$ac_ext << EOF
1071 1075
1072#line 1073 "configure" 1076#line 1077 "configure"
1073#include "confdefs.h" 1077#include "confdefs.h"
1074 1078
1075main(){return(0);} 1079main(){return(0);}
1076EOF 1080EOF
1077if { (eval echo configure:1078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1081if { (eval echo configure:1082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1078 ac_cv_prog_cc_works=yes 1082 ac_cv_prog_cc_works=yes
1079 # If we can't run a trivial program, we are probably using a cross compiler. 1083 # If we can't run a trivial program, we are probably using a cross compiler.
1080 if (./conftest; exit) 2>/dev/null; then 1084 if (./conftest; exit) 2>/dev/null; then
1081 ac_cv_prog_cc_cross=no 1085 ac_cv_prog_cc_cross=no
1082 else 1086 else
1098echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1102echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1099if test $ac_cv_prog_cc_works = no; then 1103if test $ac_cv_prog_cc_works = no; then
1100 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1104 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1101fi 1105fi
1102echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1106echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1103echo "configure:1104: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1107echo "configure:1108: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1104echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1108echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1105cross_compiling=$ac_cv_prog_cc_cross 1109cross_compiling=$ac_cv_prog_cc_cross
1106 1110
1107echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1111echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1108echo "configure:1109: checking whether we are using GNU C" >&5 1112echo "configure:1113: checking whether we are using GNU C" >&5
1109if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1113if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6 1114 echo $ac_n "(cached) $ac_c" 1>&6
1111else 1115else
1112 cat > conftest.c <<EOF 1116 cat > conftest.c <<EOF
1113#ifdef __GNUC__ 1117#ifdef __GNUC__
1114 yes; 1118 yes;
1115#endif 1119#endif
1116EOF 1120EOF
1117if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1121if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1118 ac_cv_prog_gcc=yes 1122 ac_cv_prog_gcc=yes
1119else 1123else
1120 ac_cv_prog_gcc=no 1124 ac_cv_prog_gcc=no
1121fi 1125fi
1122fi 1126fi
1131 1135
1132ac_test_CFLAGS="${CFLAGS+set}" 1136ac_test_CFLAGS="${CFLAGS+set}"
1133ac_save_CFLAGS="$CFLAGS" 1137ac_save_CFLAGS="$CFLAGS"
1134CFLAGS= 1138CFLAGS=
1135echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1139echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1136echo "configure:1137: checking whether ${CC-cc} accepts -g" >&5 1140echo "configure:1141: checking whether ${CC-cc} accepts -g" >&5
1137if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1141if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6 1142 echo $ac_n "(cached) $ac_c" 1>&6
1139else 1143else
1140 echo 'void f(){}' > conftest.c 1144 echo 'void f(){}' > conftest.c
1141if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1145if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1174 1178
1175ac_prog=ld 1179ac_prog=ld
1176if test "$ac_cv_prog_gcc" = yes; then 1180if test "$ac_cv_prog_gcc" = yes; then
1177 # Check if gcc -print-prog-name=ld gives a path. 1181 # Check if gcc -print-prog-name=ld gives a path.
1178 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 1182 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1179echo "configure:1180: checking for ld used by GCC" >&5 1183echo "configure:1184: checking for ld used by GCC" >&5
1180 ac_prog=`($CC -print-prog-name=ld) 2>&5` 1184 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1181 case "$ac_prog" in 1185 case "$ac_prog" in
1182 # Accept absolute paths. 1186 # Accept absolute paths.
1183 [\\/]* | [A-Za-z]:[\\/]*) 1187 [\\/]* | [A-Za-z]:[\\/]*)
1184 re_direlt='/[^/][^/]*/\.\./' 1188 re_direlt='/[^/][^/]*/\.\./'
1198 with_gnu_ld=unknown 1202 with_gnu_ld=unknown
1199 ;; 1203 ;;
1200 esac 1204 esac
1201elif test "$with_gnu_ld" = yes; then 1205elif test "$with_gnu_ld" = yes; then
1202 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 1206 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1203echo "configure:1204: checking for GNU ld" >&5 1207echo "configure:1208: checking for GNU ld" >&5
1204else 1208else
1205 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 1209 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1206echo "configure:1207: checking for non-GNU ld" >&5 1210echo "configure:1211: checking for non-GNU ld" >&5
1207fi 1211fi
1208if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then 1212if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6 1213 echo $ac_n "(cached) $ac_c" 1>&6
1210else 1214else
1211 if test -z "$LD"; then 1215 if test -z "$LD"; then
1237 echo "$ac_t""no" 1>&6 1241 echo "$ac_t""no" 1>&6
1238fi 1242fi
1239test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 1243test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1240 1244
1241echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 1245echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1242echo "configure:1243: checking if the linker ($LD) is GNU ld" >&5 1246echo "configure:1247: checking if the linker ($LD) is GNU ld" >&5
1243if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then 1247if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6 1248 echo $ac_n "(cached) $ac_c" 1>&6
1245else 1249else
1246 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 1250 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1247if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 1251if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1253 1257
1254echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 1258echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1255 1259
1256 1260
1257echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 1261echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1258echo "configure:1259: checking for BSD-compatible nm" >&5 1262echo "configure:1263: checking for BSD-compatible nm" >&5
1259if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then 1263if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6 1264 echo $ac_n "(cached) $ac_c" 1>&6
1261else 1265else
1262 if test -n "$NM"; then 1266 if test -n "$NM"; then
1263 # Let the user override the test. 1267 # Let the user override the test.
1290NM="$ac_cv_path_NM" 1294NM="$ac_cv_path_NM"
1291echo "$ac_t""$NM" 1>&6 1295echo "$ac_t""$NM" 1>&6
1292 1296
1293 1297
1294echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1298echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1295echo "configure:1296: checking whether ln -s works" >&5 1299echo "configure:1300: checking whether ln -s works" >&5
1296if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1300if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6 1301 echo $ac_n "(cached) $ac_c" 1>&6
1298else 1302else
1299 rm -f conftestdata 1303 rm -f conftestdata
1300if ln -s X conftestdata 2>/dev/null 1304if ln -s X conftestdata 2>/dev/null
1334# Some flags need to be propagated to the compiler or linker for good 1338# Some flags need to be propagated to the compiler or linker for good
1335# libtool support. 1339# libtool support.
1336case "$host" in 1340case "$host" in
1337*-*-irix6*) 1341*-*-irix6*)
1338 # Find out which ABI we are using. 1342 # Find out which ABI we are using.
1339 echo '#line 1340 "configure"' > conftest.$ac_ext 1343 echo '#line 1344 "configure"' > conftest.$ac_ext
1340 if { (eval echo configure:1341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1344 if { (eval echo configure:1345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1341 case "`/usr/bin/file conftest.o`" in 1345 case "`/usr/bin/file conftest.o`" in
1342 *32-bit*) 1346 *32-bit*)
1343 LD="${LD-ld} -32" 1347 LD="${LD-ld} -32"
1344 ;; 1348 ;;
1345 *N32*) 1349 *N32*)
1356*-*-sco3.2v5*) 1360*-*-sco3.2v5*)
1357 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1361 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1358 SAVE_CFLAGS="$CFLAGS" 1362 SAVE_CFLAGS="$CFLAGS"
1359 CFLAGS="$CFLAGS -belf" 1363 CFLAGS="$CFLAGS -belf"
1360 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 1364 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1361echo "configure:1362: checking whether the C compiler needs -belf" >&5 1365echo "configure:1366: checking whether the C compiler needs -belf" >&5
1362if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 1366if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1363 echo $ac_n "(cached) $ac_c" 1>&6 1367 echo $ac_n "(cached) $ac_c" 1>&6
1364else 1368else
1365 cat > conftest.$ac_ext <<EOF 1369 cat > conftest.$ac_ext <<EOF
1366#line 1367 "configure" 1370#line 1371 "configure"
1367#include "confdefs.h" 1371#include "confdefs.h"
1368 1372
1369int main() { 1373int main() {
1370 1374
1371; return 0; } 1375; return 0; }
1372EOF 1376EOF
1373if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1377if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1374 rm -rf conftest* 1378 rm -rf conftest*
1375 lt_cv_cc_needs_belf=yes 1379 lt_cv_cc_needs_belf=yes
1376else 1380else
1377 echo "configure: failed program was:" >&5 1381 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5 1382 cat conftest.$ac_ext >&5
1470# Redirect the config.log output again, so that the ltconfig log is not 1474# Redirect the config.log output again, so that the ltconfig log is not
1471# clobbered by the next message. 1475# clobbered by the next message.
1472exec 5>>./config.log 1476exec 5>>./config.log
1473 1477
1474 1478
1479# Check whether --enable-compile-warnings or --disable-compile-warnings was given.
1480if test "${enable_compile_warnings+set}" = set; then
1481 enableval="$enable_compile_warnings"
1482 :
1483else
1484 enable_compile_warnings=minimum
1485fi
1486
1487
1488echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
1489echo "configure:1490: checking what warning flags to pass to the C compiler" >&5
1490warnCFLAGS=
1491if test "x$GCC" != xyes; then
1492 enable_compile_warnings=no
1493fi
1494if test "x$enable_compile_warnings" != "xno"; then
1495 if test "x$GCC" = "xyes"; then
1496 case " $CFLAGS " in
1497 *\ \ -Wall\ \ *) ;;
1498 *) warnCFLAGS="-Wall -Wunused" ;;
1499 esac
1500
1501 ## -W is not all that useful. And it cannot be controlled
1502 ## with individual -Wno-xxx flags, unlike -Wall
1503 if test "x$enable_compile_warnings" = "xyes"; then
1504 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
1505 fi
1506 fi
1507fi
1508echo "$ac_t""$warnCFLAGS" 1>&6
1509
1510# Check whether --enable-iso-c or --disable-iso-c was given.
1511if test "${enable_iso_c+set}" = set; then
1512 enableval="$enable_iso_c"
1513 :
1514else
1515 enable_iso_c=no
1516fi
1517
1518
1519echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
1520echo "configure:1521: checking what language compliance flags to pass to the C compiler" >&5
1521complCFLAGS=
1522if test "x$enable_iso_c" != "xno"; then
1523 if test "x$GCC" = "xyes"; then
1524 case " $CFLAGS " in
1525 *\ \ -ansi\ \ *) ;;
1526 *) complCFLAGS="$complCFLAGS -ansi" ;;
1527 esac
1528
1529 case " $CFLAGS " in
1530 *\ \ -pedantic\ \ *) ;;
1531 *) complCFLAGS="$complCFLAGS -pedantic" ;;
1532 esac
1533 fi
1534fi
1535echo "$ac_t""$complCFLAGS" 1>&6
1536if test "x$cflags_set" != "xyes"; then
1537 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
1538 cflags_set=yes
1539
1540fi
1541
1542
1475# Check whether --with-imagemagick or --without-imagemagick was given. 1543# Check whether --with-imagemagick or --without-imagemagick was given.
1476if test "${with_imagemagick+set}" = set; then 1544if test "${with_imagemagick+set}" = set; then
1477 withval="$with_imagemagick" 1545 withval="$with_imagemagick"
1478 IMAGEMAGICK=$withval 1546 IMAGEMAGICK=$withval
1479else 1547else
1480 IMAGEMAGICK='yes' 1548 IMAGEMAGICK='yes'
1481fi 1549fi
1482 1550
1483if test x"$IMAGEMAGICK" != xno ; then 1551if test x"$IMAGEMAGICK" != xno ; then
1484 echo $ac_n "checking for MagickWarning in -lMagick""... $ac_c" 1>&6 1552 echo $ac_n "checking for MagickWarning in -lMagick""... $ac_c" 1>&6
1485echo "configure:1486: checking for MagickWarning in -lMagick" >&5 1553echo "configure:1554: checking for MagickWarning in -lMagick" >&5
1486ac_lib_var=`echo Magick'_'MagickWarning | sed 'y%./+-%__p_%'` 1554ac_lib_var=`echo Magick'_'MagickWarning | sed 'y%./+-%__p_%'`
1487if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1555if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1488 echo $ac_n "(cached) $ac_c" 1>&6 1556 echo $ac_n "(cached) $ac_c" 1>&6
1489else 1557else
1490 ac_save_LIBS="$LIBS" 1558 ac_save_LIBS="$LIBS"
1491LIBS="-lMagick $LIBS" 1559LIBS="-lMagick $LIBS"
1492cat > conftest.$ac_ext <<EOF 1560cat > conftest.$ac_ext <<EOF
1493#line 1494 "configure" 1561#line 1562 "configure"
1494#include "confdefs.h" 1562#include "confdefs.h"
1495/* Override any gcc2 internal prototype to avoid an error. */ 1563/* Override any gcc2 internal prototype to avoid an error. */
1496/* We use char because int might match the return type of a gcc2 1564/* We use char because int might match the return type of a gcc2
1497 builtin and then its argument prototype would still apply. */ 1565 builtin and then its argument prototype would still apply. */
1498char MagickWarning(); 1566char MagickWarning();
1499 1567
1500int main() { 1568int main() {
1501MagickWarning() 1569MagickWarning()
1502; return 0; } 1570; return 0; }
1503EOF 1571EOF
1504if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1572if { (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1505 rm -rf conftest* 1573 rm -rf conftest*
1506 eval "ac_cv_lib_$ac_lib_var=yes" 1574 eval "ac_cv_lib_$ac_lib_var=yes"
1507else 1575else
1508 echo "configure: failed program was:" >&5 1576 echo "configure: failed program was:" >&5
1509 cat conftest.$ac_ext >&5 1577 cat conftest.$ac_ext >&5
1536 LIB_MAGICK= 1604 LIB_MAGICK=
1537fi 1605fi
1538 1606
1539 1607
1540echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1608echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1541echo "configure:1542: checking how to run the C preprocessor" >&5 1609echo "configure:1610: checking how to run the C preprocessor" >&5
1542# On Suns, sometimes $CPP names a directory. 1610# On Suns, sometimes $CPP names a directory.
1543if test -n "$CPP" && test -d "$CPP"; then 1611if test -n "$CPP" && test -d "$CPP"; then
1544 CPP= 1612 CPP=
1545fi 1613fi
1546if test -z "$CPP"; then 1614if test -z "$CPP"; then
1551 # substituted into the Makefile and "${CC-cc}" will confuse make. 1619 # substituted into the Makefile and "${CC-cc}" will confuse make.
1552 CPP="${CC-cc} -E" 1620 CPP="${CC-cc} -E"
1553 # On the NeXT, cc -E runs the code through the compiler's parser, 1621 # On the NeXT, cc -E runs the code through the compiler's parser,
1554 # not just through cpp. 1622 # not just through cpp.
1555 cat > conftest.$ac_ext <<EOF 1623 cat > conftest.$ac_ext <<EOF
1556#line 1557 "configure" 1624#line 1625 "configure"
1557#include "confdefs.h" 1625#include "confdefs.h"
1558#include <assert.h> 1626#include <assert.h>
1559Syntax Error 1627Syntax Error
1560EOF 1628EOF
1561ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1629ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1562{ (eval echo configure:1563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1630{ (eval echo configure:1631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1563ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1631ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1564if test -z "$ac_err"; then 1632if test -z "$ac_err"; then
1565 : 1633 :
1566else 1634else
1567 echo "$ac_err" >&5 1635 echo "$ac_err" >&5
1568 echo "configure: failed program was:" >&5 1636 echo "configure: failed program was:" >&5
1569 cat conftest.$ac_ext >&5 1637 cat conftest.$ac_ext >&5
1570 rm -rf conftest* 1638 rm -rf conftest*
1571 CPP="${CC-cc} -E -traditional-cpp" 1639 CPP="${CC-cc} -E -traditional-cpp"
1572 cat > conftest.$ac_ext <<EOF 1640 cat > conftest.$ac_ext <<EOF
1573#line 1574 "configure" 1641#line 1642 "configure"
1574#include "confdefs.h" 1642#include "confdefs.h"
1575#include <assert.h> 1643#include <assert.h>
1576Syntax Error 1644Syntax Error
1577EOF 1645EOF
1578ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1646ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1579{ (eval echo configure:1580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1647{ (eval echo configure:1648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1580ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1648ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1581if test -z "$ac_err"; then 1649if test -z "$ac_err"; then
1582 : 1650 :
1583else 1651else
1584 echo "$ac_err" >&5 1652 echo "$ac_err" >&5
1585 echo "configure: failed program was:" >&5 1653 echo "configure: failed program was:" >&5
1586 cat conftest.$ac_ext >&5 1654 cat conftest.$ac_ext >&5
1587 rm -rf conftest* 1655 rm -rf conftest*
1588 CPP="${CC-cc} -nologo -E" 1656 CPP="${CC-cc} -nologo -E"
1589 cat > conftest.$ac_ext <<EOF 1657 cat > conftest.$ac_ext <<EOF
1590#line 1591 "configure" 1658#line 1659 "configure"
1591#include "confdefs.h" 1659#include "confdefs.h"
1592#include <assert.h> 1660#include <assert.h>
1593Syntax Error 1661Syntax Error
1594EOF 1662EOF
1595ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1663ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1596{ (eval echo configure:1597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1664{ (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1597ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1665ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1598if test -z "$ac_err"; then 1666if test -z "$ac_err"; then
1599 : 1667 :
1600else 1668else
1601 echo "$ac_err" >&5 1669 echo "$ac_err" >&5
1616 ac_cv_prog_CPP="$CPP" 1684 ac_cv_prog_CPP="$CPP"
1617fi 1685fi
1618echo "$ac_t""$CPP" 1>&6 1686echo "$ac_t""$CPP" 1>&6
1619 1687
1620echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1688echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1621echo "configure:1622: checking for ANSI C header files" >&5 1689echo "configure:1690: checking for ANSI C header files" >&5
1622if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1690if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6 1691 echo $ac_n "(cached) $ac_c" 1>&6
1624else 1692else
1625 cat > conftest.$ac_ext <<EOF 1693 cat > conftest.$ac_ext <<EOF
1626#line 1627 "configure" 1694#line 1695 "configure"
1627#include "confdefs.h" 1695#include "confdefs.h"
1628#include <stdlib.h> 1696#include <stdlib.h>
1629#include <stdarg.h> 1697#include <stdarg.h>
1630#include <string.h> 1698#include <string.h>
1631#include <float.h> 1699#include <float.h>
1632EOF 1700EOF
1633ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1701ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1634{ (eval echo configure:1635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1702{ (eval echo configure:1703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1635ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1703ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1636if test -z "$ac_err"; then 1704if test -z "$ac_err"; then
1637 rm -rf conftest* 1705 rm -rf conftest*
1638 ac_cv_header_stdc=yes 1706 ac_cv_header_stdc=yes
1639else 1707else
1646rm -f conftest* 1714rm -f conftest*
1647 1715
1648if test $ac_cv_header_stdc = yes; then 1716if test $ac_cv_header_stdc = yes; then
1649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1717 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1650cat > conftest.$ac_ext <<EOF 1718cat > conftest.$ac_ext <<EOF
1651#line 1652 "configure" 1719#line 1720 "configure"
1652#include "confdefs.h" 1720#include "confdefs.h"
1653#include <string.h> 1721#include <string.h>
1654EOF 1722EOF
1655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1656 egrep "memchr" >/dev/null 2>&1; then 1724 egrep "memchr" >/dev/null 2>&1; then
1664fi 1732fi
1665 1733
1666if test $ac_cv_header_stdc = yes; then 1734if test $ac_cv_header_stdc = yes; then
1667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1668cat > conftest.$ac_ext <<EOF 1736cat > conftest.$ac_ext <<EOF
1669#line 1670 "configure" 1737#line 1738 "configure"
1670#include "confdefs.h" 1738#include "confdefs.h"
1671#include <stdlib.h> 1739#include <stdlib.h>
1672EOF 1740EOF
1673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1674 egrep "free" >/dev/null 2>&1; then 1742 egrep "free" >/dev/null 2>&1; then
1685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1686if test "$cross_compiling" = yes; then 1754if test "$cross_compiling" = yes; then
1687 : 1755 :
1688else 1756else
1689 cat > conftest.$ac_ext <<EOF 1757 cat > conftest.$ac_ext <<EOF
1690#line 1691 "configure" 1758#line 1759 "configure"
1691#include "confdefs.h" 1759#include "confdefs.h"
1692#include <ctype.h> 1760#include <ctype.h>
1693#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1761#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1694#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1762#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1695#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1763#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1696int main () { int i; for (i = 0; i < 256; i++) 1764int main () { int i; for (i = 0; i < 256; i++)
1697if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1765if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1698exit (0); } 1766exit (0); }
1699 1767
1700EOF 1768EOF
1701if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1769if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1702then 1770then
1703 : 1771 :
1704else 1772else
1705 echo "configure: failed program was:" >&5 1773 echo "configure: failed program was:" >&5
1706 cat conftest.$ac_ext >&5 1774 cat conftest.$ac_ext >&5
1723 1791
1724for ac_hdr in unistd.h 1792for ac_hdr in unistd.h
1725do 1793do
1726ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1794ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1727echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1795echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1728echo "configure:1729: checking for $ac_hdr" >&5 1796echo "configure:1797: checking for $ac_hdr" >&5
1729if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1797if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6 1798 echo $ac_n "(cached) $ac_c" 1>&6
1731else 1799else
1732 cat > conftest.$ac_ext <<EOF 1800 cat > conftest.$ac_ext <<EOF
1733#line 1734 "configure" 1801#line 1802 "configure"
1734#include "confdefs.h" 1802#include "confdefs.h"
1735#include <$ac_hdr> 1803#include <$ac_hdr>
1736EOF 1804EOF
1737ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1805ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1738{ (eval echo configure:1739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1806{ (eval echo configure:1807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1739ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1807ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1740if test -z "$ac_err"; then 1808if test -z "$ac_err"; then
1741 rm -rf conftest* 1809 rm -rf conftest*
1742 eval "ac_cv_header_$ac_safe=yes" 1810 eval "ac_cv_header_$ac_safe=yes"
1743else 1811else
1761fi 1829fi
1762done 1830done
1763 1831
1764 1832
1765echo $ac_n "checking for working const""... $ac_c" 1>&6 1833echo $ac_n "checking for working const""... $ac_c" 1>&6
1766echo "configure:1767: checking for working const" >&5 1834echo "configure:1835: checking for working const" >&5
1767if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1835if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6 1836 echo $ac_n "(cached) $ac_c" 1>&6
1769else 1837else
1770 cat > conftest.$ac_ext <<EOF 1838 cat > conftest.$ac_ext <<EOF
1771#line 1772 "configure" 1839#line 1840 "configure"
1772#include "confdefs.h" 1840#include "confdefs.h"
1773 1841
1774int main() { 1842int main() {
1775 1843
1776/* Ultrix mips cc rejects this. */ 1844/* Ultrix mips cc rejects this. */
1815 const int foo = 10; 1883 const int foo = 10;
1816} 1884}
1817 1885
1818; return 0; } 1886; return 0; }
1819EOF 1887EOF
1820if { (eval echo configure:1821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1888if { (eval echo configure:1889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1821 rm -rf conftest* 1889 rm -rf conftest*
1822 ac_cv_c_const=yes 1890 ac_cv_c_const=yes
1823else 1891else
1824 echo "configure: failed program was:" >&5 1892 echo "configure: failed program was:" >&5
1825 cat conftest.$ac_ext >&5 1893 cat conftest.$ac_ext >&5
1836EOF 1904EOF
1837 1905
1838fi 1906fi
1839 1907
1840echo $ac_n "checking for size_t""... $ac_c" 1>&6 1908echo $ac_n "checking for size_t""... $ac_c" 1>&6
1841echo "configure:1842: checking for size_t" >&5 1909echo "configure:1910: checking for size_t" >&5
1842if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1910if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6 1911 echo $ac_n "(cached) $ac_c" 1>&6
1844else 1912else
1845 cat > conftest.$ac_ext <<EOF 1913 cat > conftest.$ac_ext <<EOF
1846#line 1847 "configure" 1914#line 1915 "configure"
1847#include "confdefs.h" 1915#include "confdefs.h"
1848#include <sys/types.h> 1916#include <sys/types.h>
1849#if STDC_HEADERS 1917#if STDC_HEADERS
1850#include <stdlib.h> 1918#include <stdlib.h>
1851#include <stddef.h> 1919#include <stddef.h>
1871fi 1939fi
1872 1940
1873 1941
1874 1942
1875echo $ac_n "checking size of char""... $ac_c" 1>&6 1943echo $ac_n "checking size of char""... $ac_c" 1>&6
1876echo "configure:1877: checking size of char" >&5 1944echo "configure:1945: checking size of char" >&5
1877if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 1945if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6 1946 echo $ac_n "(cached) $ac_c" 1>&6
1879else 1947else
1880 if test "$cross_compiling" = yes; then 1948 if test "$cross_compiling" = yes; then
1881 ac_cv_sizeof_char=1 1949 ac_cv_sizeof_char=1
1882else 1950else
1883 cat > conftest.$ac_ext <<EOF 1951 cat > conftest.$ac_ext <<EOF
1884#line 1885 "configure" 1952#line 1953 "configure"
1885#include "confdefs.h" 1953#include "confdefs.h"
1886#include <stdio.h> 1954#include <stdio.h>
1887main() 1955main()
1888{ 1956{
1889 FILE *f=fopen("conftestval", "w"); 1957 FILE *f=fopen("conftestval", "w");
1890 if (!f) exit(1); 1958 if (!f) exit(1);
1891 fprintf(f, "%d\n", sizeof(char)); 1959 fprintf(f, "%d\n", sizeof(char));
1892 exit(0); 1960 exit(0);
1893} 1961}
1894EOF 1962EOF
1895if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1963if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1896then 1964then
1897 ac_cv_sizeof_char=`cat conftestval` 1965 ac_cv_sizeof_char=`cat conftestval`
1898else 1966else
1899 echo "configure: failed program was:" >&5 1967 echo "configure: failed program was:" >&5
1900 cat conftest.$ac_ext >&5 1968 cat conftest.$ac_ext >&5
1910#define SIZEOF_CHAR $ac_cv_sizeof_char 1978#define SIZEOF_CHAR $ac_cv_sizeof_char
1911EOF 1979EOF
1912 1980
1913 1981
1914echo $ac_n "checking size of short""... $ac_c" 1>&6 1982echo $ac_n "checking size of short""... $ac_c" 1>&6
1915echo "configure:1916: checking size of short" >&5 1983echo "configure:1984: checking size of short" >&5
1916if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 1984if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6 1985 echo $ac_n "(cached) $ac_c" 1>&6
1918else 1986else
1919 if test "$cross_compiling" = yes; then 1987 if test "$cross_compiling" = yes; then
1920 ac_cv_sizeof_short=1 1988 ac_cv_sizeof_short=1
1921else 1989else
1922 cat > conftest.$ac_ext <<EOF 1990 cat > conftest.$ac_ext <<EOF
1923#line 1924 "configure" 1991#line 1992 "configure"
1924#include "confdefs.h" 1992#include "confdefs.h"
1925#include <stdio.h> 1993#include <stdio.h>
1926main() 1994main()
1927{ 1995{
1928 FILE *f=fopen("conftestval", "w"); 1996 FILE *f=fopen("conftestval", "w");
1929 if (!f) exit(1); 1997 if (!f) exit(1);
1930 fprintf(f, "%d\n", sizeof(short)); 1998 fprintf(f, "%d\n", sizeof(short));
1931 exit(0); 1999 exit(0);
1932} 2000}
1933EOF 2001EOF
1934if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2002if { (eval echo configure:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1935then 2003then
1936 ac_cv_sizeof_short=`cat conftestval` 2004 ac_cv_sizeof_short=`cat conftestval`
1937else 2005else
1938 echo "configure: failed program was:" >&5 2006 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5 2007 cat conftest.$ac_ext >&5
1949#define SIZEOF_SHORT $ac_cv_sizeof_short 2017#define SIZEOF_SHORT $ac_cv_sizeof_short
1950EOF 2018EOF
1951 2019
1952 2020
1953echo $ac_n "checking size of int""... $ac_c" 1>&6 2021echo $ac_n "checking size of int""... $ac_c" 1>&6
1954echo "configure:1955: checking size of int" >&5 2022echo "configure:2023: checking size of int" >&5
1955if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 2023if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6 2024 echo $ac_n "(cached) $ac_c" 1>&6
1957else 2025else
1958 if test "$cross_compiling" = yes; then 2026 if test "$cross_compiling" = yes; then
1959 ac_cv_sizeof_int=2 2027 ac_cv_sizeof_int=2
1960else 2028else
1961 cat > conftest.$ac_ext <<EOF 2029 cat > conftest.$ac_ext <<EOF
1962#line 1963 "configure" 2030#line 2031 "configure"
1963#include "confdefs.h" 2031#include "confdefs.h"
1964#include <stdio.h> 2032#include <stdio.h>
1965main() 2033main()
1966{ 2034{
1967 FILE *f=fopen("conftestval", "w"); 2035 FILE *f=fopen("conftestval", "w");
1968 if (!f) exit(1); 2036 if (!f) exit(1);
1969 fprintf(f, "%d\n", sizeof(int)); 2037 fprintf(f, "%d\n", sizeof(int));
1970 exit(0); 2038 exit(0);
1971} 2039}
1972EOF 2040EOF
1973if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2041if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1974then 2042then
1975 ac_cv_sizeof_int=`cat conftestval` 2043 ac_cv_sizeof_int=`cat conftestval`
1976else 2044else
1977 echo "configure: failed program was:" >&5 2045 echo "configure: failed program was:" >&5
1978 cat conftest.$ac_ext >&5 2046 cat conftest.$ac_ext >&5
1988#define SIZEOF_INT $ac_cv_sizeof_int 2056#define SIZEOF_INT $ac_cv_sizeof_int
1989EOF 2057EOF
1990 2058
1991 2059
1992echo $ac_n "checking size of long""... $ac_c" 1>&6 2060echo $ac_n "checking size of long""... $ac_c" 1>&6
1993echo "configure:1994: checking size of long" >&5 2061echo "configure:2062: checking size of long" >&5
1994if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 2062if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6 2063 echo $ac_n "(cached) $ac_c" 1>&6
1996else 2064else
1997 if test "$cross_compiling" = yes; then 2065 if test "$cross_compiling" = yes; then
1998 ac_cv_sizeof_long=4 2066 ac_cv_sizeof_long=4
1999else 2067else
2000 cat > conftest.$ac_ext <<EOF 2068 cat > conftest.$ac_ext <<EOF
2001#line 2002 "configure" 2069#line 2070 "configure"
2002#include "confdefs.h" 2070#include "confdefs.h"
2003#include <stdio.h> 2071#include <stdio.h>
2004main() 2072main()
2005{ 2073{
2006 FILE *f=fopen("conftestval", "w"); 2074 FILE *f=fopen("conftestval", "w");
2007 if (!f) exit(1); 2075 if (!f) exit(1);
2008 fprintf(f, "%d\n", sizeof(long)); 2076 fprintf(f, "%d\n", sizeof(long));
2009 exit(0); 2077 exit(0);
2010} 2078}
2011EOF 2079EOF
2012if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2080if { (eval echo configure:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2013then 2081then
2014 ac_cv_sizeof_long=`cat conftestval` 2082 ac_cv_sizeof_long=`cat conftestval`
2015else 2083else
2016 echo "configure: failed program was:" >&5 2084 echo "configure: failed program was:" >&5
2017 cat conftest.$ac_ext >&5 2085 cat conftest.$ac_ext >&5
2028EOF 2096EOF
2029 2097
2030 2098
2031 2099
2032echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 2100echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6
2033echo "configure:2034: checking for an 8 bit integer type" >&5 2101echo "configure:2102: checking for an 8 bit integer type" >&5
2034if test $ac_cv_sizeof_char -ge 1 ; then 2102if test $ac_cv_sizeof_char -ge 1 ; then
2035 INT_8_BIT=char 2103 INT_8_BIT=char
2036 echo "$ac_t""char" 1>&6 2104 echo "$ac_t""char" 1>&6
2037elif test $ac_cv_sizeof_short -ge 1 ; then 2105elif test $ac_cv_sizeof_short -ge 1 ; then
2038 INT_8_BIT=short 2106 INT_8_BIT=short
2046else 2114else
2047 { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } 2115 { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; }
2048fi 2116fi
2049 2117
2050echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 2118echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6
2051echo "configure:2052: checking for a 16 bit integer type" >&5 2119echo "configure:2120: checking for a 16 bit integer type" >&5
2052if test $ac_cv_sizeof_char -ge 2 ; then 2120if test $ac_cv_sizeof_char -ge 2 ; then
2053 INT_16_BIT=char 2121 INT_16_BIT=char
2054 echo "$ac_t""char" 1>&6 2122 echo "$ac_t""char" 1>&6
2055elif test $ac_cv_sizeof_short -ge 2 ; then 2123elif test $ac_cv_sizeof_short -ge 2 ; then
2056 INT_16_BIT=short 2124 INT_16_BIT=short
2064else 2132else
2065 { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } 2133 { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; }
2066fi 2134fi
2067 2135
2068echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 2136echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6
2069echo "configure:2070: checking for a 32 bit integer type" >&5 2137echo "configure:2138: checking for a 32 bit integer type" >&5
2070if test $ac_cv_sizeof_char -ge 4 ; then 2138if test $ac_cv_sizeof_char -ge 4 ; then
2071 INT_32_BIT=char 2139 INT_32_BIT=char
2072 echo "$ac_t""char" 1>&6 2140 echo "$ac_t""char" 1>&6
2073elif test $ac_cv_sizeof_short -ge 4 ; then 2141elif test $ac_cv_sizeof_short -ge 4 ; then
2074 INT_32_BIT=short 2142 INT_32_BIT=short
2086 2154
2087 2155
2088 2156
2089 2157
2090echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2158echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2091echo "configure:2092: checking for vprintf" >&5 2159echo "configure:2160: checking for vprintf" >&5
2092if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2160if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6 2161 echo $ac_n "(cached) $ac_c" 1>&6
2094else 2162else
2095 cat > conftest.$ac_ext <<EOF 2163 cat > conftest.$ac_ext <<EOF
2096#line 2097 "configure" 2164#line 2165 "configure"
2097#include "confdefs.h" 2165#include "confdefs.h"
2098/* System header to define __stub macros and hopefully few prototypes, 2166/* System header to define __stub macros and hopefully few prototypes,
2099 which can conflict with char vprintf(); below. */ 2167 which can conflict with char vprintf(); below. */
2100#include <assert.h> 2168#include <assert.h>
2101/* Override any gcc2 internal prototype to avoid an error. */ 2169/* Override any gcc2 internal prototype to avoid an error. */
2114vprintf(); 2182vprintf();
2115#endif 2183#endif
2116 2184
2117; return 0; } 2185; return 0; }
2118EOF 2186EOF
2119if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2187if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2120 rm -rf conftest* 2188 rm -rf conftest*
2121 eval "ac_cv_func_vprintf=yes" 2189 eval "ac_cv_func_vprintf=yes"
2122else 2190else
2123 echo "configure: failed program was:" >&5 2191 echo "configure: failed program was:" >&5
2124 cat conftest.$ac_ext >&5 2192 cat conftest.$ac_ext >&5
2138 echo "$ac_t""no" 1>&6 2206 echo "$ac_t""no" 1>&6
2139fi 2207fi
2140 2208
2141if test "$ac_cv_func_vprintf" != yes; then 2209if test "$ac_cv_func_vprintf" != yes; then
2142echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2210echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2143echo "configure:2144: checking for _doprnt" >&5 2211echo "configure:2212: checking for _doprnt" >&5
2144if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2212if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6 2213 echo $ac_n "(cached) $ac_c" 1>&6
2146else 2214else
2147 cat > conftest.$ac_ext <<EOF 2215 cat > conftest.$ac_ext <<EOF
2148#line 2149 "configure" 2216#line 2217 "configure"
2149#include "confdefs.h" 2217#include "confdefs.h"
2150/* System header to define __stub macros and hopefully few prototypes, 2218/* System header to define __stub macros and hopefully few prototypes,
2151 which can conflict with char _doprnt(); below. */ 2219 which can conflict with char _doprnt(); below. */
2152#include <assert.h> 2220#include <assert.h>
2153/* Override any gcc2 internal prototype to avoid an error. */ 2221/* Override any gcc2 internal prototype to avoid an error. */
2166_doprnt(); 2234_doprnt();
2167#endif 2235#endif
2168 2236
2169; return 0; } 2237; return 0; }
2170EOF 2238EOF
2171if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2239if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2172 rm -rf conftest* 2240 rm -rf conftest*
2173 eval "ac_cv_func__doprnt=yes" 2241 eval "ac_cv_func__doprnt=yes"
2174else 2242else
2175 echo "configure: failed program was:" >&5 2243 echo "configure: failed program was:" >&5
2176 cat conftest.$ac_ext >&5 2244 cat conftest.$ac_ext >&5
2193fi 2261fi
2194 2262
2195for ac_func in strdup 2263for ac_func in strdup
2196do 2264do
2197echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2265echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2198echo "configure:2199: checking for $ac_func" >&5 2266echo "configure:2267: checking for $ac_func" >&5
2199if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2267if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6 2268 echo $ac_n "(cached) $ac_c" 1>&6
2201else 2269else
2202 cat > conftest.$ac_ext <<EOF 2270 cat > conftest.$ac_ext <<EOF
2203#line 2204 "configure" 2271#line 2272 "configure"
2204#include "confdefs.h" 2272#include "confdefs.h"
2205/* System header to define __stub macros and hopefully few prototypes, 2273/* System header to define __stub macros and hopefully few prototypes,
2206 which can conflict with char $ac_func(); below. */ 2274 which can conflict with char $ac_func(); below. */
2207#include <assert.h> 2275#include <assert.h>
2208/* Override any gcc2 internal prototype to avoid an error. */ 2276/* Override any gcc2 internal prototype to avoid an error. */
2221$ac_func(); 2289$ac_func();
2222#endif 2290#endif
2223 2291
2224; return 0; } 2292; return 0; }
2225EOF 2293EOF
2226if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2294if { (eval echo configure:2295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2227 rm -rf conftest* 2295 rm -rf conftest*
2228 eval "ac_cv_func_$ac_func=yes" 2296 eval "ac_cv_func_$ac_func=yes"
2229else 2297else
2230 echo "configure: failed program was:" >&5 2298 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5 2299 cat conftest.$ac_ext >&5
2242#define $ac_tr_func 1 2310#define $ac_tr_func 1
2243EOF 2311EOF
2244 2312
2245else 2313else
2246 echo "$ac_t""no" 1>&6 2314 echo "$ac_t""no" 1>&6
2315LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2247fi 2316fi
2248done 2317done
2249 2318
2250for ac_func in strdup 2319
2320for ac_func in getopt_long
2251do 2321do
2252echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2322echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2253echo "configure:2254: checking for $ac_func" >&5 2323echo "configure:2324: checking for $ac_func" >&5
2254if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2324if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6 2325 echo $ac_n "(cached) $ac_c" 1>&6
2256else 2326else
2257 cat > conftest.$ac_ext <<EOF 2327 cat > conftest.$ac_ext <<EOF
2258#line 2259 "configure" 2328#line 2329 "configure"
2259#include "confdefs.h" 2329#include "confdefs.h"
2260/* System header to define __stub macros and hopefully few prototypes, 2330/* System header to define __stub macros and hopefully few prototypes,
2261 which can conflict with char $ac_func(); below. */ 2331 which can conflict with char $ac_func(); below. */
2262#include <assert.h> 2332#include <assert.h>
2263/* Override any gcc2 internal prototype to avoid an error. */ 2333/* Override any gcc2 internal prototype to avoid an error. */
2276$ac_func(); 2346$ac_func();
2277#endif 2347#endif
2278 2348
2279; return 0; } 2349; return 0; }
2280EOF 2350EOF
2281if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2351if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2282 rm -rf conftest* 2352 rm -rf conftest*
2283 eval "ac_cv_func_$ac_func=yes" 2353 eval "ac_cv_func_$ac_func=yes"
2284else 2354else
2285 echo "configure: failed program was:" >&5 2355 echo "configure: failed program was:" >&5
2286 cat conftest.$ac_ext >&5 2356 cat conftest.$ac_ext >&5
2297#define $ac_tr_func 1 2367#define $ac_tr_func 1
2298EOF 2368EOF
2299 2369
2300else 2370else
2301 echo "$ac_t""no" 1>&6 2371 echo "$ac_t""no" 1>&6
2302LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2372LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2303fi 2373fi
2304done 2374done
2305 2375
2306 2376
2307 2377
2390 RTFDOCS_FALSE='#' 2460 RTFDOCS_FALSE='#'
2391else 2461else
2392 RTFDOCS_TRUE='#' 2462 RTFDOCS_TRUE='#'
2393 RTFDOCS_FALSE= 2463 RTFDOCS_FALSE=
2394fi 2464fi
2465
2395 2466
2396trap '' 1 2 15 2467trap '' 1 2 15
2397cat > confcache <<\EOF 2468cat > confcache <<\EOF
2398# This file is a shell script that caches the results of configure 2469# This file is a shell script that caches the results of configure
2399# tests run on this system so they can be shared between configure 2470# tests run on this system so they can be shared between configure
2551s%@CC@%$CC%g 2622s%@CC@%$CC%g
2552s%@LD@%$LD%g 2623s%@LD@%$LD%g
2553s%@NM@%$NM%g 2624s%@NM@%$NM%g
2554s%@LN_S@%$LN_S%g 2625s%@LN_S@%$LN_S%g
2555s%@LIBTOOL@%$LIBTOOL%g 2626s%@LIBTOOL@%$LIBTOOL%g
2627s%@cflags_set@%$cflags_set%g
2556s%@LIB_MAGICK@%$LIB_MAGICK%g 2628s%@LIB_MAGICK@%$LIB_MAGICK%g
2557s%@CPP@%$CPP%g 2629s%@CPP@%$CPP%g
2558s%@INT_8_BIT@%$INT_8_BIT%g 2630s%@INT_8_BIT@%$INT_8_BIT%g
2559s%@INT_16_BIT@%$INT_16_BIT%g 2631s%@INT_16_BIT@%$INT_16_BIT%g
2560s%@INT_32_BIT@%$INT_32_BIT%g 2632s%@INT_32_BIT@%$INT_32_BIT%g

Legend:
Removed from v.16  
changed lines
  Added in v.21

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26