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

Diff of /psiconv/trunk/configure

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

Revision 2 Revision 50
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 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 "
28ac_help="$ac_help
29 --with-imagemagick enable ImageMagick (default = yes)"
30ac_help="$ac_help
25 --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)"
26ac_help="$ac_help 32ac_help="$ac_help
27 --enable-html4-docs Enable generation of HTML 4 docs (default: off)" 33 --enable-html4-docs Enable generation of HTML 4 docs (default: off)"
28ac_help="$ac_help 34ac_help="$ac_help
29 --enable-ascii-docs Enable generation of ASCII docs (default: off)" 35 --enable-ascii-docs Enable generation of ASCII docs (default: off)"
36ac_help="$ac_help
37 --enable-rtf-docs Enable generation of RTF docs (default: off)"
30 38
31# Initialize some variables set by options. 39# Initialize some variables set by options.
32# The variables have the same names as the options, with 40# The variables have the same names as the options, with
33# dashes changed to underlines. 41# dashes changed to underlines.
34build=NONE 42build=NONE
566# 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
567# AFS /usr/afsws/bin/install, which mishandles nonexistent args 575# AFS /usr/afsws/bin/install, which mishandles nonexistent args
568# 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"
569# ./install, which can be erroneously created by make from ./install.sh. 577# ./install, which can be erroneously created by make from ./install.sh.
570echo $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
571echo "configure:572: checking for a BSD compatible install" >&5 579echo "configure:580: checking for a BSD compatible install" >&5
572if test -z "$INSTALL"; then 580if test -z "$INSTALL"; then
573if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 581if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6 582 echo $ac_n "(cached) $ac_c" 1>&6
575else 583else
576 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 584 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
619test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 627test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
620 628
621test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 629test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
622 630
623echo $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
624echo "configure:625: checking whether build environment is sane" >&5 632echo "configure:633: checking whether build environment is sane" >&5
625# Just in case 633# Just in case
626sleep 1 634sleep 1
627echo timestamp > conftestfile 635echo timestamp > conftestfile
628# 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
629# arguments. Must try -L first in case configure is actually a 637# arguments. Must try -L first in case configure is actually a
676 684
677# sed with no file args requires a program. 685# sed with no file args requires a program.
678test "$program_transform_name" = "" && program_transform_name="s,x,x," 686test "$program_transform_name" = "" && program_transform_name="s,x,x,"
679 687
680echo $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
681echo "configure:682: checking whether ${MAKE-make} sets \${MAKE}" >&5 689echo "configure:690: checking whether ${MAKE-make} sets \${MAKE}" >&5
682set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 690set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
683if 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
684 echo $ac_n "(cached) $ac_c" 1>&6 692 echo $ac_n "(cached) $ac_c" 1>&6
685else 693else
686 cat > conftestmake <<\EOF 694 cat > conftestmake <<\EOF
705fi 713fi
706 714
707 715
708PACKAGE=psiconv 716PACKAGE=psiconv
709 717
710VERSION=0.5.0 718VERSION=0.6.1
711 719
712if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 720if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
713 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 721 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
714fi 722fi
715cat >> confdefs.h <<EOF 723cat >> confdefs.h <<EOF
722 730
723 731
724 732
725missing_dir=`cd $ac_aux_dir && pwd` 733missing_dir=`cd $ac_aux_dir && pwd`
726echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 734echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
727echo "configure:728: checking for working aclocal" >&5 735echo "configure:736: checking for working aclocal" >&5
728# 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
729# an executable is not found, even if stderr is redirected. 737# an executable is not found, even if stderr is redirected.
730# Redirect stdin to placate older versions of autoconf. Sigh. 738# Redirect stdin to placate older versions of autoconf. Sigh.
731if (aclocal --version) < /dev/null > /dev/null 2>&1; then 739if (aclocal --version) < /dev/null > /dev/null 2>&1; then
732 ACLOCAL=aclocal 740 ACLOCAL=aclocal
735 ACLOCAL="$missing_dir/missing aclocal" 743 ACLOCAL="$missing_dir/missing aclocal"
736 echo "$ac_t""missing" 1>&6 744 echo "$ac_t""missing" 1>&6
737fi 745fi
738 746
739echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 747echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
740echo "configure:741: checking for working autoconf" >&5 748echo "configure:749: checking for working autoconf" >&5
741# 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
742# an executable is not found, even if stderr is redirected. 750# an executable is not found, even if stderr is redirected.
743# Redirect stdin to placate older versions of autoconf. Sigh. 751# Redirect stdin to placate older versions of autoconf. Sigh.
744if (autoconf --version) < /dev/null > /dev/null 2>&1; then 752if (autoconf --version) < /dev/null > /dev/null 2>&1; then
745 AUTOCONF=autoconf 753 AUTOCONF=autoconf
748 AUTOCONF="$missing_dir/missing autoconf" 756 AUTOCONF="$missing_dir/missing autoconf"
749 echo "$ac_t""missing" 1>&6 757 echo "$ac_t""missing" 1>&6
750fi 758fi
751 759
752echo $ac_n "checking for working automake""... $ac_c" 1>&6 760echo $ac_n "checking for working automake""... $ac_c" 1>&6
753echo "configure:754: checking for working automake" >&5 761echo "configure:762: checking for working automake" >&5
754# 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
755# an executable is not found, even if stderr is redirected. 763# an executable is not found, even if stderr is redirected.
756# Redirect stdin to placate older versions of autoconf. Sigh. 764# Redirect stdin to placate older versions of autoconf. Sigh.
757if (automake --version) < /dev/null > /dev/null 2>&1; then 765if (automake --version) < /dev/null > /dev/null 2>&1; then
758 AUTOMAKE=automake 766 AUTOMAKE=automake
761 AUTOMAKE="$missing_dir/missing automake" 769 AUTOMAKE="$missing_dir/missing automake"
762 echo "$ac_t""missing" 1>&6 770 echo "$ac_t""missing" 1>&6
763fi 771fi
764 772
765echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 773echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
766echo "configure:767: checking for working autoheader" >&5 774echo "configure:775: checking for working autoheader" >&5
767# 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
768# an executable is not found, even if stderr is redirected. 776# an executable is not found, even if stderr is redirected.
769# Redirect stdin to placate older versions of autoconf. Sigh. 777# Redirect stdin to placate older versions of autoconf. Sigh.
770if (autoheader --version) < /dev/null > /dev/null 2>&1; then 778if (autoheader --version) < /dev/null > /dev/null 2>&1; then
771 AUTOHEADER=autoheader 779 AUTOHEADER=autoheader
774 AUTOHEADER="$missing_dir/missing autoheader" 782 AUTOHEADER="$missing_dir/missing autoheader"
775 echo "$ac_t""missing" 1>&6 783 echo "$ac_t""missing" 1>&6
776fi 784fi
777 785
778echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 786echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
779echo "configure:780: checking for working makeinfo" >&5 787echo "configure:788: checking for working makeinfo" >&5
780# 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
781# an executable is not found, even if stderr is redirected. 789# an executable is not found, even if stderr is redirected.
782# Redirect stdin to placate older versions of autoconf. Sigh. 790# Redirect stdin to placate older versions of autoconf. Sigh.
783if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 791if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
784 MAKEINFO=makeinfo 792 MAKEINFO=makeinfo
868if ${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 :
869else { 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; }
870fi 878fi
871 879
872echo $ac_n "checking host system type""... $ac_c" 1>&6 880echo $ac_n "checking host system type""... $ac_c" 1>&6
873echo "configure:874: checking host system type" >&5 881echo "configure:882: checking host system type" >&5
874 882
875host_alias=$host 883host_alias=$host
876case "$host_alias" in 884case "$host_alias" in
877NONE) 885NONE)
878 case $nonopt in 886 case $nonopt in
889host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 897host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
890host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 898host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
891echo "$ac_t""$host" 1>&6 899echo "$ac_t""$host" 1>&6
892 900
893echo $ac_n "checking build system type""... $ac_c" 1>&6 901echo $ac_n "checking build system type""... $ac_c" 1>&6
894echo "configure:895: checking build system type" >&5 902echo "configure:903: checking build system type" >&5
895 903
896build_alias=$build 904build_alias=$build
897case "$build_alias" in 905case "$build_alias" in
898NONE) 906NONE)
899 case $nonopt in 907 case $nonopt in
909echo "$ac_t""$build" 1>&6 917echo "$ac_t""$build" 1>&6
910 918
911# 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.
912set dummy ranlib; ac_word=$2 920set dummy ranlib; ac_word=$2
913echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
914echo "configure:915: checking for $ac_word" >&5 922echo "configure:923: checking for $ac_word" >&5
915if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 923if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
916 echo $ac_n "(cached) $ac_c" 1>&6 924 echo $ac_n "(cached) $ac_c" 1>&6
917else 925else
918 if test -n "$RANLIB"; then 926 if test -n "$RANLIB"; then
919 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
939fi 947fi
940 948
941# 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.
942set dummy gcc; ac_word=$2 950set dummy gcc; ac_word=$2
943echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 951echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944echo "configure:945: checking for $ac_word" >&5 952echo "configure:953: checking for $ac_word" >&5
945if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 953if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6 954 echo $ac_n "(cached) $ac_c" 1>&6
947else 955else
948 if test -n "$CC"; then 956 if test -n "$CC"; then
949 ac_cv_prog_CC="$CC" # Let the user override the test. 957 ac_cv_prog_CC="$CC" # Let the user override the test.
969 977
970if test -z "$CC"; then 978if test -z "$CC"; then
971 # 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.
972set dummy cc; ac_word=$2 980set dummy cc; ac_word=$2
973echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 981echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974echo "configure:975: checking for $ac_word" >&5 982echo "configure:983: checking for $ac_word" >&5
975if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 983if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6 984 echo $ac_n "(cached) $ac_c" 1>&6
977else 985else
978 if test -n "$CC"; then 986 if test -n "$CC"; then
979 ac_cv_prog_CC="$CC" # Let the user override the test. 987 ac_cv_prog_CC="$CC" # Let the user override the test.
1020 case "`uname -s`" in 1028 case "`uname -s`" in
1021 *win32* | *WIN32*) 1029 *win32* | *WIN32*)
1022 # 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.
1023set dummy cl; ac_word=$2 1031set dummy cl; ac_word=$2
1024echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1032echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025echo "configure:1026: checking for $ac_word" >&5 1033echo "configure:1034: checking for $ac_word" >&5
1026if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1034if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6 1035 echo $ac_n "(cached) $ac_c" 1>&6
1028else 1036else
1029 if test -n "$CC"; then 1037 if test -n "$CC"; then
1030 ac_cv_prog_CC="$CC" # Let the user override the test. 1038 ac_cv_prog_CC="$CC" # Let the user override the test.
1052 fi 1060 fi
1053 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; }
1054fi 1062fi
1055 1063
1056echo $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
1057echo "configure:1058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1065echo "configure:1066: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1058 1066
1059ac_ext=c 1067ac_ext=c
1060# 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.
1061ac_cpp='$CPP $CPPFLAGS' 1069ac_cpp='$CPP $CPPFLAGS'
1062ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1070ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1063ac_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'
1064cross_compiling=$ac_cv_prog_cc_cross 1072cross_compiling=$ac_cv_prog_cc_cross
1065 1073
1066cat > conftest.$ac_ext << EOF 1074cat > conftest.$ac_ext << EOF
1067 1075
1068#line 1069 "configure" 1076#line 1077 "configure"
1069#include "confdefs.h" 1077#include "confdefs.h"
1070 1078
1071main(){return(0);} 1079main(){return(0);}
1072EOF 1080EOF
1073if { (eval echo configure:1074: \"$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
1074 ac_cv_prog_cc_works=yes 1082 ac_cv_prog_cc_works=yes
1075 # 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.
1076 if (./conftest; exit) 2>/dev/null; then 1084 if (./conftest; exit) 2>/dev/null; then
1077 ac_cv_prog_cc_cross=no 1085 ac_cv_prog_cc_cross=no
1078 else 1086 else
1094echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1102echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1095if test $ac_cv_prog_cc_works = no; then 1103if test $ac_cv_prog_cc_works = no; then
1096 { 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; }
1097fi 1105fi
1098echo $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
1099echo "configure:1100: 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
1100echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1108echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1101cross_compiling=$ac_cv_prog_cc_cross 1109cross_compiling=$ac_cv_prog_cc_cross
1102 1110
1103echo $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
1104echo "configure:1105: checking whether we are using GNU C" >&5 1112echo "configure:1113: checking whether we are using GNU C" >&5
1105if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1113if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6 1114 echo $ac_n "(cached) $ac_c" 1>&6
1107else 1115else
1108 cat > conftest.c <<EOF 1116 cat > conftest.c <<EOF
1109#ifdef __GNUC__ 1117#ifdef __GNUC__
1110 yes; 1118 yes;
1111#endif 1119#endif
1112EOF 1120EOF
1113if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1114: \"$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
1114 ac_cv_prog_gcc=yes 1122 ac_cv_prog_gcc=yes
1115else 1123else
1116 ac_cv_prog_gcc=no 1124 ac_cv_prog_gcc=no
1117fi 1125fi
1118fi 1126fi
1127 1135
1128ac_test_CFLAGS="${CFLAGS+set}" 1136ac_test_CFLAGS="${CFLAGS+set}"
1129ac_save_CFLAGS="$CFLAGS" 1137ac_save_CFLAGS="$CFLAGS"
1130CFLAGS= 1138CFLAGS=
1131echo $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
1132echo "configure:1133: checking whether ${CC-cc} accepts -g" >&5 1140echo "configure:1141: checking whether ${CC-cc} accepts -g" >&5
1133if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1141if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6 1142 echo $ac_n "(cached) $ac_c" 1>&6
1135else 1143else
1136 echo 'void f(){}' > conftest.c 1144 echo 'void f(){}' > conftest.c
1137if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1145if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1170 1178
1171ac_prog=ld 1179ac_prog=ld
1172if test "$ac_cv_prog_gcc" = yes; then 1180if test "$ac_cv_prog_gcc" = yes; then
1173 # Check if gcc -print-prog-name=ld gives a path. 1181 # Check if gcc -print-prog-name=ld gives a path.
1174 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
1175echo "configure:1176: checking for ld used by GCC" >&5 1183echo "configure:1184: checking for ld used by GCC" >&5
1176 ac_prog=`($CC -print-prog-name=ld) 2>&5` 1184 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1177 case "$ac_prog" in 1185 case "$ac_prog" in
1178 # Accept absolute paths. 1186 # Accept absolute paths.
1179 [\\/]* | [A-Za-z]:[\\/]*) 1187 [\\/]* | [A-Za-z]:[\\/]*)
1180 re_direlt='/[^/][^/]*/\.\./' 1188 re_direlt='/[^/][^/]*/\.\./'
1194 with_gnu_ld=unknown 1202 with_gnu_ld=unknown
1195 ;; 1203 ;;
1196 esac 1204 esac
1197elif test "$with_gnu_ld" = yes; then 1205elif test "$with_gnu_ld" = yes; then
1198 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 1206 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1199echo "configure:1200: checking for GNU ld" >&5 1207echo "configure:1208: checking for GNU ld" >&5
1200else 1208else
1201 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
1202echo "configure:1203: checking for non-GNU ld" >&5 1210echo "configure:1211: checking for non-GNU ld" >&5
1203fi 1211fi
1204if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then 1212if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6 1213 echo $ac_n "(cached) $ac_c" 1>&6
1206else 1214else
1207 if test -z "$LD"; then 1215 if test -z "$LD"; then
1231 echo "$ac_t""$LD" 1>&6 1239 echo "$ac_t""$LD" 1>&6
1232else 1240else
1233 echo "$ac_t""no" 1>&6 1241 echo "$ac_t""no" 1>&6
1234fi 1242fi
1235test -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; }
1236
1237echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 1244echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1238echo "configure:1239: checking if the linker ($LD) is GNU ld" >&5 1245echo "configure:1246: checking if the linker ($LD) is GNU ld" >&5
1239if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then 1246if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6 1247 echo $ac_n "(cached) $ac_c" 1>&6
1241else 1248else
1242 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 1249 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1243if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 1250if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1249 1256
1250echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 1257echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1251 1258
1252 1259
1253echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 1260echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1254echo "configure:1255: checking for BSD-compatible nm" >&5 1261echo "configure:1262: checking for BSD-compatible nm" >&5
1255if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then 1262if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6 1263 echo $ac_n "(cached) $ac_c" 1>&6
1257else 1264else
1258 if test -n "$NM"; then 1265 if test -n "$NM"; then
1259 # Let the user override the test. 1266 # Let the user override the test.
1284fi 1291fi
1285 1292
1286NM="$ac_cv_path_NM" 1293NM="$ac_cv_path_NM"
1287echo "$ac_t""$NM" 1>&6 1294echo "$ac_t""$NM" 1>&6
1288 1295
1289
1290echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1296echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1291echo "configure:1292: checking whether ln -s works" >&5 1297echo "configure:1298: checking whether ln -s works" >&5
1292if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1298if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6 1299 echo $ac_n "(cached) $ac_c" 1>&6
1294else 1300else
1295 rm -f conftestdata 1301 rm -f conftestdata
1296if ln -s X conftestdata 2>/dev/null 1302if ln -s X conftestdata 2>/dev/null
1306 echo "$ac_t""yes" 1>&6 1312 echo "$ac_t""yes" 1>&6
1307else 1313else
1308 echo "$ac_t""no" 1>&6 1314 echo "$ac_t""no" 1>&6
1309fi 1315fi
1310 1316
1317
1318case "$target" in
1319NONE) lt_target="$host" ;;
1320*) lt_target="$target" ;;
1321esac
1311 1322
1312# Check for any special flags to pass to ltconfig. 1323# Check for any special flags to pass to ltconfig.
1313libtool_flags="--cache-file=$cache_file" 1324libtool_flags="--cache-file=$cache_file"
1314test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 1325test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1315test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 1326test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1327test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 1338test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1328test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 1339test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1329 1340
1330# Some flags need to be propagated to the compiler or linker for good 1341# Some flags need to be propagated to the compiler or linker for good
1331# libtool support. 1342# libtool support.
1332case "$host" in 1343case "$lt_target" in
1333*-*-irix6*) 1344*-*-irix6*)
1334 # Find out which ABI we are using. 1345 # Find out which ABI we are using.
1335 echo '#line 1336 "configure"' > conftest.$ac_ext 1346 echo '#line 1347 "configure"' > conftest.$ac_ext
1336 if { (eval echo configure:1337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1347 if { (eval echo configure:1348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1337 case "`/usr/bin/file conftest.o`" in 1348 case "`/usr/bin/file conftest.o`" in
1338 *32-bit*) 1349 *32-bit*)
1339 LD="${LD-ld} -32" 1350 LD="${LD-ld} -32"
1340 ;; 1351 ;;
1341 *N32*) 1352 *N32*)
1352*-*-sco3.2v5*) 1363*-*-sco3.2v5*)
1353 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1364 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1354 SAVE_CFLAGS="$CFLAGS" 1365 SAVE_CFLAGS="$CFLAGS"
1355 CFLAGS="$CFLAGS -belf" 1366 CFLAGS="$CFLAGS -belf"
1356 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 1367 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1357echo "configure:1358: checking whether the C compiler needs -belf" >&5 1368echo "configure:1369: checking whether the C compiler needs -belf" >&5
1358if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 1369if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6 1370 echo $ac_n "(cached) $ac_c" 1>&6
1360else 1371else
1361 cat > conftest.$ac_ext <<EOF 1372 cat > conftest.$ac_ext <<EOF
1362#line 1363 "configure" 1373#line 1374 "configure"
1363#include "confdefs.h" 1374#include "confdefs.h"
1364 1375
1365int main() { 1376int main() {
1366 1377
1367; return 0; } 1378; return 0; }
1368EOF 1379EOF
1369if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1380if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1370 rm -rf conftest* 1381 rm -rf conftest*
1371 lt_cv_cc_needs_belf=yes 1382 lt_cv_cc_needs_belf=yes
1372else 1383else
1373 echo "configure: failed program was:" >&5 1384 echo "configure: failed program was:" >&5
1374 cat conftest.$ac_ext >&5 1385 cat conftest.$ac_ext >&5
1442CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 1453CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1443LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 1454LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1444LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ 1455LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1445DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ 1456DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1446${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 1457${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1447$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ 1458$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1448|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 1459|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1449 1460
1450# Reload cache, that may have been modified by ltconfig 1461# Reload cache, that may have been modified by ltconfig
1451if test -r "$cache_file"; then 1462if test -r "$cache_file"; then
1452 echo "loading cache $cache_file" 1463 echo "loading cache $cache_file"
1466# Redirect the config.log output again, so that the ltconfig log is not 1477# Redirect the config.log output again, so that the ltconfig log is not
1467# clobbered by the next message. 1478# clobbered by the next message.
1468exec 5>>./config.log 1479exec 5>>./config.log
1469 1480
1470 1481
1482# Check whether --enable-compile-warnings or --disable-compile-warnings was given.
1483if test "${enable_compile_warnings+set}" = set; then
1484 enableval="$enable_compile_warnings"
1485 :
1486else
1487 enable_compile_warnings=minimum
1488fi
1489
1490
1491echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
1492echo "configure:1493: checking what warning flags to pass to the C compiler" >&5
1493warnCFLAGS=
1494if test "x$GCC" != xyes; then
1495 enable_compile_warnings=no
1496fi
1497if test "x$enable_compile_warnings" != "xno"; then
1498 if test "x$GCC" = "xyes"; then
1499 case " $CFLAGS " in
1500 *\ \ -Wall\ \ *) ;;
1501 *) warnCFLAGS="-Wall -Wunused" ;;
1502 esac
1503
1504 ## -W is not all that useful. And it cannot be controlled
1505 ## with individual -Wno-xxx flags, unlike -Wall
1506 if test "x$enable_compile_warnings" = "xyes"; then
1507 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
1508 fi
1509 fi
1510fi
1511echo "$ac_t""$warnCFLAGS" 1>&6
1512
1513# Check whether --enable-iso-c or --disable-iso-c was given.
1514if test "${enable_iso_c+set}" = set; then
1515 enableval="$enable_iso_c"
1516 :
1517else
1518 enable_iso_c=no
1519fi
1520
1521
1522echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
1523echo "configure:1524: checking what language compliance flags to pass to the C compiler" >&5
1524complCFLAGS=
1525if test "x$enable_iso_c" != "xno"; then
1526 if test "x$GCC" = "xyes"; then
1527 case " $CFLAGS " in
1528 *\ \ -ansi\ \ *) ;;
1529 *) complCFLAGS="$complCFLAGS -ansi" ;;
1530 esac
1531
1532 case " $CFLAGS " in
1533 *\ \ -pedantic\ \ *) ;;
1534 *) complCFLAGS="$complCFLAGS -pedantic" ;;
1535 esac
1536 fi
1537fi
1538echo "$ac_t""$complCFLAGS" 1>&6
1539if test "x$cflags_set" != "xyes"; then
1540 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
1541 cflags_set=yes
1542
1543fi
1544
1545
1546# Check whether --with-imagemagick or --without-imagemagick was given.
1547if test "${with_imagemagick+set}" = set; then
1548 withval="$with_imagemagick"
1549 IMAGEMAGICK=$withval
1550else
1551 IMAGEMAGICK='yes'
1552fi
1553
1554if test x"$IMAGEMAGICK" != xno ; then
1555 echo $ac_n "checking for ConstituteImage in -lMagick""... $ac_c" 1>&6
1556echo "configure:1557: checking for ConstituteImage in -lMagick" >&5
1557ac_lib_var=`echo Magick'_'ConstituteImage | sed 'y%./+-%__p_%'`
1558if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1560else
1561 ac_save_LIBS="$LIBS"
1562LIBS="-lMagick $LIBS"
1563cat > conftest.$ac_ext <<EOF
1564#line 1565 "configure"
1565#include "confdefs.h"
1566/* Override any gcc2 internal prototype to avoid an error. */
1567/* We use char because int might match the return type of a gcc2
1568 builtin and then its argument prototype would still apply. */
1569char ConstituteImage();
1570
1571int main() {
1572ConstituteImage()
1573; return 0; }
1574EOF
1575if { (eval echo configure:1576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1576 rm -rf conftest*
1577 eval "ac_cv_lib_$ac_lib_var=yes"
1578else
1579 echo "configure: failed program was:" >&5
1580 cat conftest.$ac_ext >&5
1581 rm -rf conftest*
1582 eval "ac_cv_lib_$ac_lib_var=no"
1583fi
1584rm -f conftest*
1585LIBS="$ac_save_LIBS"
1586
1587fi
1588if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1589 echo "$ac_t""yes" 1>&6
1590 IMAGEMAGICK=yes
1591else
1592 echo "$ac_t""no" 1>&6
1593IMAGEMAGICK=no
1594fi
1595
1596 if test x"$IMAGEMAGICK" != xno ; then
1597 echo $ac_n "checking whether GetMagickInfo works""... $ac_c" 1>&6
1598echo "configure:1599: checking whether GetMagickInfo works" >&5
1599 if test "$cross_compiling" = yes; then
1600 IMAGEMAGICK=yes
1601else
1602 cat > conftest.$ac_ext <<EOF
1603#line 1604 "configure"
1604#include "confdefs.h"
1605 #include <magick/magick.h>
1606 int main(void) { return (NULL == GetMagickInfo(NULL)) }
1607EOF
1608if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1609then
1610 IMAGEMAGICK=yes
1611else
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1614 rm -fr conftest*
1615 IMAGEMAGICK=no
1616fi
1617rm -fr conftest*
1618fi
1619
1620 echo "$ac_t""$IMAGEMAGICK" 1>&6
1621 fi
1622 if test x"$IMAGEMAGICK" = xno ; then
1623 echo "configure: warning: ImageMagick support disabled!" 1>&2
1624 fi
1625fi
1626if test x"$IMAGEMAGICK" = xyes ; then
1627 LIB_MAGICK=-lMagick
1628 cat >> confdefs.h <<\EOF
1629#define IMAGEMAGICK 1
1630EOF
1631
1632else
1633 LIB_MAGICK=
1634fi
1635
1471 1636
1472echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1637echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1473echo "configure:1474: checking how to run the C preprocessor" >&5 1638echo "configure:1639: checking how to run the C preprocessor" >&5
1474# On Suns, sometimes $CPP names a directory. 1639# On Suns, sometimes $CPP names a directory.
1475if test -n "$CPP" && test -d "$CPP"; then 1640if test -n "$CPP" && test -d "$CPP"; then
1476 CPP= 1641 CPP=
1477fi 1642fi
1478if test -z "$CPP"; then 1643if test -z "$CPP"; then
1483 # substituted into the Makefile and "${CC-cc}" will confuse make. 1648 # substituted into the Makefile and "${CC-cc}" will confuse make.
1484 CPP="${CC-cc} -E" 1649 CPP="${CC-cc} -E"
1485 # On the NeXT, cc -E runs the code through the compiler's parser, 1650 # On the NeXT, cc -E runs the code through the compiler's parser,
1486 # not just through cpp. 1651 # not just through cpp.
1487 cat > conftest.$ac_ext <<EOF 1652 cat > conftest.$ac_ext <<EOF
1488#line 1489 "configure" 1653#line 1654 "configure"
1489#include "confdefs.h" 1654#include "confdefs.h"
1490#include <assert.h> 1655#include <assert.h>
1491Syntax Error 1656Syntax Error
1492EOF 1657EOF
1493ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1494{ (eval echo configure:1495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1659{ (eval echo configure:1660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1495ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1496if test -z "$ac_err"; then 1661if test -z "$ac_err"; then
1497 : 1662 :
1498else 1663else
1499 echo "$ac_err" >&5 1664 echo "$ac_err" >&5
1500 echo "configure: failed program was:" >&5 1665 echo "configure: failed program was:" >&5
1501 cat conftest.$ac_ext >&5 1666 cat conftest.$ac_ext >&5
1502 rm -rf conftest* 1667 rm -rf conftest*
1503 CPP="${CC-cc} -E -traditional-cpp" 1668 CPP="${CC-cc} -E -traditional-cpp"
1504 cat > conftest.$ac_ext <<EOF 1669 cat > conftest.$ac_ext <<EOF
1505#line 1506 "configure" 1670#line 1671 "configure"
1506#include "confdefs.h" 1671#include "confdefs.h"
1507#include <assert.h> 1672#include <assert.h>
1508Syntax Error 1673Syntax Error
1509EOF 1674EOF
1510ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1675ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1511{ (eval echo configure:1512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1676{ (eval echo configure:1677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1512ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1677ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1513if test -z "$ac_err"; then 1678if test -z "$ac_err"; then
1514 : 1679 :
1515else 1680else
1516 echo "$ac_err" >&5 1681 echo "$ac_err" >&5
1517 echo "configure: failed program was:" >&5 1682 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5 1683 cat conftest.$ac_ext >&5
1519 rm -rf conftest* 1684 rm -rf conftest*
1520 CPP="${CC-cc} -nologo -E" 1685 CPP="${CC-cc} -nologo -E"
1521 cat > conftest.$ac_ext <<EOF 1686 cat > conftest.$ac_ext <<EOF
1522#line 1523 "configure" 1687#line 1688 "configure"
1523#include "confdefs.h" 1688#include "confdefs.h"
1524#include <assert.h> 1689#include <assert.h>
1525Syntax Error 1690Syntax Error
1526EOF 1691EOF
1527ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1692ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1528{ (eval echo configure:1529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1693{ (eval echo configure:1694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1529ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1694ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1530if test -z "$ac_err"; then 1695if test -z "$ac_err"; then
1531 : 1696 :
1532else 1697else
1533 echo "$ac_err" >&5 1698 echo "$ac_err" >&5
1548 ac_cv_prog_CPP="$CPP" 1713 ac_cv_prog_CPP="$CPP"
1549fi 1714fi
1550echo "$ac_t""$CPP" 1>&6 1715echo "$ac_t""$CPP" 1>&6
1551 1716
1552echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1717echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1553echo "configure:1554: checking for ANSI C header files" >&5 1718echo "configure:1719: checking for ANSI C header files" >&5
1554if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1719if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6 1720 echo $ac_n "(cached) $ac_c" 1>&6
1556else 1721else
1557 cat > conftest.$ac_ext <<EOF 1722 cat > conftest.$ac_ext <<EOF
1558#line 1559 "configure" 1723#line 1724 "configure"
1559#include "confdefs.h" 1724#include "confdefs.h"
1560#include <stdlib.h> 1725#include <stdlib.h>
1561#include <stdarg.h> 1726#include <stdarg.h>
1562#include <string.h> 1727#include <string.h>
1563#include <float.h> 1728#include <float.h>
1564EOF 1729EOF
1565ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1730ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1566{ (eval echo configure:1567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1731{ (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1567ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1732ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1568if test -z "$ac_err"; then 1733if test -z "$ac_err"; then
1569 rm -rf conftest* 1734 rm -rf conftest*
1570 ac_cv_header_stdc=yes 1735 ac_cv_header_stdc=yes
1571else 1736else
1578rm -f conftest* 1743rm -f conftest*
1579 1744
1580if test $ac_cv_header_stdc = yes; then 1745if test $ac_cv_header_stdc = yes; then
1581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1582cat > conftest.$ac_ext <<EOF 1747cat > conftest.$ac_ext <<EOF
1583#line 1584 "configure" 1748#line 1749 "configure"
1584#include "confdefs.h" 1749#include "confdefs.h"
1585#include <string.h> 1750#include <string.h>
1586EOF 1751EOF
1587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1588 egrep "memchr" >/dev/null 2>&1; then 1753 egrep "memchr" >/dev/null 2>&1; then
1596fi 1761fi
1597 1762
1598if test $ac_cv_header_stdc = yes; then 1763if test $ac_cv_header_stdc = yes; then
1599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1764 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1600cat > conftest.$ac_ext <<EOF 1765cat > conftest.$ac_ext <<EOF
1601#line 1602 "configure" 1766#line 1767 "configure"
1602#include "confdefs.h" 1767#include "confdefs.h"
1603#include <stdlib.h> 1768#include <stdlib.h>
1604EOF 1769EOF
1605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1606 egrep "free" >/dev/null 2>&1; then 1771 egrep "free" >/dev/null 2>&1; then
1617 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1618if test "$cross_compiling" = yes; then 1783if test "$cross_compiling" = yes; then
1619 : 1784 :
1620else 1785else
1621 cat > conftest.$ac_ext <<EOF 1786 cat > conftest.$ac_ext <<EOF
1622#line 1623 "configure" 1787#line 1788 "configure"
1623#include "confdefs.h" 1788#include "confdefs.h"
1624#include <ctype.h> 1789#include <ctype.h>
1625#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1790#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1626#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1791#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1627#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1792#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1628int main () { int i; for (i = 0; i < 256; i++) 1793int main () { int i; for (i = 0; i < 256; i++)
1629if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1794if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1630exit (0); } 1795exit (0); }
1631 1796
1632EOF 1797EOF
1633if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1798if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1634then 1799then
1635 : 1800 :
1636else 1801else
1637 echo "configure: failed program was:" >&5 1802 echo "configure: failed program was:" >&5
1638 cat conftest.$ac_ext >&5 1803 cat conftest.$ac_ext >&5
1655 1820
1656for ac_hdr in unistd.h 1821for ac_hdr in unistd.h
1657do 1822do
1658ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1823ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1659echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1824echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1660echo "configure:1661: checking for $ac_hdr" >&5 1825echo "configure:1826: checking for $ac_hdr" >&5
1661if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1826if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6 1827 echo $ac_n "(cached) $ac_c" 1>&6
1663else 1828else
1664 cat > conftest.$ac_ext <<EOF 1829 cat > conftest.$ac_ext <<EOF
1665#line 1666 "configure" 1830#line 1831 "configure"
1666#include "confdefs.h" 1831#include "confdefs.h"
1667#include <$ac_hdr> 1832#include <$ac_hdr>
1668EOF 1833EOF
1669ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1834ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1670{ (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1835{ (eval echo configure:1836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1671ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1836ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1672if test -z "$ac_err"; then 1837if test -z "$ac_err"; then
1673 rm -rf conftest* 1838 rm -rf conftest*
1674 eval "ac_cv_header_$ac_safe=yes" 1839 eval "ac_cv_header_$ac_safe=yes"
1675else 1840else
1693fi 1858fi
1694done 1859done
1695 1860
1696 1861
1697echo $ac_n "checking for working const""... $ac_c" 1>&6 1862echo $ac_n "checking for working const""... $ac_c" 1>&6
1698echo "configure:1699: checking for working const" >&5 1863echo "configure:1864: checking for working const" >&5
1699if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1864if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6 1865 echo $ac_n "(cached) $ac_c" 1>&6
1701else 1866else
1702 cat > conftest.$ac_ext <<EOF 1867 cat > conftest.$ac_ext <<EOF
1703#line 1704 "configure" 1868#line 1869 "configure"
1704#include "confdefs.h" 1869#include "confdefs.h"
1705 1870
1706int main() { 1871int main() {
1707 1872
1708/* Ultrix mips cc rejects this. */ 1873/* Ultrix mips cc rejects this. */
1747 const int foo = 10; 1912 const int foo = 10;
1748} 1913}
1749 1914
1750; return 0; } 1915; return 0; }
1751EOF 1916EOF
1752if { (eval echo configure:1753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1917if { (eval echo configure:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1753 rm -rf conftest* 1918 rm -rf conftest*
1754 ac_cv_c_const=yes 1919 ac_cv_c_const=yes
1755else 1920else
1756 echo "configure: failed program was:" >&5 1921 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5 1922 cat conftest.$ac_ext >&5
1768EOF 1933EOF
1769 1934
1770fi 1935fi
1771 1936
1772echo $ac_n "checking for size_t""... $ac_c" 1>&6 1937echo $ac_n "checking for size_t""... $ac_c" 1>&6
1773echo "configure:1774: checking for size_t" >&5 1938echo "configure:1939: checking for size_t" >&5
1774if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1939if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6 1940 echo $ac_n "(cached) $ac_c" 1>&6
1776else 1941else
1777 cat > conftest.$ac_ext <<EOF 1942 cat > conftest.$ac_ext <<EOF
1778#line 1779 "configure" 1943#line 1944 "configure"
1779#include "confdefs.h" 1944#include "confdefs.h"
1780#include <sys/types.h> 1945#include <sys/types.h>
1781#if STDC_HEADERS 1946#if STDC_HEADERS
1782#include <stdlib.h> 1947#include <stdlib.h>
1783#include <stddef.h> 1948#include <stddef.h>
1803fi 1968fi
1804 1969
1805 1970
1806 1971
1807echo $ac_n "checking size of char""... $ac_c" 1>&6 1972echo $ac_n "checking size of char""... $ac_c" 1>&6
1808echo "configure:1809: checking size of char" >&5 1973echo "configure:1974: checking size of char" >&5
1809if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 1974if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6 1975 echo $ac_n "(cached) $ac_c" 1>&6
1811else 1976else
1812 if test "$cross_compiling" = yes; then 1977 if test "$cross_compiling" = yes; then
1813 ac_cv_sizeof_char=1 1978 ac_cv_sizeof_char=1
1814else 1979else
1815 cat > conftest.$ac_ext <<EOF 1980 cat > conftest.$ac_ext <<EOF
1816#line 1817 "configure" 1981#line 1982 "configure"
1817#include "confdefs.h" 1982#include "confdefs.h"
1818#include <stdio.h> 1983#include <stdio.h>
1819main() 1984main()
1820{ 1985{
1821 FILE *f=fopen("conftestval", "w"); 1986 FILE *f=fopen("conftestval", "w");
1822 if (!f) exit(1); 1987 if (!f) exit(1);
1823 fprintf(f, "%d\n", sizeof(char)); 1988 fprintf(f, "%d\n", sizeof(char));
1824 exit(0); 1989 exit(0);
1825} 1990}
1826EOF 1991EOF
1827if { (eval echo configure:1828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1992if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1828then 1993then
1829 ac_cv_sizeof_char=`cat conftestval` 1994 ac_cv_sizeof_char=`cat conftestval`
1830else 1995else
1831 echo "configure: failed program was:" >&5 1996 echo "configure: failed program was:" >&5
1832 cat conftest.$ac_ext >&5 1997 cat conftest.$ac_ext >&5
1842#define SIZEOF_CHAR $ac_cv_sizeof_char 2007#define SIZEOF_CHAR $ac_cv_sizeof_char
1843EOF 2008EOF
1844 2009
1845 2010
1846echo $ac_n "checking size of short""... $ac_c" 1>&6 2011echo $ac_n "checking size of short""... $ac_c" 1>&6
1847echo "configure:1848: checking size of short" >&5 2012echo "configure:2013: checking size of short" >&5
1848if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 2013if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6 2014 echo $ac_n "(cached) $ac_c" 1>&6
1850else 2015else
1851 if test "$cross_compiling" = yes; then 2016 if test "$cross_compiling" = yes; then
1852 ac_cv_sizeof_short=1 2017 ac_cv_sizeof_short=1
1853else 2018else
1854 cat > conftest.$ac_ext <<EOF 2019 cat > conftest.$ac_ext <<EOF
1855#line 1856 "configure" 2020#line 2021 "configure"
1856#include "confdefs.h" 2021#include "confdefs.h"
1857#include <stdio.h> 2022#include <stdio.h>
1858main() 2023main()
1859{ 2024{
1860 FILE *f=fopen("conftestval", "w"); 2025 FILE *f=fopen("conftestval", "w");
1861 if (!f) exit(1); 2026 if (!f) exit(1);
1862 fprintf(f, "%d\n", sizeof(short)); 2027 fprintf(f, "%d\n", sizeof(short));
1863 exit(0); 2028 exit(0);
1864} 2029}
1865EOF 2030EOF
1866if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2031if { (eval echo configure:2032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1867then 2032then
1868 ac_cv_sizeof_short=`cat conftestval` 2033 ac_cv_sizeof_short=`cat conftestval`
1869else 2034else
1870 echo "configure: failed program was:" >&5 2035 echo "configure: failed program was:" >&5
1871 cat conftest.$ac_ext >&5 2036 cat conftest.$ac_ext >&5
1881#define SIZEOF_SHORT $ac_cv_sizeof_short 2046#define SIZEOF_SHORT $ac_cv_sizeof_short
1882EOF 2047EOF
1883 2048
1884 2049
1885echo $ac_n "checking size of int""... $ac_c" 1>&6 2050echo $ac_n "checking size of int""... $ac_c" 1>&6
1886echo "configure:1887: checking size of int" >&5 2051echo "configure:2052: checking size of int" >&5
1887if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 2052if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6 2053 echo $ac_n "(cached) $ac_c" 1>&6
1889else 2054else
1890 if test "$cross_compiling" = yes; then 2055 if test "$cross_compiling" = yes; then
1891 ac_cv_sizeof_int=2 2056 ac_cv_sizeof_int=2
1892else 2057else
1893 cat > conftest.$ac_ext <<EOF 2058 cat > conftest.$ac_ext <<EOF
1894#line 1895 "configure" 2059#line 2060 "configure"
1895#include "confdefs.h" 2060#include "confdefs.h"
1896#include <stdio.h> 2061#include <stdio.h>
1897main() 2062main()
1898{ 2063{
1899 FILE *f=fopen("conftestval", "w"); 2064 FILE *f=fopen("conftestval", "w");
1900 if (!f) exit(1); 2065 if (!f) exit(1);
1901 fprintf(f, "%d\n", sizeof(int)); 2066 fprintf(f, "%d\n", sizeof(int));
1902 exit(0); 2067 exit(0);
1903} 2068}
1904EOF 2069EOF
1905if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2070if { (eval echo configure:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1906then 2071then
1907 ac_cv_sizeof_int=`cat conftestval` 2072 ac_cv_sizeof_int=`cat conftestval`
1908else 2073else
1909 echo "configure: failed program was:" >&5 2074 echo "configure: failed program was:" >&5
1910 cat conftest.$ac_ext >&5 2075 cat conftest.$ac_ext >&5
1920#define SIZEOF_INT $ac_cv_sizeof_int 2085#define SIZEOF_INT $ac_cv_sizeof_int
1921EOF 2086EOF
1922 2087
1923 2088
1924echo $ac_n "checking size of long""... $ac_c" 1>&6 2089echo $ac_n "checking size of long""... $ac_c" 1>&6
1925echo "configure:1926: checking size of long" >&5 2090echo "configure:2091: checking size of long" >&5
1926if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 2091if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6 2092 echo $ac_n "(cached) $ac_c" 1>&6
1928else 2093else
1929 if test "$cross_compiling" = yes; then 2094 if test "$cross_compiling" = yes; then
1930 ac_cv_sizeof_long=4 2095 ac_cv_sizeof_long=4
1931else 2096else
1932 cat > conftest.$ac_ext <<EOF 2097 cat > conftest.$ac_ext <<EOF
1933#line 1934 "configure" 2098#line 2099 "configure"
1934#include "confdefs.h" 2099#include "confdefs.h"
1935#include <stdio.h> 2100#include <stdio.h>
1936main() 2101main()
1937{ 2102{
1938 FILE *f=fopen("conftestval", "w"); 2103 FILE *f=fopen("conftestval", "w");
1939 if (!f) exit(1); 2104 if (!f) exit(1);
1940 fprintf(f, "%d\n", sizeof(long)); 2105 fprintf(f, "%d\n", sizeof(long));
1941 exit(0); 2106 exit(0);
1942} 2107}
1943EOF 2108EOF
1944if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2109if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1945then 2110then
1946 ac_cv_sizeof_long=`cat conftestval` 2111 ac_cv_sizeof_long=`cat conftestval`
1947else 2112else
1948 echo "configure: failed program was:" >&5 2113 echo "configure: failed program was:" >&5
1949 cat conftest.$ac_ext >&5 2114 cat conftest.$ac_ext >&5
1960EOF 2125EOF
1961 2126
1962 2127
1963 2128
1964echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 2129echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6
1965echo "configure:1966: checking for an 8 bit integer type" >&5 2130echo "configure:2131: checking for an 8 bit integer type" >&5
1966if test $ac_cv_sizeof_char -ge 1 ; then 2131if test $ac_cv_sizeof_char -ge 1 ; then
1967 INT_8_BIT=char 2132 INT_8_BIT=char
1968 echo "$ac_t""char" 1>&6 2133 echo "$ac_t""char" 1>&6
1969elif test $ac_cv_sizeof_short -ge 1 ; then 2134elif test $ac_cv_sizeof_short -ge 1 ; then
1970 INT_8_BIT=short 2135 INT_8_BIT=short
1978else 2143else
1979 { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } 2144 { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; }
1980fi 2145fi
1981 2146
1982echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 2147echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6
1983echo "configure:1984: checking for a 16 bit integer type" >&5 2148echo "configure:2149: checking for a 16 bit integer type" >&5
1984if test $ac_cv_sizeof_char -ge 2 ; then 2149if test $ac_cv_sizeof_char -ge 2 ; then
1985 INT_16_BIT=char 2150 INT_16_BIT=char
1986 echo "$ac_t""char" 1>&6 2151 echo "$ac_t""char" 1>&6
1987elif test $ac_cv_sizeof_short -ge 2 ; then 2152elif test $ac_cv_sizeof_short -ge 2 ; then
1988 INT_16_BIT=short 2153 INT_16_BIT=short
1996else 2161else
1997 { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } 2162 { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; }
1998fi 2163fi
1999 2164
2000echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 2165echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6
2001echo "configure:2002: checking for a 32 bit integer type" >&5 2166echo "configure:2167: checking for a 32 bit integer type" >&5
2002if test $ac_cv_sizeof_char -ge 4 ; then 2167if test $ac_cv_sizeof_char -ge 4 ; then
2003 INT_32_BIT=char 2168 INT_32_BIT=char
2004 echo "$ac_t""char" 1>&6 2169 echo "$ac_t""char" 1>&6
2005elif test $ac_cv_sizeof_short -ge 4 ; then 2170elif test $ac_cv_sizeof_short -ge 4 ; then
2006 INT_32_BIT=short 2171 INT_32_BIT=short
2018 2183
2019 2184
2020 2185
2021 2186
2022echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2187echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2023echo "configure:2024: checking for vprintf" >&5 2188echo "configure:2189: checking for vprintf" >&5
2024if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2189if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6 2190 echo $ac_n "(cached) $ac_c" 1>&6
2026else 2191else
2027 cat > conftest.$ac_ext <<EOF 2192 cat > conftest.$ac_ext <<EOF
2028#line 2029 "configure" 2193#line 2194 "configure"
2029#include "confdefs.h" 2194#include "confdefs.h"
2030/* System header to define __stub macros and hopefully few prototypes, 2195/* System header to define __stub macros and hopefully few prototypes,
2031 which can conflict with char vprintf(); below. */ 2196 which can conflict with char vprintf(); below. */
2032#include <assert.h> 2197#include <assert.h>
2033/* Override any gcc2 internal prototype to avoid an error. */ 2198/* Override any gcc2 internal prototype to avoid an error. */
2046vprintf(); 2211vprintf();
2047#endif 2212#endif
2048 2213
2049; return 0; } 2214; return 0; }
2050EOF 2215EOF
2051if { (eval echo configure:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2216if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2052 rm -rf conftest* 2217 rm -rf conftest*
2053 eval "ac_cv_func_vprintf=yes" 2218 eval "ac_cv_func_vprintf=yes"
2054else 2219else
2055 echo "configure: failed program was:" >&5 2220 echo "configure: failed program was:" >&5
2056 cat conftest.$ac_ext >&5 2221 cat conftest.$ac_ext >&5
2070 echo "$ac_t""no" 1>&6 2235 echo "$ac_t""no" 1>&6
2071fi 2236fi
2072 2237
2073if test "$ac_cv_func_vprintf" != yes; then 2238if test "$ac_cv_func_vprintf" != yes; then
2074echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2239echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2075echo "configure:2076: checking for _doprnt" >&5 2240echo "configure:2241: checking for _doprnt" >&5
2076if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2241if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6 2242 echo $ac_n "(cached) $ac_c" 1>&6
2078else 2243else
2079 cat > conftest.$ac_ext <<EOF 2244 cat > conftest.$ac_ext <<EOF
2080#line 2081 "configure" 2245#line 2246 "configure"
2081#include "confdefs.h" 2246#include "confdefs.h"
2082/* System header to define __stub macros and hopefully few prototypes, 2247/* System header to define __stub macros and hopefully few prototypes,
2083 which can conflict with char _doprnt(); below. */ 2248 which can conflict with char _doprnt(); below. */
2084#include <assert.h> 2249#include <assert.h>
2085/* Override any gcc2 internal prototype to avoid an error. */ 2250/* Override any gcc2 internal prototype to avoid an error. */
2098_doprnt(); 2263_doprnt();
2099#endif 2264#endif
2100 2265
2101; return 0; } 2266; return 0; }
2102EOF 2267EOF
2103if { (eval echo configure:2104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2268if { (eval echo configure:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2104 rm -rf conftest* 2269 rm -rf conftest*
2105 eval "ac_cv_func__doprnt=yes" 2270 eval "ac_cv_func__doprnt=yes"
2106else 2271else
2107 echo "configure: failed program was:" >&5 2272 echo "configure: failed program was:" >&5
2108 cat conftest.$ac_ext >&5 2273 cat conftest.$ac_ext >&5
2125fi 2290fi
2126 2291
2127for ac_func in strdup 2292for ac_func in strdup
2128do 2293do
2129echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2294echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2130echo "configure:2131: checking for $ac_func" >&5 2295echo "configure:2296: checking for $ac_func" >&5
2131if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2296if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6 2297 echo $ac_n "(cached) $ac_c" 1>&6
2133else 2298else
2134 cat > conftest.$ac_ext <<EOF 2299 cat > conftest.$ac_ext <<EOF
2135#line 2136 "configure" 2300#line 2301 "configure"
2136#include "confdefs.h" 2301#include "confdefs.h"
2137/* System header to define __stub macros and hopefully few prototypes, 2302/* System header to define __stub macros and hopefully few prototypes,
2138 which can conflict with char $ac_func(); below. */ 2303 which can conflict with char $ac_func(); below. */
2139#include <assert.h> 2304#include <assert.h>
2140/* Override any gcc2 internal prototype to avoid an error. */ 2305/* Override any gcc2 internal prototype to avoid an error. */
2153$ac_func(); 2318$ac_func();
2154#endif 2319#endif
2155 2320
2156; return 0; } 2321; return 0; }
2157EOF 2322EOF
2158if { (eval echo configure:2159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2323if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2159 rm -rf conftest* 2324 rm -rf conftest*
2160 eval "ac_cv_func_$ac_func=yes" 2325 eval "ac_cv_func_$ac_func=yes"
2161else 2326else
2162 echo "configure: failed program was:" >&5 2327 echo "configure: failed program was:" >&5
2163 cat conftest.$ac_ext >&5 2328 cat conftest.$ac_ext >&5
2174#define $ac_tr_func 1 2339#define $ac_tr_func 1
2175EOF 2340EOF
2176 2341
2177else 2342else
2178 echo "$ac_t""no" 1>&6 2343 echo "$ac_t""no" 1>&6
2344LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2179fi 2345fi
2180done 2346done
2181 2347
2182for ac_func in strdup 2348
2349for ac_func in getopt_long
2183do 2350do
2184echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2351echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2185echo "configure:2186: checking for $ac_func" >&5 2352echo "configure:2353: checking for $ac_func" >&5
2186if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2353if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6 2354 echo $ac_n "(cached) $ac_c" 1>&6
2188else 2355else
2189 cat > conftest.$ac_ext <<EOF 2356 cat > conftest.$ac_ext <<EOF
2190#line 2191 "configure" 2357#line 2358 "configure"
2191#include "confdefs.h" 2358#include "confdefs.h"
2192/* System header to define __stub macros and hopefully few prototypes, 2359/* System header to define __stub macros and hopefully few prototypes,
2193 which can conflict with char $ac_func(); below. */ 2360 which can conflict with char $ac_func(); below. */
2194#include <assert.h> 2361#include <assert.h>
2195/* Override any gcc2 internal prototype to avoid an error. */ 2362/* Override any gcc2 internal prototype to avoid an error. */
2208$ac_func(); 2375$ac_func();
2209#endif 2376#endif
2210 2377
2211; return 0; } 2378; return 0; }
2212EOF 2379EOF
2213if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2380if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2214 rm -rf conftest* 2381 rm -rf conftest*
2215 eval "ac_cv_func_$ac_func=yes" 2382 eval "ac_cv_func_$ac_func=yes"
2216else 2383else
2217 echo "configure: failed program was:" >&5 2384 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5 2385 cat conftest.$ac_ext >&5
2229#define $ac_tr_func 1 2396#define $ac_tr_func 1
2230EOF 2397EOF
2231 2398
2232else 2399else
2233 echo "$ac_t""no" 1>&6 2400 echo "$ac_t""no" 1>&6
2234LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2401LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2235fi 2402fi
2236done 2403done
2237 2404
2238 2405
2239 2406
2300 ASCIIDOCS_FALSE='#' 2467 ASCIIDOCS_FALSE='#'
2301else 2468else
2302 ASCIIDOCS_TRUE='#' 2469 ASCIIDOCS_TRUE='#'
2303 ASCIIDOCS_FALSE= 2470 ASCIIDOCS_FALSE=
2304fi 2471fi
2472
2473# Check whether --enable-rtf-docs or --disable-rtf-docs was given.
2474if test "${enable_rtf_docs+set}" = set; then
2475 enableval="$enable_rtf_docs"
2476 case "${enableval}" in
2477 yes) rtfdocs=true ;;
2478 no) rtfdocs=false ;;
2479 *) { echo "configure: error: bad value ${enableval} for --enable-rtf-docs" 1>&2; exit 1; } ;;
2480esac
2481else
2482 rtfdocs=false
2483fi
2484
2485
2486
2487if test x$rtfdocs = xtrue; then
2488 RTFDOCS_TRUE=
2489 RTFDOCS_FALSE='#'
2490else
2491 RTFDOCS_TRUE='#'
2492 RTFDOCS_FALSE=
2493fi
2494
2305 2495
2306trap '' 1 2 15 2496trap '' 1 2 15
2307cat > confcache <<\EOF 2497cat > confcache <<\EOF
2308# This file is a shell script that caches the results of configure 2498# This file is a shell script that caches the results of configure
2309# tests run on this system so they can be shared between configure 2499# tests run on this system so they can be shared between configure
2457s%@build_cpu@%$build_cpu%g 2647s%@build_cpu@%$build_cpu%g
2458s%@build_vendor@%$build_vendor%g 2648s%@build_vendor@%$build_vendor%g
2459s%@build_os@%$build_os%g 2649s%@build_os@%$build_os%g
2460s%@RANLIB@%$RANLIB%g 2650s%@RANLIB@%$RANLIB%g
2461s%@CC@%$CC%g 2651s%@CC@%$CC%g
2462s%@LD@%$LD%g
2463s%@NM@%$NM%g
2464s%@LN_S@%$LN_S%g 2652s%@LN_S@%$LN_S%g
2465s%@LIBTOOL@%$LIBTOOL%g 2653s%@LIBTOOL@%$LIBTOOL%g
2654s%@cflags_set@%$cflags_set%g
2655s%@LIB_MAGICK@%$LIB_MAGICK%g
2466s%@CPP@%$CPP%g 2656s%@CPP@%$CPP%g
2467s%@INT_8_BIT@%$INT_8_BIT%g 2657s%@INT_8_BIT@%$INT_8_BIT%g
2468s%@INT_16_BIT@%$INT_16_BIT%g 2658s%@INT_16_BIT@%$INT_16_BIT%g
2469s%@INT_32_BIT@%$INT_32_BIT%g 2659s%@INT_32_BIT@%$INT_32_BIT%g
2470s%@LIBOBJS@%$LIBOBJS%g 2660s%@LIBOBJS@%$LIBOBJS%g
2472s%@HTMLDOCS_FALSE@%$HTMLDOCS_FALSE%g 2662s%@HTMLDOCS_FALSE@%$HTMLDOCS_FALSE%g
2473s%@HTML4DOCS_TRUE@%$HTML4DOCS_TRUE%g 2663s%@HTML4DOCS_TRUE@%$HTML4DOCS_TRUE%g
2474s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g 2664s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g
2475s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g 2665s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g
2476s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g 2666s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g
2667s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g
2668s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g
2477 2669
2478CEOF 2670CEOF
2479EOF 2671EOF
2480 2672
2481cat >> $CONFIG_STATUS <<\EOF 2673cat >> $CONFIG_STATUS <<\EOF

Legend:
Removed from v.2  
changed lines
  Added in v.50

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