… | |
… | |
29 | --enable-html4-docs Enable generation of HTML 4 docs (default: off)" |
29 | --enable-html4-docs Enable generation of HTML 4 docs (default: off)" |
30 | ac_help="$ac_help |
30 | ac_help="$ac_help |
31 | --enable-ascii-docs Enable generation of ASCII docs (default: off)" |
31 | --enable-ascii-docs Enable generation of ASCII docs (default: off)" |
32 | ac_help="$ac_help |
32 | ac_help="$ac_help |
33 | --enable-rtf-docs Enable generation of RTF docs (default: off)" |
33 | --enable-rtf-docs Enable generation of RTF docs (default: off)" |
|
|
34 | ac_help="$ac_help |
|
|
35 | --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings." |
|
|
36 | ac_help="$ac_help |
|
|
37 | --enable-iso-c Try to warn if code is not ISO C " |
34 | |
38 | |
35 | # Initialize some variables set by options. |
39 | # Initialize some variables set by options. |
36 | # The variables have the same names as the options, with |
40 | # The variables have the same names as the options, with |
37 | # dashes changed to underlines. |
41 | # dashes changed to underlines. |
38 | build=NONE |
42 | build=NONE |
… | |
… | |
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. |
574 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
578 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
575 | echo "configure:576: checking for a BSD compatible install" >&5 |
579 | echo "configure:580: checking for a BSD compatible install" >&5 |
576 | if test -z "$INSTALL"; then |
580 | if test -z "$INSTALL"; then |
577 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
581 | if 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 |
579 | else |
583 | else |
580 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
584 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
… | |
… | |
623 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
627 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
624 | |
628 | |
625 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
629 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
626 | |
630 | |
627 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
631 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
628 | echo "configure:629: checking whether build environment is sane" >&5 |
632 | echo "configure:633: checking whether build environment is sane" >&5 |
629 | # Just in case |
633 | # Just in case |
630 | sleep 1 |
634 | sleep 1 |
631 | echo timestamp > conftestfile |
635 | echo 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. |
682 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
686 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
683 | |
687 | |
684 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
688 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
685 | echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
689 | echo "configure:690: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
686 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
690 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
687 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
691 | if 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 |
689 | else |
693 | else |
690 | cat > conftestmake <<\EOF |
694 | cat > conftestmake <<\EOF |
… | |
… | |
726 | |
730 | |
727 | |
731 | |
728 | |
732 | |
729 | missing_dir=`cd $ac_aux_dir && pwd` |
733 | missing_dir=`cd $ac_aux_dir && pwd` |
730 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
734 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
731 | echo "configure:732: checking for working aclocal" >&5 |
735 | echo "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. |
735 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
739 | if (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 |
741 | fi |
745 | fi |
742 | |
746 | |
743 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
747 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
744 | echo "configure:745: checking for working autoconf" >&5 |
748 | echo "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. |
748 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
752 | if (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 |
754 | fi |
758 | fi |
755 | |
759 | |
756 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
760 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
757 | echo "configure:758: checking for working automake" >&5 |
761 | echo "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. |
761 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
765 | if (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 |
767 | fi |
771 | fi |
768 | |
772 | |
769 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
773 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
770 | echo "configure:771: checking for working autoheader" >&5 |
774 | echo "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. |
774 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
778 | if (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 |
780 | fi |
784 | fi |
781 | |
785 | |
782 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
786 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
783 | echo "configure:784: checking for working makeinfo" >&5 |
787 | echo "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. |
787 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
791 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
788 | MAKEINFO=makeinfo |
792 | MAKEINFO=makeinfo |
… | |
… | |
872 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
876 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
873 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
877 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
874 | fi |
878 | fi |
875 | |
879 | |
876 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
880 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
877 | echo "configure:878: checking host system type" >&5 |
881 | echo "configure:882: checking host system type" >&5 |
878 | |
882 | |
879 | host_alias=$host |
883 | host_alias=$host |
880 | case "$host_alias" in |
884 | case "$host_alias" in |
881 | NONE) |
885 | NONE) |
882 | case $nonopt in |
886 | case $nonopt in |
… | |
… | |
893 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
897 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
894 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
898 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
895 | echo "$ac_t""$host" 1>&6 |
899 | echo "$ac_t""$host" 1>&6 |
896 | |
900 | |
897 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
901 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
898 | echo "configure:899: checking build system type" >&5 |
902 | echo "configure:903: checking build system type" >&5 |
899 | |
903 | |
900 | build_alias=$build |
904 | build_alias=$build |
901 | case "$build_alias" in |
905 | case "$build_alias" in |
902 | NONE) |
906 | NONE) |
903 | case $nonopt in |
907 | case $nonopt in |
… | |
… | |
913 | echo "$ac_t""$build" 1>&6 |
917 | echo "$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. |
916 | set dummy ranlib; ac_word=$2 |
920 | set dummy ranlib; ac_word=$2 |
917 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
921 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
918 | echo "configure:919: checking for $ac_word" >&5 |
922 | echo "configure:923: checking for $ac_word" >&5 |
919 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
923 | if 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 |
921 | else |
925 | else |
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. |
… | |
… | |
943 | fi |
947 | fi |
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. |
946 | set dummy gcc; ac_word=$2 |
950 | set dummy gcc; ac_word=$2 |
947 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
951 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
948 | echo "configure:949: checking for $ac_word" >&5 |
952 | echo "configure:953: checking for $ac_word" >&5 |
949 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
953 | if 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 |
951 | else |
955 | else |
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 | |
974 | if test -z "$CC"; then |
978 | if 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. |
976 | set dummy cc; ac_word=$2 |
980 | set dummy cc; ac_word=$2 |
977 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
981 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
978 | echo "configure:979: checking for $ac_word" >&5 |
982 | echo "configure:983: checking for $ac_word" >&5 |
979 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
983 | if 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 |
981 | else |
985 | else |
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. |
1027 | set dummy cl; ac_word=$2 |
1031 | set dummy cl; ac_word=$2 |
1028 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1032 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1029 | echo "configure:1030: checking for $ac_word" >&5 |
1033 | echo "configure:1034: checking for $ac_word" >&5 |
1030 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1034 | if 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 |
1032 | else |
1036 | else |
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; } |
1058 | fi |
1062 | fi |
1059 | |
1063 | |
1060 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1064 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1061 | echo "configure:1062: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1065 | echo "configure:1066: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1062 | |
1066 | |
1063 | ac_ext=c |
1067 | ac_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. |
1065 | ac_cpp='$CPP $CPPFLAGS' |
1069 | ac_cpp='$CPP $CPPFLAGS' |
1066 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1070 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1067 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1071 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1068 | cross_compiling=$ac_cv_prog_cc_cross |
1072 | cross_compiling=$ac_cv_prog_cc_cross |
1069 | |
1073 | |
1070 | cat > conftest.$ac_ext << EOF |
1074 | cat > conftest.$ac_ext << EOF |
1071 | |
1075 | |
1072 | #line 1073 "configure" |
1076 | #line 1077 "configure" |
1073 | #include "confdefs.h" |
1077 | #include "confdefs.h" |
1074 | |
1078 | |
1075 | main(){return(0);} |
1079 | main(){return(0);} |
1076 | EOF |
1080 | EOF |
1077 | if { (eval echo configure:1078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1081 | if { (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 |
… | |
… | |
1098 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1102 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1099 | if test $ac_cv_prog_cc_works = no; then |
1103 | if 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; } |
1101 | fi |
1105 | fi |
1102 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1106 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1103 | echo "configure:1104: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1107 | echo "configure:1108: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1104 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1108 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1105 | cross_compiling=$ac_cv_prog_cc_cross |
1109 | cross_compiling=$ac_cv_prog_cc_cross |
1106 | |
1110 | |
1107 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1111 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1108 | echo "configure:1109: checking whether we are using GNU C" >&5 |
1112 | echo "configure:1113: checking whether we are using GNU C" >&5 |
1109 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1113 | if 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 |
1111 | else |
1115 | else |
1112 | cat > conftest.c <<EOF |
1116 | cat > conftest.c <<EOF |
1113 | #ifdef __GNUC__ |
1117 | #ifdef __GNUC__ |
1114 | yes; |
1118 | yes; |
1115 | #endif |
1119 | #endif |
1116 | EOF |
1120 | EOF |
1117 | if { 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 |
1121 | if { 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 |
1119 | else |
1123 | else |
1120 | ac_cv_prog_gcc=no |
1124 | ac_cv_prog_gcc=no |
1121 | fi |
1125 | fi |
1122 | fi |
1126 | fi |
… | |
… | |
1131 | |
1135 | |
1132 | ac_test_CFLAGS="${CFLAGS+set}" |
1136 | ac_test_CFLAGS="${CFLAGS+set}" |
1133 | ac_save_CFLAGS="$CFLAGS" |
1137 | ac_save_CFLAGS="$CFLAGS" |
1134 | CFLAGS= |
1138 | CFLAGS= |
1135 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1139 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1136 | echo "configure:1137: checking whether ${CC-cc} accepts -g" >&5 |
1140 | echo "configure:1141: checking whether ${CC-cc} accepts -g" >&5 |
1137 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1141 | if 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 |
1139 | else |
1143 | else |
1140 | echo 'void f(){}' > conftest.c |
1144 | echo 'void f(){}' > conftest.c |
1141 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
1145 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
… | |
… | |
1174 | |
1178 | |
1175 | ac_prog=ld |
1179 | ac_prog=ld |
1176 | if test "$ac_cv_prog_gcc" = yes; then |
1180 | if 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 |
1179 | echo "configure:1180: checking for ld used by GCC" >&5 |
1183 | echo "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 |
1201 | elif test "$with_gnu_ld" = yes; then |
1205 | elif 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 |
1203 | echo "configure:1204: checking for GNU ld" >&5 |
1207 | echo "configure:1208: checking for GNU ld" >&5 |
1204 | else |
1208 | else |
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 |
1206 | echo "configure:1207: checking for non-GNU ld" >&5 |
1210 | echo "configure:1211: checking for non-GNU ld" >&5 |
1207 | fi |
1211 | fi |
1208 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then |
1212 | if 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 |
1210 | else |
1214 | else |
1211 | if test -z "$LD"; then |
1215 | if test -z "$LD"; then |
… | |
… | |
1237 | echo "$ac_t""no" 1>&6 |
1241 | echo "$ac_t""no" 1>&6 |
1238 | fi |
1242 | fi |
1239 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
1243 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
1240 | |
1244 | |
1241 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
1245 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
1242 | echo "configure:1243: checking if the linker ($LD) is GNU ld" >&5 |
1246 | echo "configure:1247: checking if the linker ($LD) is GNU ld" >&5 |
1243 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
1247 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
1244 | echo $ac_n "(cached) $ac_c" 1>&6 |
1248 | echo $ac_n "(cached) $ac_c" 1>&6 |
1245 | else |
1249 | else |
1246 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
1250 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
1247 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
1251 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
… | |
… | |
1253 | |
1257 | |
1254 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
1258 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
1255 | |
1259 | |
1256 | |
1260 | |
1257 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
1261 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
1258 | echo "configure:1259: checking for BSD-compatible nm" >&5 |
1262 | echo "configure:1263: checking for BSD-compatible nm" >&5 |
1259 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
1263 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
1260 | echo $ac_n "(cached) $ac_c" 1>&6 |
1264 | echo $ac_n "(cached) $ac_c" 1>&6 |
1261 | else |
1265 | else |
1262 | if test -n "$NM"; then |
1266 | if test -n "$NM"; then |
1263 | # Let the user override the test. |
1267 | # Let the user override the test. |
… | |
… | |
1290 | NM="$ac_cv_path_NM" |
1294 | NM="$ac_cv_path_NM" |
1291 | echo "$ac_t""$NM" 1>&6 |
1295 | echo "$ac_t""$NM" 1>&6 |
1292 | |
1296 | |
1293 | |
1297 | |
1294 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
1298 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
1295 | echo "configure:1296: checking whether ln -s works" >&5 |
1299 | echo "configure:1300: checking whether ln -s works" >&5 |
1296 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1300 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1297 | echo $ac_n "(cached) $ac_c" 1>&6 |
1301 | echo $ac_n "(cached) $ac_c" 1>&6 |
1298 | else |
1302 | else |
1299 | rm -f conftestdata |
1303 | rm -f conftestdata |
1300 | if ln -s X conftestdata 2>/dev/null |
1304 | if ln -s X conftestdata 2>/dev/null |
… | |
… | |
1334 | # Some flags need to be propagated to the compiler or linker for good |
1338 | # Some flags need to be propagated to the compiler or linker for good |
1335 | # libtool support. |
1339 | # libtool support. |
1336 | case "$host" in |
1340 | case "$host" in |
1337 | *-*-irix6*) |
1341 | *-*-irix6*) |
1338 | # Find out which ABI we are using. |
1342 | # Find out which ABI we are using. |
1339 | echo '#line 1340 "configure"' > conftest.$ac_ext |
1343 | echo '#line 1344 "configure"' > conftest.$ac_ext |
1340 | if { (eval echo configure:1341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1344 | if { (eval echo configure:1345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1341 | case "`/usr/bin/file conftest.o`" in |
1345 | case "`/usr/bin/file conftest.o`" in |
1342 | *32-bit*) |
1346 | *32-bit*) |
1343 | LD="${LD-ld} -32" |
1347 | LD="${LD-ld} -32" |
1344 | ;; |
1348 | ;; |
1345 | *N32*) |
1349 | *N32*) |
… | |
… | |
1356 | *-*-sco3.2v5*) |
1360 | *-*-sco3.2v5*) |
1357 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
1361 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
1358 | SAVE_CFLAGS="$CFLAGS" |
1362 | SAVE_CFLAGS="$CFLAGS" |
1359 | CFLAGS="$CFLAGS -belf" |
1363 | CFLAGS="$CFLAGS -belf" |
1360 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
1364 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
1361 | echo "configure:1362: checking whether the C compiler needs -belf" >&5 |
1365 | echo "configure:1366: checking whether the C compiler needs -belf" >&5 |
1362 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
1366 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
1363 | echo $ac_n "(cached) $ac_c" 1>&6 |
1367 | echo $ac_n "(cached) $ac_c" 1>&6 |
1364 | else |
1368 | else |
1365 | cat > conftest.$ac_ext <<EOF |
1369 | cat > conftest.$ac_ext <<EOF |
1366 | #line 1367 "configure" |
1370 | #line 1371 "configure" |
1367 | #include "confdefs.h" |
1371 | #include "confdefs.h" |
1368 | |
1372 | |
1369 | int main() { |
1373 | int main() { |
1370 | |
1374 | |
1371 | ; return 0; } |
1375 | ; return 0; } |
1372 | EOF |
1376 | EOF |
1373 | if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1377 | if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1374 | rm -rf conftest* |
1378 | rm -rf conftest* |
1375 | lt_cv_cc_needs_belf=yes |
1379 | lt_cv_cc_needs_belf=yes |
1376 | else |
1380 | else |
1377 | echo "configure: failed program was:" >&5 |
1381 | echo "configure: failed program was:" >&5 |
1378 | cat conftest.$ac_ext >&5 |
1382 | cat conftest.$ac_ext >&5 |
… | |
… | |
1480 | IMAGEMAGICK='yes' |
1484 | IMAGEMAGICK='yes' |
1481 | fi |
1485 | fi |
1482 | |
1486 | |
1483 | if test x"$IMAGEMAGICK" != xno ; then |
1487 | if test x"$IMAGEMAGICK" != xno ; then |
1484 | echo $ac_n "checking for MagickWarning in -lMagick""... $ac_c" 1>&6 |
1488 | echo $ac_n "checking for MagickWarning in -lMagick""... $ac_c" 1>&6 |
1485 | echo "configure:1486: checking for MagickWarning in -lMagick" >&5 |
1489 | echo "configure:1490: checking for MagickWarning in -lMagick" >&5 |
1486 | ac_lib_var=`echo Magick'_'MagickWarning | sed 'y%./+-%__p_%'` |
1490 | ac_lib_var=`echo Magick'_'MagickWarning | sed 'y%./+-%__p_%'` |
1487 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1491 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1488 | echo $ac_n "(cached) $ac_c" 1>&6 |
1492 | echo $ac_n "(cached) $ac_c" 1>&6 |
1489 | else |
1493 | else |
1490 | ac_save_LIBS="$LIBS" |
1494 | ac_save_LIBS="$LIBS" |
1491 | LIBS="-lMagick $LIBS" |
1495 | LIBS="-lMagick $LIBS" |
1492 | cat > conftest.$ac_ext <<EOF |
1496 | cat > conftest.$ac_ext <<EOF |
1493 | #line 1494 "configure" |
1497 | #line 1498 "configure" |
1494 | #include "confdefs.h" |
1498 | #include "confdefs.h" |
1495 | /* Override any gcc2 internal prototype to avoid an error. */ |
1499 | /* Override any gcc2 internal prototype to avoid an error. */ |
1496 | /* We use char because int might match the return type of a gcc2 |
1500 | /* We use char because int might match the return type of a gcc2 |
1497 | builtin and then its argument prototype would still apply. */ |
1501 | builtin and then its argument prototype would still apply. */ |
1498 | char MagickWarning(); |
1502 | char MagickWarning(); |
1499 | |
1503 | |
1500 | int main() { |
1504 | int main() { |
1501 | MagickWarning() |
1505 | MagickWarning() |
1502 | ; return 0; } |
1506 | ; return 0; } |
1503 | EOF |
1507 | EOF |
1504 | if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1508 | if { (eval echo configure:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1505 | rm -rf conftest* |
1509 | rm -rf conftest* |
1506 | eval "ac_cv_lib_$ac_lib_var=yes" |
1510 | eval "ac_cv_lib_$ac_lib_var=yes" |
1507 | else |
1511 | else |
1508 | echo "configure: failed program was:" >&5 |
1512 | echo "configure: failed program was:" >&5 |
1509 | cat conftest.$ac_ext >&5 |
1513 | cat conftest.$ac_ext >&5 |
… | |
… | |
1536 | LIB_MAGICK= |
1540 | LIB_MAGICK= |
1537 | fi |
1541 | fi |
1538 | |
1542 | |
1539 | |
1543 | |
1540 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1544 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1541 | echo "configure:1542: checking how to run the C preprocessor" >&5 |
1545 | echo "configure:1546: checking how to run the C preprocessor" >&5 |
1542 | # On Suns, sometimes $CPP names a directory. |
1546 | # On Suns, sometimes $CPP names a directory. |
1543 | if test -n "$CPP" && test -d "$CPP"; then |
1547 | if test -n "$CPP" && test -d "$CPP"; then |
1544 | CPP= |
1548 | CPP= |
1545 | fi |
1549 | fi |
1546 | if test -z "$CPP"; then |
1550 | if test -z "$CPP"; then |
… | |
… | |
1551 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
1555 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
1552 | CPP="${CC-cc} -E" |
1556 | CPP="${CC-cc} -E" |
1553 | # On the NeXT, cc -E runs the code through the compiler's parser, |
1557 | # On the NeXT, cc -E runs the code through the compiler's parser, |
1554 | # not just through cpp. |
1558 | # not just through cpp. |
1555 | cat > conftest.$ac_ext <<EOF |
1559 | cat > conftest.$ac_ext <<EOF |
1556 | #line 1557 "configure" |
1560 | #line 1561 "configure" |
1557 | #include "confdefs.h" |
1561 | #include "confdefs.h" |
1558 | #include <assert.h> |
1562 | #include <assert.h> |
1559 | Syntax Error |
1563 | Syntax Error |
1560 | EOF |
1564 | EOF |
1561 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1565 | ac_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; } |
1566 | { (eval echo configure:1567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1563 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1567 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1564 | if test -z "$ac_err"; then |
1568 | if test -z "$ac_err"; then |
1565 | : |
1569 | : |
1566 | else |
1570 | else |
1567 | echo "$ac_err" >&5 |
1571 | echo "$ac_err" >&5 |
1568 | echo "configure: failed program was:" >&5 |
1572 | echo "configure: failed program was:" >&5 |
1569 | cat conftest.$ac_ext >&5 |
1573 | cat conftest.$ac_ext >&5 |
1570 | rm -rf conftest* |
1574 | rm -rf conftest* |
1571 | CPP="${CC-cc} -E -traditional-cpp" |
1575 | CPP="${CC-cc} -E -traditional-cpp" |
1572 | cat > conftest.$ac_ext <<EOF |
1576 | cat > conftest.$ac_ext <<EOF |
1573 | #line 1574 "configure" |
1577 | #line 1578 "configure" |
1574 | #include "confdefs.h" |
1578 | #include "confdefs.h" |
1575 | #include <assert.h> |
1579 | #include <assert.h> |
1576 | Syntax Error |
1580 | Syntax Error |
1577 | EOF |
1581 | EOF |
1578 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1582 | ac_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; } |
1583 | { (eval echo configure:1584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1580 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1584 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1581 | if test -z "$ac_err"; then |
1585 | if test -z "$ac_err"; then |
1582 | : |
1586 | : |
1583 | else |
1587 | else |
1584 | echo "$ac_err" >&5 |
1588 | echo "$ac_err" >&5 |
1585 | echo "configure: failed program was:" >&5 |
1589 | echo "configure: failed program was:" >&5 |
1586 | cat conftest.$ac_ext >&5 |
1590 | cat conftest.$ac_ext >&5 |
1587 | rm -rf conftest* |
1591 | rm -rf conftest* |
1588 | CPP="${CC-cc} -nologo -E" |
1592 | CPP="${CC-cc} -nologo -E" |
1589 | cat > conftest.$ac_ext <<EOF |
1593 | cat > conftest.$ac_ext <<EOF |
1590 | #line 1591 "configure" |
1594 | #line 1595 "configure" |
1591 | #include "confdefs.h" |
1595 | #include "confdefs.h" |
1592 | #include <assert.h> |
1596 | #include <assert.h> |
1593 | Syntax Error |
1597 | Syntax Error |
1594 | EOF |
1598 | EOF |
1595 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1599 | ac_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; } |
1600 | { (eval echo configure:1601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1597 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1601 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1598 | if test -z "$ac_err"; then |
1602 | if test -z "$ac_err"; then |
1599 | : |
1603 | : |
1600 | else |
1604 | else |
1601 | echo "$ac_err" >&5 |
1605 | echo "$ac_err" >&5 |
… | |
… | |
1616 | ac_cv_prog_CPP="$CPP" |
1620 | ac_cv_prog_CPP="$CPP" |
1617 | fi |
1621 | fi |
1618 | echo "$ac_t""$CPP" 1>&6 |
1622 | echo "$ac_t""$CPP" 1>&6 |
1619 | |
1623 | |
1620 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1624 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1621 | echo "configure:1622: checking for ANSI C header files" >&5 |
1625 | echo "configure:1626: checking for ANSI C header files" >&5 |
1622 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1626 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1623 | echo $ac_n "(cached) $ac_c" 1>&6 |
1627 | echo $ac_n "(cached) $ac_c" 1>&6 |
1624 | else |
1628 | else |
1625 | cat > conftest.$ac_ext <<EOF |
1629 | cat > conftest.$ac_ext <<EOF |
1626 | #line 1627 "configure" |
1630 | #line 1631 "configure" |
1627 | #include "confdefs.h" |
1631 | #include "confdefs.h" |
1628 | #include <stdlib.h> |
1632 | #include <stdlib.h> |
1629 | #include <stdarg.h> |
1633 | #include <stdarg.h> |
1630 | #include <string.h> |
1634 | #include <string.h> |
1631 | #include <float.h> |
1635 | #include <float.h> |
1632 | EOF |
1636 | EOF |
1633 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1637 | ac_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; } |
1638 | { (eval echo configure:1639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1635 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1639 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1636 | if test -z "$ac_err"; then |
1640 | if test -z "$ac_err"; then |
1637 | rm -rf conftest* |
1641 | rm -rf conftest* |
1638 | ac_cv_header_stdc=yes |
1642 | ac_cv_header_stdc=yes |
1639 | else |
1643 | else |
… | |
… | |
1646 | rm -f conftest* |
1650 | rm -f conftest* |
1647 | |
1651 | |
1648 | if test $ac_cv_header_stdc = yes; then |
1652 | if test $ac_cv_header_stdc = yes; then |
1649 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1653 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1650 | cat > conftest.$ac_ext <<EOF |
1654 | cat > conftest.$ac_ext <<EOF |
1651 | #line 1652 "configure" |
1655 | #line 1656 "configure" |
1652 | #include "confdefs.h" |
1656 | #include "confdefs.h" |
1653 | #include <string.h> |
1657 | #include <string.h> |
1654 | EOF |
1658 | EOF |
1655 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1659 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1656 | egrep "memchr" >/dev/null 2>&1; then |
1660 | egrep "memchr" >/dev/null 2>&1; then |
… | |
… | |
1664 | fi |
1668 | fi |
1665 | |
1669 | |
1666 | if test $ac_cv_header_stdc = yes; then |
1670 | if test $ac_cv_header_stdc = yes; then |
1667 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1671 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1668 | cat > conftest.$ac_ext <<EOF |
1672 | cat > conftest.$ac_ext <<EOF |
1669 | #line 1670 "configure" |
1673 | #line 1674 "configure" |
1670 | #include "confdefs.h" |
1674 | #include "confdefs.h" |
1671 | #include <stdlib.h> |
1675 | #include <stdlib.h> |
1672 | EOF |
1676 | EOF |
1673 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1677 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1674 | egrep "free" >/dev/null 2>&1; then |
1678 | egrep "free" >/dev/null 2>&1; then |
… | |
… | |
1685 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1689 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1686 | if test "$cross_compiling" = yes; then |
1690 | if test "$cross_compiling" = yes; then |
1687 | : |
1691 | : |
1688 | else |
1692 | else |
1689 | cat > conftest.$ac_ext <<EOF |
1693 | cat > conftest.$ac_ext <<EOF |
1690 | #line 1691 "configure" |
1694 | #line 1695 "configure" |
1691 | #include "confdefs.h" |
1695 | #include "confdefs.h" |
1692 | #include <ctype.h> |
1696 | #include <ctype.h> |
1693 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1697 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1694 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1698 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1695 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1699 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1696 | int main () { int i; for (i = 0; i < 256; i++) |
1700 | int main () { int i; for (i = 0; i < 256; i++) |
1697 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1701 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1698 | exit (0); } |
1702 | exit (0); } |
1699 | |
1703 | |
1700 | EOF |
1704 | EOF |
1701 | if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1705 | if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1702 | then |
1706 | then |
1703 | : |
1707 | : |
1704 | else |
1708 | else |
1705 | echo "configure: failed program was:" >&5 |
1709 | echo "configure: failed program was:" >&5 |
1706 | cat conftest.$ac_ext >&5 |
1710 | cat conftest.$ac_ext >&5 |
… | |
… | |
1723 | |
1727 | |
1724 | for ac_hdr in unistd.h |
1728 | for ac_hdr in unistd.h |
1725 | do |
1729 | do |
1726 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1730 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1727 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1731 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1728 | echo "configure:1729: checking for $ac_hdr" >&5 |
1732 | echo "configure:1733: checking for $ac_hdr" >&5 |
1729 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1733 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1730 | echo $ac_n "(cached) $ac_c" 1>&6 |
1734 | echo $ac_n "(cached) $ac_c" 1>&6 |
1731 | else |
1735 | else |
1732 | cat > conftest.$ac_ext <<EOF |
1736 | cat > conftest.$ac_ext <<EOF |
1733 | #line 1734 "configure" |
1737 | #line 1738 "configure" |
1734 | #include "confdefs.h" |
1738 | #include "confdefs.h" |
1735 | #include <$ac_hdr> |
1739 | #include <$ac_hdr> |
1736 | EOF |
1740 | EOF |
1737 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1741 | ac_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; } |
1742 | { (eval echo configure:1743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1739 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1743 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1740 | if test -z "$ac_err"; then |
1744 | if test -z "$ac_err"; then |
1741 | rm -rf conftest* |
1745 | rm -rf conftest* |
1742 | eval "ac_cv_header_$ac_safe=yes" |
1746 | eval "ac_cv_header_$ac_safe=yes" |
1743 | else |
1747 | else |
… | |
… | |
1761 | fi |
1765 | fi |
1762 | done |
1766 | done |
1763 | |
1767 | |
1764 | |
1768 | |
1765 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1769 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1766 | echo "configure:1767: checking for working const" >&5 |
1770 | echo "configure:1771: checking for working const" >&5 |
1767 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1771 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1768 | echo $ac_n "(cached) $ac_c" 1>&6 |
1772 | echo $ac_n "(cached) $ac_c" 1>&6 |
1769 | else |
1773 | else |
1770 | cat > conftest.$ac_ext <<EOF |
1774 | cat > conftest.$ac_ext <<EOF |
1771 | #line 1772 "configure" |
1775 | #line 1776 "configure" |
1772 | #include "confdefs.h" |
1776 | #include "confdefs.h" |
1773 | |
1777 | |
1774 | int main() { |
1778 | int main() { |
1775 | |
1779 | |
1776 | /* Ultrix mips cc rejects this. */ |
1780 | /* Ultrix mips cc rejects this. */ |
… | |
… | |
1815 | const int foo = 10; |
1819 | const int foo = 10; |
1816 | } |
1820 | } |
1817 | |
1821 | |
1818 | ; return 0; } |
1822 | ; return 0; } |
1819 | EOF |
1823 | EOF |
1820 | if { (eval echo configure:1821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1824 | if { (eval echo configure:1825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1821 | rm -rf conftest* |
1825 | rm -rf conftest* |
1822 | ac_cv_c_const=yes |
1826 | ac_cv_c_const=yes |
1823 | else |
1827 | else |
1824 | echo "configure: failed program was:" >&5 |
1828 | echo "configure: failed program was:" >&5 |
1825 | cat conftest.$ac_ext >&5 |
1829 | cat conftest.$ac_ext >&5 |
… | |
… | |
1836 | EOF |
1840 | EOF |
1837 | |
1841 | |
1838 | fi |
1842 | fi |
1839 | |
1843 | |
1840 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1844 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1841 | echo "configure:1842: checking for size_t" >&5 |
1845 | echo "configure:1846: checking for size_t" >&5 |
1842 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1846 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1843 | echo $ac_n "(cached) $ac_c" 1>&6 |
1847 | echo $ac_n "(cached) $ac_c" 1>&6 |
1844 | else |
1848 | else |
1845 | cat > conftest.$ac_ext <<EOF |
1849 | cat > conftest.$ac_ext <<EOF |
1846 | #line 1847 "configure" |
1850 | #line 1851 "configure" |
1847 | #include "confdefs.h" |
1851 | #include "confdefs.h" |
1848 | #include <sys/types.h> |
1852 | #include <sys/types.h> |
1849 | #if STDC_HEADERS |
1853 | #if STDC_HEADERS |
1850 | #include <stdlib.h> |
1854 | #include <stdlib.h> |
1851 | #include <stddef.h> |
1855 | #include <stddef.h> |
… | |
… | |
1871 | fi |
1875 | fi |
1872 | |
1876 | |
1873 | |
1877 | |
1874 | |
1878 | |
1875 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1879 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1876 | echo "configure:1877: checking size of char" >&5 |
1880 | echo "configure:1881: checking size of char" >&5 |
1877 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
1881 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
1878 | echo $ac_n "(cached) $ac_c" 1>&6 |
1882 | echo $ac_n "(cached) $ac_c" 1>&6 |
1879 | else |
1883 | else |
1880 | if test "$cross_compiling" = yes; then |
1884 | if test "$cross_compiling" = yes; then |
1881 | ac_cv_sizeof_char=1 |
1885 | ac_cv_sizeof_char=1 |
1882 | else |
1886 | else |
1883 | cat > conftest.$ac_ext <<EOF |
1887 | cat > conftest.$ac_ext <<EOF |
1884 | #line 1885 "configure" |
1888 | #line 1889 "configure" |
1885 | #include "confdefs.h" |
1889 | #include "confdefs.h" |
1886 | #include <stdio.h> |
1890 | #include <stdio.h> |
1887 | main() |
1891 | main() |
1888 | { |
1892 | { |
1889 | FILE *f=fopen("conftestval", "w"); |
1893 | FILE *f=fopen("conftestval", "w"); |
1890 | if (!f) exit(1); |
1894 | if (!f) exit(1); |
1891 | fprintf(f, "%d\n", sizeof(char)); |
1895 | fprintf(f, "%d\n", sizeof(char)); |
1892 | exit(0); |
1896 | exit(0); |
1893 | } |
1897 | } |
1894 | EOF |
1898 | EOF |
1895 | if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1899 | if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1896 | then |
1900 | then |
1897 | ac_cv_sizeof_char=`cat conftestval` |
1901 | ac_cv_sizeof_char=`cat conftestval` |
1898 | else |
1902 | else |
1899 | echo "configure: failed program was:" >&5 |
1903 | echo "configure: failed program was:" >&5 |
1900 | cat conftest.$ac_ext >&5 |
1904 | cat conftest.$ac_ext >&5 |
… | |
… | |
1910 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
1914 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
1911 | EOF |
1915 | EOF |
1912 | |
1916 | |
1913 | |
1917 | |
1914 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
1918 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
1915 | echo "configure:1916: checking size of short" >&5 |
1919 | echo "configure:1920: checking size of short" >&5 |
1916 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
1920 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
1917 | echo $ac_n "(cached) $ac_c" 1>&6 |
1921 | echo $ac_n "(cached) $ac_c" 1>&6 |
1918 | else |
1922 | else |
1919 | if test "$cross_compiling" = yes; then |
1923 | if test "$cross_compiling" = yes; then |
1920 | ac_cv_sizeof_short=1 |
1924 | ac_cv_sizeof_short=1 |
1921 | else |
1925 | else |
1922 | cat > conftest.$ac_ext <<EOF |
1926 | cat > conftest.$ac_ext <<EOF |
1923 | #line 1924 "configure" |
1927 | #line 1928 "configure" |
1924 | #include "confdefs.h" |
1928 | #include "confdefs.h" |
1925 | #include <stdio.h> |
1929 | #include <stdio.h> |
1926 | main() |
1930 | main() |
1927 | { |
1931 | { |
1928 | FILE *f=fopen("conftestval", "w"); |
1932 | FILE *f=fopen("conftestval", "w"); |
1929 | if (!f) exit(1); |
1933 | if (!f) exit(1); |
1930 | fprintf(f, "%d\n", sizeof(short)); |
1934 | fprintf(f, "%d\n", sizeof(short)); |
1931 | exit(0); |
1935 | exit(0); |
1932 | } |
1936 | } |
1933 | EOF |
1937 | EOF |
1934 | if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1938 | if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1935 | then |
1939 | then |
1936 | ac_cv_sizeof_short=`cat conftestval` |
1940 | ac_cv_sizeof_short=`cat conftestval` |
1937 | else |
1941 | else |
1938 | echo "configure: failed program was:" >&5 |
1942 | echo "configure: failed program was:" >&5 |
1939 | cat conftest.$ac_ext >&5 |
1943 | cat conftest.$ac_ext >&5 |
… | |
… | |
1949 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
1953 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
1950 | EOF |
1954 | EOF |
1951 | |
1955 | |
1952 | |
1956 | |
1953 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
1957 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
1954 | echo "configure:1955: checking size of int" >&5 |
1958 | echo "configure:1959: checking size of int" >&5 |
1955 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
1959 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
1956 | echo $ac_n "(cached) $ac_c" 1>&6 |
1960 | echo $ac_n "(cached) $ac_c" 1>&6 |
1957 | else |
1961 | else |
1958 | if test "$cross_compiling" = yes; then |
1962 | if test "$cross_compiling" = yes; then |
1959 | ac_cv_sizeof_int=2 |
1963 | ac_cv_sizeof_int=2 |
1960 | else |
1964 | else |
1961 | cat > conftest.$ac_ext <<EOF |
1965 | cat > conftest.$ac_ext <<EOF |
1962 | #line 1963 "configure" |
1966 | #line 1967 "configure" |
1963 | #include "confdefs.h" |
1967 | #include "confdefs.h" |
1964 | #include <stdio.h> |
1968 | #include <stdio.h> |
1965 | main() |
1969 | main() |
1966 | { |
1970 | { |
1967 | FILE *f=fopen("conftestval", "w"); |
1971 | FILE *f=fopen("conftestval", "w"); |
1968 | if (!f) exit(1); |
1972 | if (!f) exit(1); |
1969 | fprintf(f, "%d\n", sizeof(int)); |
1973 | fprintf(f, "%d\n", sizeof(int)); |
1970 | exit(0); |
1974 | exit(0); |
1971 | } |
1975 | } |
1972 | EOF |
1976 | EOF |
1973 | if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1977 | if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1974 | then |
1978 | then |
1975 | ac_cv_sizeof_int=`cat conftestval` |
1979 | ac_cv_sizeof_int=`cat conftestval` |
1976 | else |
1980 | else |
1977 | echo "configure: failed program was:" >&5 |
1981 | echo "configure: failed program was:" >&5 |
1978 | cat conftest.$ac_ext >&5 |
1982 | cat conftest.$ac_ext >&5 |
… | |
… | |
1988 | #define SIZEOF_INT $ac_cv_sizeof_int |
1992 | #define SIZEOF_INT $ac_cv_sizeof_int |
1989 | EOF |
1993 | EOF |
1990 | |
1994 | |
1991 | |
1995 | |
1992 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
1996 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
1993 | echo "configure:1994: checking size of long" >&5 |
1997 | echo "configure:1998: checking size of long" >&5 |
1994 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
1998 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
1995 | echo $ac_n "(cached) $ac_c" 1>&6 |
1999 | echo $ac_n "(cached) $ac_c" 1>&6 |
1996 | else |
2000 | else |
1997 | if test "$cross_compiling" = yes; then |
2001 | if test "$cross_compiling" = yes; then |
1998 | ac_cv_sizeof_long=4 |
2002 | ac_cv_sizeof_long=4 |
1999 | else |
2003 | else |
2000 | cat > conftest.$ac_ext <<EOF |
2004 | cat > conftest.$ac_ext <<EOF |
2001 | #line 2002 "configure" |
2005 | #line 2006 "configure" |
2002 | #include "confdefs.h" |
2006 | #include "confdefs.h" |
2003 | #include <stdio.h> |
2007 | #include <stdio.h> |
2004 | main() |
2008 | main() |
2005 | { |
2009 | { |
2006 | FILE *f=fopen("conftestval", "w"); |
2010 | FILE *f=fopen("conftestval", "w"); |
2007 | if (!f) exit(1); |
2011 | if (!f) exit(1); |
2008 | fprintf(f, "%d\n", sizeof(long)); |
2012 | fprintf(f, "%d\n", sizeof(long)); |
2009 | exit(0); |
2013 | exit(0); |
2010 | } |
2014 | } |
2011 | EOF |
2015 | EOF |
2012 | if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2016 | if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2013 | then |
2017 | then |
2014 | ac_cv_sizeof_long=`cat conftestval` |
2018 | ac_cv_sizeof_long=`cat conftestval` |
2015 | else |
2019 | else |
2016 | echo "configure: failed program was:" >&5 |
2020 | echo "configure: failed program was:" >&5 |
2017 | cat conftest.$ac_ext >&5 |
2021 | cat conftest.$ac_ext >&5 |
… | |
… | |
2028 | EOF |
2032 | EOF |
2029 | |
2033 | |
2030 | |
2034 | |
2031 | |
2035 | |
2032 | echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
2036 | echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
2033 | echo "configure:2034: checking for an 8 bit integer type" >&5 |
2037 | echo "configure:2038: checking for an 8 bit integer type" >&5 |
2034 | if test $ac_cv_sizeof_char -ge 1 ; then |
2038 | if test $ac_cv_sizeof_char -ge 1 ; then |
2035 | INT_8_BIT=char |
2039 | INT_8_BIT=char |
2036 | echo "$ac_t""char" 1>&6 |
2040 | echo "$ac_t""char" 1>&6 |
2037 | elif test $ac_cv_sizeof_short -ge 1 ; then |
2041 | elif test $ac_cv_sizeof_short -ge 1 ; then |
2038 | INT_8_BIT=short |
2042 | INT_8_BIT=short |
… | |
… | |
2046 | else |
2050 | else |
2047 | { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } |
2051 | { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } |
2048 | fi |
2052 | fi |
2049 | |
2053 | |
2050 | echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
2054 | echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
2051 | echo "configure:2052: checking for a 16 bit integer type" >&5 |
2055 | echo "configure:2056: checking for a 16 bit integer type" >&5 |
2052 | if test $ac_cv_sizeof_char -ge 2 ; then |
2056 | if test $ac_cv_sizeof_char -ge 2 ; then |
2053 | INT_16_BIT=char |
2057 | INT_16_BIT=char |
2054 | echo "$ac_t""char" 1>&6 |
2058 | echo "$ac_t""char" 1>&6 |
2055 | elif test $ac_cv_sizeof_short -ge 2 ; then |
2059 | elif test $ac_cv_sizeof_short -ge 2 ; then |
2056 | INT_16_BIT=short |
2060 | INT_16_BIT=short |
… | |
… | |
2064 | else |
2068 | else |
2065 | { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } |
2069 | { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } |
2066 | fi |
2070 | fi |
2067 | |
2071 | |
2068 | echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
2072 | echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
2069 | echo "configure:2070: checking for a 32 bit integer type" >&5 |
2073 | echo "configure:2074: checking for a 32 bit integer type" >&5 |
2070 | if test $ac_cv_sizeof_char -ge 4 ; then |
2074 | if test $ac_cv_sizeof_char -ge 4 ; then |
2071 | INT_32_BIT=char |
2075 | INT_32_BIT=char |
2072 | echo "$ac_t""char" 1>&6 |
2076 | echo "$ac_t""char" 1>&6 |
2073 | elif test $ac_cv_sizeof_short -ge 4 ; then |
2077 | elif test $ac_cv_sizeof_short -ge 4 ; then |
2074 | INT_32_BIT=short |
2078 | INT_32_BIT=short |
… | |
… | |
2086 | |
2090 | |
2087 | |
2091 | |
2088 | |
2092 | |
2089 | |
2093 | |
2090 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2094 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2091 | echo "configure:2092: checking for vprintf" >&5 |
2095 | echo "configure:2096: checking for vprintf" >&5 |
2092 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2096 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2093 | echo $ac_n "(cached) $ac_c" 1>&6 |
2097 | echo $ac_n "(cached) $ac_c" 1>&6 |
2094 | else |
2098 | else |
2095 | cat > conftest.$ac_ext <<EOF |
2099 | cat > conftest.$ac_ext <<EOF |
2096 | #line 2097 "configure" |
2100 | #line 2101 "configure" |
2097 | #include "confdefs.h" |
2101 | #include "confdefs.h" |
2098 | /* System header to define __stub macros and hopefully few prototypes, |
2102 | /* System header to define __stub macros and hopefully few prototypes, |
2099 | which can conflict with char vprintf(); below. */ |
2103 | which can conflict with char vprintf(); below. */ |
2100 | #include <assert.h> |
2104 | #include <assert.h> |
2101 | /* Override any gcc2 internal prototype to avoid an error. */ |
2105 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2114 | vprintf(); |
2118 | vprintf(); |
2115 | #endif |
2119 | #endif |
2116 | |
2120 | |
2117 | ; return 0; } |
2121 | ; return 0; } |
2118 | EOF |
2122 | EOF |
2119 | if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2123 | if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2120 | rm -rf conftest* |
2124 | rm -rf conftest* |
2121 | eval "ac_cv_func_vprintf=yes" |
2125 | eval "ac_cv_func_vprintf=yes" |
2122 | else |
2126 | else |
2123 | echo "configure: failed program was:" >&5 |
2127 | echo "configure: failed program was:" >&5 |
2124 | cat conftest.$ac_ext >&5 |
2128 | cat conftest.$ac_ext >&5 |
… | |
… | |
2138 | echo "$ac_t""no" 1>&6 |
2142 | echo "$ac_t""no" 1>&6 |
2139 | fi |
2143 | fi |
2140 | |
2144 | |
2141 | if test "$ac_cv_func_vprintf" != yes; then |
2145 | if test "$ac_cv_func_vprintf" != yes; then |
2142 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2146 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2143 | echo "configure:2144: checking for _doprnt" >&5 |
2147 | echo "configure:2148: checking for _doprnt" >&5 |
2144 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2148 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2145 | echo $ac_n "(cached) $ac_c" 1>&6 |
2149 | echo $ac_n "(cached) $ac_c" 1>&6 |
2146 | else |
2150 | else |
2147 | cat > conftest.$ac_ext <<EOF |
2151 | cat > conftest.$ac_ext <<EOF |
2148 | #line 2149 "configure" |
2152 | #line 2153 "configure" |
2149 | #include "confdefs.h" |
2153 | #include "confdefs.h" |
2150 | /* System header to define __stub macros and hopefully few prototypes, |
2154 | /* System header to define __stub macros and hopefully few prototypes, |
2151 | which can conflict with char _doprnt(); below. */ |
2155 | which can conflict with char _doprnt(); below. */ |
2152 | #include <assert.h> |
2156 | #include <assert.h> |
2153 | /* Override any gcc2 internal prototype to avoid an error. */ |
2157 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2166 | _doprnt(); |
2170 | _doprnt(); |
2167 | #endif |
2171 | #endif |
2168 | |
2172 | |
2169 | ; return 0; } |
2173 | ; return 0; } |
2170 | EOF |
2174 | EOF |
2171 | if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2175 | if { (eval echo configure:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2172 | rm -rf conftest* |
2176 | rm -rf conftest* |
2173 | eval "ac_cv_func__doprnt=yes" |
2177 | eval "ac_cv_func__doprnt=yes" |
2174 | else |
2178 | else |
2175 | echo "configure: failed program was:" >&5 |
2179 | echo "configure: failed program was:" >&5 |
2176 | cat conftest.$ac_ext >&5 |
2180 | cat conftest.$ac_ext >&5 |
… | |
… | |
2193 | fi |
2197 | fi |
2194 | |
2198 | |
2195 | for ac_func in strdup |
2199 | for ac_func in strdup |
2196 | do |
2200 | do |
2197 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2201 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2198 | echo "configure:2199: checking for $ac_func" >&5 |
2202 | echo "configure:2203: checking for $ac_func" >&5 |
2199 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2203 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2200 | echo $ac_n "(cached) $ac_c" 1>&6 |
2204 | echo $ac_n "(cached) $ac_c" 1>&6 |
2201 | else |
2205 | else |
2202 | cat > conftest.$ac_ext <<EOF |
2206 | cat > conftest.$ac_ext <<EOF |
2203 | #line 2204 "configure" |
2207 | #line 2208 "configure" |
2204 | #include "confdefs.h" |
2208 | #include "confdefs.h" |
2205 | /* System header to define __stub macros and hopefully few prototypes, |
2209 | /* System header to define __stub macros and hopefully few prototypes, |
2206 | which can conflict with char $ac_func(); below. */ |
2210 | which can conflict with char $ac_func(); below. */ |
2207 | #include <assert.h> |
2211 | #include <assert.h> |
2208 | /* Override any gcc2 internal prototype to avoid an error. */ |
2212 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2221 | $ac_func(); |
2225 | $ac_func(); |
2222 | #endif |
2226 | #endif |
2223 | |
2227 | |
2224 | ; return 0; } |
2228 | ; return 0; } |
2225 | EOF |
2229 | EOF |
2226 | if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2230 | if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2227 | rm -rf conftest* |
2231 | rm -rf conftest* |
2228 | eval "ac_cv_func_$ac_func=yes" |
2232 | eval "ac_cv_func_$ac_func=yes" |
2229 | else |
2233 | else |
2230 | echo "configure: failed program was:" >&5 |
2234 | echo "configure: failed program was:" >&5 |
2231 | cat conftest.$ac_ext >&5 |
2235 | cat conftest.$ac_ext >&5 |
… | |
… | |
2248 | done |
2252 | done |
2249 | |
2253 | |
2250 | for ac_func in strdup |
2254 | for ac_func in strdup |
2251 | do |
2255 | do |
2252 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2256 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2253 | echo "configure:2254: checking for $ac_func" >&5 |
2257 | echo "configure:2258: checking for $ac_func" >&5 |
2254 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2258 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2255 | echo $ac_n "(cached) $ac_c" 1>&6 |
2259 | echo $ac_n "(cached) $ac_c" 1>&6 |
2256 | else |
2260 | else |
2257 | cat > conftest.$ac_ext <<EOF |
2261 | cat > conftest.$ac_ext <<EOF |
2258 | #line 2259 "configure" |
2262 | #line 2263 "configure" |
2259 | #include "confdefs.h" |
2263 | #include "confdefs.h" |
2260 | /* System header to define __stub macros and hopefully few prototypes, |
2264 | /* System header to define __stub macros and hopefully few prototypes, |
2261 | which can conflict with char $ac_func(); below. */ |
2265 | which can conflict with char $ac_func(); below. */ |
2262 | #include <assert.h> |
2266 | #include <assert.h> |
2263 | /* Override any gcc2 internal prototype to avoid an error. */ |
2267 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2276 | $ac_func(); |
2280 | $ac_func(); |
2277 | #endif |
2281 | #endif |
2278 | |
2282 | |
2279 | ; return 0; } |
2283 | ; return 0; } |
2280 | EOF |
2284 | EOF |
2281 | if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2285 | if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2282 | rm -rf conftest* |
2286 | rm -rf conftest* |
2283 | eval "ac_cv_func_$ac_func=yes" |
2287 | eval "ac_cv_func_$ac_func=yes" |
2284 | else |
2288 | else |
2285 | echo "configure: failed program was:" >&5 |
2289 | echo "configure: failed program was:" >&5 |
2286 | cat conftest.$ac_ext >&5 |
2290 | cat conftest.$ac_ext >&5 |
… | |
… | |
2389 | RTFDOCS_TRUE= |
2393 | RTFDOCS_TRUE= |
2390 | RTFDOCS_FALSE='#' |
2394 | RTFDOCS_FALSE='#' |
2391 | else |
2395 | else |
2392 | RTFDOCS_TRUE='#' |
2396 | RTFDOCS_TRUE='#' |
2393 | RTFDOCS_FALSE= |
2397 | RTFDOCS_FALSE= |
|
|
2398 | fi |
|
|
2399 | |
|
|
2400 | # Check whether --enable-compile-warnings or --disable-compile-warnings was given. |
|
|
2401 | if test "${enable_compile_warnings+set}" = set; then |
|
|
2402 | enableval="$enable_compile_warnings" |
|
|
2403 | : |
|
|
2404 | else |
|
|
2405 | enable_compile_warnings=minimum |
|
|
2406 | fi |
|
|
2407 | |
|
|
2408 | |
|
|
2409 | echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6 |
|
|
2410 | echo "configure:2411: checking what warning flags to pass to the C compiler" >&5 |
|
|
2411 | warnCFLAGS= |
|
|
2412 | if test "x$GCC" != xyes; then |
|
|
2413 | enable_compile_warnings=no |
|
|
2414 | fi |
|
|
2415 | if test "x$enable_compile_warnings" != "xno"; then |
|
|
2416 | if test "x$GCC" = "xyes"; then |
|
|
2417 | case " $CFLAGS " in |
|
|
2418 | *\ \ -Wall\ \ *) ;; |
|
|
2419 | *) warnCFLAGS="-Wall -Wunused" ;; |
|
|
2420 | esac |
|
|
2421 | |
|
|
2422 | ## -W is not all that useful. And it cannot be controlled |
|
|
2423 | ## with individual -Wno-xxx flags, unlike -Wall |
|
|
2424 | if test "x$enable_compile_warnings" = "xyes"; then |
|
|
2425 | warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith" |
|
|
2426 | fi |
|
|
2427 | fi |
|
|
2428 | fi |
|
|
2429 | echo "$ac_t""$warnCFLAGS" 1>&6 |
|
|
2430 | |
|
|
2431 | # Check whether --enable-iso-c or --disable-iso-c was given. |
|
|
2432 | if test "${enable_iso_c+set}" = set; then |
|
|
2433 | enableval="$enable_iso_c" |
|
|
2434 | : |
|
|
2435 | else |
|
|
2436 | enable_iso_c=no |
|
|
2437 | fi |
|
|
2438 | |
|
|
2439 | |
|
|
2440 | echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6 |
|
|
2441 | echo "configure:2442: checking what language compliance flags to pass to the C compiler" >&5 |
|
|
2442 | complCFLAGS= |
|
|
2443 | if test "x$enable_iso_c" != "xno"; then |
|
|
2444 | if test "x$GCC" = "xyes"; then |
|
|
2445 | case " $CFLAGS " in |
|
|
2446 | *\ \ -ansi\ \ *) ;; |
|
|
2447 | *) complCFLAGS="$complCFLAGS -ansi" ;; |
|
|
2448 | esac |
|
|
2449 | |
|
|
2450 | case " $CFLAGS " in |
|
|
2451 | *\ \ -pedantic\ \ *) ;; |
|
|
2452 | *) complCFLAGS="$complCFLAGS -pedantic" ;; |
|
|
2453 | esac |
|
|
2454 | fi |
|
|
2455 | fi |
|
|
2456 | echo "$ac_t""$complCFLAGS" 1>&6 |
|
|
2457 | if test "x$cflags_set" != "xyes"; then |
|
|
2458 | CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS" |
|
|
2459 | cflags_set=yes |
|
|
2460 | |
2394 | fi |
2461 | fi |
2395 | |
2462 | |
2396 | trap '' 1 2 15 |
2463 | trap '' 1 2 15 |
2397 | cat > confcache <<\EOF |
2464 | cat > confcache <<\EOF |
2398 | # This file is a shell script that caches the results of configure |
2465 | # This file is a shell script that caches the results of configure |
… | |
… | |
2565 | s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g |
2632 | s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g |
2566 | s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g |
2633 | s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g |
2567 | s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g |
2634 | s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g |
2568 | s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g |
2635 | s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g |
2569 | s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g |
2636 | s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g |
|
|
2637 | s%@cflags_set@%$cflags_set%g |
2570 | |
2638 | |
2571 | CEOF |
2639 | CEOF |
2572 | EOF |
2640 | EOF |
2573 | |
2641 | |
2574 | cat >> $CONFIG_STATUS <<\EOF |
2642 | cat >> $CONFIG_STATUS <<\EOF |