… | |
… | |
20 | ac_help="$ac_help |
20 | ac_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]" |
22 | ac_help="$ac_help |
22 | ac_help="$ac_help |
23 | --disable-libtool-lock avoid locking (might break parallel builds)" |
23 | --disable-libtool-lock avoid locking (might break parallel builds)" |
24 | ac_help="$ac_help |
24 | ac_help="$ac_help |
|
|
25 | --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings." |
|
|
26 | ac_help="$ac_help |
|
|
27 | --enable-iso-c Try to warn if code is not ISO C " |
|
|
28 | ac_help="$ac_help |
|
|
29 | --with-imagemagick enable ImageMagick (default = yes)" |
|
|
30 | ac_help="$ac_help |
25 | --disable-html-docs Disable generation of HTML 3.2 docs (default: on)" |
31 | --disable-html-docs Disable generation of HTML 3.2 docs (default: on)" |
26 | ac_help="$ac_help |
32 | ac_help="$ac_help |
27 | --enable-html4-docs Enable generation of HTML 4 docs (default: off)" |
33 | --enable-html4-docs Enable generation of HTML 4 docs (default: off)" |
28 | ac_help="$ac_help |
34 | ac_help="$ac_help |
29 | --enable-ascii-docs Enable generation of ASCII docs (default: off)" |
35 | --enable-ascii-docs Enable generation of ASCII docs (default: off)" |
|
|
36 | ac_help="$ac_help |
|
|
37 | --enable-rtf-docs Enable generation of RTF docs (default: off)" |
30 | |
38 | |
31 | # Initialize some variables set by options. |
39 | # Initialize some variables set by options. |
32 | # The variables have the same names as the options, with |
40 | # The variables have the same names as the options, with |
33 | # dashes changed to underlines. |
41 | # dashes changed to underlines. |
34 | build=NONE |
42 | build=NONE |
… | |
… | |
465 | # 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. |
466 | echo > confdefs.h |
474 | echo > confdefs.h |
467 | |
475 | |
468 | # A filename unique to this package, relative to the directory that |
476 | # A filename unique to this package, relative to the directory that |
469 | # 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. |
470 | ac_unique_file=psiconv |
478 | ac_unique_file=lib/psiconv |
471 | |
479 | |
472 | # Find the source files, if location was not specified. |
480 | # Find the source files, if location was not specified. |
473 | if test -z "$srcdir"; then |
481 | if test -z "$srcdir"; then |
474 | ac_srcdir_defaulted=yes |
482 | ac_srcdir_defaulted=yes |
475 | # Try the directory containing this script, then its parent. |
483 | # Try the directory containing this script, then its parent. |
… | |
… | |
566 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
574 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
567 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
575 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
568 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
576 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
569 | # ./install, which can be erroneously created by make from ./install.sh. |
577 | # ./install, which can be erroneously created by make from ./install.sh. |
570 | 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 |
571 | echo "configure:572: checking for a BSD compatible install" >&5 |
579 | echo "configure:580: checking for a BSD compatible install" >&5 |
572 | if test -z "$INSTALL"; then |
580 | if test -z "$INSTALL"; then |
573 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
581 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
574 | echo $ac_n "(cached) $ac_c" 1>&6 |
582 | echo $ac_n "(cached) $ac_c" 1>&6 |
575 | else |
583 | else |
576 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
584 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
… | |
… | |
619 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
627 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
620 | |
628 | |
621 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
629 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
622 | |
630 | |
623 | 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 |
624 | echo "configure:625: checking whether build environment is sane" >&5 |
632 | echo "configure:633: checking whether build environment is sane" >&5 |
625 | # Just in case |
633 | # Just in case |
626 | sleep 1 |
634 | sleep 1 |
627 | echo timestamp > conftestfile |
635 | echo timestamp > conftestfile |
628 | # Do `set' in a subshell so we don't clobber the current shell's |
636 | # Do `set' in a subshell so we don't clobber the current shell's |
629 | # arguments. Must try -L first in case configure is actually a |
637 | # arguments. Must try -L first in case configure is actually a |
… | |
… | |
676 | |
684 | |
677 | # sed with no file args requires a program. |
685 | # sed with no file args requires a program. |
678 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
686 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
679 | |
687 | |
680 | 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 |
681 | echo "configure:682: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
689 | echo "configure:690: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
682 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
690 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
683 | 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 |
684 | echo $ac_n "(cached) $ac_c" 1>&6 |
692 | echo $ac_n "(cached) $ac_c" 1>&6 |
685 | else |
693 | else |
686 | cat > conftestmake <<\EOF |
694 | cat > conftestmake <<\EOF |
… | |
… | |
705 | fi |
713 | fi |
706 | |
714 | |
707 | |
715 | |
708 | PACKAGE=psiconv |
716 | PACKAGE=psiconv |
709 | |
717 | |
710 | VERSION=0.5.0 |
718 | VERSION=0.6.3 |
711 | |
719 | |
712 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
720 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
713 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
721 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
714 | fi |
722 | fi |
715 | cat >> confdefs.h <<EOF |
723 | cat >> confdefs.h <<EOF |
… | |
… | |
722 | |
730 | |
723 | |
731 | |
724 | |
732 | |
725 | missing_dir=`cd $ac_aux_dir && pwd` |
733 | missing_dir=`cd $ac_aux_dir && pwd` |
726 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
734 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
727 | echo "configure:728: checking for working aclocal" >&5 |
735 | echo "configure:736: checking for working aclocal" >&5 |
728 | # Run test in a subshell; some versions of sh will print an error if |
736 | # Run test in a subshell; some versions of sh will print an error if |
729 | # an executable is not found, even if stderr is redirected. |
737 | # an executable is not found, even if stderr is redirected. |
730 | # Redirect stdin to placate older versions of autoconf. Sigh. |
738 | # Redirect stdin to placate older versions of autoconf. Sigh. |
731 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
739 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
732 | ACLOCAL=aclocal |
740 | ACLOCAL=aclocal |
… | |
… | |
735 | ACLOCAL="$missing_dir/missing aclocal" |
743 | ACLOCAL="$missing_dir/missing aclocal" |
736 | echo "$ac_t""missing" 1>&6 |
744 | echo "$ac_t""missing" 1>&6 |
737 | fi |
745 | fi |
738 | |
746 | |
739 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
747 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
740 | echo "configure:741: checking for working autoconf" >&5 |
748 | echo "configure:749: checking for working autoconf" >&5 |
741 | # Run test in a subshell; some versions of sh will print an error if |
749 | # Run test in a subshell; some versions of sh will print an error if |
742 | # an executable is not found, even if stderr is redirected. |
750 | # an executable is not found, even if stderr is redirected. |
743 | # Redirect stdin to placate older versions of autoconf. Sigh. |
751 | # Redirect stdin to placate older versions of autoconf. Sigh. |
744 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
752 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
745 | AUTOCONF=autoconf |
753 | AUTOCONF=autoconf |
… | |
… | |
748 | AUTOCONF="$missing_dir/missing autoconf" |
756 | AUTOCONF="$missing_dir/missing autoconf" |
749 | echo "$ac_t""missing" 1>&6 |
757 | echo "$ac_t""missing" 1>&6 |
750 | fi |
758 | fi |
751 | |
759 | |
752 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
760 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
753 | echo "configure:754: checking for working automake" >&5 |
761 | echo "configure:762: checking for working automake" >&5 |
754 | # Run test in a subshell; some versions of sh will print an error if |
762 | # Run test in a subshell; some versions of sh will print an error if |
755 | # an executable is not found, even if stderr is redirected. |
763 | # an executable is not found, even if stderr is redirected. |
756 | # Redirect stdin to placate older versions of autoconf. Sigh. |
764 | # Redirect stdin to placate older versions of autoconf. Sigh. |
757 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
765 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
758 | AUTOMAKE=automake |
766 | AUTOMAKE=automake |
… | |
… | |
761 | AUTOMAKE="$missing_dir/missing automake" |
769 | AUTOMAKE="$missing_dir/missing automake" |
762 | echo "$ac_t""missing" 1>&6 |
770 | echo "$ac_t""missing" 1>&6 |
763 | fi |
771 | fi |
764 | |
772 | |
765 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
773 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
766 | echo "configure:767: checking for working autoheader" >&5 |
774 | echo "configure:775: checking for working autoheader" >&5 |
767 | # Run test in a subshell; some versions of sh will print an error if |
775 | # Run test in a subshell; some versions of sh will print an error if |
768 | # an executable is not found, even if stderr is redirected. |
776 | # an executable is not found, even if stderr is redirected. |
769 | # Redirect stdin to placate older versions of autoconf. Sigh. |
777 | # Redirect stdin to placate older versions of autoconf. Sigh. |
770 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
778 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
771 | AUTOHEADER=autoheader |
779 | AUTOHEADER=autoheader |
… | |
… | |
774 | AUTOHEADER="$missing_dir/missing autoheader" |
782 | AUTOHEADER="$missing_dir/missing autoheader" |
775 | echo "$ac_t""missing" 1>&6 |
783 | echo "$ac_t""missing" 1>&6 |
776 | fi |
784 | fi |
777 | |
785 | |
778 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
786 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
779 | echo "configure:780: checking for working makeinfo" >&5 |
787 | echo "configure:788: checking for working makeinfo" >&5 |
780 | # Run test in a subshell; some versions of sh will print an error if |
788 | # Run test in a subshell; some versions of sh will print an error if |
781 | # an executable is not found, even if stderr is redirected. |
789 | # an executable is not found, even if stderr is redirected. |
782 | # Redirect stdin to placate older versions of autoconf. Sigh. |
790 | # Redirect stdin to placate older versions of autoconf. Sigh. |
783 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
791 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
784 | MAKEINFO=makeinfo |
792 | MAKEINFO=makeinfo |
… | |
… | |
868 | 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 : |
869 | 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; } |
870 | fi |
878 | fi |
871 | |
879 | |
872 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
880 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
873 | echo "configure:874: checking host system type" >&5 |
881 | echo "configure:882: checking host system type" >&5 |
874 | |
882 | |
875 | host_alias=$host |
883 | host_alias=$host |
876 | case "$host_alias" in |
884 | case "$host_alias" in |
877 | NONE) |
885 | NONE) |
878 | case $nonopt in |
886 | case $nonopt in |
… | |
… | |
889 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
897 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
890 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
898 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
891 | echo "$ac_t""$host" 1>&6 |
899 | echo "$ac_t""$host" 1>&6 |
892 | |
900 | |
893 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
901 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
894 | echo "configure:895: checking build system type" >&5 |
902 | echo "configure:903: checking build system type" >&5 |
895 | |
903 | |
896 | build_alias=$build |
904 | build_alias=$build |
897 | case "$build_alias" in |
905 | case "$build_alias" in |
898 | NONE) |
906 | NONE) |
899 | case $nonopt in |
907 | case $nonopt in |
… | |
… | |
909 | echo "$ac_t""$build" 1>&6 |
917 | echo "$ac_t""$build" 1>&6 |
910 | |
918 | |
911 | # Extract the first word of "ranlib", so it can be a program name with args. |
919 | # Extract the first word of "ranlib", so it can be a program name with args. |
912 | set dummy ranlib; ac_word=$2 |
920 | set dummy ranlib; ac_word=$2 |
913 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
921 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
914 | echo "configure:915: checking for $ac_word" >&5 |
922 | echo "configure:923: checking for $ac_word" >&5 |
915 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
923 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
916 | echo $ac_n "(cached) $ac_c" 1>&6 |
924 | echo $ac_n "(cached) $ac_c" 1>&6 |
917 | else |
925 | else |
918 | if test -n "$RANLIB"; then |
926 | if test -n "$RANLIB"; then |
919 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
927 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
… | |
… | |
939 | fi |
947 | fi |
940 | |
948 | |
941 | # Extract the first word of "gcc", so it can be a program name with args. |
949 | # Extract the first word of "gcc", so it can be a program name with args. |
942 | set dummy gcc; ac_word=$2 |
950 | set dummy gcc; ac_word=$2 |
943 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
951 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
944 | echo "configure:945: checking for $ac_word" >&5 |
952 | echo "configure:953: checking for $ac_word" >&5 |
945 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
953 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
946 | echo $ac_n "(cached) $ac_c" 1>&6 |
954 | echo $ac_n "(cached) $ac_c" 1>&6 |
947 | else |
955 | else |
948 | if test -n "$CC"; then |
956 | if test -n "$CC"; then |
949 | ac_cv_prog_CC="$CC" # Let the user override the test. |
957 | ac_cv_prog_CC="$CC" # Let the user override the test. |
… | |
… | |
969 | |
977 | |
970 | if test -z "$CC"; then |
978 | if test -z "$CC"; then |
971 | # Extract the first word of "cc", so it can be a program name with args. |
979 | # Extract the first word of "cc", so it can be a program name with args. |
972 | set dummy cc; ac_word=$2 |
980 | set dummy cc; ac_word=$2 |
973 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
981 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
974 | echo "configure:975: checking for $ac_word" >&5 |
982 | echo "configure:983: checking for $ac_word" >&5 |
975 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
983 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
976 | echo $ac_n "(cached) $ac_c" 1>&6 |
984 | echo $ac_n "(cached) $ac_c" 1>&6 |
977 | else |
985 | else |
978 | if test -n "$CC"; then |
986 | if test -n "$CC"; then |
979 | ac_cv_prog_CC="$CC" # Let the user override the test. |
987 | ac_cv_prog_CC="$CC" # Let the user override the test. |
… | |
… | |
1020 | case "`uname -s`" in |
1028 | case "`uname -s`" in |
1021 | *win32* | *WIN32*) |
1029 | *win32* | *WIN32*) |
1022 | # Extract the first word of "cl", so it can be a program name with args. |
1030 | # Extract the first word of "cl", so it can be a program name with args. |
1023 | set dummy cl; ac_word=$2 |
1031 | set dummy cl; ac_word=$2 |
1024 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1032 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1025 | echo "configure:1026: checking for $ac_word" >&5 |
1033 | echo "configure:1034: checking for $ac_word" >&5 |
1026 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1034 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1027 | echo $ac_n "(cached) $ac_c" 1>&6 |
1035 | echo $ac_n "(cached) $ac_c" 1>&6 |
1028 | else |
1036 | else |
1029 | if test -n "$CC"; then |
1037 | if test -n "$CC"; then |
1030 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1038 | ac_cv_prog_CC="$CC" # Let the user override the test. |
… | |
… | |
1052 | fi |
1060 | fi |
1053 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1061 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1054 | fi |
1062 | fi |
1055 | |
1063 | |
1056 | 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 |
1057 | echo "configure:1058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1065 | echo "configure:1066: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1058 | |
1066 | |
1059 | ac_ext=c |
1067 | ac_ext=c |
1060 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1068 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1061 | ac_cpp='$CPP $CPPFLAGS' |
1069 | ac_cpp='$CPP $CPPFLAGS' |
1062 | 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' |
1063 | 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' |
1064 | cross_compiling=$ac_cv_prog_cc_cross |
1072 | cross_compiling=$ac_cv_prog_cc_cross |
1065 | |
1073 | |
1066 | cat > conftest.$ac_ext << EOF |
1074 | cat > conftest.$ac_ext << EOF |
1067 | |
1075 | |
1068 | #line 1069 "configure" |
1076 | #line 1077 "configure" |
1069 | #include "confdefs.h" |
1077 | #include "confdefs.h" |
1070 | |
1078 | |
1071 | main(){return(0);} |
1079 | main(){return(0);} |
1072 | EOF |
1080 | EOF |
1073 | if { (eval echo configure:1074: \"$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 |
1074 | ac_cv_prog_cc_works=yes |
1082 | ac_cv_prog_cc_works=yes |
1075 | # If we can't run a trivial program, we are probably using a cross compiler. |
1083 | # If we can't run a trivial program, we are probably using a cross compiler. |
1076 | if (./conftest; exit) 2>/dev/null; then |
1084 | if (./conftest; exit) 2>/dev/null; then |
1077 | ac_cv_prog_cc_cross=no |
1085 | ac_cv_prog_cc_cross=no |
1078 | else |
1086 | else |
… | |
… | |
1094 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1102 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1095 | if test $ac_cv_prog_cc_works = no; then |
1103 | if test $ac_cv_prog_cc_works = no; then |
1096 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
1104 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
1097 | fi |
1105 | fi |
1098 | 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 |
1099 | echo "configure:1100: 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 |
1100 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1108 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1101 | cross_compiling=$ac_cv_prog_cc_cross |
1109 | cross_compiling=$ac_cv_prog_cc_cross |
1102 | |
1110 | |
1103 | 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 |
1104 | echo "configure:1105: checking whether we are using GNU C" >&5 |
1112 | echo "configure:1113: checking whether we are using GNU C" >&5 |
1105 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1113 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1106 | echo $ac_n "(cached) $ac_c" 1>&6 |
1114 | echo $ac_n "(cached) $ac_c" 1>&6 |
1107 | else |
1115 | else |
1108 | cat > conftest.c <<EOF |
1116 | cat > conftest.c <<EOF |
1109 | #ifdef __GNUC__ |
1117 | #ifdef __GNUC__ |
1110 | yes; |
1118 | yes; |
1111 | #endif |
1119 | #endif |
1112 | EOF |
1120 | EOF |
1113 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
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 |
1114 | ac_cv_prog_gcc=yes |
1122 | ac_cv_prog_gcc=yes |
1115 | else |
1123 | else |
1116 | ac_cv_prog_gcc=no |
1124 | ac_cv_prog_gcc=no |
1117 | fi |
1125 | fi |
1118 | fi |
1126 | fi |
… | |
… | |
1127 | |
1135 | |
1128 | ac_test_CFLAGS="${CFLAGS+set}" |
1136 | ac_test_CFLAGS="${CFLAGS+set}" |
1129 | ac_save_CFLAGS="$CFLAGS" |
1137 | ac_save_CFLAGS="$CFLAGS" |
1130 | CFLAGS= |
1138 | CFLAGS= |
1131 | 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 |
1132 | echo "configure:1133: checking whether ${CC-cc} accepts -g" >&5 |
1140 | echo "configure:1141: checking whether ${CC-cc} accepts -g" >&5 |
1133 | 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 |
1134 | echo $ac_n "(cached) $ac_c" 1>&6 |
1142 | echo $ac_n "(cached) $ac_c" 1>&6 |
1135 | else |
1143 | else |
1136 | echo 'void f(){}' > conftest.c |
1144 | echo 'void f(){}' > conftest.c |
1137 | 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 |
… | |
… | |
1170 | |
1178 | |
1171 | ac_prog=ld |
1179 | ac_prog=ld |
1172 | if test "$ac_cv_prog_gcc" = yes; then |
1180 | if test "$ac_cv_prog_gcc" = yes; then |
1173 | # Check if gcc -print-prog-name=ld gives a path. |
1181 | # Check if gcc -print-prog-name=ld gives a path. |
1174 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
1182 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
1175 | echo "configure:1176: checking for ld used by GCC" >&5 |
1183 | echo "configure:1184: checking for ld used by GCC" >&5 |
1176 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
1184 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
1177 | case "$ac_prog" in |
1185 | case "$ac_prog" in |
1178 | # Accept absolute paths. |
1186 | # Accept absolute paths. |
1179 | [\\/]* | [A-Za-z]:[\\/]*) |
1187 | [\\/]* | [A-Za-z]:[\\/]*) |
1180 | re_direlt='/[^/][^/]*/\.\./' |
1188 | re_direlt='/[^/][^/]*/\.\./' |
… | |
… | |
1194 | with_gnu_ld=unknown |
1202 | with_gnu_ld=unknown |
1195 | ;; |
1203 | ;; |
1196 | esac |
1204 | esac |
1197 | elif test "$with_gnu_ld" = yes; then |
1205 | elif test "$with_gnu_ld" = yes; then |
1198 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
1206 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
1199 | echo "configure:1200: checking for GNU ld" >&5 |
1207 | echo "configure:1208: checking for GNU ld" >&5 |
1200 | else |
1208 | else |
1201 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
1209 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
1202 | echo "configure:1203: checking for non-GNU ld" >&5 |
1210 | echo "configure:1211: checking for non-GNU ld" >&5 |
1203 | fi |
1211 | fi |
1204 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then |
1212 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then |
1205 | echo $ac_n "(cached) $ac_c" 1>&6 |
1213 | echo $ac_n "(cached) $ac_c" 1>&6 |
1206 | else |
1214 | else |
1207 | if test -z "$LD"; then |
1215 | if test -z "$LD"; then |
… | |
… | |
1231 | echo "$ac_t""$LD" 1>&6 |
1239 | echo "$ac_t""$LD" 1>&6 |
1232 | else |
1240 | else |
1233 | echo "$ac_t""no" 1>&6 |
1241 | echo "$ac_t""no" 1>&6 |
1234 | fi |
1242 | fi |
1235 | 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; } |
1236 | |
|
|
1237 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
1244 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
1238 | echo "configure:1239: checking if the linker ($LD) is GNU ld" >&5 |
1245 | echo "configure:1246: checking if the linker ($LD) is GNU ld" >&5 |
1239 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
1246 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
1240 | echo $ac_n "(cached) $ac_c" 1>&6 |
1247 | echo $ac_n "(cached) $ac_c" 1>&6 |
1241 | else |
1248 | else |
1242 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
1249 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
1243 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
1250 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
… | |
… | |
1249 | |
1256 | |
1250 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
1257 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
1251 | |
1258 | |
1252 | |
1259 | |
1253 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
1260 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
1254 | echo "configure:1255: checking for BSD-compatible nm" >&5 |
1261 | echo "configure:1262: checking for BSD-compatible nm" >&5 |
1255 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
1262 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
1256 | echo $ac_n "(cached) $ac_c" 1>&6 |
1263 | echo $ac_n "(cached) $ac_c" 1>&6 |
1257 | else |
1264 | else |
1258 | if test -n "$NM"; then |
1265 | if test -n "$NM"; then |
1259 | # Let the user override the test. |
1266 | # Let the user override the test. |
… | |
… | |
1284 | fi |
1291 | fi |
1285 | |
1292 | |
1286 | NM="$ac_cv_path_NM" |
1293 | NM="$ac_cv_path_NM" |
1287 | echo "$ac_t""$NM" 1>&6 |
1294 | echo "$ac_t""$NM" 1>&6 |
1288 | |
1295 | |
1289 | |
|
|
1290 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
1296 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
1291 | echo "configure:1292: checking whether ln -s works" >&5 |
1297 | echo "configure:1298: checking whether ln -s works" >&5 |
1292 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1298 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1293 | echo $ac_n "(cached) $ac_c" 1>&6 |
1299 | echo $ac_n "(cached) $ac_c" 1>&6 |
1294 | else |
1300 | else |
1295 | rm -f conftestdata |
1301 | rm -f conftestdata |
1296 | if ln -s X conftestdata 2>/dev/null |
1302 | if ln -s X conftestdata 2>/dev/null |
… | |
… | |
1306 | echo "$ac_t""yes" 1>&6 |
1312 | echo "$ac_t""yes" 1>&6 |
1307 | else |
1313 | else |
1308 | echo "$ac_t""no" 1>&6 |
1314 | echo "$ac_t""no" 1>&6 |
1309 | fi |
1315 | fi |
1310 | |
1316 | |
|
|
1317 | |
|
|
1318 | case "$target" in |
|
|
1319 | NONE) lt_target="$host" ;; |
|
|
1320 | *) lt_target="$target" ;; |
|
|
1321 | esac |
1311 | |
1322 | |
1312 | # Check for any special flags to pass to ltconfig. |
1323 | # Check for any special flags to pass to ltconfig. |
1313 | libtool_flags="--cache-file=$cache_file" |
1324 | libtool_flags="--cache-file=$cache_file" |
1314 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
1325 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
1315 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
1326 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
… | |
… | |
1327 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
1338 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
1328 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" |
1339 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" |
1329 | |
1340 | |
1330 | # Some flags need to be propagated to the compiler or linker for good |
1341 | # Some flags need to be propagated to the compiler or linker for good |
1331 | # libtool support. |
1342 | # libtool support. |
1332 | case "$host" in |
1343 | case "$lt_target" in |
1333 | *-*-irix6*) |
1344 | *-*-irix6*) |
1334 | # Find out which ABI we are using. |
1345 | # Find out which ABI we are using. |
1335 | echo '#line 1336 "configure"' > conftest.$ac_ext |
1346 | echo '#line 1347 "configure"' > conftest.$ac_ext |
1336 | if { (eval echo configure:1337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1347 | if { (eval echo configure:1348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1337 | case "`/usr/bin/file conftest.o`" in |
1348 | case "`/usr/bin/file conftest.o`" in |
1338 | *32-bit*) |
1349 | *32-bit*) |
1339 | LD="${LD-ld} -32" |
1350 | LD="${LD-ld} -32" |
1340 | ;; |
1351 | ;; |
1341 | *N32*) |
1352 | *N32*) |
… | |
… | |
1352 | *-*-sco3.2v5*) |
1363 | *-*-sco3.2v5*) |
1353 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
1364 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
1354 | SAVE_CFLAGS="$CFLAGS" |
1365 | SAVE_CFLAGS="$CFLAGS" |
1355 | CFLAGS="$CFLAGS -belf" |
1366 | CFLAGS="$CFLAGS -belf" |
1356 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
1367 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
1357 | echo "configure:1358: checking whether the C compiler needs -belf" >&5 |
1368 | echo "configure:1369: checking whether the C compiler needs -belf" >&5 |
1358 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
1369 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
1359 | echo $ac_n "(cached) $ac_c" 1>&6 |
1370 | echo $ac_n "(cached) $ac_c" 1>&6 |
1360 | else |
1371 | else |
1361 | cat > conftest.$ac_ext <<EOF |
1372 | cat > conftest.$ac_ext <<EOF |
1362 | #line 1363 "configure" |
1373 | #line 1374 "configure" |
1363 | #include "confdefs.h" |
1374 | #include "confdefs.h" |
1364 | |
1375 | |
1365 | int main() { |
1376 | int main() { |
1366 | |
1377 | |
1367 | ; return 0; } |
1378 | ; return 0; } |
1368 | EOF |
1379 | EOF |
1369 | if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1380 | if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1370 | rm -rf conftest* |
1381 | rm -rf conftest* |
1371 | lt_cv_cc_needs_belf=yes |
1382 | lt_cv_cc_needs_belf=yes |
1372 | else |
1383 | else |
1373 | echo "configure: failed program was:" >&5 |
1384 | echo "configure: failed program was:" >&5 |
1374 | cat conftest.$ac_ext >&5 |
1385 | cat conftest.$ac_ext >&5 |
… | |
… | |
1442 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
1453 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
1443 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
1454 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
1444 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ |
1455 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ |
1445 | DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ |
1456 | DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ |
1446 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
1457 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
1447 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ |
1458 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ |
1448 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
1459 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
1449 | |
1460 | |
1450 | # Reload cache, that may have been modified by ltconfig |
1461 | # Reload cache, that may have been modified by ltconfig |
1451 | if test -r "$cache_file"; then |
1462 | if test -r "$cache_file"; then |
1452 | echo "loading cache $cache_file" |
1463 | echo "loading cache $cache_file" |
… | |
… | |
1466 | # Redirect the config.log output again, so that the ltconfig log is not |
1477 | # Redirect the config.log output again, so that the ltconfig log is not |
1467 | # clobbered by the next message. |
1478 | # clobbered by the next message. |
1468 | exec 5>>./config.log |
1479 | exec 5>>./config.log |
1469 | |
1480 | |
1470 | |
1481 | |
|
|
1482 | # Check whether --enable-compile-warnings or --disable-compile-warnings was given. |
|
|
1483 | if test "${enable_compile_warnings+set}" = set; then |
|
|
1484 | enableval="$enable_compile_warnings" |
|
|
1485 | : |
|
|
1486 | else |
|
|
1487 | enable_compile_warnings=minimum |
|
|
1488 | fi |
|
|
1489 | |
|
|
1490 | |
|
|
1491 | echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6 |
|
|
1492 | echo "configure:1493: checking what warning flags to pass to the C compiler" >&5 |
|
|
1493 | warnCFLAGS= |
|
|
1494 | if test "x$GCC" != xyes; then |
|
|
1495 | enable_compile_warnings=no |
|
|
1496 | fi |
|
|
1497 | if 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 |
|
|
1510 | fi |
|
|
1511 | echo "$ac_t""$warnCFLAGS" 1>&6 |
|
|
1512 | |
|
|
1513 | # Check whether --enable-iso-c or --disable-iso-c was given. |
|
|
1514 | if test "${enable_iso_c+set}" = set; then |
|
|
1515 | enableval="$enable_iso_c" |
|
|
1516 | : |
|
|
1517 | else |
|
|
1518 | enable_iso_c=no |
|
|
1519 | fi |
|
|
1520 | |
|
|
1521 | |
|
|
1522 | echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6 |
|
|
1523 | echo "configure:1524: checking what language compliance flags to pass to the C compiler" >&5 |
|
|
1524 | complCFLAGS= |
|
|
1525 | if 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 |
|
|
1537 | fi |
|
|
1538 | echo "$ac_t""$complCFLAGS" 1>&6 |
|
|
1539 | if test "x$cflags_set" != "xyes"; then |
|
|
1540 | CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS" |
|
|
1541 | cflags_set=yes |
|
|
1542 | |
|
|
1543 | fi |
|
|
1544 | |
|
|
1545 | |
|
|
1546 | # Check whether --with-imagemagick or --without-imagemagick was given. |
|
|
1547 | if test "${with_imagemagick+set}" = set; then |
|
|
1548 | withval="$with_imagemagick" |
|
|
1549 | IMAGEMAGICK=$withval |
|
|
1550 | else |
|
|
1551 | IMAGEMAGICK='yes' |
|
|
1552 | fi |
|
|
1553 | |
|
|
1554 | if test x"$IMAGEMAGICK" != xno ; then |
|
|
1555 | # Extract the first word of "Magick-config", so it can be a program name with args. |
|
|
1556 | set dummy Magick-config; ac_word=$2 |
|
|
1557 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|
|
1558 | echo "configure:1559: checking for $ac_word" >&5 |
|
|
1559 | if eval "test \"`echo '$''{'ac_cv_prog_IMAGEMAGICK'+set}'`\" = set"; then |
|
|
1560 | echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
1561 | else |
|
|
1562 | if test -n "$IMAGEMAGICK"; then |
|
|
1563 | ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test. |
|
|
1564 | else |
|
|
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" |
|
|
1576 | fi |
|
|
1577 | fi |
|
|
1578 | IMAGEMAGICK="$ac_cv_prog_IMAGEMAGICK" |
|
|
1579 | if test -n "$IMAGEMAGICK"; then |
|
|
1580 | echo "$ac_t""$IMAGEMAGICK" 1>&6 |
|
|
1581 | else |
|
|
1582 | echo "$ac_t""no" 1>&6 |
|
|
1583 | fi |
|
|
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 |
|
|
1596 | echo "configure:1597: checking whether GetMagickInfo works" >&5 |
|
|
1597 | if test "$cross_compiling" = yes; then |
|
|
1598 | IMAGEMAGICK=yes |
|
|
1599 | else |
|
|
1600 | cat > conftest.$ac_ext <<EOF |
|
|
1601 | #line 1602 "configure" |
|
|
1602 | #include "confdefs.h" |
|
|
1603 | #include <magick/magick.h> |
|
|
1604 | #include <magick/config.h> |
|
|
1605 | #include <stdio.h> |
|
|
1606 | extern void OpenModules(void); |
|
|
1607 | int main(void) { GetMagickInfo(NULL); |
|
|
1608 | #if defined(HasLTDL) |
|
|
1609 | OpenModules(); |
|
|
1610 | #endif |
|
|
1611 | return (NULL == GetMagickInfo(NULL)); } |
|
|
1612 | EOF |
|
|
1613 | if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
|
|
1614 | then |
|
|
1615 | IMAGEMAGICK=yes |
|
|
1616 | else |
|
|
1617 | echo "configure: failed program was:" >&5 |
|
|
1618 | cat conftest.$ac_ext >&5 |
|
|
1619 | rm -fr conftest* |
|
|
1620 | IMAGEMAGICK=no |
|
|
1621 | fi |
|
|
1622 | rm -fr conftest* |
|
|
1623 | fi |
|
|
1624 | |
|
|
1625 | echo "$ac_t""$IMAGEMAGICK" 1>&6 |
|
|
1626 | LDFLAGS="$LDFLAGS_OLD" |
|
|
1627 | LIBS="$LIBS_OLD" |
|
|
1628 | if test x"$IMAGEMAGICK" = xno ; then |
|
|
1629 | CFLAGS="$CFLAGS_OLD" |
|
|
1630 | CPPFLAGS="$CPPFLAGS_OLD" |
|
|
1631 | fi |
|
|
1632 | fi |
|
|
1633 | fi |
|
|
1634 | if test x"$IMAGEMAGICK" = xyes ; then |
|
|
1635 | LIB_MAGICK="`Magick-config --libs` `Magick-config --ldflags`" |
|
|
1636 | cat >> confdefs.h <<\EOF |
|
|
1637 | #define IMAGEMAGICK 1 |
|
|
1638 | EOF |
|
|
1639 | |
|
|
1640 | else |
|
|
1641 | LIB_MAGICK= |
|
|
1642 | fi |
|
|
1643 | |
1471 | |
1644 | |
1472 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1645 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1473 | echo "configure:1474: checking how to run the C preprocessor" >&5 |
1646 | echo "configure:1647: checking how to run the C preprocessor" >&5 |
1474 | # On Suns, sometimes $CPP names a directory. |
1647 | # On Suns, sometimes $CPP names a directory. |
1475 | if test -n "$CPP" && test -d "$CPP"; then |
1648 | if test -n "$CPP" && test -d "$CPP"; then |
1476 | CPP= |
1649 | CPP= |
1477 | fi |
1650 | fi |
1478 | if test -z "$CPP"; then |
1651 | if test -z "$CPP"; then |
… | |
… | |
1483 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
1656 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
1484 | CPP="${CC-cc} -E" |
1657 | CPP="${CC-cc} -E" |
1485 | # 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, |
1486 | # not just through cpp. |
1659 | # not just through cpp. |
1487 | cat > conftest.$ac_ext <<EOF |
1660 | cat > conftest.$ac_ext <<EOF |
1488 | #line 1489 "configure" |
1661 | #line 1662 "configure" |
1489 | #include "confdefs.h" |
1662 | #include "confdefs.h" |
1490 | #include <assert.h> |
1663 | #include <assert.h> |
1491 | Syntax Error |
1664 | Syntax Error |
1492 | EOF |
1665 | EOF |
1493 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1666 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1494 | { (eval echo configure:1495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1667 | { (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1495 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1668 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1496 | if test -z "$ac_err"; then |
1669 | if test -z "$ac_err"; then |
1497 | : |
1670 | : |
1498 | else |
1671 | else |
1499 | echo "$ac_err" >&5 |
1672 | echo "$ac_err" >&5 |
1500 | echo "configure: failed program was:" >&5 |
1673 | echo "configure: failed program was:" >&5 |
1501 | cat conftest.$ac_ext >&5 |
1674 | cat conftest.$ac_ext >&5 |
1502 | rm -rf conftest* |
1675 | rm -rf conftest* |
1503 | CPP="${CC-cc} -E -traditional-cpp" |
1676 | CPP="${CC-cc} -E -traditional-cpp" |
1504 | cat > conftest.$ac_ext <<EOF |
1677 | cat > conftest.$ac_ext <<EOF |
1505 | #line 1506 "configure" |
1678 | #line 1679 "configure" |
1506 | #include "confdefs.h" |
1679 | #include "confdefs.h" |
1507 | #include <assert.h> |
1680 | #include <assert.h> |
1508 | Syntax Error |
1681 | Syntax Error |
1509 | EOF |
1682 | EOF |
1510 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1683 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1511 | { (eval echo configure:1512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1684 | { (eval echo configure:1685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1512 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1685 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1513 | if test -z "$ac_err"; then |
1686 | if test -z "$ac_err"; then |
1514 | : |
1687 | : |
1515 | else |
1688 | else |
1516 | echo "$ac_err" >&5 |
1689 | echo "$ac_err" >&5 |
1517 | echo "configure: failed program was:" >&5 |
1690 | echo "configure: failed program was:" >&5 |
1518 | cat conftest.$ac_ext >&5 |
1691 | cat conftest.$ac_ext >&5 |
1519 | rm -rf conftest* |
1692 | rm -rf conftest* |
1520 | CPP="${CC-cc} -nologo -E" |
1693 | CPP="${CC-cc} -nologo -E" |
1521 | cat > conftest.$ac_ext <<EOF |
1694 | cat > conftest.$ac_ext <<EOF |
1522 | #line 1523 "configure" |
1695 | #line 1696 "configure" |
1523 | #include "confdefs.h" |
1696 | #include "confdefs.h" |
1524 | #include <assert.h> |
1697 | #include <assert.h> |
1525 | Syntax Error |
1698 | Syntax Error |
1526 | EOF |
1699 | EOF |
1527 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1700 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1528 | { (eval echo configure:1529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1701 | { (eval echo configure:1702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1529 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1702 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1530 | if test -z "$ac_err"; then |
1703 | if test -z "$ac_err"; then |
1531 | : |
1704 | : |
1532 | else |
1705 | else |
1533 | echo "$ac_err" >&5 |
1706 | echo "$ac_err" >&5 |
… | |
… | |
1548 | ac_cv_prog_CPP="$CPP" |
1721 | ac_cv_prog_CPP="$CPP" |
1549 | fi |
1722 | fi |
1550 | echo "$ac_t""$CPP" 1>&6 |
1723 | echo "$ac_t""$CPP" 1>&6 |
1551 | |
1724 | |
1552 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1725 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1553 | echo "configure:1554: checking for ANSI C header files" >&5 |
1726 | echo "configure:1727: checking for ANSI C header files" >&5 |
1554 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1727 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1555 | echo $ac_n "(cached) $ac_c" 1>&6 |
1728 | echo $ac_n "(cached) $ac_c" 1>&6 |
1556 | else |
1729 | else |
1557 | cat > conftest.$ac_ext <<EOF |
1730 | cat > conftest.$ac_ext <<EOF |
1558 | #line 1559 "configure" |
1731 | #line 1732 "configure" |
1559 | #include "confdefs.h" |
1732 | #include "confdefs.h" |
1560 | #include <stdlib.h> |
1733 | #include <stdlib.h> |
1561 | #include <stdarg.h> |
1734 | #include <stdarg.h> |
1562 | #include <string.h> |
1735 | #include <string.h> |
1563 | #include <float.h> |
1736 | #include <float.h> |
1564 | EOF |
1737 | EOF |
1565 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1738 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1566 | { (eval echo configure:1567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1739 | { (eval echo configure:1740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1567 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1740 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1568 | if test -z "$ac_err"; then |
1741 | if test -z "$ac_err"; then |
1569 | rm -rf conftest* |
1742 | rm -rf conftest* |
1570 | ac_cv_header_stdc=yes |
1743 | ac_cv_header_stdc=yes |
1571 | else |
1744 | else |
… | |
… | |
1578 | rm -f conftest* |
1751 | rm -f conftest* |
1579 | |
1752 | |
1580 | if test $ac_cv_header_stdc = yes; then |
1753 | if test $ac_cv_header_stdc = yes; then |
1581 | # 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. |
1582 | cat > conftest.$ac_ext <<EOF |
1755 | cat > conftest.$ac_ext <<EOF |
1583 | #line 1584 "configure" |
1756 | #line 1757 "configure" |
1584 | #include "confdefs.h" |
1757 | #include "confdefs.h" |
1585 | #include <string.h> |
1758 | #include <string.h> |
1586 | EOF |
1759 | EOF |
1587 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1760 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1588 | egrep "memchr" >/dev/null 2>&1; then |
1761 | egrep "memchr" >/dev/null 2>&1; then |
… | |
… | |
1596 | fi |
1769 | fi |
1597 | |
1770 | |
1598 | if test $ac_cv_header_stdc = yes; then |
1771 | if test $ac_cv_header_stdc = yes; then |
1599 | # 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. |
1600 | cat > conftest.$ac_ext <<EOF |
1773 | cat > conftest.$ac_ext <<EOF |
1601 | #line 1602 "configure" |
1774 | #line 1775 "configure" |
1602 | #include "confdefs.h" |
1775 | #include "confdefs.h" |
1603 | #include <stdlib.h> |
1776 | #include <stdlib.h> |
1604 | EOF |
1777 | EOF |
1605 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1778 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1606 | egrep "free" >/dev/null 2>&1; then |
1779 | egrep "free" >/dev/null 2>&1; then |
… | |
… | |
1617 | # /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. |
1618 | if test "$cross_compiling" = yes; then |
1791 | if test "$cross_compiling" = yes; then |
1619 | : |
1792 | : |
1620 | else |
1793 | else |
1621 | cat > conftest.$ac_ext <<EOF |
1794 | cat > conftest.$ac_ext <<EOF |
1622 | #line 1623 "configure" |
1795 | #line 1796 "configure" |
1623 | #include "confdefs.h" |
1796 | #include "confdefs.h" |
1624 | #include <ctype.h> |
1797 | #include <ctype.h> |
1625 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1798 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1626 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1799 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1627 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1800 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1628 | int main () { int i; for (i = 0; i < 256; i++) |
1801 | int main () { int i; for (i = 0; i < 256; i++) |
1629 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1802 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1630 | exit (0); } |
1803 | exit (0); } |
1631 | |
1804 | |
1632 | EOF |
1805 | EOF |
1633 | if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1806 | if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1634 | then |
1807 | then |
1635 | : |
1808 | : |
1636 | else |
1809 | else |
1637 | echo "configure: failed program was:" >&5 |
1810 | echo "configure: failed program was:" >&5 |
1638 | cat conftest.$ac_ext >&5 |
1811 | cat conftest.$ac_ext >&5 |
… | |
… | |
1655 | |
1828 | |
1656 | for ac_hdr in unistd.h |
1829 | for ac_hdr in unistd.h |
1657 | do |
1830 | do |
1658 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1831 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1659 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1832 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1660 | echo "configure:1661: checking for $ac_hdr" >&5 |
1833 | echo "configure:1834: checking for $ac_hdr" >&5 |
1661 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1834 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1662 | echo $ac_n "(cached) $ac_c" 1>&6 |
1835 | echo $ac_n "(cached) $ac_c" 1>&6 |
1663 | else |
1836 | else |
1664 | cat > conftest.$ac_ext <<EOF |
1837 | cat > conftest.$ac_ext <<EOF |
1665 | #line 1666 "configure" |
1838 | #line 1839 "configure" |
1666 | #include "confdefs.h" |
1839 | #include "confdefs.h" |
1667 | #include <$ac_hdr> |
1840 | #include <$ac_hdr> |
1668 | EOF |
1841 | EOF |
1669 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1842 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1670 | { (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1843 | { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1671 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1844 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1672 | if test -z "$ac_err"; then |
1845 | if test -z "$ac_err"; then |
1673 | rm -rf conftest* |
1846 | rm -rf conftest* |
1674 | eval "ac_cv_header_$ac_safe=yes" |
1847 | eval "ac_cv_header_$ac_safe=yes" |
1675 | else |
1848 | else |
… | |
… | |
1693 | fi |
1866 | fi |
1694 | done |
1867 | done |
1695 | |
1868 | |
1696 | |
1869 | |
1697 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1870 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1698 | echo "configure:1699: checking for working const" >&5 |
1871 | echo "configure:1872: checking for working const" >&5 |
1699 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1872 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1700 | echo $ac_n "(cached) $ac_c" 1>&6 |
1873 | echo $ac_n "(cached) $ac_c" 1>&6 |
1701 | else |
1874 | else |
1702 | cat > conftest.$ac_ext <<EOF |
1875 | cat > conftest.$ac_ext <<EOF |
1703 | #line 1704 "configure" |
1876 | #line 1877 "configure" |
1704 | #include "confdefs.h" |
1877 | #include "confdefs.h" |
1705 | |
1878 | |
1706 | int main() { |
1879 | int main() { |
1707 | |
1880 | |
1708 | /* Ultrix mips cc rejects this. */ |
1881 | /* Ultrix mips cc rejects this. */ |
… | |
… | |
1747 | const int foo = 10; |
1920 | const int foo = 10; |
1748 | } |
1921 | } |
1749 | |
1922 | |
1750 | ; return 0; } |
1923 | ; return 0; } |
1751 | EOF |
1924 | EOF |
1752 | if { (eval echo configure:1753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1925 | if { (eval echo configure:1926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1753 | rm -rf conftest* |
1926 | rm -rf conftest* |
1754 | ac_cv_c_const=yes |
1927 | ac_cv_c_const=yes |
1755 | else |
1928 | else |
1756 | echo "configure: failed program was:" >&5 |
1929 | echo "configure: failed program was:" >&5 |
1757 | cat conftest.$ac_ext >&5 |
1930 | cat conftest.$ac_ext >&5 |
… | |
… | |
1768 | EOF |
1941 | EOF |
1769 | |
1942 | |
1770 | fi |
1943 | fi |
1771 | |
1944 | |
1772 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1945 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1773 | echo "configure:1774: checking for size_t" >&5 |
1946 | echo "configure:1947: checking for size_t" >&5 |
1774 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1947 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1775 | echo $ac_n "(cached) $ac_c" 1>&6 |
1948 | echo $ac_n "(cached) $ac_c" 1>&6 |
1776 | else |
1949 | else |
1777 | cat > conftest.$ac_ext <<EOF |
1950 | cat > conftest.$ac_ext <<EOF |
1778 | #line 1779 "configure" |
1951 | #line 1952 "configure" |
1779 | #include "confdefs.h" |
1952 | #include "confdefs.h" |
1780 | #include <sys/types.h> |
1953 | #include <sys/types.h> |
1781 | #if STDC_HEADERS |
1954 | #if STDC_HEADERS |
1782 | #include <stdlib.h> |
1955 | #include <stdlib.h> |
1783 | #include <stddef.h> |
1956 | #include <stddef.h> |
… | |
… | |
1803 | fi |
1976 | fi |
1804 | |
1977 | |
1805 | |
1978 | |
1806 | |
1979 | |
1807 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1980 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1808 | echo "configure:1809: checking size of char" >&5 |
1981 | echo "configure:1982: checking size of char" >&5 |
1809 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
1982 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
1810 | echo $ac_n "(cached) $ac_c" 1>&6 |
1983 | echo $ac_n "(cached) $ac_c" 1>&6 |
1811 | else |
1984 | else |
1812 | if test "$cross_compiling" = yes; then |
1985 | if test "$cross_compiling" = yes; then |
1813 | ac_cv_sizeof_char=1 |
1986 | ac_cv_sizeof_char=1 |
1814 | else |
1987 | else |
1815 | cat > conftest.$ac_ext <<EOF |
1988 | cat > conftest.$ac_ext <<EOF |
1816 | #line 1817 "configure" |
1989 | #line 1990 "configure" |
1817 | #include "confdefs.h" |
1990 | #include "confdefs.h" |
1818 | #include <stdio.h> |
1991 | #include <stdio.h> |
1819 | main() |
1992 | main() |
1820 | { |
1993 | { |
1821 | FILE *f=fopen("conftestval", "w"); |
1994 | FILE *f=fopen("conftestval", "w"); |
1822 | if (!f) exit(1); |
1995 | if (!f) exit(1); |
1823 | fprintf(f, "%d\n", sizeof(char)); |
1996 | fprintf(f, "%d\n", sizeof(char)); |
1824 | exit(0); |
1997 | exit(0); |
1825 | } |
1998 | } |
1826 | EOF |
1999 | EOF |
1827 | if { (eval echo configure:1828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2000 | if { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1828 | then |
2001 | then |
1829 | ac_cv_sizeof_char=`cat conftestval` |
2002 | ac_cv_sizeof_char=`cat conftestval` |
1830 | else |
2003 | else |
1831 | echo "configure: failed program was:" >&5 |
2004 | echo "configure: failed program was:" >&5 |
1832 | cat conftest.$ac_ext >&5 |
2005 | cat conftest.$ac_ext >&5 |
… | |
… | |
1842 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
2015 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
1843 | EOF |
2016 | EOF |
1844 | |
2017 | |
1845 | |
2018 | |
1846 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
2019 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
1847 | echo "configure:1848: checking size of short" >&5 |
2020 | echo "configure:2021: checking size of short" >&5 |
1848 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
2021 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
1849 | echo $ac_n "(cached) $ac_c" 1>&6 |
2022 | echo $ac_n "(cached) $ac_c" 1>&6 |
1850 | else |
2023 | else |
1851 | if test "$cross_compiling" = yes; then |
2024 | if test "$cross_compiling" = yes; then |
1852 | ac_cv_sizeof_short=1 |
2025 | ac_cv_sizeof_short=1 |
1853 | else |
2026 | else |
1854 | cat > conftest.$ac_ext <<EOF |
2027 | cat > conftest.$ac_ext <<EOF |
1855 | #line 1856 "configure" |
2028 | #line 2029 "configure" |
1856 | #include "confdefs.h" |
2029 | #include "confdefs.h" |
1857 | #include <stdio.h> |
2030 | #include <stdio.h> |
1858 | main() |
2031 | main() |
1859 | { |
2032 | { |
1860 | FILE *f=fopen("conftestval", "w"); |
2033 | FILE *f=fopen("conftestval", "w"); |
1861 | if (!f) exit(1); |
2034 | if (!f) exit(1); |
1862 | fprintf(f, "%d\n", sizeof(short)); |
2035 | fprintf(f, "%d\n", sizeof(short)); |
1863 | exit(0); |
2036 | exit(0); |
1864 | } |
2037 | } |
1865 | EOF |
2038 | EOF |
1866 | if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2039 | if { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1867 | then |
2040 | then |
1868 | ac_cv_sizeof_short=`cat conftestval` |
2041 | ac_cv_sizeof_short=`cat conftestval` |
1869 | else |
2042 | else |
1870 | echo "configure: failed program was:" >&5 |
2043 | echo "configure: failed program was:" >&5 |
1871 | cat conftest.$ac_ext >&5 |
2044 | cat conftest.$ac_ext >&5 |
… | |
… | |
1881 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
2054 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
1882 | EOF |
2055 | EOF |
1883 | |
2056 | |
1884 | |
2057 | |
1885 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
2058 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
1886 | echo "configure:1887: checking size of int" >&5 |
2059 | echo "configure:2060: checking size of int" >&5 |
1887 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
2060 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
1888 | echo $ac_n "(cached) $ac_c" 1>&6 |
2061 | echo $ac_n "(cached) $ac_c" 1>&6 |
1889 | else |
2062 | else |
1890 | if test "$cross_compiling" = yes; then |
2063 | if test "$cross_compiling" = yes; then |
1891 | ac_cv_sizeof_int=2 |
2064 | ac_cv_sizeof_int=2 |
1892 | else |
2065 | else |
1893 | cat > conftest.$ac_ext <<EOF |
2066 | cat > conftest.$ac_ext <<EOF |
1894 | #line 1895 "configure" |
2067 | #line 2068 "configure" |
1895 | #include "confdefs.h" |
2068 | #include "confdefs.h" |
1896 | #include <stdio.h> |
2069 | #include <stdio.h> |
1897 | main() |
2070 | main() |
1898 | { |
2071 | { |
1899 | FILE *f=fopen("conftestval", "w"); |
2072 | FILE *f=fopen("conftestval", "w"); |
1900 | if (!f) exit(1); |
2073 | if (!f) exit(1); |
1901 | fprintf(f, "%d\n", sizeof(int)); |
2074 | fprintf(f, "%d\n", sizeof(int)); |
1902 | exit(0); |
2075 | exit(0); |
1903 | } |
2076 | } |
1904 | EOF |
2077 | EOF |
1905 | if { (eval echo configure:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2078 | if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1906 | then |
2079 | then |
1907 | ac_cv_sizeof_int=`cat conftestval` |
2080 | ac_cv_sizeof_int=`cat conftestval` |
1908 | else |
2081 | else |
1909 | echo "configure: failed program was:" >&5 |
2082 | echo "configure: failed program was:" >&5 |
1910 | cat conftest.$ac_ext >&5 |
2083 | cat conftest.$ac_ext >&5 |
… | |
… | |
1920 | #define SIZEOF_INT $ac_cv_sizeof_int |
2093 | #define SIZEOF_INT $ac_cv_sizeof_int |
1921 | EOF |
2094 | EOF |
1922 | |
2095 | |
1923 | |
2096 | |
1924 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
2097 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
1925 | echo "configure:1926: checking size of long" >&5 |
2098 | echo "configure:2099: checking size of long" >&5 |
1926 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
2099 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
1927 | echo $ac_n "(cached) $ac_c" 1>&6 |
2100 | echo $ac_n "(cached) $ac_c" 1>&6 |
1928 | else |
2101 | else |
1929 | if test "$cross_compiling" = yes; then |
2102 | if test "$cross_compiling" = yes; then |
1930 | ac_cv_sizeof_long=4 |
2103 | ac_cv_sizeof_long=4 |
1931 | else |
2104 | else |
1932 | cat > conftest.$ac_ext <<EOF |
2105 | cat > conftest.$ac_ext <<EOF |
1933 | #line 1934 "configure" |
2106 | #line 2107 "configure" |
1934 | #include "confdefs.h" |
2107 | #include "confdefs.h" |
1935 | #include <stdio.h> |
2108 | #include <stdio.h> |
1936 | main() |
2109 | main() |
1937 | { |
2110 | { |
1938 | FILE *f=fopen("conftestval", "w"); |
2111 | FILE *f=fopen("conftestval", "w"); |
1939 | if (!f) exit(1); |
2112 | if (!f) exit(1); |
1940 | fprintf(f, "%d\n", sizeof(long)); |
2113 | fprintf(f, "%d\n", sizeof(long)); |
1941 | exit(0); |
2114 | exit(0); |
1942 | } |
2115 | } |
1943 | EOF |
2116 | EOF |
1944 | if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2117 | if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1945 | then |
2118 | then |
1946 | ac_cv_sizeof_long=`cat conftestval` |
2119 | ac_cv_sizeof_long=`cat conftestval` |
1947 | else |
2120 | else |
1948 | echo "configure: failed program was:" >&5 |
2121 | echo "configure: failed program was:" >&5 |
1949 | cat conftest.$ac_ext >&5 |
2122 | cat conftest.$ac_ext >&5 |
… | |
… | |
1960 | EOF |
2133 | EOF |
1961 | |
2134 | |
1962 | |
2135 | |
1963 | |
2136 | |
1964 | echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
2137 | echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
1965 | echo "configure:1966: checking for an 8 bit integer type" >&5 |
2138 | echo "configure:2139: checking for an 8 bit integer type" >&5 |
1966 | if test $ac_cv_sizeof_char -ge 1 ; then |
2139 | if test $ac_cv_sizeof_char -ge 1 ; then |
1967 | INT_8_BIT=char |
2140 | INT_8_BIT=char |
1968 | echo "$ac_t""char" 1>&6 |
2141 | echo "$ac_t""char" 1>&6 |
1969 | elif test $ac_cv_sizeof_short -ge 1 ; then |
2142 | elif test $ac_cv_sizeof_short -ge 1 ; then |
1970 | INT_8_BIT=short |
2143 | INT_8_BIT=short |
… | |
… | |
1978 | else |
2151 | else |
1979 | { 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; } |
1980 | fi |
2153 | fi |
1981 | |
2154 | |
1982 | echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
2155 | echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
1983 | echo "configure:1984: checking for a 16 bit integer type" >&5 |
2156 | echo "configure:2157: checking for a 16 bit integer type" >&5 |
1984 | if test $ac_cv_sizeof_char -ge 2 ; then |
2157 | if test $ac_cv_sizeof_char -ge 2 ; then |
1985 | INT_16_BIT=char |
2158 | INT_16_BIT=char |
1986 | echo "$ac_t""char" 1>&6 |
2159 | echo "$ac_t""char" 1>&6 |
1987 | elif test $ac_cv_sizeof_short -ge 2 ; then |
2160 | elif test $ac_cv_sizeof_short -ge 2 ; then |
1988 | INT_16_BIT=short |
2161 | INT_16_BIT=short |
… | |
… | |
1996 | else |
2169 | else |
1997 | { 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; } |
1998 | fi |
2171 | fi |
1999 | |
2172 | |
2000 | echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
2173 | echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
2001 | echo "configure:2002: checking for a 32 bit integer type" >&5 |
2174 | echo "configure:2175: checking for a 32 bit integer type" >&5 |
2002 | if test $ac_cv_sizeof_char -ge 4 ; then |
2175 | if test $ac_cv_sizeof_char -ge 4 ; then |
2003 | INT_32_BIT=char |
2176 | INT_32_BIT=char |
2004 | echo "$ac_t""char" 1>&6 |
2177 | echo "$ac_t""char" 1>&6 |
2005 | elif test $ac_cv_sizeof_short -ge 4 ; then |
2178 | elif test $ac_cv_sizeof_short -ge 4 ; then |
2006 | INT_32_BIT=short |
2179 | INT_32_BIT=short |
… | |
… | |
2018 | |
2191 | |
2019 | |
2192 | |
2020 | |
2193 | |
2021 | |
2194 | |
2022 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2195 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2023 | echo "configure:2024: checking for vprintf" >&5 |
2196 | echo "configure:2197: checking for vprintf" >&5 |
2024 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2197 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2025 | echo $ac_n "(cached) $ac_c" 1>&6 |
2198 | echo $ac_n "(cached) $ac_c" 1>&6 |
2026 | else |
2199 | else |
2027 | cat > conftest.$ac_ext <<EOF |
2200 | cat > conftest.$ac_ext <<EOF |
2028 | #line 2029 "configure" |
2201 | #line 2202 "configure" |
2029 | #include "confdefs.h" |
2202 | #include "confdefs.h" |
2030 | /* System header to define __stub macros and hopefully few prototypes, |
2203 | /* System header to define __stub macros and hopefully few prototypes, |
2031 | which can conflict with char vprintf(); below. */ |
2204 | which can conflict with char vprintf(); below. */ |
2032 | #include <assert.h> |
2205 | #include <assert.h> |
2033 | /* Override any gcc2 internal prototype to avoid an error. */ |
2206 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2046 | vprintf(); |
2219 | vprintf(); |
2047 | #endif |
2220 | #endif |
2048 | |
2221 | |
2049 | ; return 0; } |
2222 | ; return 0; } |
2050 | EOF |
2223 | EOF |
2051 | if { (eval echo configure:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2224 | if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2052 | rm -rf conftest* |
2225 | rm -rf conftest* |
2053 | eval "ac_cv_func_vprintf=yes" |
2226 | eval "ac_cv_func_vprintf=yes" |
2054 | else |
2227 | else |
2055 | echo "configure: failed program was:" >&5 |
2228 | echo "configure: failed program was:" >&5 |
2056 | cat conftest.$ac_ext >&5 |
2229 | cat conftest.$ac_ext >&5 |
… | |
… | |
2070 | echo "$ac_t""no" 1>&6 |
2243 | echo "$ac_t""no" 1>&6 |
2071 | fi |
2244 | fi |
2072 | |
2245 | |
2073 | if test "$ac_cv_func_vprintf" != yes; then |
2246 | if test "$ac_cv_func_vprintf" != yes; then |
2074 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2247 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2075 | echo "configure:2076: checking for _doprnt" >&5 |
2248 | echo "configure:2249: checking for _doprnt" >&5 |
2076 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2249 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2077 | echo $ac_n "(cached) $ac_c" 1>&6 |
2250 | echo $ac_n "(cached) $ac_c" 1>&6 |
2078 | else |
2251 | else |
2079 | cat > conftest.$ac_ext <<EOF |
2252 | cat > conftest.$ac_ext <<EOF |
2080 | #line 2081 "configure" |
2253 | #line 2254 "configure" |
2081 | #include "confdefs.h" |
2254 | #include "confdefs.h" |
2082 | /* System header to define __stub macros and hopefully few prototypes, |
2255 | /* System header to define __stub macros and hopefully few prototypes, |
2083 | which can conflict with char _doprnt(); below. */ |
2256 | which can conflict with char _doprnt(); below. */ |
2084 | #include <assert.h> |
2257 | #include <assert.h> |
2085 | /* Override any gcc2 internal prototype to avoid an error. */ |
2258 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2098 | _doprnt(); |
2271 | _doprnt(); |
2099 | #endif |
2272 | #endif |
2100 | |
2273 | |
2101 | ; return 0; } |
2274 | ; return 0; } |
2102 | EOF |
2275 | EOF |
2103 | if { (eval echo configure:2104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2276 | if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2104 | rm -rf conftest* |
2277 | rm -rf conftest* |
2105 | eval "ac_cv_func__doprnt=yes" |
2278 | eval "ac_cv_func__doprnt=yes" |
2106 | else |
2279 | else |
2107 | echo "configure: failed program was:" >&5 |
2280 | echo "configure: failed program was:" >&5 |
2108 | cat conftest.$ac_ext >&5 |
2281 | cat conftest.$ac_ext >&5 |
… | |
… | |
2125 | fi |
2298 | fi |
2126 | |
2299 | |
2127 | for ac_func in strdup |
2300 | for ac_func in strdup |
2128 | do |
2301 | do |
2129 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2302 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2130 | echo "configure:2131: checking for $ac_func" >&5 |
2303 | echo "configure:2304: checking for $ac_func" >&5 |
2131 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2304 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2132 | echo $ac_n "(cached) $ac_c" 1>&6 |
2305 | echo $ac_n "(cached) $ac_c" 1>&6 |
2133 | else |
2306 | else |
2134 | cat > conftest.$ac_ext <<EOF |
2307 | cat > conftest.$ac_ext <<EOF |
2135 | #line 2136 "configure" |
2308 | #line 2309 "configure" |
2136 | #include "confdefs.h" |
2309 | #include "confdefs.h" |
2137 | /* System header to define __stub macros and hopefully few prototypes, |
2310 | /* System header to define __stub macros and hopefully few prototypes, |
2138 | which can conflict with char $ac_func(); below. */ |
2311 | which can conflict with char $ac_func(); below. */ |
2139 | #include <assert.h> |
2312 | #include <assert.h> |
2140 | /* Override any gcc2 internal prototype to avoid an error. */ |
2313 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2153 | $ac_func(); |
2326 | $ac_func(); |
2154 | #endif |
2327 | #endif |
2155 | |
2328 | |
2156 | ; return 0; } |
2329 | ; return 0; } |
2157 | EOF |
2330 | EOF |
2158 | if { (eval echo configure:2159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2331 | if { (eval echo configure:2332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2159 | rm -rf conftest* |
2332 | rm -rf conftest* |
2160 | eval "ac_cv_func_$ac_func=yes" |
2333 | eval "ac_cv_func_$ac_func=yes" |
2161 | else |
2334 | else |
2162 | echo "configure: failed program was:" >&5 |
2335 | echo "configure: failed program was:" >&5 |
2163 | cat conftest.$ac_ext >&5 |
2336 | cat conftest.$ac_ext >&5 |
… | |
… | |
2174 | #define $ac_tr_func 1 |
2347 | #define $ac_tr_func 1 |
2175 | EOF |
2348 | EOF |
2176 | |
2349 | |
2177 | else |
2350 | else |
2178 | echo "$ac_t""no" 1>&6 |
2351 | echo "$ac_t""no" 1>&6 |
|
|
2352 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
2179 | fi |
2353 | fi |
2180 | done |
2354 | done |
2181 | |
2355 | |
2182 | for ac_func in strdup |
2356 | |
|
|
2357 | for ac_func in getopt_long |
2183 | do |
2358 | do |
2184 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2359 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2185 | echo "configure:2186: checking for $ac_func" >&5 |
2360 | echo "configure:2361: checking for $ac_func" >&5 |
2186 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2361 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2187 | echo $ac_n "(cached) $ac_c" 1>&6 |
2362 | echo $ac_n "(cached) $ac_c" 1>&6 |
2188 | else |
2363 | else |
2189 | cat > conftest.$ac_ext <<EOF |
2364 | cat > conftest.$ac_ext <<EOF |
2190 | #line 2191 "configure" |
2365 | #line 2366 "configure" |
2191 | #include "confdefs.h" |
2366 | #include "confdefs.h" |
2192 | /* System header to define __stub macros and hopefully few prototypes, |
2367 | /* System header to define __stub macros and hopefully few prototypes, |
2193 | which can conflict with char $ac_func(); below. */ |
2368 | which can conflict with char $ac_func(); below. */ |
2194 | #include <assert.h> |
2369 | #include <assert.h> |
2195 | /* Override any gcc2 internal prototype to avoid an error. */ |
2370 | /* Override any gcc2 internal prototype to avoid an error. */ |
… | |
… | |
2208 | $ac_func(); |
2383 | $ac_func(); |
2209 | #endif |
2384 | #endif |
2210 | |
2385 | |
2211 | ; return 0; } |
2386 | ; return 0; } |
2212 | EOF |
2387 | EOF |
2213 | if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2388 | if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2214 | rm -rf conftest* |
2389 | rm -rf conftest* |
2215 | eval "ac_cv_func_$ac_func=yes" |
2390 | eval "ac_cv_func_$ac_func=yes" |
2216 | else |
2391 | else |
2217 | echo "configure: failed program was:" >&5 |
2392 | echo "configure: failed program was:" >&5 |
2218 | cat conftest.$ac_ext >&5 |
2393 | cat conftest.$ac_ext >&5 |
… | |
… | |
2229 | #define $ac_tr_func 1 |
2404 | #define $ac_tr_func 1 |
2230 | EOF |
2405 | EOF |
2231 | |
2406 | |
2232 | else |
2407 | else |
2233 | echo "$ac_t""no" 1>&6 |
2408 | echo "$ac_t""no" 1>&6 |
2234 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
2409 | LIBOBJS="$LIBOBJS getopt.o getopt1.o" |
2235 | fi |
2410 | fi |
2236 | done |
2411 | done |
2237 | |
2412 | |
2238 | |
2413 | |
2239 | |
2414 | |
… | |
… | |
2300 | ASCIIDOCS_FALSE='#' |
2475 | ASCIIDOCS_FALSE='#' |
2301 | else |
2476 | else |
2302 | ASCIIDOCS_TRUE='#' |
2477 | ASCIIDOCS_TRUE='#' |
2303 | ASCIIDOCS_FALSE= |
2478 | ASCIIDOCS_FALSE= |
2304 | fi |
2479 | fi |
|
|
2480 | |
|
|
2481 | # Check whether --enable-rtf-docs or --disable-rtf-docs was given. |
|
|
2482 | if test "${enable_rtf_docs+set}" = set; then |
|
|
2483 | enableval="$enable_rtf_docs" |
|
|
2484 | case "${enableval}" in |
|
|
2485 | yes) rtfdocs=true ;; |
|
|
2486 | no) rtfdocs=false ;; |
|
|
2487 | *) { echo "configure: error: bad value ${enableval} for --enable-rtf-docs" 1>&2; exit 1; } ;; |
|
|
2488 | esac |
|
|
2489 | else |
|
|
2490 | rtfdocs=false |
|
|
2491 | fi |
|
|
2492 | |
|
|
2493 | |
|
|
2494 | |
|
|
2495 | if test x$rtfdocs = xtrue; then |
|
|
2496 | RTFDOCS_TRUE= |
|
|
2497 | RTFDOCS_FALSE='#' |
|
|
2498 | else |
|
|
2499 | RTFDOCS_TRUE='#' |
|
|
2500 | RTFDOCS_FALSE= |
|
|
2501 | fi |
|
|
2502 | |
2305 | |
2503 | |
2306 | trap '' 1 2 15 |
2504 | trap '' 1 2 15 |
2307 | cat > confcache <<\EOF |
2505 | cat > confcache <<\EOF |
2308 | # 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 |
2309 | # 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 |
… | |
… | |
2402 | done |
2600 | done |
2403 | |
2601 | |
2404 | ac_given_srcdir=$srcdir |
2602 | ac_given_srcdir=$srcdir |
2405 | ac_given_INSTALL="$INSTALL" |
2603 | ac_given_INSTALL="$INSTALL" |
2406 | |
2604 | |
2407 | trap '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 |
2605 | trap 'rm -fr `echo "Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile program/Makefile program/psiconv/Makefile lib/psiconv/general.h formats/Makefile docs/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
2408 | EOF |
2606 | EOF |
2409 | cat >> $CONFIG_STATUS <<EOF |
2607 | cat >> $CONFIG_STATUS <<EOF |
2410 | |
2608 | |
2411 | # 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. |
2412 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
2610 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
… | |
… | |
2457 | s%@build_cpu@%$build_cpu%g |
2655 | s%@build_cpu@%$build_cpu%g |
2458 | s%@build_vendor@%$build_vendor%g |
2656 | s%@build_vendor@%$build_vendor%g |
2459 | s%@build_os@%$build_os%g |
2657 | s%@build_os@%$build_os%g |
2460 | s%@RANLIB@%$RANLIB%g |
2658 | s%@RANLIB@%$RANLIB%g |
2461 | s%@CC@%$CC%g |
2659 | s%@CC@%$CC%g |
2462 | s%@LD@%$LD%g |
|
|
2463 | s%@NM@%$NM%g |
|
|
2464 | s%@LN_S@%$LN_S%g |
2660 | s%@LN_S@%$LN_S%g |
2465 | s%@LIBTOOL@%$LIBTOOL%g |
2661 | s%@LIBTOOL@%$LIBTOOL%g |
|
|
2662 | s%@cflags_set@%$cflags_set%g |
|
|
2663 | s%@IMAGEMAGICK@%$IMAGEMAGICK%g |
|
|
2664 | s%@LIB_MAGICK@%$LIB_MAGICK%g |
2466 | s%@CPP@%$CPP%g |
2665 | s%@CPP@%$CPP%g |
2467 | s%@INT_8_BIT@%$INT_8_BIT%g |
2666 | s%@INT_8_BIT@%$INT_8_BIT%g |
2468 | s%@INT_16_BIT@%$INT_16_BIT%g |
2667 | s%@INT_16_BIT@%$INT_16_BIT%g |
2469 | s%@INT_32_BIT@%$INT_32_BIT%g |
2668 | s%@INT_32_BIT@%$INT_32_BIT%g |
2470 | s%@LIBOBJS@%$LIBOBJS%g |
2669 | s%@LIBOBJS@%$LIBOBJS%g |
… | |
… | |
2472 | s%@HTMLDOCS_FALSE@%$HTMLDOCS_FALSE%g |
2671 | s%@HTMLDOCS_FALSE@%$HTMLDOCS_FALSE%g |
2473 | s%@HTML4DOCS_TRUE@%$HTML4DOCS_TRUE%g |
2672 | s%@HTML4DOCS_TRUE@%$HTML4DOCS_TRUE%g |
2474 | s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g |
2673 | s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g |
2475 | s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g |
2674 | s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g |
2476 | s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g |
2675 | s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g |
|
|
2676 | s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g |
|
|
2677 | s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g |
2477 | |
2678 | |
2478 | CEOF |
2679 | CEOF |
2479 | EOF |
2680 | EOF |
2480 | |
2681 | |
2481 | cat >> $CONFIG_STATUS <<\EOF |
2682 | cat >> $CONFIG_STATUS <<\EOF |
… | |
… | |
2513 | fi |
2714 | fi |
2514 | EOF |
2715 | EOF |
2515 | |
2716 | |
2516 | cat >> $CONFIG_STATUS <<EOF |
2717 | cat >> $CONFIG_STATUS <<EOF |
2517 | |
2718 | |
2518 | CONFIG_FILES=\${CONFIG_FILES-"Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile"} |
2719 | CONFIG_FILES=\${CONFIG_FILES-"Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile program/Makefile program/psiconv/Makefile lib/psiconv/general.h formats/Makefile docs/Makefile"} |
2519 | EOF |
2720 | EOF |
2520 | cat >> $CONFIG_STATUS <<\EOF |
2721 | cat >> $CONFIG_STATUS <<\EOF |
2521 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
2722 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
2522 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
2723 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
2523 | case "$ac_file" in |
2724 | case "$ac_file" in |