/[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 94
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
469# AIX cpp loses on an empty file, so make sure it contains at least a newline. 473# AIX cpp loses on an empty file, so make sure it contains at least a newline.
470echo > confdefs.h 474echo > confdefs.h
471 475
472# A filename unique to this package, relative to the directory that 476# A filename unique to this package, relative to the directory that
473# configure is in, which we can look for to find out if srcdir is correct. 477# configure is in, which we can look for to find out if srcdir is correct.
474ac_unique_file=psiconv 478ac_unique_file=lib/psiconv
475 479
476# Find the source files, if location was not specified. 480# Find the source files, if location was not specified.
477if test -z "$srcdir"; then 481if test -z "$srcdir"; then
478 ac_srcdir_defaulted=yes 482 ac_srcdir_defaulted=yes
479 # Try the directory containing this script, then its parent. 483 # Try the directory containing this script, then its parent.
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
709fi 713fi
710 714
711 715
712PACKAGE=psiconv 716PACKAGE=psiconv
713 717
714VERSION=0.5.0a 718VERSION=0.8.1
715 719
716if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 720if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
717 { 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; }
718fi 722fi
719cat >> confdefs.h <<EOF 723cat >> confdefs.h <<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
1235 echo "$ac_t""$LD" 1>&6 1239 echo "$ac_t""$LD" 1>&6
1236else 1240else
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
1241echo $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
1242echo "configure:1243: checking if the linker ($LD) is GNU ld" >&5 1245echo "configure:1246: checking if the linker ($LD) is GNU ld" >&5
1243if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then 1246if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6 1247 echo $ac_n "(cached) $ac_c" 1>&6
1245else 1248else
1246 # 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.
1247if $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
1253 1256
1254echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 1257echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1255 1258
1256 1259
1257echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 1260echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1258echo "configure:1259: checking for BSD-compatible nm" >&5 1261echo "configure:1262: checking for BSD-compatible nm" >&5
1259if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then 1262if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6 1263 echo $ac_n "(cached) $ac_c" 1>&6
1261else 1264else
1262 if test -n "$NM"; then 1265 if test -n "$NM"; then
1263 # Let the user override the test. 1266 # Let the user override the test.
1288fi 1291fi
1289 1292
1290NM="$ac_cv_path_NM" 1293NM="$ac_cv_path_NM"
1291echo "$ac_t""$NM" 1>&6 1294echo "$ac_t""$NM" 1>&6
1292 1295
1293
1294echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1296echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1295echo "configure:1296: checking whether ln -s works" >&5 1297echo "configure:1298: checking whether ln -s works" >&5
1296if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1298if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6 1299 echo $ac_n "(cached) $ac_c" 1>&6
1298else 1300else
1299 rm -f conftestdata 1301 rm -f conftestdata
1300if ln -s X conftestdata 2>/dev/null 1302if ln -s X conftestdata 2>/dev/null
1310 echo "$ac_t""yes" 1>&6 1312 echo "$ac_t""yes" 1>&6
1311else 1313else
1312 echo "$ac_t""no" 1>&6 1314 echo "$ac_t""no" 1>&6
1313fi 1315fi
1314 1316
1317
1318case "$target" in
1319NONE) lt_target="$host" ;;
1320*) lt_target="$target" ;;
1321esac
1315 1322
1316# Check for any special flags to pass to ltconfig. 1323# Check for any special flags to pass to ltconfig.
1317libtool_flags="--cache-file=$cache_file" 1324libtool_flags="--cache-file=$cache_file"
1318test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 1325test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1319test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 1326test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1331test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 1338test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1332test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 1339test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1333 1340
1334# 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
1335# libtool support. 1342# libtool support.
1336case "$host" in 1343case "$lt_target" in
1337*-*-irix6*) 1344*-*-irix6*)
1338 # Find out which ABI we are using. 1345 # Find out which ABI we are using.
1339 echo '#line 1340 "configure"' > conftest.$ac_ext 1346 echo '#line 1347 "configure"' > conftest.$ac_ext
1340 if { (eval echo configure:1341: \"$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
1341 case "`/usr/bin/file conftest.o`" in 1348 case "`/usr/bin/file conftest.o`" in
1342 *32-bit*) 1349 *32-bit*)
1343 LD="${LD-ld} -32" 1350 LD="${LD-ld} -32"
1344 ;; 1351 ;;
1345 *N32*) 1352 *N32*)
1356*-*-sco3.2v5*) 1363*-*-sco3.2v5*)
1357 # 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.
1358 SAVE_CFLAGS="$CFLAGS" 1365 SAVE_CFLAGS="$CFLAGS"
1359 CFLAGS="$CFLAGS -belf" 1366 CFLAGS="$CFLAGS -belf"
1360 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
1361echo "configure:1362: checking whether the C compiler needs -belf" >&5 1368echo "configure:1369: checking whether the C compiler needs -belf" >&5
1362if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 1369if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1363 echo $ac_n "(cached) $ac_c" 1>&6 1370 echo $ac_n "(cached) $ac_c" 1>&6
1364else 1371else
1365 cat > conftest.$ac_ext <<EOF 1372 cat > conftest.$ac_ext <<EOF
1366#line 1367 "configure" 1373#line 1374 "configure"
1367#include "confdefs.h" 1374#include "confdefs.h"
1368 1375
1369int main() { 1376int main() {
1370 1377
1371; return 0; } 1378; return 0; }
1372EOF 1379EOF
1373if { (eval echo configure:1374: \"$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
1374 rm -rf conftest* 1381 rm -rf conftest*
1375 lt_cv_cc_needs_belf=yes 1382 lt_cv_cc_needs_belf=yes
1376else 1383else
1377 echo "configure: failed program was:" >&5 1384 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5 1385 cat conftest.$ac_ext >&5
1446CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 1453CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1447LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 1454LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1448LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ 1455LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1449DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ 1456DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1450${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 1457${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1451$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ 1458$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1452|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 1459|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1453 1460
1454# Reload cache, that may have been modified by ltconfig 1461# Reload cache, that may have been modified by ltconfig
1455if test -r "$cache_file"; then 1462if test -r "$cache_file"; then
1456 echo "loading cache $cache_file" 1463 echo "loading cache $cache_file"
1470# 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
1471# clobbered by the next message. 1478# clobbered by the next message.
1472exec 5>>./config.log 1479exec 5>>./config.log
1473 1480
1474 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
1475# Check whether --with-imagemagick or --without-imagemagick was given. 1546# Check whether --with-imagemagick or --without-imagemagick was given.
1476if test "${with_imagemagick+set}" = set; then 1547if test "${with_imagemagick+set}" = set; then
1477 withval="$with_imagemagick" 1548 withval="$with_imagemagick"
1478 IMAGEMAGICK=$withval 1549 IMAGEMAGICK=$withval
1479else 1550else
1480 IMAGEMAGICK='yes' 1551 IMAGEMAGICK='yes'
1481fi 1552fi
1482 1553
1483if test x"$IMAGEMAGICK" != xno ; then 1554if test x"$IMAGEMAGICK" != xno ; then
1555 # Extract the first word of "Magick-config", so it can be a program name with args.
1556set dummy Magick-config; ac_word=$2
1484 echo $ac_n "checking for MagickWarning in -lMagick""... $ac_c" 1>&6 1557echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1485echo "configure:1486: checking for MagickWarning in -lMagick" >&5 1558echo "configure:1559: checking for $ac_word" >&5
1486ac_lib_var=`echo Magick'_'MagickWarning | sed 'y%./+-%__p_%'`
1487if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1559if eval "test \"`echo '$''{'ac_cv_prog_IMAGEMAGICK'+set}'`\" = set"; then
1488 echo $ac_n "(cached) $ac_c" 1>&6 1560 echo $ac_n "(cached) $ac_c" 1>&6
1489else 1561else
1490 ac_save_LIBS="$LIBS" 1562 if test -n "$IMAGEMAGICK"; then
1491LIBS="-lMagick $LIBS" 1563 ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
1564else
1565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1566 ac_dummy="$PATH"
1567 for ac_dir in $ac_dummy; do
1568 test -z "$ac_dir" && ac_dir=.
1569 if test -f $ac_dir/$ac_word; then
1570 ac_cv_prog_IMAGEMAGICK="yes"
1571 break
1572 fi
1573 done
1574 IFS="$ac_save_ifs"
1575 test -z "$ac_cv_prog_IMAGEMAGICK" && ac_cv_prog_IMAGEMAGICK="no"
1576fi
1577fi
1578IMAGEMAGICK="$ac_cv_prog_IMAGEMAGICK"
1579if test -n "$IMAGEMAGICK"; then
1580 echo "$ac_t""$IMAGEMAGICK" 1>&6
1581else
1582 echo "$ac_t""no" 1>&6
1583fi
1584
1585 if test x"$IMAGEMAGICK" != xno ; then
1586 CFLAGS_OLD="$CFLAGS"
1587 CPPFLAGS_OLD="$CPPFLAGS"
1588 LDFLAGS_OLD="$LDFLAGS"
1589 LIBS_OLD="$LIBS"
1590 CFLAGS="$CFLAGS `Magick-config --cflags`"
1591 CPPFLAGS="$CPPFLAGS `Magick-config --cppflags`"
1592 LDFLAGS="$LDFLAGS `Magick-config --ldflags`"
1593 LIBS="$LIBS `Magick-config --libs`"
1594
1595 echo $ac_n "checking whether GetMagickInfo works""... $ac_c" 1>&6
1596echo "configure:1597: checking whether GetMagickInfo works" >&5
1597 if test "$cross_compiling" = yes; then
1598 IMAGEMAGICK=yes
1599else
1492cat > conftest.$ac_ext <<EOF 1600 cat > conftest.$ac_ext <<EOF
1493#line 1494 "configure" 1601#line 1602 "configure"
1494#include "confdefs.h" 1602#include "confdefs.h"
1495/* Override any gcc2 internal prototype to avoid an error. */ 1603 #include <magick/magick.h>
1496/* We use char because int might match the return type of a gcc2 1604 #include <magick/config.h>
1497 builtin and then its argument prototype would still apply. */ 1605 #include <stdio.h>
1498char MagickWarning(); 1606 extern void OpenModules(void);
1499 1607 int main(void) { GetMagickInfo(NULL);
1500int main() { 1608 #if defined(HasLTDL)
1501MagickWarning() 1609 OpenModules();
1502; return 0; } 1610 #endif
1611 return (NULL == GetMagickInfo(NULL)); }
1503EOF 1612EOF
1504if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1613if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1505 rm -rf conftest* 1614then
1506 eval "ac_cv_lib_$ac_lib_var=yes" 1615 IMAGEMAGICK=yes
1507else 1616else
1508 echo "configure: failed program was:" >&5 1617 echo "configure: failed program was:" >&5
1509 cat conftest.$ac_ext >&5 1618 cat conftest.$ac_ext >&5
1510 rm -rf conftest* 1619 rm -fr conftest*
1511 eval "ac_cv_lib_$ac_lib_var=no" 1620 IMAGEMAGICK=no
1512fi 1621fi
1513rm -f conftest* 1622rm -fr conftest*
1514LIBS="$ac_save_LIBS"
1515
1516fi 1623fi
1517if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1518 echo "$ac_t""yes" 1>&6
1519 IMAGEMAGICK=yes
1520else
1521 echo "$ac_t""no" 1>&6
1522IMAGEMAGICK=no
1523fi
1524 1624
1625 echo "$ac_t""$IMAGEMAGICK" 1>&6
1626 LDFLAGS="$LDFLAGS_OLD"
1627 LIBS="$LIBS_OLD"
1525 if test x"$IMAGEMAGICK" = xno ; then 1628 if test x"$IMAGEMAGICK" = xno ; then
1526 echo "configure: warning: ImageMagick support disabled!" 1>&2 1629 CFLAGS="$CFLAGS_OLD"
1630 CPPFLAGS="$CPPFLAGS_OLD"
1631 fi
1527 fi 1632 fi
1528fi 1633fi
1529if test x"$IMAGEMAGICK" = xyes ; then 1634if test x"$IMAGEMAGICK" = xyes ; then
1530 LIB_MAGICK=-lMagick 1635 LIB_MAGICK="`Magick-config --libs` `Magick-config --ldflags`"
1531 cat >> confdefs.h <<\EOF 1636 cat >> confdefs.h <<\EOF
1532#define IMAGEMAGICK 1 1637#define IMAGEMAGICK 1
1533EOF 1638EOF
1534 1639
1535else 1640else
1536 LIB_MAGICK= 1641 LIB_MAGICK=
1537fi 1642fi
1538 1643
1539 1644
1540echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1645echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1541echo "configure:1542: checking how to run the C preprocessor" >&5 1646echo "configure:1647: checking how to run the C preprocessor" >&5
1542# On Suns, sometimes $CPP names a directory. 1647# On Suns, sometimes $CPP names a directory.
1543if test -n "$CPP" && test -d "$CPP"; then 1648if test -n "$CPP" && test -d "$CPP"; then
1544 CPP= 1649 CPP=
1545fi 1650fi
1546if test -z "$CPP"; then 1651if test -z "$CPP"; then
1551 # substituted into the Makefile and "${CC-cc}" will confuse make. 1656 # substituted into the Makefile and "${CC-cc}" will confuse make.
1552 CPP="${CC-cc} -E" 1657 CPP="${CC-cc} -E"
1553 # On the NeXT, cc -E runs the code through the compiler's parser, 1658 # On the NeXT, cc -E runs the code through the compiler's parser,
1554 # not just through cpp. 1659 # not just through cpp.
1555 cat > conftest.$ac_ext <<EOF 1660 cat > conftest.$ac_ext <<EOF
1556#line 1557 "configure" 1661#line 1662 "configure"
1557#include "confdefs.h" 1662#include "confdefs.h"
1558#include <assert.h> 1663#include <assert.h>
1559Syntax Error 1664Syntax Error
1560EOF 1665EOF
1561ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1666ac_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; } 1667{ (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1563ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1668ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1564if test -z "$ac_err"; then 1669if test -z "$ac_err"; then
1565 : 1670 :
1566else 1671else
1567 echo "$ac_err" >&5 1672 echo "$ac_err" >&5
1568 echo "configure: failed program was:" >&5 1673 echo "configure: failed program was:" >&5
1569 cat conftest.$ac_ext >&5 1674 cat conftest.$ac_ext >&5
1570 rm -rf conftest* 1675 rm -rf conftest*
1571 CPP="${CC-cc} -E -traditional-cpp" 1676 CPP="${CC-cc} -E -traditional-cpp"
1572 cat > conftest.$ac_ext <<EOF 1677 cat > conftest.$ac_ext <<EOF
1573#line 1574 "configure" 1678#line 1679 "configure"
1574#include "confdefs.h" 1679#include "confdefs.h"
1575#include <assert.h> 1680#include <assert.h>
1576Syntax Error 1681Syntax Error
1577EOF 1682EOF
1578ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1683ac_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; } 1684{ (eval echo configure:1685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1580ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1685ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1581if test -z "$ac_err"; then 1686if test -z "$ac_err"; then
1582 : 1687 :
1583else 1688else
1584 echo "$ac_err" >&5 1689 echo "$ac_err" >&5
1585 echo "configure: failed program was:" >&5 1690 echo "configure: failed program was:" >&5
1586 cat conftest.$ac_ext >&5 1691 cat conftest.$ac_ext >&5
1587 rm -rf conftest* 1692 rm -rf conftest*
1588 CPP="${CC-cc} -nologo -E" 1693 CPP="${CC-cc} -nologo -E"
1589 cat > conftest.$ac_ext <<EOF 1694 cat > conftest.$ac_ext <<EOF
1590#line 1591 "configure" 1695#line 1696 "configure"
1591#include "confdefs.h" 1696#include "confdefs.h"
1592#include <assert.h> 1697#include <assert.h>
1593Syntax Error 1698Syntax Error
1594EOF 1699EOF
1595ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1700ac_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; } 1701{ (eval echo configure:1702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1597ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1702ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1598if test -z "$ac_err"; then 1703if test -z "$ac_err"; then
1599 : 1704 :
1600else 1705else
1601 echo "$ac_err" >&5 1706 echo "$ac_err" >&5
1616 ac_cv_prog_CPP="$CPP" 1721 ac_cv_prog_CPP="$CPP"
1617fi 1722fi
1618echo "$ac_t""$CPP" 1>&6 1723echo "$ac_t""$CPP" 1>&6
1619 1724
1620echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1725echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1621echo "configure:1622: checking for ANSI C header files" >&5 1726echo "configure:1727: checking for ANSI C header files" >&5
1622if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1727if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6 1728 echo $ac_n "(cached) $ac_c" 1>&6
1624else 1729else
1625 cat > conftest.$ac_ext <<EOF 1730 cat > conftest.$ac_ext <<EOF
1626#line 1627 "configure" 1731#line 1732 "configure"
1627#include "confdefs.h" 1732#include "confdefs.h"
1628#include <stdlib.h> 1733#include <stdlib.h>
1629#include <stdarg.h> 1734#include <stdarg.h>
1630#include <string.h> 1735#include <string.h>
1631#include <float.h> 1736#include <float.h>
1632EOF 1737EOF
1633ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1738ac_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; } 1739{ (eval echo configure:1740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1635ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1740ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1636if test -z "$ac_err"; then 1741if test -z "$ac_err"; then
1637 rm -rf conftest* 1742 rm -rf conftest*
1638 ac_cv_header_stdc=yes 1743 ac_cv_header_stdc=yes
1639else 1744else
1646rm -f conftest* 1751rm -f conftest*
1647 1752
1648if test $ac_cv_header_stdc = yes; then 1753if test $ac_cv_header_stdc = yes; then
1649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1650cat > conftest.$ac_ext <<EOF 1755cat > conftest.$ac_ext <<EOF
1651#line 1652 "configure" 1756#line 1757 "configure"
1652#include "confdefs.h" 1757#include "confdefs.h"
1653#include <string.h> 1758#include <string.h>
1654EOF 1759EOF
1655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1656 egrep "memchr" >/dev/null 2>&1; then 1761 egrep "memchr" >/dev/null 2>&1; then
1664fi 1769fi
1665 1770
1666if test $ac_cv_header_stdc = yes; then 1771if test $ac_cv_header_stdc = yes; then
1667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1772 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1668cat > conftest.$ac_ext <<EOF 1773cat > conftest.$ac_ext <<EOF
1669#line 1670 "configure" 1774#line 1775 "configure"
1670#include "confdefs.h" 1775#include "confdefs.h"
1671#include <stdlib.h> 1776#include <stdlib.h>
1672EOF 1777EOF
1673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1674 egrep "free" >/dev/null 2>&1; then 1779 egrep "free" >/dev/null 2>&1; then
1685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1686if test "$cross_compiling" = yes; then 1791if test "$cross_compiling" = yes; then
1687 : 1792 :
1688else 1793else
1689 cat > conftest.$ac_ext <<EOF 1794 cat > conftest.$ac_ext <<EOF
1690#line 1691 "configure" 1795#line 1796 "configure"
1691#include "confdefs.h" 1796#include "confdefs.h"
1692#include <ctype.h> 1797#include <ctype.h>
1693#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1798#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1694#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1799#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1695#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1800#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1696int main () { int i; for (i = 0; i < 256; i++) 1801int main () { int i; for (i = 0; i < 256; i++)
1697if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1802if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1698exit (0); } 1803exit (0); }
1699 1804
1700EOF 1805EOF
1701if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1806if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1702then 1807then
1703 : 1808 :
1704else 1809else
1705 echo "configure: failed program was:" >&5 1810 echo "configure: failed program was:" >&5
1706 cat conftest.$ac_ext >&5 1811 cat conftest.$ac_ext >&5
1723 1828
1724for ac_hdr in unistd.h 1829for ac_hdr in unistd.h
1725do 1830do
1726ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1831ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1727echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1832echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1728echo "configure:1729: checking for $ac_hdr" >&5 1833echo "configure:1834: checking for $ac_hdr" >&5
1729if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1834if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6 1835 echo $ac_n "(cached) $ac_c" 1>&6
1731else 1836else
1732 cat > conftest.$ac_ext <<EOF 1837 cat > conftest.$ac_ext <<EOF
1733#line 1734 "configure" 1838#line 1839 "configure"
1734#include "confdefs.h" 1839#include "confdefs.h"
1735#include <$ac_hdr> 1840#include <$ac_hdr>
1736EOF 1841EOF
1737ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1842ac_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; } 1843{ (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1739ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1844ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1740if test -z "$ac_err"; then 1845if test -z "$ac_err"; then
1741 rm -rf conftest* 1846 rm -rf conftest*
1742 eval "ac_cv_header_$ac_safe=yes" 1847 eval "ac_cv_header_$ac_safe=yes"
1743else 1848else
1761fi 1866fi
1762done 1867done
1763 1868
1764 1869
1765echo $ac_n "checking for working const""... $ac_c" 1>&6 1870echo $ac_n "checking for working const""... $ac_c" 1>&6
1766echo "configure:1767: checking for working const" >&5 1871echo "configure:1872: checking for working const" >&5
1767if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1872if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6 1873 echo $ac_n "(cached) $ac_c" 1>&6
1769else 1874else
1770 cat > conftest.$ac_ext <<EOF 1875 cat > conftest.$ac_ext <<EOF
1771#line 1772 "configure" 1876#line 1877 "configure"
1772#include "confdefs.h" 1877#include "confdefs.h"
1773 1878
1774int main() { 1879int main() {
1775 1880
1776/* Ultrix mips cc rejects this. */ 1881/* Ultrix mips cc rejects this. */
1815 const int foo = 10; 1920 const int foo = 10;
1816} 1921}
1817 1922
1818; return 0; } 1923; return 0; }
1819EOF 1924EOF
1820if { (eval echo configure:1821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1925if { (eval echo configure:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1821 rm -rf conftest* 1926 rm -rf conftest*
1822 ac_cv_c_const=yes 1927 ac_cv_c_const=yes
1823else 1928else
1824 echo "configure: failed program was:" >&5 1929 echo "configure: failed program was:" >&5
1825 cat conftest.$ac_ext >&5 1930 cat conftest.$ac_ext >&5
1836EOF 1941EOF
1837 1942
1838fi 1943fi
1839 1944
1840echo $ac_n "checking for size_t""... $ac_c" 1>&6 1945echo $ac_n "checking for size_t""... $ac_c" 1>&6
1841echo "configure:1842: checking for size_t" >&5 1946echo "configure:1947: checking for size_t" >&5
1842if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1947if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6 1948 echo $ac_n "(cached) $ac_c" 1>&6
1844else 1949else
1845 cat > conftest.$ac_ext <<EOF 1950 cat > conftest.$ac_ext <<EOF
1846#line 1847 "configure" 1951#line 1952 "configure"
1847#include "confdefs.h" 1952#include "confdefs.h"
1848#include <sys/types.h> 1953#include <sys/types.h>
1849#if STDC_HEADERS 1954#if STDC_HEADERS
1850#include <stdlib.h> 1955#include <stdlib.h>
1851#include <stddef.h> 1956#include <stddef.h>
1871fi 1976fi
1872 1977
1873 1978
1874 1979
1875echo $ac_n "checking size of char""... $ac_c" 1>&6 1980echo $ac_n "checking size of char""... $ac_c" 1>&6
1876echo "configure:1877: checking size of char" >&5 1981echo "configure:1982: checking size of char" >&5
1877if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 1982if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6 1983 echo $ac_n "(cached) $ac_c" 1>&6
1879else 1984else
1880 if test "$cross_compiling" = yes; then 1985 if test "$cross_compiling" = yes; then
1881 ac_cv_sizeof_char=1 1986 ac_cv_sizeof_char=1
1882else 1987else
1883 cat > conftest.$ac_ext <<EOF 1988 cat > conftest.$ac_ext <<EOF
1884#line 1885 "configure" 1989#line 1990 "configure"
1885#include "confdefs.h" 1990#include "confdefs.h"
1886#include <stdio.h> 1991#include <stdio.h>
1887main() 1992main()
1888{ 1993{
1889 FILE *f=fopen("conftestval", "w"); 1994 FILE *f=fopen("conftestval", "w");
1890 if (!f) exit(1); 1995 if (!f) exit(1);
1891 fprintf(f, "%d\n", sizeof(char)); 1996 fprintf(f, "%d\n", sizeof(char));
1892 exit(0); 1997 exit(0);
1893} 1998}
1894EOF 1999EOF
1895if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2000if { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1896then 2001then
1897 ac_cv_sizeof_char=`cat conftestval` 2002 ac_cv_sizeof_char=`cat conftestval`
1898else 2003else
1899 echo "configure: failed program was:" >&5 2004 echo "configure: failed program was:" >&5
1900 cat conftest.$ac_ext >&5 2005 cat conftest.$ac_ext >&5
1910#define SIZEOF_CHAR $ac_cv_sizeof_char 2015#define SIZEOF_CHAR $ac_cv_sizeof_char
1911EOF 2016EOF
1912 2017
1913 2018
1914echo $ac_n "checking size of short""... $ac_c" 1>&6 2019echo $ac_n "checking size of short""... $ac_c" 1>&6
1915echo "configure:1916: checking size of short" >&5 2020echo "configure:2021: checking size of short" >&5
1916if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 2021if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6 2022 echo $ac_n "(cached) $ac_c" 1>&6
1918else 2023else
1919 if test "$cross_compiling" = yes; then 2024 if test "$cross_compiling" = yes; then
1920 ac_cv_sizeof_short=1 2025 ac_cv_sizeof_short=1
1921else 2026else
1922 cat > conftest.$ac_ext <<EOF 2027 cat > conftest.$ac_ext <<EOF
1923#line 1924 "configure" 2028#line 2029 "configure"
1924#include "confdefs.h" 2029#include "confdefs.h"
1925#include <stdio.h> 2030#include <stdio.h>
1926main() 2031main()
1927{ 2032{
1928 FILE *f=fopen("conftestval", "w"); 2033 FILE *f=fopen("conftestval", "w");
1929 if (!f) exit(1); 2034 if (!f) exit(1);
1930 fprintf(f, "%d\n", sizeof(short)); 2035 fprintf(f, "%d\n", sizeof(short));
1931 exit(0); 2036 exit(0);
1932} 2037}
1933EOF 2038EOF
1934if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2039if { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1935then 2040then
1936 ac_cv_sizeof_short=`cat conftestval` 2041 ac_cv_sizeof_short=`cat conftestval`
1937else 2042else
1938 echo "configure: failed program was:" >&5 2043 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5 2044 cat conftest.$ac_ext >&5
1949#define SIZEOF_SHORT $ac_cv_sizeof_short 2054#define SIZEOF_SHORT $ac_cv_sizeof_short
1950EOF 2055EOF
1951 2056
1952 2057
1953echo $ac_n "checking size of int""... $ac_c" 1>&6 2058echo $ac_n "checking size of int""... $ac_c" 1>&6
1954echo "configure:1955: checking size of int" >&5 2059echo "configure:2060: checking size of int" >&5
1955if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 2060if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6 2061 echo $ac_n "(cached) $ac_c" 1>&6
1957else 2062else
1958 if test "$cross_compiling" = yes; then 2063 if test "$cross_compiling" = yes; then
1959 ac_cv_sizeof_int=2 2064 ac_cv_sizeof_int=2
1960else 2065else
1961 cat > conftest.$ac_ext <<EOF 2066 cat > conftest.$ac_ext <<EOF
1962#line 1963 "configure" 2067#line 2068 "configure"
1963#include "confdefs.h" 2068#include "confdefs.h"
1964#include <stdio.h> 2069#include <stdio.h>
1965main() 2070main()
1966{ 2071{
1967 FILE *f=fopen("conftestval", "w"); 2072 FILE *f=fopen("conftestval", "w");
1968 if (!f) exit(1); 2073 if (!f) exit(1);
1969 fprintf(f, "%d\n", sizeof(int)); 2074 fprintf(f, "%d\n", sizeof(int));
1970 exit(0); 2075 exit(0);
1971} 2076}
1972EOF 2077EOF
1973if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2078if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1974then 2079then
1975 ac_cv_sizeof_int=`cat conftestval` 2080 ac_cv_sizeof_int=`cat conftestval`
1976else 2081else
1977 echo "configure: failed program was:" >&5 2082 echo "configure: failed program was:" >&5
1978 cat conftest.$ac_ext >&5 2083 cat conftest.$ac_ext >&5
1988#define SIZEOF_INT $ac_cv_sizeof_int 2093#define SIZEOF_INT $ac_cv_sizeof_int
1989EOF 2094EOF
1990 2095
1991 2096
1992echo $ac_n "checking size of long""... $ac_c" 1>&6 2097echo $ac_n "checking size of long""... $ac_c" 1>&6
1993echo "configure:1994: checking size of long" >&5 2098echo "configure:2099: checking size of long" >&5
1994if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 2099if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6 2100 echo $ac_n "(cached) $ac_c" 1>&6
1996else 2101else
1997 if test "$cross_compiling" = yes; then 2102 if test "$cross_compiling" = yes; then
1998 ac_cv_sizeof_long=4 2103 ac_cv_sizeof_long=4
1999else 2104else
2000 cat > conftest.$ac_ext <<EOF 2105 cat > conftest.$ac_ext <<EOF
2001#line 2002 "configure" 2106#line 2107 "configure"
2002#include "confdefs.h" 2107#include "confdefs.h"
2003#include <stdio.h> 2108#include <stdio.h>
2004main() 2109main()
2005{ 2110{
2006 FILE *f=fopen("conftestval", "w"); 2111 FILE *f=fopen("conftestval", "w");
2007 if (!f) exit(1); 2112 if (!f) exit(1);
2008 fprintf(f, "%d\n", sizeof(long)); 2113 fprintf(f, "%d\n", sizeof(long));
2009 exit(0); 2114 exit(0);
2010} 2115}
2011EOF 2116EOF
2012if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2117if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2013then 2118then
2014 ac_cv_sizeof_long=`cat conftestval` 2119 ac_cv_sizeof_long=`cat conftestval`
2015else 2120else
2016 echo "configure: failed program was:" >&5 2121 echo "configure: failed program was:" >&5
2017 cat conftest.$ac_ext >&5 2122 cat conftest.$ac_ext >&5
2028EOF 2133EOF
2029 2134
2030 2135
2031 2136
2032echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 2137echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6
2033echo "configure:2034: checking for an 8 bit integer type" >&5 2138echo "configure:2139: checking for an 8 bit integer type" >&5
2034if test $ac_cv_sizeof_char -ge 1 ; then 2139if test $ac_cv_sizeof_char -ge 1 ; then
2035 INT_8_BIT=char 2140 INT_8_BIT=char
2036 echo "$ac_t""char" 1>&6 2141 echo "$ac_t""char" 1>&6
2037elif test $ac_cv_sizeof_short -ge 1 ; then 2142elif test $ac_cv_sizeof_short -ge 1 ; then
2038 INT_8_BIT=short 2143 INT_8_BIT=short
2046else 2151else
2047 { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } 2152 { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; }
2048fi 2153fi
2049 2154
2050echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 2155echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6
2051echo "configure:2052: checking for a 16 bit integer type" >&5 2156echo "configure:2157: checking for a 16 bit integer type" >&5
2052if test $ac_cv_sizeof_char -ge 2 ; then 2157if test $ac_cv_sizeof_char -ge 2 ; then
2053 INT_16_BIT=char 2158 INT_16_BIT=char
2054 echo "$ac_t""char" 1>&6 2159 echo "$ac_t""char" 1>&6
2055elif test $ac_cv_sizeof_short -ge 2 ; then 2160elif test $ac_cv_sizeof_short -ge 2 ; then
2056 INT_16_BIT=short 2161 INT_16_BIT=short
2064else 2169else
2065 { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } 2170 { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; }
2066fi 2171fi
2067 2172
2068echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 2173echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6
2069echo "configure:2070: checking for a 32 bit integer type" >&5 2174echo "configure:2175: checking for a 32 bit integer type" >&5
2070if test $ac_cv_sizeof_char -ge 4 ; then 2175if test $ac_cv_sizeof_char -ge 4 ; then
2071 INT_32_BIT=char 2176 INT_32_BIT=char
2072 echo "$ac_t""char" 1>&6 2177 echo "$ac_t""char" 1>&6
2073elif test $ac_cv_sizeof_short -ge 4 ; then 2178elif test $ac_cv_sizeof_short -ge 4 ; then
2074 INT_32_BIT=short 2179 INT_32_BIT=short
2086 2191
2087 2192
2088 2193
2089 2194
2090echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2195echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2091echo "configure:2092: checking for vprintf" >&5 2196echo "configure:2197: checking for vprintf" >&5
2092if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2197if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6 2198 echo $ac_n "(cached) $ac_c" 1>&6
2094else 2199else
2095 cat > conftest.$ac_ext <<EOF 2200 cat > conftest.$ac_ext <<EOF
2096#line 2097 "configure" 2201#line 2202 "configure"
2097#include "confdefs.h" 2202#include "confdefs.h"
2098/* System header to define __stub macros and hopefully few prototypes, 2203/* System header to define __stub macros and hopefully few prototypes,
2099 which can conflict with char vprintf(); below. */ 2204 which can conflict with char vprintf(); below. */
2100#include <assert.h> 2205#include <assert.h>
2101/* Override any gcc2 internal prototype to avoid an error. */ 2206/* Override any gcc2 internal prototype to avoid an error. */
2114vprintf(); 2219vprintf();
2115#endif 2220#endif
2116 2221
2117; return 0; } 2222; return 0; }
2118EOF 2223EOF
2119if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2224if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2120 rm -rf conftest* 2225 rm -rf conftest*
2121 eval "ac_cv_func_vprintf=yes" 2226 eval "ac_cv_func_vprintf=yes"
2122else 2227else
2123 echo "configure: failed program was:" >&5 2228 echo "configure: failed program was:" >&5
2124 cat conftest.$ac_ext >&5 2229 cat conftest.$ac_ext >&5
2138 echo "$ac_t""no" 1>&6 2243 echo "$ac_t""no" 1>&6
2139fi 2244fi
2140 2245
2141if test "$ac_cv_func_vprintf" != yes; then 2246if test "$ac_cv_func_vprintf" != yes; then
2142echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2247echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2143echo "configure:2144: checking for _doprnt" >&5 2248echo "configure:2249: checking for _doprnt" >&5
2144if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2249if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6 2250 echo $ac_n "(cached) $ac_c" 1>&6
2146else 2251else
2147 cat > conftest.$ac_ext <<EOF 2252 cat > conftest.$ac_ext <<EOF
2148#line 2149 "configure" 2253#line 2254 "configure"
2149#include "confdefs.h" 2254#include "confdefs.h"
2150/* System header to define __stub macros and hopefully few prototypes, 2255/* System header to define __stub macros and hopefully few prototypes,
2151 which can conflict with char _doprnt(); below. */ 2256 which can conflict with char _doprnt(); below. */
2152#include <assert.h> 2257#include <assert.h>
2153/* Override any gcc2 internal prototype to avoid an error. */ 2258/* Override any gcc2 internal prototype to avoid an error. */
2166_doprnt(); 2271_doprnt();
2167#endif 2272#endif
2168 2273
2169; return 0; } 2274; return 0; }
2170EOF 2275EOF
2171if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2276if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2172 rm -rf conftest* 2277 rm -rf conftest*
2173 eval "ac_cv_func__doprnt=yes" 2278 eval "ac_cv_func__doprnt=yes"
2174else 2279else
2175 echo "configure: failed program was:" >&5 2280 echo "configure: failed program was:" >&5
2176 cat conftest.$ac_ext >&5 2281 cat conftest.$ac_ext >&5
2193fi 2298fi
2194 2299
2195for ac_func in strdup 2300for ac_func in strdup
2196do 2301do
2197echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2302echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2198echo "configure:2199: checking for $ac_func" >&5 2303echo "configure:2304: checking for $ac_func" >&5
2199if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2304if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6 2305 echo $ac_n "(cached) $ac_c" 1>&6
2201else 2306else
2202 cat > conftest.$ac_ext <<EOF 2307 cat > conftest.$ac_ext <<EOF
2203#line 2204 "configure" 2308#line 2309 "configure"
2204#include "confdefs.h" 2309#include "confdefs.h"
2205/* System header to define __stub macros and hopefully few prototypes, 2310/* System header to define __stub macros and hopefully few prototypes,
2206 which can conflict with char $ac_func(); below. */ 2311 which can conflict with char $ac_func(); below. */
2207#include <assert.h> 2312#include <assert.h>
2208/* Override any gcc2 internal prototype to avoid an error. */ 2313/* Override any gcc2 internal prototype to avoid an error. */
2221$ac_func(); 2326$ac_func();
2222#endif 2327#endif
2223 2328
2224; return 0; } 2329; return 0; }
2225EOF 2330EOF
2226if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2331if { (eval echo configure:2332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2227 rm -rf conftest* 2332 rm -rf conftest*
2228 eval "ac_cv_func_$ac_func=yes" 2333 eval "ac_cv_func_$ac_func=yes"
2229else 2334else
2230 echo "configure: failed program was:" >&5 2335 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5 2336 cat conftest.$ac_ext >&5
2242#define $ac_tr_func 1 2347#define $ac_tr_func 1
2243EOF 2348EOF
2244 2349
2245else 2350else
2246 echo "$ac_t""no" 1>&6 2351 echo "$ac_t""no" 1>&6
2352LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2247fi 2353fi
2248done 2354done
2249 2355
2250for ac_func in strdup 2356
2357for ac_func in getopt_long
2251do 2358do
2252echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2359echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2253echo "configure:2254: checking for $ac_func" >&5 2360echo "configure:2361: checking for $ac_func" >&5
2254if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2361if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6 2362 echo $ac_n "(cached) $ac_c" 1>&6
2256else 2363else
2257 cat > conftest.$ac_ext <<EOF 2364 cat > conftest.$ac_ext <<EOF
2258#line 2259 "configure" 2365#line 2366 "configure"
2259#include "confdefs.h" 2366#include "confdefs.h"
2260/* System header to define __stub macros and hopefully few prototypes, 2367/* System header to define __stub macros and hopefully few prototypes,
2261 which can conflict with char $ac_func(); below. */ 2368 which can conflict with char $ac_func(); below. */
2262#include <assert.h> 2369#include <assert.h>
2263/* Override any gcc2 internal prototype to avoid an error. */ 2370/* Override any gcc2 internal prototype to avoid an error. */
2276$ac_func(); 2383$ac_func();
2277#endif 2384#endif
2278 2385
2279; return 0; } 2386; return 0; }
2280EOF 2387EOF
2281if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2388if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2282 rm -rf conftest* 2389 rm -rf conftest*
2283 eval "ac_cv_func_$ac_func=yes" 2390 eval "ac_cv_func_$ac_func=yes"
2284else 2391else
2285 echo "configure: failed program was:" >&5 2392 echo "configure: failed program was:" >&5
2286 cat conftest.$ac_ext >&5 2393 cat conftest.$ac_ext >&5
2297#define $ac_tr_func 1 2404#define $ac_tr_func 1
2298EOF 2405EOF
2299 2406
2300else 2407else
2301 echo "$ac_t""no" 1>&6 2408 echo "$ac_t""no" 1>&6
2302LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2409LIBOBJS="$LIBOBJS getopt.o getopt1.o"
2303fi 2410fi
2304done 2411done
2305 2412
2306 2413
2307 2414
2390 RTFDOCS_FALSE='#' 2497 RTFDOCS_FALSE='#'
2391else 2498else
2392 RTFDOCS_TRUE='#' 2499 RTFDOCS_TRUE='#'
2393 RTFDOCS_FALSE= 2500 RTFDOCS_FALSE=
2394fi 2501fi
2502
2395 2503
2396trap '' 1 2 15 2504trap '' 1 2 15
2397cat > confcache <<\EOF 2505cat > confcache <<\EOF
2398# This file is a shell script that caches the results of configure 2506# 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 2507# tests run on this system so they can be shared between configure
2492done 2600done
2493 2601
2494ac_given_srcdir=$srcdir 2602ac_given_srcdir=$srcdir
2495ac_given_INSTALL="$INSTALL" 2603ac_given_INSTALL="$INSTALL"
2496 2604
2497trap 'rm -fr `echo "Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2605trap 'rm -fr `echo "Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile program/Makefile program/psiconv/Makefile lib/psiconv/general.h formats/Makefile docs/Makefile extra/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2498EOF 2606EOF
2499cat >> $CONFIG_STATUS <<EOF 2607cat >> $CONFIG_STATUS <<EOF
2500 2608
2501# Protect against being on the right side of a sed subst in config.status. 2609# Protect against being on the right side of a sed subst in config.status.
2502sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2610sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2547s%@build_cpu@%$build_cpu%g 2655s%@build_cpu@%$build_cpu%g
2548s%@build_vendor@%$build_vendor%g 2656s%@build_vendor@%$build_vendor%g
2549s%@build_os@%$build_os%g 2657s%@build_os@%$build_os%g
2550s%@RANLIB@%$RANLIB%g 2658s%@RANLIB@%$RANLIB%g
2551s%@CC@%$CC%g 2659s%@CC@%$CC%g
2552s%@LD@%$LD%g
2553s%@NM@%$NM%g
2554s%@LN_S@%$LN_S%g 2660s%@LN_S@%$LN_S%g
2555s%@LIBTOOL@%$LIBTOOL%g 2661s%@LIBTOOL@%$LIBTOOL%g
2662s%@cflags_set@%$cflags_set%g
2663s%@IMAGEMAGICK@%$IMAGEMAGICK%g
2556s%@LIB_MAGICK@%$LIB_MAGICK%g 2664s%@LIB_MAGICK@%$LIB_MAGICK%g
2557s%@CPP@%$CPP%g 2665s%@CPP@%$CPP%g
2558s%@INT_8_BIT@%$INT_8_BIT%g 2666s%@INT_8_BIT@%$INT_8_BIT%g
2559s%@INT_16_BIT@%$INT_16_BIT%g 2667s%@INT_16_BIT@%$INT_16_BIT%g
2560s%@INT_32_BIT@%$INT_32_BIT%g 2668s%@INT_32_BIT@%$INT_32_BIT%g
2606fi 2714fi
2607EOF 2715EOF
2608 2716
2609cat >> $CONFIG_STATUS <<EOF 2717cat >> $CONFIG_STATUS <<EOF
2610 2718
2611CONFIG_FILES=\${CONFIG_FILES-"Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile"} 2719CONFIG_FILES=\${CONFIG_FILES-"Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile program/Makefile program/psiconv/Makefile lib/psiconv/general.h formats/Makefile docs/Makefile extra/Makefile"}
2612EOF 2720EOF
2613cat >> $CONFIG_STATUS <<\EOF 2721cat >> $CONFIG_STATUS <<\EOF
2614for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2722for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2615 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2723 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2616 case "$ac_file" in 2724 case "$ac_file" in

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

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