GNU Binutils with patches for OS216
Revision | 4e8190be8d53ff7e254a077032719f169a6c4b5d (tree) |
---|---|
Zeit | 2002-02-01 03:55:16 |
Autor | David O'Brien <obrien@Free...> |
Commiter | David O'Brien |
2002-01-31 David O'Brien <obrien@FreeBSD>
* configure.in: Recognize the differences in core files from FreeBSD
4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
5-CURRENT.
* configure: Regenerate.
Approved by: Nick Clifton <nickc@cambridge.redhat.com>
@@ -1,3 +1,10 @@ | ||
1 | +2002-01-31 David O'Brien <obrien@FreeBSD> | |
2 | + | |
3 | + * configure.in: Recognize the differences in core files from FreeBSD | |
4 | + 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as | |
5 | + 5-CURRENT. | |
6 | + * configure: Regenerate. | |
7 | + | |
1 | 8 | 2001-10-24 Richard Henderson <rth@redhat.com> |
2 | 9 | |
3 | 10 | * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy |
@@ -12,18 +12,6 @@ ac_help= | ||
12 | 12 | ac_default_prefix=/usr/local |
13 | 13 | # Any additions from configure.in: |
14 | 14 | ac_help="$ac_help |
15 | - --enable-shared[=PKGS] build shared libraries [default=no]" | |
16 | -ac_help="$ac_help | |
17 | - --enable-static[=PKGS] build static libraries [default=yes]" | |
18 | -ac_help="$ac_help | |
19 | - --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" | |
20 | -ac_help="$ac_help | |
21 | - --with-gnu-ld assume the C compiler uses GNU ld [default=no]" | |
22 | -ac_help="$ac_help | |
23 | - --disable-libtool-lock avoid locking (might break parallel builds)" | |
24 | -ac_help="$ac_help | |
25 | - --with-pic try to use only PIC/non-PIC objects [default=use both]" | |
26 | -ac_help="$ac_help | |
27 | 15 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)" |
28 | 16 | ac_help="$ac_help |
29 | 17 | --enable-targets alternative target configurations" |
@@ -36,10 +24,6 @@ ac_help="$ac_help | ||
36 | 24 | ac_help="$ac_help |
37 | 25 | --enable-maintainer-mode enable make rules and dependencies not useful |
38 | 26 | (and sometimes confusing) to the casual installer" |
39 | -ac_help="$ac_help | |
40 | - --disable-nls do not use Native Language Support" | |
41 | -ac_help="$ac_help | |
42 | - --with-included-gettext use the GNU gettext library included here" | |
43 | 27 | |
44 | 28 | # Initialize some variables set by options. |
45 | 29 | # The variables have the same names as the options, with |
@@ -560,68 +544,6 @@ else | ||
560 | 544 | ac_n= ac_c='\c' ac_t= |
561 | 545 | fi |
562 | 546 | |
563 | -echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | |
564 | -echo "configure:565: checking for Cygwin environment" >&5 | |
565 | -if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then | |
566 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
567 | -else | |
568 | - cat > conftest.$ac_ext <<EOF | |
569 | -#line 570 "configure" | |
570 | -#include "confdefs.h" | |
571 | - | |
572 | -int main() { | |
573 | - | |
574 | -#ifndef __CYGWIN__ | |
575 | -#define __CYGWIN__ __CYGWIN32__ | |
576 | -#endif | |
577 | -return __CYGWIN__; | |
578 | -; return 0; } | |
579 | -EOF | |
580 | -if { (eval echo configure:581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
581 | - rm -rf conftest* | |
582 | - ac_cv_cygwin=yes | |
583 | -else | |
584 | - echo "configure: failed program was:" >&5 | |
585 | - cat conftest.$ac_ext >&5 | |
586 | - rm -rf conftest* | |
587 | - ac_cv_cygwin=no | |
588 | -fi | |
589 | -rm -f conftest* | |
590 | -rm -f conftest* | |
591 | -fi | |
592 | - | |
593 | -echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
594 | -CYGWIN= | |
595 | -test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
596 | -echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
597 | -echo "configure:598: checking for mingw32 environment" >&5 | |
598 | -if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then | |
599 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
600 | -else | |
601 | - cat > conftest.$ac_ext <<EOF | |
602 | -#line 603 "configure" | |
603 | -#include "confdefs.h" | |
604 | - | |
605 | -int main() { | |
606 | -return __MINGW32__; | |
607 | -; return 0; } | |
608 | -EOF | |
609 | -if { (eval echo configure:610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
610 | - rm -rf conftest* | |
611 | - ac_cv_mingw32=yes | |
612 | -else | |
613 | - echo "configure: failed program was:" >&5 | |
614 | - cat conftest.$ac_ext >&5 | |
615 | - rm -rf conftest* | |
616 | - ac_cv_mingw32=no | |
617 | -fi | |
618 | -rm -f conftest* | |
619 | -rm -f conftest* | |
620 | -fi | |
621 | - | |
622 | -echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
623 | -MINGW32= | |
624 | -test "$ac_cv_mingw32" = yes && MINGW32=yes | |
625 | 547 | |
626 | 548 | |
627 | 549 | ac_aux_dir= |
@@ -671,7 +593,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | ||
671 | 593 | fi |
672 | 594 | |
673 | 595 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
674 | -echo "configure:675: checking host system type" >&5 | |
596 | +echo "configure:597: checking host system type" >&5 | |
675 | 597 | |
676 | 598 | host_alias=$host |
677 | 599 | case "$host_alias" in |
@@ -692,7 +614,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
692 | 614 | echo "$ac_t""$host" 1>&6 |
693 | 615 | |
694 | 616 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
695 | -echo "configure:696: checking target system type" >&5 | |
617 | +echo "configure:618: checking target system type" >&5 | |
696 | 618 | |
697 | 619 | target_alias=$target |
698 | 620 | case "$target_alias" in |
@@ -710,7 +632,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
710 | 632 | echo "$ac_t""$target" 1>&6 |
711 | 633 | |
712 | 634 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
713 | -echo "configure:714: checking build system type" >&5 | |
635 | +echo "configure:636: checking build system type" >&5 | |
714 | 636 | |
715 | 637 | build_alias=$build |
716 | 638 | case "$build_alias" in |
@@ -735,7 +657,7 @@ test "$host_alias" != "$target_alias" && | ||
735 | 657 | # Extract the first word of "gcc", so it can be a program name with args. |
736 | 658 | set dummy gcc; ac_word=$2 |
737 | 659 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
738 | -echo "configure:739: checking for $ac_word" >&5 | |
660 | +echo "configure:661: checking for $ac_word" >&5 | |
739 | 661 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
740 | 662 | echo $ac_n "(cached) $ac_c" 1>&6 |
741 | 663 | else |
@@ -765,7 +687,7 @@ if test -z "$CC"; then | ||
765 | 687 | # Extract the first word of "cc", so it can be a program name with args. |
766 | 688 | set dummy cc; ac_word=$2 |
767 | 689 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
768 | -echo "configure:769: checking for $ac_word" >&5 | |
690 | +echo "configure:691: checking for $ac_word" >&5 | |
769 | 691 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
770 | 692 | echo $ac_n "(cached) $ac_c" 1>&6 |
771 | 693 | else |
@@ -816,7 +738,7 @@ fi | ||
816 | 738 | # Extract the first word of "cl", so it can be a program name with args. |
817 | 739 | set dummy cl; ac_word=$2 |
818 | 740 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
819 | -echo "configure:820: checking for $ac_word" >&5 | |
741 | +echo "configure:742: checking for $ac_word" >&5 | |
820 | 742 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
821 | 743 | echo $ac_n "(cached) $ac_c" 1>&6 |
822 | 744 | else |
@@ -848,7 +770,7 @@ fi | ||
848 | 770 | fi |
849 | 771 | |
850 | 772 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
851 | -echo "configure:852: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
773 | +echo "configure:774: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
852 | 774 | |
853 | 775 | ac_ext=c |
854 | 776 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
@@ -859,12 +781,12 @@ cross_compiling=$ac_cv_prog_cc_cross | ||
859 | 781 | |
860 | 782 | cat > conftest.$ac_ext << EOF |
861 | 783 | |
862 | -#line 863 "configure" | |
784 | +#line 785 "configure" | |
863 | 785 | #include "confdefs.h" |
864 | 786 | |
865 | 787 | main(){return(0);} |
866 | 788 | EOF |
867 | -if { (eval echo configure:868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
789 | +if { (eval echo configure:790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
868 | 790 | ac_cv_prog_cc_works=yes |
869 | 791 | # If we can't run a trivial program, we are probably using a cross compiler. |
870 | 792 | if (./conftest; exit) 2>/dev/null; then |
@@ -890,12 +812,12 @@ if test $ac_cv_prog_cc_works = no; then | ||
890 | 812 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
891 | 813 | fi |
892 | 814 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
893 | -echo "configure:894: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
815 | +echo "configure:816: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
894 | 816 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
895 | 817 | cross_compiling=$ac_cv_prog_cc_cross |
896 | 818 | |
897 | 819 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
898 | -echo "configure:899: checking whether we are using GNU C" >&5 | |
820 | +echo "configure:821: checking whether we are using GNU C" >&5 | |
899 | 821 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
900 | 822 | echo $ac_n "(cached) $ac_c" 1>&6 |
901 | 823 | else |
@@ -904,7 +826,7 @@ else | ||
904 | 826 | yes; |
905 | 827 | #endif |
906 | 828 | EOF |
907 | -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
829 | +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
908 | 830 | ac_cv_prog_gcc=yes |
909 | 831 | else |
910 | 832 | ac_cv_prog_gcc=no |
@@ -923,7 +845,7 @@ ac_test_CFLAGS="${CFLAGS+set}" | ||
923 | 845 | ac_save_CFLAGS="$CFLAGS" |
924 | 846 | CFLAGS= |
925 | 847 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
926 | -echo "configure:927: checking whether ${CC-cc} accepts -g" >&5 | |
848 | +echo "configure:849: checking whether ${CC-cc} accepts -g" >&5 | |
927 | 849 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
928 | 850 | echo $ac_n "(cached) $ac_c" 1>&6 |
929 | 851 | else |
@@ -955,7 +877,7 @@ else | ||
955 | 877 | fi |
956 | 878 | |
957 | 879 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
958 | -echo "configure:959: checking for POSIXized ISC" >&5 | |
880 | +echo "configure:881: checking for POSIXized ISC" >&5 | |
959 | 881 | if test -d /etc/conf/kconfig.d && |
960 | 882 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
961 | 883 | then |
@@ -988,7 +910,7 @@ fi | ||
988 | 910 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
989 | 911 | # ./install, which can be erroneously created by make from ./install.sh. |
990 | 912 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
991 | -echo "configure:992: checking for a BSD compatible install" >&5 | |
913 | +echo "configure:914: checking for a BSD compatible install" >&5 | |
992 | 914 | if test -z "$INSTALL"; then |
993 | 915 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
994 | 916 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -1041,7 +963,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | ||
1041 | 963 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
1042 | 964 | |
1043 | 965 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
1044 | -echo "configure:1045: checking whether build environment is sane" >&5 | |
966 | +echo "configure:967: checking whether build environment is sane" >&5 | |
1045 | 967 | # Just in case |
1046 | 968 | sleep 1 |
1047 | 969 | echo timestamp > conftestfile |
@@ -1098,7 +1020,7 @@ test "$program_suffix" != NONE && | ||
1098 | 1020 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
1099 | 1021 | |
1100 | 1022 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
1101 | -echo "configure:1102: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
1023 | +echo "configure:1024: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
1102 | 1024 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
1103 | 1025 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
1104 | 1026 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -1144,7 +1066,7 @@ EOF | ||
1144 | 1066 | |
1145 | 1067 | missing_dir=`cd $ac_aux_dir && pwd` |
1146 | 1068 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
1147 | -echo "configure:1148: checking for working aclocal" >&5 | |
1069 | +echo "configure:1070: checking for working aclocal" >&5 | |
1148 | 1070 | # Run test in a subshell; some versions of sh will print an error if |
1149 | 1071 | # an executable is not found, even if stderr is redirected. |
1150 | 1072 | # Redirect stdin to placate older versions of autoconf. Sigh. |
@@ -1157,7 +1079,7 @@ else | ||
1157 | 1079 | fi |
1158 | 1080 | |
1159 | 1081 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
1160 | -echo "configure:1161: checking for working autoconf" >&5 | |
1082 | +echo "configure:1083: checking for working autoconf" >&5 | |
1161 | 1083 | # Run test in a subshell; some versions of sh will print an error if |
1162 | 1084 | # an executable is not found, even if stderr is redirected. |
1163 | 1085 | # Redirect stdin to placate older versions of autoconf. Sigh. |
@@ -1170,7 +1092,7 @@ else | ||
1170 | 1092 | fi |
1171 | 1093 | |
1172 | 1094 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
1173 | -echo "configure:1174: checking for working automake" >&5 | |
1095 | +echo "configure:1096: checking for working automake" >&5 | |
1174 | 1096 | # Run test in a subshell; some versions of sh will print an error if |
1175 | 1097 | # an executable is not found, even if stderr is redirected. |
1176 | 1098 | # Redirect stdin to placate older versions of autoconf. Sigh. |
@@ -1183,7 +1105,7 @@ else | ||
1183 | 1105 | fi |
1184 | 1106 | |
1185 | 1107 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
1186 | -echo "configure:1187: checking for working autoheader" >&5 | |
1108 | +echo "configure:1109: checking for working autoheader" >&5 | |
1187 | 1109 | # Run test in a subshell; some versions of sh will print an error if |
1188 | 1110 | # an executable is not found, even if stderr is redirected. |
1189 | 1111 | # Redirect stdin to placate older versions of autoconf. Sigh. |
@@ -1196,7 +1118,7 @@ else | ||
1196 | 1118 | fi |
1197 | 1119 | |
1198 | 1120 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
1199 | -echo "configure:1200: checking for working makeinfo" >&5 | |
1121 | +echo "configure:1122: checking for working makeinfo" >&5 | |
1200 | 1122 | # Run test in a subshell; some versions of sh will print an error if |
1201 | 1123 | # an executable is not found, even if stderr is redirected. |
1202 | 1124 | # Redirect stdin to placate older versions of autoconf. Sigh. |
@@ -1219,7 +1141,7 @@ fi | ||
1219 | 1141 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
1220 | 1142 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
1221 | 1143 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1222 | -echo "configure:1223: checking for $ac_word" >&5 | |
1144 | +echo "configure:1145: checking for $ac_word" >&5 | |
1223 | 1145 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
1224 | 1146 | echo $ac_n "(cached) $ac_c" 1>&6 |
1225 | 1147 | else |
@@ -1251,7 +1173,7 @@ fi | ||
1251 | 1173 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
1252 | 1174 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
1253 | 1175 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1254 | -echo "configure:1255: checking for $ac_word" >&5 | |
1176 | +echo "configure:1177: checking for $ac_word" >&5 | |
1255 | 1177 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1256 | 1178 | echo $ac_n "(cached) $ac_c" 1>&6 |
1257 | 1179 | else |
@@ -1283,7 +1205,7 @@ if test -n "$ac_tool_prefix"; then | ||
1283 | 1205 | # Extract the first word of "ranlib", so it can be a program name with args. |
1284 | 1206 | set dummy ranlib; ac_word=$2 |
1285 | 1207 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1286 | -echo "configure:1287: checking for $ac_word" >&5 | |
1208 | +echo "configure:1209: checking for $ac_word" >&5 | |
1287 | 1209 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
1288 | 1210 | echo $ac_n "(cached) $ac_c" 1>&6 |
1289 | 1211 | else |
@@ -1316,414 +1238,191 @@ fi | ||
1316 | 1238 | fi |
1317 | 1239 | |
1318 | 1240 | |
1319 | -# Check whether --enable-shared or --disable-shared was given. | |
1320 | -if test "${enable_shared+set}" = set; then | |
1321 | - enableval="$enable_shared" | |
1322 | - p=${PACKAGE-default} | |
1323 | -case "$enableval" in | |
1324 | -yes) enable_shared=yes ;; | |
1325 | -no) enable_shared=no ;; | |
1326 | -*) | |
1327 | - enable_shared=no | |
1328 | - # Look at the argument we got. We use all the common list separators. | |
1329 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1330 | - for pkg in $enableval; do | |
1331 | - if test "X$pkg" = "X$p"; then | |
1332 | - enable_shared=yes | |
1333 | - fi | |
1334 | - done | |
1335 | - IFS="$ac_save_ifs" | |
1336 | - ;; | |
1337 | -esac | |
1338 | -else | |
1339 | - enable_shared=no | |
1340 | -fi | |
1241 | +AM_DISABLE_SHARED | |
1341 | 1242 | |
1243 | +AM_PROG_LIBTOOL | |
1342 | 1244 | |
1343 | -# Check whether --enable-static or --disable-static was given. | |
1344 | -if test "${enable_static+set}" = set; then | |
1345 | - enableval="$enable_static" | |
1346 | - p=${PACKAGE-default} | |
1347 | -case "$enableval" in | |
1348 | -yes) enable_static=yes ;; | |
1349 | -no) enable_static=no ;; | |
1350 | -*) | |
1351 | - enable_static=no | |
1352 | - # Look at the argument we got. We use all the common list separators. | |
1353 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1354 | - for pkg in $enableval; do | |
1355 | - if test "X$pkg" = "X$p"; then | |
1356 | - enable_static=yes | |
1357 | - fi | |
1358 | - done | |
1359 | - IFS="$ac_save_ifs" | |
1360 | - ;; | |
1245 | +# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. | |
1246 | +if test "${enable_64_bit_bfd+set}" = set; then | |
1247 | + enableval="$enable_64_bit_bfd" | |
1248 | + case "${enableval}" in | |
1249 | + yes) want64=true ;; | |
1250 | + no) want64=false ;; | |
1251 | + *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;; | |
1361 | 1252 | esac |
1362 | 1253 | else |
1363 | - enable_static=yes | |
1364 | -fi | |
1365 | - | |
1366 | -# Check whether --enable-fast-install or --disable-fast-install was given. | |
1367 | -if test "${enable_fast_install+set}" = set; then | |
1368 | - enableval="$enable_fast_install" | |
1369 | - p=${PACKAGE-default} | |
1370 | -case "$enableval" in | |
1371 | -yes) enable_fast_install=yes ;; | |
1372 | -no) enable_fast_install=no ;; | |
1373 | -*) | |
1374 | - enable_fast_install=no | |
1375 | - # Look at the argument we got. We use all the common list separators. | |
1376 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1377 | - for pkg in $enableval; do | |
1378 | - if test "X$pkg" = "X$p"; then | |
1379 | - enable_fast_install=yes | |
1380 | - fi | |
1381 | - done | |
1382 | - IFS="$ac_save_ifs" | |
1383 | - ;; | |
1254 | + want64=false | |
1255 | +fi | |
1256 | +# Check whether --enable-targets or --disable-targets was given. | |
1257 | +if test "${enable_targets+set}" = set; then | |
1258 | + enableval="$enable_targets" | |
1259 | + case "${enableval}" in | |
1260 | + yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } | |
1261 | + ;; | |
1262 | + no) enable_targets= ;; | |
1263 | + *) enable_targets=$enableval ;; | |
1384 | 1264 | esac |
1385 | -else | |
1386 | - enable_fast_install=yes | |
1387 | 1265 | fi |
1388 | - | |
1389 | -# Check whether --with-gnu-ld or --without-gnu-ld was given. | |
1390 | -if test "${with_gnu_ld+set}" = set; then | |
1391 | - withval="$with_gnu_ld" | |
1392 | - test "$withval" = no || with_gnu_ld=yes | |
1266 | +# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. | |
1267 | +if test "${enable_commonbfdlib+set}" = set; then | |
1268 | + enableval="$enable_commonbfdlib" | |
1269 | + case "${enableval}" in | |
1270 | + yes) commonbfdlib=true ;; | |
1271 | + no) commonbfdlib=false ;; | |
1272 | + *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;; | |
1273 | +esac | |
1274 | +fi | |
1275 | +# Check whether --with-mmap or --without-mmap was given. | |
1276 | +if test "${with_mmap+set}" = set; then | |
1277 | + withval="$with_mmap" | |
1278 | + case "${withval}" in | |
1279 | + yes) want_mmap=true ;; | |
1280 | + no) want_mmap=false ;; | |
1281 | + *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;; | |
1282 | +esac | |
1393 | 1283 | else |
1394 | - with_gnu_ld=no | |
1284 | + want_mmap=false | |
1395 | 1285 | fi |
1396 | 1286 | |
1397 | -ac_prog=ld | |
1398 | -if test "$ac_cv_prog_gcc" = yes; then | |
1399 | - # Check if gcc -print-prog-name=ld gives a path. | |
1400 | - echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
1401 | -echo "configure:1402: checking for ld used by GCC" >&5 | |
1402 | - case $host in | |
1403 | - *-*-mingw*) | |
1404 | - # gcc leaves a trailing carriage return which upsets mingw | |
1405 | - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
1406 | - *) | |
1407 | - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
1408 | - esac | |
1409 | - case "$ac_prog" in | |
1410 | - # Accept absolute paths. | |
1411 | - [\\/]* | [A-Za-z]:[\\/]*) | |
1412 | - re_direlt='/[^/][^/]*/\.\./' | |
1413 | - # Canonicalize the path of ld | |
1414 | - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1415 | - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1416 | - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1417 | - done | |
1418 | - test -z "$LD" && LD="$ac_prog" | |
1419 | - ;; | |
1420 | - "") | |
1421 | - # If it fails, then pretend we aren't using GCC. | |
1422 | - ac_prog=ld | |
1423 | - ;; | |
1424 | - *) | |
1425 | - # If it is relative, then search for the first ld in PATH. | |
1426 | - with_gnu_ld=unknown | |
1427 | - ;; | |
1428 | - esac | |
1429 | -elif test "$with_gnu_ld" = yes; then | |
1430 | - echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
1431 | -echo "configure:1432: checking for GNU ld" >&5 | |
1432 | -else | |
1433 | - echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
1434 | -echo "configure:1435: checking for non-GNU ld" >&5 | |
1287 | +build_warnings="-W -Wall" | |
1288 | +# Check whether --enable-build-warnings or --disable-build-warnings was given. | |
1289 | +if test "${enable_build_warnings+set}" = set; then | |
1290 | + enableval="$enable_build_warnings" | |
1291 | + case "${enableval}" in | |
1292 | + yes) ;; | |
1293 | + no) build_warnings="-w";; | |
1294 | + ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
1295 | + build_warnings="${build_warnings} ${t}";; | |
1296 | + *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
1297 | + build_warnings="${t} ${build_warnings}";; | |
1298 | + *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
1299 | +esac | |
1300 | +if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
1301 | + echo "Setting warning flags = $build_warnings" 6>&1 | |
1435 | 1302 | fi |
1436 | -if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then | |
1437 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
1438 | -else | |
1439 | - if test -z "$LD"; then | |
1440 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
1441 | - for ac_dir in $PATH; do | |
1442 | - test -z "$ac_dir" && ac_dir=. | |
1443 | - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
1444 | - ac_cv_path_LD="$ac_dir/$ac_prog" | |
1445 | - # Check to see if the program is GNU ld. I'd rather use --version, | |
1446 | - # but apparently some GNU ld's only accept -v. | |
1447 | - # Break only if it was the GNU/non-GNU ld that we prefer. | |
1448 | - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
1449 | - test "$with_gnu_ld" != no && break | |
1450 | - else | |
1451 | - test "$with_gnu_ld" != yes && break | |
1452 | - fi | |
1453 | - fi | |
1454 | - done | |
1455 | - IFS="$ac_save_ifs" | |
1456 | -else | |
1457 | - ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
1458 | 1303 | fi |
1304 | +WARN_CFLAGS="" | |
1305 | +if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then | |
1306 | + WARN_CFLAGS="${build_warnings}" | |
1459 | 1307 | fi |
1460 | 1308 | |
1461 | -LD="$ac_cv_path_LD" | |
1462 | -if test -n "$LD"; then | |
1463 | - echo "$ac_t""$LD" 1>&6 | |
1464 | -else | |
1465 | - echo "$ac_t""no" 1>&6 | |
1309 | + | |
1310 | + | |
1311 | + | |
1312 | + | |
1313 | + | |
1314 | +if test -z "$target" ; then | |
1315 | + { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } | |
1466 | 1316 | fi |
1467 | -test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
1468 | -echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | |
1469 | -echo "configure:1470: checking if the linker ($LD) is GNU ld" >&5 | |
1470 | -if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then | |
1471 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
1472 | -else | |
1473 | - # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1474 | -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
1475 | - ac_cv_prog_gnu_ld=yes | |
1317 | +if test "$program_transform_name" = s,x,x,; then | |
1318 | + program_transform_name= | |
1476 | 1319 | else |
1477 | - ac_cv_prog_gnu_ld=no | |
1478 | -fi | |
1320 | + # Double any \ or $. echo might interpret backslashes. | |
1321 | + cat <<\EOF_SED > conftestsed | |
1322 | +s,\\,\\\\,g; s,\$,$$,g | |
1323 | +EOF_SED | |
1324 | + program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
1325 | + rm -f conftestsed | |
1479 | 1326 | fi |
1327 | +test "$program_prefix" != NONE && | |
1328 | + program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
1329 | +# Use a double $ so make ignores it. | |
1330 | +test "$program_suffix" != NONE && | |
1331 | + program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
1480 | 1332 | |
1481 | -echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 | |
1482 | -with_gnu_ld=$ac_cv_prog_gnu_ld | |
1333 | +# sed with no file args requires a program. | |
1334 | +test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
1483 | 1335 | |
1484 | 1336 | |
1485 | -echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 | |
1486 | -echo "configure:1487: checking for $LD option to reload object files" >&5 | |
1487 | -if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then | |
1488 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
1337 | +echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
1338 | +echo "configure:1339: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1339 | + # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
1340 | +if test "${enable_maintainer_mode+set}" = set; then | |
1341 | + enableval="$enable_maintainer_mode" | |
1342 | + USE_MAINTAINER_MODE=$enableval | |
1489 | 1343 | else |
1490 | - lt_cv_ld_reload_flag='-r' | |
1344 | + USE_MAINTAINER_MODE=no | |
1491 | 1345 | fi |
1492 | 1346 | |
1493 | -echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 | |
1494 | -reload_flag=$lt_cv_ld_reload_flag | |
1495 | -test -n "$reload_flag" && reload_flag=" $reload_flag" | |
1347 | + echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
1348 | + | |
1496 | 1349 | |
1497 | -echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | |
1498 | -echo "configure:1499: checking for BSD-compatible nm" >&5 | |
1499 | -if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then | |
1500 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
1501 | -else | |
1502 | - if test -n "$NM"; then | |
1503 | - # Let the user override the test. | |
1504 | - ac_cv_path_NM="$NM" | |
1350 | +if test $USE_MAINTAINER_MODE = yes; then | |
1351 | + MAINTAINER_MODE_TRUE= | |
1352 | + MAINTAINER_MODE_FALSE='#' | |
1505 | 1353 | else |
1506 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
1507 | - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
1508 | - test -z "$ac_dir" && ac_dir=. | |
1509 | - tmp_nm=$ac_dir/${ac_tool_prefix}nm | |
1510 | - if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
1511 | - # Check to see if the nm accepts a BSD-compat flag. | |
1512 | - # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
1513 | - # nm: unknown option "B" ignored | |
1514 | - # Tru64's nm complains that /dev/null is an invalid object file | |
1515 | - if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
1516 | - ac_cv_path_NM="$tmp_nm -B" | |
1517 | - break | |
1518 | - elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
1519 | - ac_cv_path_NM="$tmp_nm -p" | |
1520 | - break | |
1521 | - else | |
1522 | - ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but | |
1523 | - continue # so that we can try to find one that supports BSD flags | |
1524 | - fi | |
1525 | - fi | |
1526 | - done | |
1527 | - IFS="$ac_save_ifs" | |
1528 | - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm | |
1529 | -fi | |
1354 | + MAINTAINER_MODE_TRUE='#' | |
1355 | + MAINTAINER_MODE_FALSE= | |
1530 | 1356 | fi |
1357 | + MAINT=$MAINTAINER_MODE_TRUE | |
1358 | + | |
1531 | 1359 | |
1532 | -NM="$ac_cv_path_NM" | |
1533 | -echo "$ac_t""$NM" 1>&6 | |
1534 | - | |
1535 | -echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
1536 | -echo "configure:1537: checking whether ln -s works" >&5 | |
1537 | -if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | |
1360 | +echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | |
1361 | +echo "configure:1362: checking for Cygwin environment" >&5 | |
1362 | +if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then | |
1538 | 1363 | echo $ac_n "(cached) $ac_c" 1>&6 |
1539 | 1364 | else |
1540 | - rm -f conftestdata | |
1541 | -if ln -s X conftestdata 2>/dev/null | |
1542 | -then | |
1543 | - rm -f conftestdata | |
1544 | - ac_cv_prog_LN_S="ln -s" | |
1365 | + cat > conftest.$ac_ext <<EOF | |
1366 | +#line 1367 "configure" | |
1367 | +#include "confdefs.h" | |
1368 | + | |
1369 | +int main() { | |
1370 | + | |
1371 | +#ifndef __CYGWIN__ | |
1372 | +#define __CYGWIN__ __CYGWIN32__ | |
1373 | +#endif | |
1374 | +return __CYGWIN__; | |
1375 | +; return 0; } | |
1376 | +EOF | |
1377 | +if { (eval echo configure:1378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1378 | + rm -rf conftest* | |
1379 | + ac_cv_cygwin=yes | |
1545 | 1380 | else |
1546 | - ac_cv_prog_LN_S=ln | |
1547 | -fi | |
1381 | + echo "configure: failed program was:" >&5 | |
1382 | + cat conftest.$ac_ext >&5 | |
1383 | + rm -rf conftest* | |
1384 | + ac_cv_cygwin=no | |
1548 | 1385 | fi |
1549 | -LN_S="$ac_cv_prog_LN_S" | |
1550 | -if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1551 | - echo "$ac_t""yes" 1>&6 | |
1552 | -else | |
1553 | - echo "$ac_t""no" 1>&6 | |
1386 | +rm -f conftest* | |
1387 | +rm -f conftest* | |
1554 | 1388 | fi |
1555 | 1389 | |
1556 | -echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 | |
1557 | -echo "configure:1558: checking how to recognise dependant libraries" >&5 | |
1558 | -if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then | |
1390 | +echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
1391 | +CYGWIN= | |
1392 | +test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
1393 | +echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
1394 | +echo "configure:1395: checking for mingw32 environment" >&5 | |
1395 | +if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then | |
1559 | 1396 | echo $ac_n "(cached) $ac_c" 1>&6 |
1560 | 1397 | else |
1561 | - lt_cv_file_magic_cmd='$MAGIC_CMD' | |
1562 | -lt_cv_file_magic_test_file= | |
1563 | -lt_cv_deplibs_check_method='unknown' | |
1564 | -# Need to set the preceding variable on all platforms that support | |
1565 | -# interlibrary dependencies. | |
1566 | -# 'none' -- dependencies not supported. | |
1567 | -# `unknown' -- same as none, but documents that we really don't know. | |
1568 | -# 'pass_all' -- all dependencies passed with no checks. | |
1569 | -# 'test_compile' -- check by making test program. | |
1570 | -# 'file_magic [regex]' -- check by looking for files in library path | |
1571 | -# which responds to the $file_magic_cmd with a given egrep regex. | |
1572 | -# If you have `file' or equivalent on your system and you're not sure | |
1573 | -# whether `pass_all' will *always* work, you probably want this one. | |
1574 | - | |
1575 | -case "$host_os" in | |
1576 | -aix4*) | |
1577 | - lt_cv_deplibs_check_method=pass_all | |
1578 | - ;; | |
1579 | - | |
1580 | -beos*) | |
1581 | - lt_cv_deplibs_check_method=pass_all | |
1582 | - ;; | |
1398 | + cat > conftest.$ac_ext <<EOF | |
1399 | +#line 1400 "configure" | |
1400 | +#include "confdefs.h" | |
1583 | 1401 | |
1584 | -bsdi4*) | |
1585 | - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
1586 | - lt_cv_file_magic_cmd='/usr/bin/file -L' | |
1587 | - lt_cv_file_magic_test_file=/shlib/libc.so | |
1588 | - ;; | |
1589 | - | |
1590 | -cygwin* | mingw* |pw32*) | |
1591 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
1592 | - lt_cv_file_magic_cmd='$OBJDUMP -f' | |
1593 | - ;; | |
1594 | - | |
1595 | -freebsd* ) | |
1596 | - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
1597 | - case "$host_cpu" in | |
1598 | - i*86 ) | |
1599 | - # Not sure whether the presence of OpenBSD here was a mistake. | |
1600 | - # Let's accept both of them until this is cleared up. | |
1601 | - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
1602 | - lt_cv_file_magic_cmd=/usr/bin/file | |
1603 | - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
1604 | - ;; | |
1605 | - esac | |
1606 | - else | |
1607 | - lt_cv_deplibs_check_method=pass_all | |
1608 | - fi | |
1609 | - ;; | |
1610 | - | |
1611 | -gnu*) | |
1612 | - lt_cv_deplibs_check_method=pass_all | |
1613 | - ;; | |
1614 | - | |
1615 | -hpux10.20*) | |
1616 | - # TODO: Does this work for hpux-11 too? | |
1617 | - lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library' | |
1618 | - lt_cv_file_magic_cmd=/usr/bin/file | |
1619 | - lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
1620 | - ;; | |
1621 | - | |
1622 | -irix5* | irix6*) | |
1623 | - case "$host_os" in | |
1624 | - irix5*) | |
1625 | - # this will be overridden with pass_all, but let us keep it just in case | |
1626 | - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
1627 | - ;; | |
1628 | - *) | |
1629 | - case "$LD" in | |
1630 | - *-32|*"-32 ") libmagic=32-bit;; | |
1631 | - *-n32|*"-n32 ") libmagic=N32;; | |
1632 | - *-64|*"-64 ") libmagic=64-bit;; | |
1633 | - *) libmagic=never-match;; | |
1634 | - esac | |
1635 | - # this will be overridden with pass_all, but let us keep it just in case | |
1636 | - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
1637 | - ;; | |
1638 | - esac | |
1639 | - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
1640 | - lt_cv_deplibs_check_method=pass_all | |
1641 | - ;; | |
1642 | - | |
1643 | -# This must be Linux ELF. | |
1644 | -linux-gnu*) | |
1645 | - case "$host_cpu" in | |
1646 | - alpha* | i*86 | powerpc* | sparc* | ia64* ) | |
1647 | - lt_cv_deplibs_check_method=pass_all ;; | |
1648 | - *) | |
1649 | - # glibc up to 2.1.1 does not perform some relocations on ARM | |
1650 | - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | |
1651 | - esac | |
1652 | - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | |
1653 | - ;; | |
1654 | - | |
1655 | -netbsd*) | |
1656 | - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then : | |
1657 | - else | |
1658 | - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | |
1659 | - lt_cv_file_magic_cmd='/usr/bin/file -L' | |
1660 | - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
1661 | - fi | |
1662 | - ;; | |
1663 | - | |
1664 | -osf3* | osf4* | osf5*) | |
1665 | - # this will be overridden with pass_all, but let us keep it just in case | |
1666 | - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
1667 | - lt_cv_file_magic_test_file=/shlib/libc.so | |
1668 | - lt_cv_deplibs_check_method=pass_all | |
1669 | - ;; | |
1670 | - | |
1671 | -sco3.2v5*) | |
1672 | - lt_cv_deplibs_check_method=pass_all | |
1673 | - ;; | |
1674 | - | |
1675 | -solaris*) | |
1676 | - lt_cv_deplibs_check_method=pass_all | |
1677 | - lt_cv_file_magic_test_file=/lib/libc.so | |
1678 | - ;; | |
1679 | - | |
1680 | -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
1681 | - case "$host_vendor" in | |
1682 | - ncr) | |
1683 | - lt_cv_deplibs_check_method=pass_all | |
1684 | - ;; | |
1685 | - motorola) | |
1686 | - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
1687 | - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
1688 | - ;; | |
1689 | - esac | |
1690 | - ;; | |
1691 | -esac | |
1692 | - | |
1693 | -fi | |
1694 | - | |
1695 | -echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 | |
1696 | -file_magic_cmd=$lt_cv_file_magic_cmd | |
1697 | -deplibs_check_method=$lt_cv_deplibs_check_method | |
1698 | - | |
1699 | -echo $ac_n "checking for object suffix""... $ac_c" 1>&6 | |
1700 | -echo "configure:1701: checking for object suffix" >&5 | |
1701 | -if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then | |
1702 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
1703 | -else | |
1704 | - rm -f conftest* | |
1705 | -echo 'int i = 1;' > conftest.$ac_ext | |
1706 | -if { (eval echo configure:1707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1707 | - for ac_file in conftest.*; do | |
1708 | - case $ac_file in | |
1709 | - *.c) ;; | |
1710 | - *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; | |
1711 | - esac | |
1712 | - done | |
1713 | -else | |
1714 | - { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } | |
1715 | -fi | |
1716 | -rm -f conftest* | |
1717 | -fi | |
1718 | - | |
1719 | -echo "$ac_t""$ac_cv_objext" 1>&6 | |
1720 | -OBJEXT=$ac_cv_objext | |
1721 | -ac_objext=$ac_cv_objext | |
1402 | +int main() { | |
1403 | +return __MINGW32__; | |
1404 | +; return 0; } | |
1405 | +EOF | |
1406 | +if { (eval echo configure:1407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1407 | + rm -rf conftest* | |
1408 | + ac_cv_mingw32=yes | |
1409 | +else | |
1410 | + echo "configure: failed program was:" >&5 | |
1411 | + cat conftest.$ac_ext >&5 | |
1412 | + rm -rf conftest* | |
1413 | + ac_cv_mingw32=no | |
1414 | +fi | |
1415 | +rm -f conftest* | |
1416 | +rm -f conftest* | |
1417 | +fi | |
1722 | 1418 | |
1419 | +echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
1420 | +MINGW32= | |
1421 | +test "$ac_cv_mingw32" = yes && MINGW32=yes | |
1723 | 1422 | |
1724 | 1423 | |
1725 | 1424 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
1726 | -echo "configure:1727: checking for executable suffix" >&5 | |
1425 | +echo "configure:1426: checking for executable suffix" >&5 | |
1727 | 1426 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
1728 | 1427 | echo $ac_n "(cached) $ac_c" 1>&6 |
1729 | 1428 | else |
@@ -1733,10 +1432,10 @@ else | ||
1733 | 1432 | rm -f conftest* |
1734 | 1433 | echo 'int main () { return 0; }' > conftest.$ac_ext |
1735 | 1434 | ac_cv_exeext= |
1736 | - if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | |
1435 | + if { (eval echo configure:1436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | |
1737 | 1436 | for file in conftest.*; do |
1738 | 1437 | case $file in |
1739 | - *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
1438 | + *.c | *.C | *.o | *.obj | *.ilk | *.pdb) ;; | |
1740 | 1439 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
1741 | 1440 | esac |
1742 | 1441 | done |
@@ -1753,2567 +1452,237 @@ test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | ||
1753 | 1452 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
1754 | 1453 | ac_exeext=$EXEEXT |
1755 | 1454 | |
1756 | -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
1757 | - | |
1758 | -# Only perform the check for file, if the check method requires it | |
1759 | -case "$deplibs_check_method" in | |
1760 | -file_magic*) | |
1761 | - if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
1762 | - echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 | |
1763 | -echo "configure:1764: checking for ${ac_tool_prefix}file" >&5 | |
1764 | -if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then | |
1765 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
1766 | -else | |
1767 | - case "$MAGIC_CMD" in | |
1768 | - /*) | |
1769 | - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
1770 | - ;; | |
1771 | - ?:/*) | |
1772 | - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
1773 | - ;; | |
1774 | - *) | |
1775 | - ac_save_MAGIC_CMD="$MAGIC_CMD" | |
1776 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1777 | - ac_dummy="/usr/bin:$PATH" | |
1778 | - for ac_dir in $ac_dummy; do | |
1779 | - test -z "$ac_dir" && ac_dir=. | |
1780 | - if test -f $ac_dir/${ac_tool_prefix}file; then | |
1781 | - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
1782 | - if test -n "$file_magic_test_file"; then | |
1783 | - case "$deplibs_check_method" in | |
1784 | - "file_magic "*) | |
1785 | - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
1786 | - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
1787 | - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
1788 | - egrep "$file_magic_regex" > /dev/null; then | |
1789 | - : | |
1790 | - else | |
1791 | - cat <<EOF 1>&2 | |
1792 | - | |
1793 | -*** Warning: the command libtool uses to detect shared libraries, | |
1794 | -*** $file_magic_cmd, produces output that libtool cannot recognize. | |
1795 | -*** The result is that libtool may fail to recognize shared libraries | |
1796 | -*** as such. This will affect the creation of libtool libraries that | |
1797 | -*** depend on shared libraries, but programs linked with such libtool | |
1798 | -*** libraries will work regardless of this problem. Nevertheless, you | |
1799 | -*** may want to report the problem to your system manager and/or to | |
1800 | -*** bug-libtool@gnu.org | |
1801 | - | |
1802 | -EOF | |
1803 | - fi ;; | |
1804 | - esac | |
1805 | - fi | |
1806 | - break | |
1807 | - fi | |
1808 | - done | |
1809 | - IFS="$ac_save_ifs" | |
1810 | - MAGIC_CMD="$ac_save_MAGIC_CMD" | |
1811 | - ;; | |
1812 | -esac | |
1813 | -fi | |
1814 | - | |
1815 | -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
1816 | -if test -n "$MAGIC_CMD"; then | |
1817 | - echo "$ac_t""$MAGIC_CMD" 1>&6 | |
1818 | -else | |
1819 | - echo "$ac_t""no" 1>&6 | |
1820 | -fi | |
1821 | - | |
1822 | -if test -z "$lt_cv_path_MAGIC_CMD"; then | |
1823 | - if test -n "$ac_tool_prefix"; then | |
1824 | - echo $ac_n "checking for file""... $ac_c" 1>&6 | |
1825 | -echo "configure:1826: checking for file" >&5 | |
1826 | -if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then | |
1827 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
1828 | -else | |
1829 | - case "$MAGIC_CMD" in | |
1830 | - /*) | |
1831 | - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
1832 | - ;; | |
1833 | - ?:/*) | |
1834 | - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
1835 | - ;; | |
1836 | - *) | |
1837 | - ac_save_MAGIC_CMD="$MAGIC_CMD" | |
1838 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1839 | - ac_dummy="/usr/bin:$PATH" | |
1840 | - for ac_dir in $ac_dummy; do | |
1841 | - test -z "$ac_dir" && ac_dir=. | |
1842 | - if test -f $ac_dir/file; then | |
1843 | - lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
1844 | - if test -n "$file_magic_test_file"; then | |
1845 | - case "$deplibs_check_method" in | |
1846 | - "file_magic "*) | |
1847 | - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
1848 | - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
1849 | - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
1850 | - egrep "$file_magic_regex" > /dev/null; then | |
1851 | - : | |
1852 | - else | |
1853 | - cat <<EOF 1>&2 | |
1854 | - | |
1855 | -*** Warning: the command libtool uses to detect shared libraries, | |
1856 | -*** $file_magic_cmd, produces output that libtool cannot recognize. | |
1857 | -*** The result is that libtool may fail to recognize shared libraries | |
1858 | -*** as such. This will affect the creation of libtool libraries that | |
1859 | -*** depend on shared libraries, but programs linked with such libtool | |
1860 | -*** libraries will work regardless of this problem. Nevertheless, you | |
1861 | -*** may want to report the problem to your system manager and/or to | |
1862 | -*** bug-libtool@gnu.org | |
1863 | - | |
1864 | -EOF | |
1865 | - fi ;; | |
1866 | - esac | |
1867 | - fi | |
1868 | - break | |
1869 | - fi | |
1870 | - done | |
1871 | - IFS="$ac_save_ifs" | |
1872 | - MAGIC_CMD="$ac_save_MAGIC_CMD" | |
1873 | - ;; | |
1874 | -esac | |
1875 | -fi | |
1876 | - | |
1877 | -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
1878 | -if test -n "$MAGIC_CMD"; then | |
1879 | - echo "$ac_t""$MAGIC_CMD" 1>&6 | |
1880 | -else | |
1881 | - echo "$ac_t""no" 1>&6 | |
1882 | -fi | |
1883 | - | |
1884 | - else | |
1885 | - MAGIC_CMD=: | |
1886 | - fi | |
1887 | -fi | |
1888 | - | |
1889 | - fi | |
1890 | - ;; | |
1891 | -esac | |
1892 | - | |
1893 | -# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1894 | -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
1895 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1896 | -echo "configure:1897: checking for $ac_word" >&5 | |
1897 | -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
1898 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
1899 | -else | |
1900 | - if test -n "$RANLIB"; then | |
1901 | - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1902 | -else | |
1903 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1904 | - ac_dummy="$PATH" | |
1905 | - for ac_dir in $ac_dummy; do | |
1906 | - test -z "$ac_dir" && ac_dir=. | |
1907 | - if test -f $ac_dir/$ac_word; then | |
1908 | - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
1909 | - break | |
1910 | - fi | |
1911 | - done | |
1912 | - IFS="$ac_save_ifs" | |
1913 | -fi | |
1914 | -fi | |
1915 | -RANLIB="$ac_cv_prog_RANLIB" | |
1916 | -if test -n "$RANLIB"; then | |
1917 | - echo "$ac_t""$RANLIB" 1>&6 | |
1918 | -else | |
1919 | - echo "$ac_t""no" 1>&6 | |
1920 | -fi | |
1921 | - | |
1922 | 1455 | |
1923 | -if test -z "$ac_cv_prog_RANLIB"; then | |
1924 | -if test -n "$ac_tool_prefix"; then | |
1925 | - # Extract the first word of "ranlib", so it can be a program name with args. | |
1926 | -set dummy ranlib; ac_word=$2 | |
1927 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1928 | -echo "configure:1929: checking for $ac_word" >&5 | |
1929 | -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
1930 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
1931 | -else | |
1932 | - if test -n "$RANLIB"; then | |
1933 | - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
1934 | -else | |
1935 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1936 | - ac_dummy="$PATH" | |
1937 | - for ac_dir in $ac_dummy; do | |
1938 | - test -z "$ac_dir" && ac_dir=. | |
1939 | - if test -f $ac_dir/$ac_word; then | |
1940 | - ac_cv_prog_RANLIB="ranlib" | |
1941 | - break | |
1942 | - fi | |
1943 | - done | |
1944 | - IFS="$ac_save_ifs" | |
1945 | - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
1946 | -fi | |
1947 | -fi | |
1948 | -RANLIB="$ac_cv_prog_RANLIB" | |
1949 | -if test -n "$RANLIB"; then | |
1950 | - echo "$ac_t""$RANLIB" 1>&6 | |
1951 | -else | |
1952 | - echo "$ac_t""no" 1>&6 | |
1953 | -fi | |
1456 | +host64=false | |
1457 | +target64=false | |
1954 | 1458 | |
1955 | -else | |
1956 | - RANLIB=":" | |
1957 | -fi | |
1958 | -fi | |
1459 | +# host stuff: | |
1959 | 1460 | |
1960 | -# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1961 | -set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1461 | +# Extract the first word of "gcc", so it can be a program name with args. | |
1462 | +set dummy gcc; ac_word=$2 | |
1962 | 1463 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1963 | -echo "configure:1964: checking for $ac_word" >&5 | |
1964 | -if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
1464 | +echo "configure:1465: checking for $ac_word" >&5 | |
1465 | +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
1965 | 1466 | echo $ac_n "(cached) $ac_c" 1>&6 |
1966 | 1467 | else |
1967 | - if test -n "$STRIP"; then | |
1968 | - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1468 | + if test -n "$CC"; then | |
1469 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
1969 | 1470 | else |
1970 | 1471 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1971 | 1472 | ac_dummy="$PATH" |
1972 | 1473 | for ac_dir in $ac_dummy; do |
1973 | 1474 | test -z "$ac_dir" && ac_dir=. |
1974 | 1475 | if test -f $ac_dir/$ac_word; then |
1975 | - ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1476 | + ac_cv_prog_CC="gcc" | |
1976 | 1477 | break |
1977 | 1478 | fi |
1978 | 1479 | done |
1979 | 1480 | IFS="$ac_save_ifs" |
1980 | 1481 | fi |
1981 | 1482 | fi |
1982 | -STRIP="$ac_cv_prog_STRIP" | |
1983 | -if test -n "$STRIP"; then | |
1984 | - echo "$ac_t""$STRIP" 1>&6 | |
1483 | +CC="$ac_cv_prog_CC" | |
1484 | +if test -n "$CC"; then | |
1485 | + echo "$ac_t""$CC" 1>&6 | |
1985 | 1486 | else |
1986 | 1487 | echo "$ac_t""no" 1>&6 |
1987 | 1488 | fi |
1988 | 1489 | |
1989 | - | |
1990 | -if test -z "$ac_cv_prog_STRIP"; then | |
1991 | -if test -n "$ac_tool_prefix"; then | |
1992 | - # Extract the first word of "strip", so it can be a program name with args. | |
1993 | -set dummy strip; ac_word=$2 | |
1490 | +if test -z "$CC"; then | |
1491 | + # Extract the first word of "cc", so it can be a program name with args. | |
1492 | +set dummy cc; ac_word=$2 | |
1994 | 1493 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1995 | -echo "configure:1996: checking for $ac_word" >&5 | |
1996 | -if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
1494 | +echo "configure:1495: checking for $ac_word" >&5 | |
1495 | +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
1997 | 1496 | echo $ac_n "(cached) $ac_c" 1>&6 |
1998 | 1497 | else |
1999 | - if test -n "$STRIP"; then | |
2000 | - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1498 | + if test -n "$CC"; then | |
1499 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
2001 | 1500 | else |
2002 | 1501 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1502 | + ac_prog_rejected=no | |
2003 | 1503 | ac_dummy="$PATH" |
2004 | 1504 | for ac_dir in $ac_dummy; do |
2005 | 1505 | test -z "$ac_dir" && ac_dir=. |
2006 | 1506 | if test -f $ac_dir/$ac_word; then |
2007 | - ac_cv_prog_STRIP="strip" | |
2008 | - break | |
2009 | - fi | |
2010 | - done | |
2011 | - IFS="$ac_save_ifs" | |
2012 | - test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | |
2013 | -fi | |
2014 | -fi | |
2015 | -STRIP="$ac_cv_prog_STRIP" | |
2016 | -if test -n "$STRIP"; then | |
2017 | - echo "$ac_t""$STRIP" 1>&6 | |
2018 | -else | |
2019 | - echo "$ac_t""no" 1>&6 | |
2020 | -fi | |
2021 | - | |
2022 | -else | |
2023 | - STRIP=":" | |
2024 | -fi | |
2025 | -fi | |
2026 | - | |
2027 | - | |
2028 | -# Check for any special flags to pass to ltconfig. | |
2029 | -libtool_flags="--cache-file=$cache_file" | |
2030 | -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
2031 | -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
2032 | -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
2033 | -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" | |
2034 | -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
2035 | - | |
2036 | - | |
2037 | -# Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
2038 | -if test "${enable_libtool_lock+set}" = set; then | |
2039 | - enableval="$enable_libtool_lock" | |
2040 | - : | |
2041 | -fi | |
2042 | - | |
2043 | -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
2044 | -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
2045 | - | |
2046 | -# Check whether --with-pic or --without-pic was given. | |
2047 | -if test "${with_pic+set}" = set; then | |
2048 | - withval="$with_pic" | |
2049 | - pic_mode="$withval" | |
2050 | -else | |
2051 | - pic_mode=default | |
2052 | -fi | |
2053 | - | |
2054 | -test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
2055 | -test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
2056 | - | |
2057 | -# Some flags need to be propagated to the compiler or linker for good | |
2058 | -# libtool support. | |
2059 | -case "$host" in | |
2060 | -*-*-irix6*) | |
2061 | - # Find out which ABI we are using. | |
2062 | - echo '#line 2063 "configure"' > conftest.$ac_ext | |
2063 | - if { (eval echo configure:2064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2064 | - case "`/usr/bin/file conftest.o`" in | |
2065 | - *32-bit*) | |
2066 | - LD="${LD-ld} -32" | |
2067 | - ;; | |
2068 | - *N32*) | |
2069 | - LD="${LD-ld} -n32" | |
2070 | - ;; | |
2071 | - *64-bit*) | |
2072 | - LD="${LD-ld} -64" | |
2073 | - ;; | |
2074 | - esac | |
2075 | - fi | |
2076 | - rm -rf conftest* | |
2077 | - ;; | |
2078 | - | |
2079 | -*-*-sco3.2v5*) | |
2080 | - # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
2081 | - SAVE_CFLAGS="$CFLAGS" | |
2082 | - CFLAGS="$CFLAGS -belf" | |
2083 | - echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | |
2084 | -echo "configure:2085: checking whether the C compiler needs -belf" >&5 | |
2085 | -if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then | |
2086 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2087 | -else | |
2088 | - | |
2089 | - ac_ext=c | |
2090 | -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2091 | -ac_cpp='$CPP $CPPFLAGS' | |
2092 | -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2093 | -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2094 | -cross_compiling=$ac_cv_prog_cc_cross | |
2095 | - | |
2096 | - cat > conftest.$ac_ext <<EOF | |
2097 | -#line 2098 "configure" | |
2098 | -#include "confdefs.h" | |
2099 | - | |
2100 | -int main() { | |
2101 | - | |
2102 | -; return 0; } | |
2103 | -EOF | |
2104 | -if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2105 | - rm -rf conftest* | |
2106 | - lt_cv_cc_needs_belf=yes | |
2107 | -else | |
2108 | - echo "configure: failed program was:" >&5 | |
2109 | - cat conftest.$ac_ext >&5 | |
2110 | - rm -rf conftest* | |
2111 | - lt_cv_cc_needs_belf=no | |
2112 | -fi | |
2113 | -rm -f conftest* | |
2114 | - ac_ext=c | |
2115 | -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2116 | -ac_cpp='$CPP $CPPFLAGS' | |
2117 | -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2118 | -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2119 | -cross_compiling=$ac_cv_prog_cc_cross | |
2120 | - | |
2121 | -fi | |
2122 | - | |
2123 | -echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
2124 | - if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
2125 | - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
2126 | - CFLAGS="$SAVE_CFLAGS" | |
2127 | - fi | |
2128 | - ;; | |
2129 | - | |
2130 | - | |
2131 | -esac | |
2132 | - | |
2133 | - | |
2134 | -# Save cache, so that ltconfig can load it | |
2135 | -cat > confcache <<\EOF | |
2136 | -# This file is a shell script that caches the results of configure | |
2137 | -# tests run on this system so they can be shared between configure | |
2138 | -# scripts and configure runs. It is not useful on other systems. | |
2139 | -# If it contains results you don't want to keep, you may remove or edit it. | |
2140 | -# | |
2141 | -# By default, configure uses ./config.cache as the cache file, | |
2142 | -# creating it if it does not exist already. You can give configure | |
2143 | -# the --cache-file=FILE option to use a different cache file; that is | |
2144 | -# what configure does when it calls configure scripts in | |
2145 | -# subdirectories, so they share the cache. | |
2146 | -# Giving --cache-file=/dev/null disables caching, for debugging configure. | |
2147 | -# config.status only pays attention to the cache file if you give it the | |
2148 | -# --recheck option to rerun configure. | |
2149 | -# | |
2150 | -EOF | |
2151 | -# The following way of writing the cache mishandles newlines in values, | |
2152 | -# but we know of no workaround that is simple, portable, and efficient. | |
2153 | -# So, don't put newlines in cache variables' values. | |
2154 | -# Ultrix sh set writes to stderr and can't be redirected directly, | |
2155 | -# and sets the high bit in the cache file unless we assign to the vars. | |
2156 | -(set) 2>&1 | | |
2157 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2158 | - *ac_space=\ *) | |
2159 | - # `set' does not quote correctly, so add quotes (double-quote substitution | |
2160 | - # turns \\\\ into \\, and sed turns \\ into \). | |
2161 | - sed -n \ | |
2162 | - -e "s/'/'\\\\''/g" \ | |
2163 | - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
2164 | - ;; | |
2165 | - *) | |
2166 | - # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2167 | - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
2168 | - ;; | |
2169 | - esac >> confcache | |
2170 | -if cmp -s $cache_file confcache; then | |
2171 | - : | |
2172 | -else | |
2173 | - if test -w $cache_file; then | |
2174 | - echo "updating cache $cache_file" | |
2175 | - cat confcache > $cache_file | |
2176 | - else | |
2177 | - echo "not updating unwritable cache $cache_file" | |
2178 | - fi | |
2179 | -fi | |
2180 | -rm -f confcache | |
2181 | - | |
2182 | - | |
2183 | -# Actually configure libtool. ac_aux_dir is where install-sh is found. | |
2184 | -AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
2185 | -MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
2186 | -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
2187 | -AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
2188 | -objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
2189 | -deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
2190 | -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | |
2191 | -$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ | |
2192 | -|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } | |
2193 | - | |
2194 | -# Reload cache, that may have been modified by ltconfig | |
2195 | -if test -r "$cache_file"; then | |
2196 | - echo "loading cache $cache_file" | |
2197 | - . $cache_file | |
2198 | -else | |
2199 | - echo "creating cache $cache_file" | |
2200 | - > $cache_file | |
2201 | -fi | |
2202 | - | |
2203 | - | |
2204 | -# This can be used to rebuild libtool when needed | |
2205 | -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" | |
2206 | - | |
2207 | -# Always use our own libtool. | |
2208 | -LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
2209 | - | |
2210 | -# Redirect the config.log output again, so that the ltconfig log is not | |
2211 | -# clobbered by the next message. | |
2212 | -exec 5>>./config.log | |
2213 | - | |
2214 | - | |
2215 | - | |
2216 | - | |
2217 | - | |
2218 | - | |
2219 | - | |
2220 | - | |
2221 | -# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. | |
2222 | -if test "${enable_64_bit_bfd+set}" = set; then | |
2223 | - enableval="$enable_64_bit_bfd" | |
2224 | - case "${enableval}" in | |
2225 | - yes) want64=true ;; | |
2226 | - no) want64=false ;; | |
2227 | - *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;; | |
2228 | -esac | |
2229 | -else | |
2230 | - want64=false | |
2231 | -fi | |
2232 | -# Check whether --enable-targets or --disable-targets was given. | |
2233 | -if test "${enable_targets+set}" = set; then | |
2234 | - enableval="$enable_targets" | |
2235 | - case "${enableval}" in | |
2236 | - yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; } | |
2237 | - ;; | |
2238 | - no) enable_targets= ;; | |
2239 | - *) enable_targets=$enableval ;; | |
2240 | -esac | |
2241 | -fi | |
2242 | -# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. | |
2243 | -if test "${enable_commonbfdlib+set}" = set; then | |
2244 | - enableval="$enable_commonbfdlib" | |
2245 | - case "${enableval}" in | |
2246 | - yes) commonbfdlib=true ;; | |
2247 | - no) commonbfdlib=false ;; | |
2248 | - *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;; | |
2249 | -esac | |
2250 | -fi | |
2251 | -# Check whether --with-mmap or --without-mmap was given. | |
2252 | -if test "${with_mmap+set}" = set; then | |
2253 | - withval="$with_mmap" | |
2254 | - case "${withval}" in | |
2255 | - yes) want_mmap=true ;; | |
2256 | - no) want_mmap=false ;; | |
2257 | - *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;; | |
2258 | -esac | |
2259 | -else | |
2260 | - want_mmap=false | |
2261 | -fi | |
2262 | - | |
2263 | -build_warnings="-W -Wall" | |
2264 | -# Check whether --enable-build-warnings or --disable-build-warnings was given. | |
2265 | -if test "${enable_build_warnings+set}" = set; then | |
2266 | - enableval="$enable_build_warnings" | |
2267 | - case "${enableval}" in | |
2268 | - yes) ;; | |
2269 | - no) build_warnings="-w";; | |
2270 | - ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
2271 | - build_warnings="${build_warnings} ${t}";; | |
2272 | - *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
2273 | - build_warnings="${t} ${build_warnings}";; | |
2274 | - *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
2275 | -esac | |
2276 | -if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
2277 | - echo "Setting warning flags = $build_warnings" 6>&1 | |
2278 | -fi | |
2279 | -fi | |
2280 | -WARN_CFLAGS="" | |
2281 | -if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then | |
2282 | - WARN_CFLAGS="${build_warnings}" | |
2283 | -fi | |
2284 | - | |
2285 | - | |
2286 | - | |
2287 | - | |
2288 | - | |
2289 | - | |
2290 | -if test -z "$target" ; then | |
2291 | - { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; } | |
2292 | -fi | |
2293 | -if test "$program_transform_name" = s,x,x,; then | |
2294 | - program_transform_name= | |
2295 | -else | |
2296 | - # Double any \ or $. echo might interpret backslashes. | |
2297 | - cat <<\EOF_SED > conftestsed | |
2298 | -s,\\,\\\\,g; s,\$,$$,g | |
2299 | -EOF_SED | |
2300 | - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
2301 | - rm -f conftestsed | |
2302 | -fi | |
2303 | -test "$program_prefix" != NONE && | |
2304 | - program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
2305 | -# Use a double $ so make ignores it. | |
2306 | -test "$program_suffix" != NONE && | |
2307 | - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
2308 | - | |
2309 | -# sed with no file args requires a program. | |
2310 | -test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
2311 | - | |
2312 | - | |
2313 | -echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
2314 | -echo "configure:2315: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2315 | - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
2316 | -if test "${enable_maintainer_mode+set}" = set; then | |
2317 | - enableval="$enable_maintainer_mode" | |
2318 | - USE_MAINTAINER_MODE=$enableval | |
2319 | -else | |
2320 | - USE_MAINTAINER_MODE=no | |
2321 | -fi | |
2322 | - | |
2323 | - echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
2324 | - | |
2325 | - | |
2326 | -if test $USE_MAINTAINER_MODE = yes; then | |
2327 | - MAINTAINER_MODE_TRUE= | |
2328 | - MAINTAINER_MODE_FALSE='#' | |
2329 | -else | |
2330 | - MAINTAINER_MODE_TRUE='#' | |
2331 | - MAINTAINER_MODE_FALSE= | |
2332 | -fi | |
2333 | - MAINT=$MAINTAINER_MODE_TRUE | |
2334 | - | |
2335 | - | |
2336 | - | |
2337 | - | |
2338 | -echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
2339 | -echo "configure:2340: checking for executable suffix" >&5 | |
2340 | -if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | |
2341 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2342 | -else | |
2343 | - if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
2344 | - ac_cv_exeext=.exe | |
2345 | -else | |
2346 | - rm -f conftest* | |
2347 | - echo 'int main () { return 0; }' > conftest.$ac_ext | |
2348 | - ac_cv_exeext= | |
2349 | - if { (eval echo configure:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | |
2350 | - for file in conftest.*; do | |
2351 | - case $file in | |
2352 | - *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
2353 | - *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | |
2354 | - esac | |
2355 | - done | |
2356 | - else | |
2357 | - { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
2358 | - fi | |
2359 | - rm -f conftest* | |
2360 | - test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
2361 | -fi | |
2362 | -fi | |
2363 | - | |
2364 | -EXEEXT="" | |
2365 | -test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
2366 | -echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
2367 | -ac_exeext=$EXEEXT | |
2368 | - | |
2369 | - | |
2370 | -host64=false | |
2371 | -target64=false | |
2372 | - | |
2373 | -# host stuff: | |
2374 | - | |
2375 | -# Extract the first word of "gcc", so it can be a program name with args. | |
2376 | -set dummy gcc; ac_word=$2 | |
2377 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2378 | -echo "configure:2379: checking for $ac_word" >&5 | |
2379 | -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
2380 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2381 | -else | |
2382 | - if test -n "$CC"; then | |
2383 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
2384 | -else | |
2385 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2386 | - ac_dummy="$PATH" | |
2387 | - for ac_dir in $ac_dummy; do | |
2388 | - test -z "$ac_dir" && ac_dir=. | |
2389 | - if test -f $ac_dir/$ac_word; then | |
2390 | - ac_cv_prog_CC="gcc" | |
2391 | - break | |
2392 | - fi | |
2393 | - done | |
2394 | - IFS="$ac_save_ifs" | |
2395 | -fi | |
2396 | -fi | |
2397 | -CC="$ac_cv_prog_CC" | |
2398 | -if test -n "$CC"; then | |
2399 | - echo "$ac_t""$CC" 1>&6 | |
2400 | -else | |
2401 | - echo "$ac_t""no" 1>&6 | |
2402 | -fi | |
2403 | - | |
2404 | -if test -z "$CC"; then | |
2405 | - # Extract the first word of "cc", so it can be a program name with args. | |
2406 | -set dummy cc; ac_word=$2 | |
2407 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2408 | -echo "configure:2409: checking for $ac_word" >&5 | |
2409 | -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
2410 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2411 | -else | |
2412 | - if test -n "$CC"; then | |
2413 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
2414 | -else | |
2415 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2416 | - ac_prog_rejected=no | |
2417 | - ac_dummy="$PATH" | |
2418 | - for ac_dir in $ac_dummy; do | |
2419 | - test -z "$ac_dir" && ac_dir=. | |
2420 | - if test -f $ac_dir/$ac_word; then | |
2421 | - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
2422 | - ac_prog_rejected=yes | |
2423 | - continue | |
2424 | - fi | |
2425 | - ac_cv_prog_CC="cc" | |
2426 | - break | |
2427 | - fi | |
2428 | - done | |
2429 | - IFS="$ac_save_ifs" | |
2430 | -if test $ac_prog_rejected = yes; then | |
2431 | - # We found a bogon in the path, so make sure we never use it. | |
2432 | - set dummy $ac_cv_prog_CC | |
2433 | - shift | |
2434 | - if test $# -gt 0; then | |
2435 | - # We chose a different compiler from the bogus one. | |
2436 | - # However, it has the same basename, so the bogon will be chosen | |
2437 | - # first if we set CC to just the basename; use the full file name. | |
2438 | - shift | |
2439 | - set dummy "$ac_dir/$ac_word" "$@" | |
2440 | - shift | |
2441 | - ac_cv_prog_CC="$@" | |
2442 | - fi | |
2443 | -fi | |
2444 | -fi | |
2445 | -fi | |
2446 | -CC="$ac_cv_prog_CC" | |
2447 | -if test -n "$CC"; then | |
2448 | - echo "$ac_t""$CC" 1>&6 | |
2449 | -else | |
2450 | - echo "$ac_t""no" 1>&6 | |
2451 | -fi | |
2452 | - | |
2453 | - if test -z "$CC"; then | |
2454 | - case "`uname -s`" in | |
2455 | - *win32* | *WIN32*) | |
2456 | - # Extract the first word of "cl", so it can be a program name with args. | |
2457 | -set dummy cl; ac_word=$2 | |
2458 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2459 | -echo "configure:2460: checking for $ac_word" >&5 | |
2460 | -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
2461 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2462 | -else | |
2463 | - if test -n "$CC"; then | |
2464 | - ac_cv_prog_CC="$CC" # Let the user override the test. | |
2465 | -else | |
2466 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2467 | - ac_dummy="$PATH" | |
2468 | - for ac_dir in $ac_dummy; do | |
2469 | - test -z "$ac_dir" && ac_dir=. | |
2470 | - if test -f $ac_dir/$ac_word; then | |
2471 | - ac_cv_prog_CC="cl" | |
2472 | - break | |
2473 | - fi | |
2474 | - done | |
2475 | - IFS="$ac_save_ifs" | |
2476 | -fi | |
2477 | -fi | |
2478 | -CC="$ac_cv_prog_CC" | |
2479 | -if test -n "$CC"; then | |
2480 | - echo "$ac_t""$CC" 1>&6 | |
2481 | -else | |
2482 | - echo "$ac_t""no" 1>&6 | |
2483 | -fi | |
2484 | - ;; | |
2485 | - esac | |
2486 | - fi | |
2487 | - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
2488 | -fi | |
2489 | - | |
2490 | -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
2491 | -echo "configure:2492: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
2492 | - | |
2493 | -ac_ext=c | |
2494 | -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2495 | -ac_cpp='$CPP $CPPFLAGS' | |
2496 | -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2497 | -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2498 | -cross_compiling=$ac_cv_prog_cc_cross | |
2499 | - | |
2500 | -cat > conftest.$ac_ext << EOF | |
2501 | - | |
2502 | -#line 2503 "configure" | |
2503 | -#include "confdefs.h" | |
2504 | - | |
2505 | -main(){return(0);} | |
2506 | -EOF | |
2507 | -if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2508 | - ac_cv_prog_cc_works=yes | |
2509 | - # If we can't run a trivial program, we are probably using a cross compiler. | |
2510 | - if (./conftest; exit) 2>/dev/null; then | |
2511 | - ac_cv_prog_cc_cross=no | |
2512 | - else | |
2513 | - ac_cv_prog_cc_cross=yes | |
2514 | - fi | |
2515 | -else | |
2516 | - echo "configure: failed program was:" >&5 | |
2517 | - cat conftest.$ac_ext >&5 | |
2518 | - ac_cv_prog_cc_works=no | |
2519 | -fi | |
2520 | -rm -fr conftest* | |
2521 | -ac_ext=c | |
2522 | -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2523 | -ac_cpp='$CPP $CPPFLAGS' | |
2524 | -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2525 | -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2526 | -cross_compiling=$ac_cv_prog_cc_cross | |
2527 | - | |
2528 | -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
2529 | -if test $ac_cv_prog_cc_works = no; then | |
2530 | - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
2531 | -fi | |
2532 | -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
2533 | -echo "configure:2534: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
2534 | -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
2535 | -cross_compiling=$ac_cv_prog_cc_cross | |
2536 | - | |
2537 | -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
2538 | -echo "configure:2539: checking whether we are using GNU C" >&5 | |
2539 | -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
2540 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2541 | -else | |
2542 | - cat > conftest.c <<EOF | |
2543 | -#ifdef __GNUC__ | |
2544 | - yes; | |
2545 | -#endif | |
2546 | -EOF | |
2547 | -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
2548 | - ac_cv_prog_gcc=yes | |
2549 | -else | |
2550 | - ac_cv_prog_gcc=no | |
2551 | -fi | |
2552 | -fi | |
2553 | - | |
2554 | -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
2555 | - | |
2556 | -if test $ac_cv_prog_gcc = yes; then | |
2557 | - GCC=yes | |
2558 | -else | |
2559 | - GCC= | |
2560 | -fi | |
2561 | - | |
2562 | -ac_test_CFLAGS="${CFLAGS+set}" | |
2563 | -ac_save_CFLAGS="$CFLAGS" | |
2564 | -CFLAGS= | |
2565 | -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
2566 | -echo "configure:2567: checking whether ${CC-cc} accepts -g" >&5 | |
2567 | -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
2568 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2569 | -else | |
2570 | - echo 'void f(){}' > conftest.c | |
2571 | -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
2572 | - ac_cv_prog_cc_g=yes | |
2573 | -else | |
2574 | - ac_cv_prog_cc_g=no | |
2575 | -fi | |
2576 | -rm -f conftest* | |
2577 | - | |
2578 | -fi | |
2579 | - | |
2580 | -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
2581 | -if test "$ac_test_CFLAGS" = set; then | |
2582 | - CFLAGS="$ac_save_CFLAGS" | |
2583 | -elif test $ac_cv_prog_cc_g = yes; then | |
2584 | - if test "$GCC" = yes; then | |
2585 | - CFLAGS="-g -O2" | |
2586 | - else | |
2587 | - CFLAGS="-g" | |
2588 | - fi | |
2589 | -else | |
2590 | - if test "$GCC" = yes; then | |
2591 | - CFLAGS="-O2" | |
2592 | - else | |
2593 | - CFLAGS= | |
2594 | - fi | |
2595 | -fi | |
2596 | - | |
2597 | - | |
2598 | -ALL_LINGUAS= | |
2599 | -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
2600 | -echo "configure:2601: checking how to run the C preprocessor" >&5 | |
2601 | -# On Suns, sometimes $CPP names a directory. | |
2602 | -if test -n "$CPP" && test -d "$CPP"; then | |
2603 | - CPP= | |
2604 | -fi | |
2605 | -if test -z "$CPP"; then | |
2606 | -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
2607 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2608 | -else | |
2609 | - # This must be in double quotes, not single quotes, because CPP may get | |
2610 | - # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2611 | - CPP="${CC-cc} -E" | |
2612 | - # On the NeXT, cc -E runs the code through the compiler's parser, | |
2613 | - # not just through cpp. | |
2614 | - cat > conftest.$ac_ext <<EOF | |
2615 | -#line 2616 "configure" | |
2616 | -#include "confdefs.h" | |
2617 | -#include <assert.h> | |
2618 | -Syntax Error | |
2619 | -EOF | |
2620 | -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2621 | -{ (eval echo configure:2622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2622 | -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
2623 | -if test -z "$ac_err"; then | |
2624 | - : | |
2625 | -else | |
2626 | - echo "$ac_err" >&5 | |
2627 | - echo "configure: failed program was:" >&5 | |
2628 | - cat conftest.$ac_ext >&5 | |
2629 | - rm -rf conftest* | |
2630 | - CPP="${CC-cc} -E -traditional-cpp" | |
2631 | - cat > conftest.$ac_ext <<EOF | |
2632 | -#line 2633 "configure" | |
2633 | -#include "confdefs.h" | |
2634 | -#include <assert.h> | |
2635 | -Syntax Error | |
2636 | -EOF | |
2637 | -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2638 | -{ (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2639 | -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
2640 | -if test -z "$ac_err"; then | |
2641 | - : | |
2642 | -else | |
2643 | - echo "$ac_err" >&5 | |
2644 | - echo "configure: failed program was:" >&5 | |
2645 | - cat conftest.$ac_ext >&5 | |
2646 | - rm -rf conftest* | |
2647 | - CPP="${CC-cc} -nologo -E" | |
2648 | - cat > conftest.$ac_ext <<EOF | |
2649 | -#line 2650 "configure" | |
2650 | -#include "confdefs.h" | |
2651 | -#include <assert.h> | |
2652 | -Syntax Error | |
2653 | -EOF | |
2654 | -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2655 | -{ (eval echo configure:2656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2656 | -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
2657 | -if test -z "$ac_err"; then | |
2658 | - : | |
2659 | -else | |
2660 | - echo "$ac_err" >&5 | |
2661 | - echo "configure: failed program was:" >&5 | |
2662 | - cat conftest.$ac_ext >&5 | |
2663 | - rm -rf conftest* | |
2664 | - CPP=/lib/cpp | |
2665 | -fi | |
2666 | -rm -f conftest* | |
2667 | -fi | |
2668 | -rm -f conftest* | |
2669 | -fi | |
2670 | -rm -f conftest* | |
2671 | - ac_cv_prog_CPP="$CPP" | |
2672 | -fi | |
2673 | - CPP="$ac_cv_prog_CPP" | |
2674 | -else | |
2675 | - ac_cv_prog_CPP="$CPP" | |
2676 | -fi | |
2677 | -echo "$ac_t""$CPP" 1>&6 | |
2678 | - | |
2679 | -# Extract the first word of "ranlib", so it can be a program name with args. | |
2680 | -set dummy ranlib; ac_word=$2 | |
2681 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2682 | -echo "configure:2683: checking for $ac_word" >&5 | |
2683 | -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
2684 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2685 | -else | |
2686 | - if test -n "$RANLIB"; then | |
2687 | - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2688 | -else | |
2689 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2690 | - ac_dummy="$PATH" | |
2691 | - for ac_dir in $ac_dummy; do | |
2692 | - test -z "$ac_dir" && ac_dir=. | |
2693 | - if test -f $ac_dir/$ac_word; then | |
2694 | - ac_cv_prog_RANLIB="ranlib" | |
2695 | - break | |
2696 | - fi | |
2697 | - done | |
2698 | - IFS="$ac_save_ifs" | |
2699 | - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
2700 | -fi | |
2701 | -fi | |
2702 | -RANLIB="$ac_cv_prog_RANLIB" | |
2703 | -if test -n "$RANLIB"; then | |
2704 | - echo "$ac_t""$RANLIB" 1>&6 | |
2705 | -else | |
2706 | - echo "$ac_t""no" 1>&6 | |
2707 | -fi | |
2708 | - | |
2709 | -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
2710 | -echo "configure:2711: checking for ANSI C header files" >&5 | |
2711 | -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | |
2712 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2713 | -else | |
2714 | - cat > conftest.$ac_ext <<EOF | |
2715 | -#line 2716 "configure" | |
2716 | -#include "confdefs.h" | |
2717 | -#include <stdlib.h> | |
2718 | -#include <stdarg.h> | |
2719 | -#include <string.h> | |
2720 | -#include <float.h> | |
2721 | -EOF | |
2722 | -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2723 | -{ (eval echo configure:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2724 | -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
2725 | -if test -z "$ac_err"; then | |
2726 | - rm -rf conftest* | |
2727 | - ac_cv_header_stdc=yes | |
2728 | -else | |
2729 | - echo "$ac_err" >&5 | |
2730 | - echo "configure: failed program was:" >&5 | |
2731 | - cat conftest.$ac_ext >&5 | |
2732 | - rm -rf conftest* | |
2733 | - ac_cv_header_stdc=no | |
2734 | -fi | |
2735 | -rm -f conftest* | |
2736 | - | |
2737 | -if test $ac_cv_header_stdc = yes; then | |
2738 | - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2739 | -cat > conftest.$ac_ext <<EOF | |
2740 | -#line 2741 "configure" | |
2741 | -#include "confdefs.h" | |
2742 | -#include <string.h> | |
2743 | -EOF | |
2744 | -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2745 | - egrep "memchr" >/dev/null 2>&1; then | |
2746 | - : | |
2747 | -else | |
2748 | - rm -rf conftest* | |
2749 | - ac_cv_header_stdc=no | |
2750 | -fi | |
2751 | -rm -f conftest* | |
2752 | - | |
2753 | -fi | |
2754 | - | |
2755 | -if test $ac_cv_header_stdc = yes; then | |
2756 | - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2757 | -cat > conftest.$ac_ext <<EOF | |
2758 | -#line 2759 "configure" | |
2759 | -#include "confdefs.h" | |
2760 | -#include <stdlib.h> | |
2761 | -EOF | |
2762 | -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2763 | - egrep "free" >/dev/null 2>&1; then | |
2764 | - : | |
2765 | -else | |
2766 | - rm -rf conftest* | |
2767 | - ac_cv_header_stdc=no | |
2768 | -fi | |
2769 | -rm -f conftest* | |
2770 | - | |
2771 | -fi | |
2772 | - | |
2773 | -if test $ac_cv_header_stdc = yes; then | |
2774 | - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2775 | -if test "$cross_compiling" = yes; then | |
2776 | - : | |
2777 | -else | |
2778 | - cat > conftest.$ac_ext <<EOF | |
2779 | -#line 2780 "configure" | |
2780 | -#include "confdefs.h" | |
2781 | -#include <ctype.h> | |
2782 | -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2783 | -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2784 | -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2785 | -int main () { int i; for (i = 0; i < 256; i++) | |
2786 | -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2787 | -exit (0); } | |
2788 | - | |
2789 | -EOF | |
2790 | -if { (eval echo configure:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
2791 | -then | |
2792 | - : | |
2793 | -else | |
2794 | - echo "configure: failed program was:" >&5 | |
2795 | - cat conftest.$ac_ext >&5 | |
2796 | - rm -fr conftest* | |
2797 | - ac_cv_header_stdc=no | |
2798 | -fi | |
2799 | -rm -fr conftest* | |
2800 | -fi | |
2801 | - | |
2802 | -fi | |
2803 | -fi | |
2804 | - | |
2805 | -echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2806 | -if test $ac_cv_header_stdc = yes; then | |
2807 | - cat >> confdefs.h <<\EOF | |
2808 | -#define STDC_HEADERS 1 | |
2809 | -EOF | |
2810 | - | |
2811 | -fi | |
2812 | - | |
2813 | -echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
2814 | -echo "configure:2815: checking for working const" >&5 | |
2815 | -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | |
2816 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2817 | -else | |
2818 | - cat > conftest.$ac_ext <<EOF | |
2819 | -#line 2820 "configure" | |
2820 | -#include "confdefs.h" | |
2821 | - | |
2822 | -int main() { | |
2823 | - | |
2824 | -/* Ultrix mips cc rejects this. */ | |
2825 | -typedef int charset[2]; const charset x; | |
2826 | -/* SunOS 4.1.1 cc rejects this. */ | |
2827 | -char const *const *ccp; | |
2828 | -char **p; | |
2829 | -/* NEC SVR4.0.2 mips cc rejects this. */ | |
2830 | -struct point {int x, y;}; | |
2831 | -static struct point const zero = {0,0}; | |
2832 | -/* AIX XL C 1.02.0.0 rejects this. | |
2833 | - It does not let you subtract one const X* pointer from another in an arm | |
2834 | - of an if-expression whose if-part is not a constant expression */ | |
2835 | -const char *g = "string"; | |
2836 | -ccp = &g + (g ? g-g : 0); | |
2837 | -/* HPUX 7.0 cc rejects these. */ | |
2838 | -++ccp; | |
2839 | -p = (char**) ccp; | |
2840 | -ccp = (char const *const *) p; | |
2841 | -{ /* SCO 3.2v4 cc rejects this. */ | |
2842 | - char *t; | |
2843 | - char const *s = 0 ? (char *) 0 : (char const *) 0; | |
2844 | - | |
2845 | - *t++ = 0; | |
2846 | -} | |
2847 | -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
2848 | - int x[] = {25, 17}; | |
2849 | - const int *foo = &x[0]; | |
2850 | - ++foo; | |
2851 | -} | |
2852 | -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
2853 | - typedef const int *iptr; | |
2854 | - iptr p = 0; | |
2855 | - ++p; | |
2856 | -} | |
2857 | -{ /* AIX XL C 1.02.0.0 rejects this saying | |
2858 | - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
2859 | - struct s { int j; const int *ap[3]; }; | |
2860 | - struct s *b; b->j = 5; | |
2861 | -} | |
2862 | -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
2863 | - const int foo = 10; | |
2864 | -} | |
2865 | - | |
2866 | -; return 0; } | |
2867 | -EOF | |
2868 | -if { (eval echo configure:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2869 | - rm -rf conftest* | |
2870 | - ac_cv_c_const=yes | |
2871 | -else | |
2872 | - echo "configure: failed program was:" >&5 | |
2873 | - cat conftest.$ac_ext >&5 | |
2874 | - rm -rf conftest* | |
2875 | - ac_cv_c_const=no | |
2876 | -fi | |
2877 | -rm -f conftest* | |
2878 | -fi | |
2879 | - | |
2880 | -echo "$ac_t""$ac_cv_c_const" 1>&6 | |
2881 | -if test $ac_cv_c_const = no; then | |
2882 | - cat >> confdefs.h <<\EOF | |
2883 | -#define const | |
2884 | -EOF | |
2885 | - | |
2886 | -fi | |
2887 | - | |
2888 | -echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
2889 | -echo "configure:2890: checking for inline" >&5 | |
2890 | -if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
2891 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2892 | -else | |
2893 | - ac_cv_c_inline=no | |
2894 | -for ac_kw in inline __inline__ __inline; do | |
2895 | - cat > conftest.$ac_ext <<EOF | |
2896 | -#line 2897 "configure" | |
2897 | -#include "confdefs.h" | |
2898 | - | |
2899 | -int main() { | |
2900 | -} $ac_kw foo() { | |
2901 | -; return 0; } | |
2902 | -EOF | |
2903 | -if { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2904 | - rm -rf conftest* | |
2905 | - ac_cv_c_inline=$ac_kw; break | |
2906 | -else | |
2907 | - echo "configure: failed program was:" >&5 | |
2908 | - cat conftest.$ac_ext >&5 | |
2909 | -fi | |
2910 | -rm -f conftest* | |
2911 | -done | |
2912 | - | |
2913 | -fi | |
2914 | - | |
2915 | -echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
2916 | -case "$ac_cv_c_inline" in | |
2917 | - inline | yes) ;; | |
2918 | - no) cat >> confdefs.h <<\EOF | |
2919 | -#define inline | |
2920 | -EOF | |
2921 | - ;; | |
2922 | - *) cat >> confdefs.h <<EOF | |
2923 | -#define inline $ac_cv_c_inline | |
2924 | -EOF | |
2925 | - ;; | |
2926 | -esac | |
2927 | - | |
2928 | -echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
2929 | -echo "configure:2930: checking for off_t" >&5 | |
2930 | -if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | |
2931 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2932 | -else | |
2933 | - cat > conftest.$ac_ext <<EOF | |
2934 | -#line 2935 "configure" | |
2935 | -#include "confdefs.h" | |
2936 | -#include <sys/types.h> | |
2937 | -#if STDC_HEADERS | |
2938 | -#include <stdlib.h> | |
2939 | -#include <stddef.h> | |
2940 | -#endif | |
2941 | -EOF | |
2942 | -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2943 | - egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2944 | - rm -rf conftest* | |
2945 | - ac_cv_type_off_t=yes | |
2946 | -else | |
2947 | - rm -rf conftest* | |
2948 | - ac_cv_type_off_t=no | |
2949 | -fi | |
2950 | -rm -f conftest* | |
2951 | - | |
2952 | -fi | |
2953 | -echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
2954 | -if test $ac_cv_type_off_t = no; then | |
2955 | - cat >> confdefs.h <<\EOF | |
2956 | -#define off_t long | |
2957 | -EOF | |
2958 | - | |
2959 | -fi | |
2960 | - | |
2961 | -echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
2962 | -echo "configure:2963: checking for size_t" >&5 | |
2963 | -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | |
2964 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2965 | -else | |
2966 | - cat > conftest.$ac_ext <<EOF | |
2967 | -#line 2968 "configure" | |
2968 | -#include "confdefs.h" | |
2969 | -#include <sys/types.h> | |
2970 | -#if STDC_HEADERS | |
2971 | -#include <stdlib.h> | |
2972 | -#include <stddef.h> | |
2973 | -#endif | |
2974 | -EOF | |
2975 | -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2976 | - egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2977 | - rm -rf conftest* | |
2978 | - ac_cv_type_size_t=yes | |
2979 | -else | |
2980 | - rm -rf conftest* | |
2981 | - ac_cv_type_size_t=no | |
2982 | -fi | |
2983 | -rm -f conftest* | |
2984 | - | |
2985 | -fi | |
2986 | -echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
2987 | -if test $ac_cv_type_size_t = no; then | |
2988 | - cat >> confdefs.h <<\EOF | |
2989 | -#define size_t unsigned | |
2990 | -EOF | |
2991 | - | |
2992 | -fi | |
2993 | - | |
2994 | -# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
2995 | -# for constant arguments. Useless! | |
2996 | -echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
2997 | -echo "configure:2998: checking for working alloca.h" >&5 | |
2998 | -if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | |
2999 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3000 | -else | |
3001 | - cat > conftest.$ac_ext <<EOF | |
3002 | -#line 3003 "configure" | |
3003 | -#include "confdefs.h" | |
3004 | -#include <alloca.h> | |
3005 | -int main() { | |
3006 | -char *p = alloca(2 * sizeof(int)); | |
3007 | -; return 0; } | |
3008 | -EOF | |
3009 | -if { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3010 | - rm -rf conftest* | |
3011 | - ac_cv_header_alloca_h=yes | |
3012 | -else | |
3013 | - echo "configure: failed program was:" >&5 | |
3014 | - cat conftest.$ac_ext >&5 | |
3015 | - rm -rf conftest* | |
3016 | - ac_cv_header_alloca_h=no | |
3017 | -fi | |
3018 | -rm -f conftest* | |
3019 | -fi | |
3020 | - | |
3021 | -echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
3022 | -if test $ac_cv_header_alloca_h = yes; then | |
3023 | - cat >> confdefs.h <<\EOF | |
3024 | -#define HAVE_ALLOCA_H 1 | |
3025 | -EOF | |
3026 | - | |
3027 | -fi | |
3028 | - | |
3029 | -echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
3030 | -echo "configure:3031: checking for alloca" >&5 | |
3031 | -if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | |
3032 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3033 | -else | |
3034 | - cat > conftest.$ac_ext <<EOF | |
3035 | -#line 3036 "configure" | |
3036 | -#include "confdefs.h" | |
3037 | - | |
3038 | -#ifdef __GNUC__ | |
3039 | -# define alloca __builtin_alloca | |
3040 | -#else | |
3041 | -# ifdef _MSC_VER | |
3042 | -# include <malloc.h> | |
3043 | -# define alloca _alloca | |
3044 | -# else | |
3045 | -# if HAVE_ALLOCA_H | |
3046 | -# include <alloca.h> | |
3047 | -# else | |
3048 | -# ifdef _AIX | |
3049 | - #pragma alloca | |
3050 | -# else | |
3051 | -# ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3052 | -char *alloca (); | |
3053 | -# endif | |
3054 | -# endif | |
3055 | -# endif | |
3056 | -# endif | |
3057 | -#endif | |
3058 | - | |
3059 | -int main() { | |
3060 | -char *p = (char *) alloca(1); | |
3061 | -; return 0; } | |
3062 | -EOF | |
3063 | -if { (eval echo configure:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3064 | - rm -rf conftest* | |
3065 | - ac_cv_func_alloca_works=yes | |
3066 | -else | |
3067 | - echo "configure: failed program was:" >&5 | |
3068 | - cat conftest.$ac_ext >&5 | |
3069 | - rm -rf conftest* | |
3070 | - ac_cv_func_alloca_works=no | |
3071 | -fi | |
3072 | -rm -f conftest* | |
3073 | -fi | |
3074 | - | |
3075 | -echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
3076 | -if test $ac_cv_func_alloca_works = yes; then | |
3077 | - cat >> confdefs.h <<\EOF | |
3078 | -#define HAVE_ALLOCA 1 | |
3079 | -EOF | |
3080 | - | |
3081 | -fi | |
3082 | - | |
3083 | -if test $ac_cv_func_alloca_works = no; then | |
3084 | - # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
3085 | - # that cause trouble. Some versions do not even contain alloca or | |
3086 | - # contain a buggy version. If you still want to use their alloca, | |
3087 | - # use ar to extract alloca.o from them instead of compiling alloca.c. | |
3088 | - ALLOCA=alloca.${ac_objext} | |
3089 | - cat >> confdefs.h <<\EOF | |
3090 | -#define C_ALLOCA 1 | |
3091 | -EOF | |
3092 | - | |
3093 | - | |
3094 | -echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
3095 | -echo "configure:3096: checking whether alloca needs Cray hooks" >&5 | |
3096 | -if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | |
3097 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3098 | -else | |
3099 | - cat > conftest.$ac_ext <<EOF | |
3100 | -#line 3101 "configure" | |
3101 | -#include "confdefs.h" | |
3102 | -#if defined(CRAY) && ! defined(CRAY2) | |
3103 | -webecray | |
3104 | -#else | |
3105 | -wenotbecray | |
3106 | -#endif | |
3107 | - | |
3108 | -EOF | |
3109 | -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3110 | - egrep "webecray" >/dev/null 2>&1; then | |
3111 | - rm -rf conftest* | |
3112 | - ac_cv_os_cray=yes | |
3113 | -else | |
3114 | - rm -rf conftest* | |
3115 | - ac_cv_os_cray=no | |
3116 | -fi | |
3117 | -rm -f conftest* | |
3118 | - | |
3119 | -fi | |
3120 | - | |
3121 | -echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
3122 | -if test $ac_cv_os_cray = yes; then | |
3123 | -for ac_func in _getb67 GETB67 getb67; do | |
3124 | - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3125 | -echo "configure:3126: checking for $ac_func" >&5 | |
3126 | -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
3127 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3128 | -else | |
3129 | - cat > conftest.$ac_ext <<EOF | |
3130 | -#line 3131 "configure" | |
3131 | -#include "confdefs.h" | |
3132 | -/* System header to define __stub macros and hopefully few prototypes, | |
3133 | - which can conflict with char $ac_func(); below. */ | |
3134 | -#include <assert.h> | |
3135 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
3136 | -/* We use char because int might match the return type of a gcc2 | |
3137 | - builtin and then its argument prototype would still apply. */ | |
3138 | -char $ac_func(); | |
3139 | - | |
3140 | -int main() { | |
3141 | - | |
3142 | -/* The GNU C library defines this for functions which it implements | |
3143 | - to always fail with ENOSYS. Some functions are actually named | |
3144 | - something starting with __ and the normal name is an alias. */ | |
3145 | -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3146 | -choke me | |
3147 | -#else | |
3148 | -$ac_func(); | |
3149 | -#endif | |
3150 | - | |
3151 | -; return 0; } | |
3152 | -EOF | |
3153 | -if { (eval echo configure:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3154 | - rm -rf conftest* | |
3155 | - eval "ac_cv_func_$ac_func=yes" | |
3156 | -else | |
3157 | - echo "configure: failed program was:" >&5 | |
3158 | - cat conftest.$ac_ext >&5 | |
3159 | - rm -rf conftest* | |
3160 | - eval "ac_cv_func_$ac_func=no" | |
3161 | -fi | |
3162 | -rm -f conftest* | |
3163 | -fi | |
3164 | - | |
3165 | -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3166 | - echo "$ac_t""yes" 1>&6 | |
3167 | - cat >> confdefs.h <<EOF | |
3168 | -#define CRAY_STACKSEG_END $ac_func | |
3169 | -EOF | |
3170 | - | |
3171 | - break | |
3172 | -else | |
3173 | - echo "$ac_t""no" 1>&6 | |
3174 | -fi | |
3175 | - | |
3176 | -done | |
3177 | -fi | |
3178 | - | |
3179 | -echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
3180 | -echo "configure:3181: checking stack direction for C alloca" >&5 | |
3181 | -if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | |
3182 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3183 | -else | |
3184 | - if test "$cross_compiling" = yes; then | |
3185 | - ac_cv_c_stack_direction=0 | |
3186 | -else | |
3187 | - cat > conftest.$ac_ext <<EOF | |
3188 | -#line 3189 "configure" | |
3189 | -#include "confdefs.h" | |
3190 | -find_stack_direction () | |
3191 | -{ | |
3192 | - static char *addr = 0; | |
3193 | - auto char dummy; | |
3194 | - if (addr == 0) | |
3195 | - { | |
3196 | - addr = &dummy; | |
3197 | - return find_stack_direction (); | |
3198 | - } | |
3199 | - else | |
3200 | - return (&dummy > addr) ? 1 : -1; | |
3201 | -} | |
3202 | -main () | |
3203 | -{ | |
3204 | - exit (find_stack_direction() < 0); | |
3205 | -} | |
3206 | -EOF | |
3207 | -if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
3208 | -then | |
3209 | - ac_cv_c_stack_direction=1 | |
3210 | -else | |
3211 | - echo "configure: failed program was:" >&5 | |
3212 | - cat conftest.$ac_ext >&5 | |
3213 | - rm -fr conftest* | |
3214 | - ac_cv_c_stack_direction=-1 | |
3215 | -fi | |
3216 | -rm -fr conftest* | |
3217 | -fi | |
3218 | - | |
3219 | -fi | |
3220 | - | |
3221 | -echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
3222 | -cat >> confdefs.h <<EOF | |
3223 | -#define STACK_DIRECTION $ac_cv_c_stack_direction | |
3224 | -EOF | |
3225 | - | |
3226 | -fi | |
3227 | - | |
3228 | -for ac_hdr in unistd.h | |
3229 | -do | |
3230 | -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3231 | -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3232 | -echo "configure:3233: checking for $ac_hdr" >&5 | |
3233 | -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
3234 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3235 | -else | |
3236 | - cat > conftest.$ac_ext <<EOF | |
3237 | -#line 3238 "configure" | |
3238 | -#include "confdefs.h" | |
3239 | -#include <$ac_hdr> | |
3240 | -EOF | |
3241 | -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3242 | -{ (eval echo configure:3243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
3243 | -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
3244 | -if test -z "$ac_err"; then | |
3245 | - rm -rf conftest* | |
3246 | - eval "ac_cv_header_$ac_safe=yes" | |
3247 | -else | |
3248 | - echo "$ac_err" >&5 | |
3249 | - echo "configure: failed program was:" >&5 | |
3250 | - cat conftest.$ac_ext >&5 | |
3251 | - rm -rf conftest* | |
3252 | - eval "ac_cv_header_$ac_safe=no" | |
3253 | -fi | |
3254 | -rm -f conftest* | |
3255 | -fi | |
3256 | -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3257 | - echo "$ac_t""yes" 1>&6 | |
3258 | - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3259 | - cat >> confdefs.h <<EOF | |
3260 | -#define $ac_tr_hdr 1 | |
3261 | -EOF | |
3262 | - | |
3263 | -else | |
3264 | - echo "$ac_t""no" 1>&6 | |
3265 | -fi | |
3266 | -done | |
3267 | - | |
3268 | -for ac_func in getpagesize | |
3269 | -do | |
3270 | -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3271 | -echo "configure:3272: checking for $ac_func" >&5 | |
3272 | -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
3273 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3274 | -else | |
3275 | - cat > conftest.$ac_ext <<EOF | |
3276 | -#line 3277 "configure" | |
3277 | -#include "confdefs.h" | |
3278 | -/* System header to define __stub macros and hopefully few prototypes, | |
3279 | - which can conflict with char $ac_func(); below. */ | |
3280 | -#include <assert.h> | |
3281 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
3282 | -/* We use char because int might match the return type of a gcc2 | |
3283 | - builtin and then its argument prototype would still apply. */ | |
3284 | -char $ac_func(); | |
3285 | - | |
3286 | -int main() { | |
3287 | - | |
3288 | -/* The GNU C library defines this for functions which it implements | |
3289 | - to always fail with ENOSYS. Some functions are actually named | |
3290 | - something starting with __ and the normal name is an alias. */ | |
3291 | -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3292 | -choke me | |
3293 | -#else | |
3294 | -$ac_func(); | |
3295 | -#endif | |
3296 | - | |
3297 | -; return 0; } | |
3298 | -EOF | |
3299 | -if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3300 | - rm -rf conftest* | |
3301 | - eval "ac_cv_func_$ac_func=yes" | |
3302 | -else | |
3303 | - echo "configure: failed program was:" >&5 | |
3304 | - cat conftest.$ac_ext >&5 | |
3305 | - rm -rf conftest* | |
3306 | - eval "ac_cv_func_$ac_func=no" | |
3307 | -fi | |
3308 | -rm -f conftest* | |
3309 | -fi | |
3310 | - | |
3311 | -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3312 | - echo "$ac_t""yes" 1>&6 | |
3313 | - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3314 | - cat >> confdefs.h <<EOF | |
3315 | -#define $ac_tr_func 1 | |
3316 | -EOF | |
3317 | - | |
3318 | -else | |
3319 | - echo "$ac_t""no" 1>&6 | |
3320 | -fi | |
3321 | -done | |
3322 | - | |
3323 | -echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
3324 | -echo "configure:3325: checking for working mmap" >&5 | |
3325 | -if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then | |
3326 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3327 | -else | |
3328 | - if test "$cross_compiling" = yes; then | |
3329 | - ac_cv_func_mmap_fixed_mapped=no | |
3330 | -else | |
3331 | - cat > conftest.$ac_ext <<EOF | |
3332 | -#line 3333 "configure" | |
3333 | -#include "confdefs.h" | |
3334 | - | |
3335 | -/* Thanks to Mike Haertel and Jim Avera for this test. | |
3336 | - Here is a matrix of mmap possibilities: | |
3337 | - mmap private not fixed | |
3338 | - mmap private fixed at somewhere currently unmapped | |
3339 | - mmap private fixed at somewhere already mapped | |
3340 | - mmap shared not fixed | |
3341 | - mmap shared fixed at somewhere currently unmapped | |
3342 | - mmap shared fixed at somewhere already mapped | |
3343 | - For private mappings, we should verify that changes cannot be read() | |
3344 | - back from the file, nor mmap's back from the file at a different | |
3345 | - address. (There have been systems where private was not correctly | |
3346 | - implemented like the infamous i386 svr4.0, and systems where the | |
3347 | - VM page cache was not coherent with the filesystem buffer cache | |
3348 | - like early versions of FreeBSD and possibly contemporary NetBSD.) | |
3349 | - For shared mappings, we should conversely verify that changes get | |
3350 | - propogated back to all the places they're supposed to be. | |
3351 | - | |
3352 | - Grep wants private fixed already mapped. | |
3353 | - The main things grep needs to know about mmap are: | |
3354 | - * does it exist and is it safe to write into the mmap'd area | |
3355 | - * how to use it (BSD variants) */ | |
3356 | -#include <sys/types.h> | |
3357 | -#include <fcntl.h> | |
3358 | -#include <sys/mman.h> | |
3359 | - | |
3360 | -/* This mess was copied from the GNU getpagesize.h. */ | |
3361 | -#ifndef HAVE_GETPAGESIZE | |
3362 | -# ifdef HAVE_UNISTD_H | |
3363 | -# include <unistd.h> | |
3364 | -# endif | |
3365 | - | |
3366 | -/* Assume that all systems that can run configure have sys/param.h. */ | |
3367 | -# ifndef HAVE_SYS_PARAM_H | |
3368 | -# define HAVE_SYS_PARAM_H 1 | |
3369 | -# endif | |
3370 | - | |
3371 | -# ifdef _SC_PAGESIZE | |
3372 | -# define getpagesize() sysconf(_SC_PAGESIZE) | |
3373 | -# else /* no _SC_PAGESIZE */ | |
3374 | -# ifdef HAVE_SYS_PARAM_H | |
3375 | -# include <sys/param.h> | |
3376 | -# ifdef EXEC_PAGESIZE | |
3377 | -# define getpagesize() EXEC_PAGESIZE | |
3378 | -# else /* no EXEC_PAGESIZE */ | |
3379 | -# ifdef NBPG | |
3380 | -# define getpagesize() NBPG * CLSIZE | |
3381 | -# ifndef CLSIZE | |
3382 | -# define CLSIZE 1 | |
3383 | -# endif /* no CLSIZE */ | |
3384 | -# else /* no NBPG */ | |
3385 | -# ifdef NBPC | |
3386 | -# define getpagesize() NBPC | |
3387 | -# else /* no NBPC */ | |
3388 | -# ifdef PAGESIZE | |
3389 | -# define getpagesize() PAGESIZE | |
3390 | -# endif /* PAGESIZE */ | |
3391 | -# endif /* no NBPC */ | |
3392 | -# endif /* no NBPG */ | |
3393 | -# endif /* no EXEC_PAGESIZE */ | |
3394 | -# else /* no HAVE_SYS_PARAM_H */ | |
3395 | -# define getpagesize() 8192 /* punt totally */ | |
3396 | -# endif /* no HAVE_SYS_PARAM_H */ | |
3397 | -# endif /* no _SC_PAGESIZE */ | |
3398 | - | |
3399 | -#endif /* no HAVE_GETPAGESIZE */ | |
3400 | - | |
3401 | -#ifdef __cplusplus | |
3402 | -extern "C" { void *malloc(unsigned); } | |
3403 | -#else | |
3404 | -char *malloc(); | |
3405 | -#endif | |
3406 | - | |
3407 | -int | |
3408 | -main() | |
3409 | -{ | |
3410 | - char *data, *data2, *data3; | |
3411 | - int i, pagesize; | |
3412 | - int fd; | |
3413 | - | |
3414 | - pagesize = getpagesize(); | |
3415 | - | |
3416 | - /* | |
3417 | - * First, make a file with some known garbage in it. | |
3418 | - */ | |
3419 | - data = malloc(pagesize); | |
3420 | - if (!data) | |
3421 | - exit(1); | |
3422 | - for (i = 0; i < pagesize; ++i) | |
3423 | - *(data + i) = rand(); | |
3424 | - umask(0); | |
3425 | - fd = creat("conftestmmap", 0600); | |
3426 | - if (fd < 0) | |
3427 | - exit(1); | |
3428 | - if (write(fd, data, pagesize) != pagesize) | |
3429 | - exit(1); | |
3430 | - close(fd); | |
3431 | - | |
3432 | - /* | |
3433 | - * Next, try to mmap the file at a fixed address which | |
3434 | - * already has something else allocated at it. If we can, | |
3435 | - * also make sure that we see the same garbage. | |
3436 | - */ | |
3437 | - fd = open("conftestmmap", O_RDWR); | |
3438 | - if (fd < 0) | |
3439 | - exit(1); | |
3440 | - data2 = malloc(2 * pagesize); | |
3441 | - if (!data2) | |
3442 | - exit(1); | |
3443 | - data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
3444 | - if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
3445 | - MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
3446 | - exit(1); | |
3447 | - for (i = 0; i < pagesize; ++i) | |
3448 | - if (*(data + i) != *(data2 + i)) | |
3449 | - exit(1); | |
3450 | - | |
3451 | - /* | |
3452 | - * Finally, make sure that changes to the mapped area | |
3453 | - * do not percolate back to the file as seen by read(). | |
3454 | - * (This is a bug on some variants of i386 svr4.0.) | |
3455 | - */ | |
3456 | - for (i = 0; i < pagesize; ++i) | |
3457 | - *(data2 + i) = *(data2 + i) + 1; | |
3458 | - data3 = malloc(pagesize); | |
3459 | - if (!data3) | |
3460 | - exit(1); | |
3461 | - if (read(fd, data3, pagesize) != pagesize) | |
3462 | - exit(1); | |
3463 | - for (i = 0; i < pagesize; ++i) | |
3464 | - if (*(data + i) != *(data3 + i)) | |
3465 | - exit(1); | |
3466 | - close(fd); | |
3467 | - unlink("conftestmmap"); | |
3468 | - exit(0); | |
3469 | -} | |
3470 | - | |
3471 | -EOF | |
3472 | -if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
3473 | -then | |
3474 | - ac_cv_func_mmap_fixed_mapped=yes | |
3475 | -else | |
3476 | - echo "configure: failed program was:" >&5 | |
3477 | - cat conftest.$ac_ext >&5 | |
3478 | - rm -fr conftest* | |
3479 | - ac_cv_func_mmap_fixed_mapped=no | |
3480 | -fi | |
3481 | -rm -fr conftest* | |
3482 | -fi | |
3483 | - | |
3484 | -fi | |
3485 | - | |
3486 | -echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
3487 | -if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
3488 | - cat >> confdefs.h <<\EOF | |
3489 | -#define HAVE_MMAP 1 | |
3490 | -EOF | |
3491 | - | |
3492 | -fi | |
3493 | - | |
3494 | - | |
3495 | - for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
3496 | -unistd.h values.h sys/param.h | |
3497 | -do | |
3498 | -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3499 | -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
3500 | -echo "configure:3501: checking for $ac_hdr" >&5 | |
3501 | -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
3502 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3503 | -else | |
3504 | - cat > conftest.$ac_ext <<EOF | |
3505 | -#line 3506 "configure" | |
3506 | -#include "confdefs.h" | |
3507 | -#include <$ac_hdr> | |
3508 | -EOF | |
3509 | -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3510 | -{ (eval echo configure:3511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
3511 | -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
3512 | -if test -z "$ac_err"; then | |
3513 | - rm -rf conftest* | |
3514 | - eval "ac_cv_header_$ac_safe=yes" | |
3515 | -else | |
3516 | - echo "$ac_err" >&5 | |
3517 | - echo "configure: failed program was:" >&5 | |
3518 | - cat conftest.$ac_ext >&5 | |
3519 | - rm -rf conftest* | |
3520 | - eval "ac_cv_header_$ac_safe=no" | |
3521 | -fi | |
3522 | -rm -f conftest* | |
3523 | -fi | |
3524 | -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3525 | - echo "$ac_t""yes" 1>&6 | |
3526 | - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3527 | - cat >> confdefs.h <<EOF | |
3528 | -#define $ac_tr_hdr 1 | |
3529 | -EOF | |
3530 | - | |
3531 | -else | |
3532 | - echo "$ac_t""no" 1>&6 | |
3533 | -fi | |
3534 | -done | |
3535 | - | |
3536 | - for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
3537 | -__argz_count __argz_stringify __argz_next | |
3538 | -do | |
3539 | -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3540 | -echo "configure:3541: checking for $ac_func" >&5 | |
3541 | -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
3542 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3543 | -else | |
3544 | - cat > conftest.$ac_ext <<EOF | |
3545 | -#line 3546 "configure" | |
3546 | -#include "confdefs.h" | |
3547 | -/* System header to define __stub macros and hopefully few prototypes, | |
3548 | - which can conflict with char $ac_func(); below. */ | |
3549 | -#include <assert.h> | |
3550 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
3551 | -/* We use char because int might match the return type of a gcc2 | |
3552 | - builtin and then its argument prototype would still apply. */ | |
3553 | -char $ac_func(); | |
3554 | - | |
3555 | -int main() { | |
3556 | - | |
3557 | -/* The GNU C library defines this for functions which it implements | |
3558 | - to always fail with ENOSYS. Some functions are actually named | |
3559 | - something starting with __ and the normal name is an alias. */ | |
3560 | -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3561 | -choke me | |
3562 | -#else | |
3563 | -$ac_func(); | |
3564 | -#endif | |
3565 | - | |
3566 | -; return 0; } | |
3567 | -EOF | |
3568 | -if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3569 | - rm -rf conftest* | |
3570 | - eval "ac_cv_func_$ac_func=yes" | |
3571 | -else | |
3572 | - echo "configure: failed program was:" >&5 | |
3573 | - cat conftest.$ac_ext >&5 | |
3574 | - rm -rf conftest* | |
3575 | - eval "ac_cv_func_$ac_func=no" | |
3576 | -fi | |
3577 | -rm -f conftest* | |
3578 | -fi | |
3579 | - | |
3580 | -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3581 | - echo "$ac_t""yes" 1>&6 | |
3582 | - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3583 | - cat >> confdefs.h <<EOF | |
3584 | -#define $ac_tr_func 1 | |
3585 | -EOF | |
3586 | - | |
3587 | -else | |
3588 | - echo "$ac_t""no" 1>&6 | |
3589 | -fi | |
3590 | -done | |
3591 | - | |
3592 | - | |
3593 | - if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
3594 | - for ac_func in stpcpy | |
3595 | -do | |
3596 | -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3597 | -echo "configure:3598: checking for $ac_func" >&5 | |
3598 | -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
3599 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3600 | -else | |
3601 | - cat > conftest.$ac_ext <<EOF | |
3602 | -#line 3603 "configure" | |
3603 | -#include "confdefs.h" | |
3604 | -/* System header to define __stub macros and hopefully few prototypes, | |
3605 | - which can conflict with char $ac_func(); below. */ | |
3606 | -#include <assert.h> | |
3607 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
3608 | -/* We use char because int might match the return type of a gcc2 | |
3609 | - builtin and then its argument prototype would still apply. */ | |
3610 | -char $ac_func(); | |
3611 | - | |
3612 | -int main() { | |
3613 | - | |
3614 | -/* The GNU C library defines this for functions which it implements | |
3615 | - to always fail with ENOSYS. Some functions are actually named | |
3616 | - something starting with __ and the normal name is an alias. */ | |
3617 | -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3618 | -choke me | |
3619 | -#else | |
3620 | -$ac_func(); | |
3621 | -#endif | |
3622 | - | |
3623 | -; return 0; } | |
3624 | -EOF | |
3625 | -if { (eval echo configure:3626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3626 | - rm -rf conftest* | |
3627 | - eval "ac_cv_func_$ac_func=yes" | |
3628 | -else | |
3629 | - echo "configure: failed program was:" >&5 | |
3630 | - cat conftest.$ac_ext >&5 | |
3631 | - rm -rf conftest* | |
3632 | - eval "ac_cv_func_$ac_func=no" | |
3633 | -fi | |
3634 | -rm -f conftest* | |
3635 | -fi | |
3636 | - | |
3637 | -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3638 | - echo "$ac_t""yes" 1>&6 | |
3639 | - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3640 | - cat >> confdefs.h <<EOF | |
3641 | -#define $ac_tr_func 1 | |
3642 | -EOF | |
3643 | - | |
3644 | -else | |
3645 | - echo "$ac_t""no" 1>&6 | |
3646 | -fi | |
3647 | -done | |
3648 | - | |
3649 | - fi | |
3650 | - if test "${ac_cv_func_stpcpy}" = "yes"; then | |
3651 | - cat >> confdefs.h <<\EOF | |
3652 | -#define HAVE_STPCPY 1 | |
3653 | -EOF | |
3654 | - | |
3655 | - fi | |
3656 | - | |
3657 | - if test $ac_cv_header_locale_h = yes; then | |
3658 | - echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
3659 | -echo "configure:3660: checking for LC_MESSAGES" >&5 | |
3660 | -if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then | |
3661 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3662 | -else | |
3663 | - cat > conftest.$ac_ext <<EOF | |
3664 | -#line 3665 "configure" | |
3665 | -#include "confdefs.h" | |
3666 | -#include <locale.h> | |
3667 | -int main() { | |
3668 | -return LC_MESSAGES | |
3669 | -; return 0; } | |
3670 | -EOF | |
3671 | -if { (eval echo configure:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3672 | - rm -rf conftest* | |
3673 | - am_cv_val_LC_MESSAGES=yes | |
3674 | -else | |
3675 | - echo "configure: failed program was:" >&5 | |
3676 | - cat conftest.$ac_ext >&5 | |
3677 | - rm -rf conftest* | |
3678 | - am_cv_val_LC_MESSAGES=no | |
3679 | -fi | |
3680 | -rm -f conftest* | |
3681 | -fi | |
3682 | - | |
3683 | -echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
3684 | - if test $am_cv_val_LC_MESSAGES = yes; then | |
3685 | - cat >> confdefs.h <<\EOF | |
3686 | -#define HAVE_LC_MESSAGES 1 | |
3687 | -EOF | |
3688 | - | |
3689 | - fi | |
3690 | - fi | |
3691 | - echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
3692 | -echo "configure:3693: checking whether NLS is requested" >&5 | |
3693 | - # Check whether --enable-nls or --disable-nls was given. | |
3694 | -if test "${enable_nls+set}" = set; then | |
3695 | - enableval="$enable_nls" | |
3696 | - USE_NLS=$enableval | |
3697 | -else | |
3698 | - USE_NLS=yes | |
3699 | -fi | |
3700 | - | |
3701 | - echo "$ac_t""$USE_NLS" 1>&6 | |
3702 | - | |
3703 | - | |
3704 | - USE_INCLUDED_LIBINTL=no | |
3705 | - | |
3706 | - if test "$USE_NLS" = "yes"; then | |
3707 | - cat >> confdefs.h <<\EOF | |
3708 | -#define ENABLE_NLS 1 | |
3709 | -EOF | |
3710 | - | |
3711 | - echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
3712 | -echo "configure:3713: checking whether included gettext is requested" >&5 | |
3713 | - # Check whether --with-included-gettext or --without-included-gettext was given. | |
3714 | -if test "${with_included_gettext+set}" = set; then | |
3715 | - withval="$with_included_gettext" | |
3716 | - nls_cv_force_use_gnu_gettext=$withval | |
3717 | -else | |
3718 | - nls_cv_force_use_gnu_gettext=no | |
3719 | -fi | |
3720 | - | |
3721 | - echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
3722 | - | |
3723 | - nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
3724 | - if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
3725 | - nls_cv_header_intl= | |
3726 | - nls_cv_header_libgt= | |
3727 | - CATOBJEXT=NONE | |
3728 | - | |
3729 | - ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
3730 | -echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
3731 | -echo "configure:3732: checking for libintl.h" >&5 | |
3732 | -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
3733 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3734 | -else | |
3735 | - cat > conftest.$ac_ext <<EOF | |
3736 | -#line 3737 "configure" | |
3737 | -#include "confdefs.h" | |
3738 | -#include <libintl.h> | |
3739 | -EOF | |
3740 | -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
3741 | -{ (eval echo configure:3742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
3742 | -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
3743 | -if test -z "$ac_err"; then | |
3744 | - rm -rf conftest* | |
3745 | - eval "ac_cv_header_$ac_safe=yes" | |
3746 | -else | |
3747 | - echo "$ac_err" >&5 | |
3748 | - echo "configure: failed program was:" >&5 | |
3749 | - cat conftest.$ac_ext >&5 | |
3750 | - rm -rf conftest* | |
3751 | - eval "ac_cv_header_$ac_safe=no" | |
3752 | -fi | |
3753 | -rm -f conftest* | |
3754 | -fi | |
3755 | -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3756 | - echo "$ac_t""yes" 1>&6 | |
3757 | - echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
3758 | -echo "configure:3759: checking for gettext in libc" >&5 | |
3759 | -if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then | |
3760 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3761 | -else | |
3762 | - cat > conftest.$ac_ext <<EOF | |
3763 | -#line 3764 "configure" | |
3764 | -#include "confdefs.h" | |
3765 | -#include <libintl.h> | |
3766 | -int main() { | |
3767 | -return (int) gettext ("") | |
3768 | -; return 0; } | |
3769 | -EOF | |
3770 | -if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3771 | - rm -rf conftest* | |
3772 | - gt_cv_func_gettext_libc=yes | |
3773 | -else | |
3774 | - echo "configure: failed program was:" >&5 | |
3775 | - cat conftest.$ac_ext >&5 | |
3776 | - rm -rf conftest* | |
3777 | - gt_cv_func_gettext_libc=no | |
3778 | -fi | |
3779 | -rm -f conftest* | |
3780 | -fi | |
3781 | - | |
3782 | -echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
3783 | - | |
3784 | - if test "$gt_cv_func_gettext_libc" != "yes"; then | |
3785 | - echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
3786 | -echo "configure:3787: checking for bindtextdomain in -lintl" >&5 | |
3787 | -ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` | |
3788 | -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3789 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3790 | -else | |
3791 | - ac_save_LIBS="$LIBS" | |
3792 | -LIBS="-lintl $LIBS" | |
3793 | -cat > conftest.$ac_ext <<EOF | |
3794 | -#line 3795 "configure" | |
3795 | -#include "confdefs.h" | |
3796 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
3797 | -/* We use char because int might match the return type of a gcc2 | |
3798 | - builtin and then its argument prototype would still apply. */ | |
3799 | -char bindtextdomain(); | |
3800 | - | |
3801 | -int main() { | |
3802 | -bindtextdomain() | |
3803 | -; return 0; } | |
3804 | -EOF | |
3805 | -if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3806 | - rm -rf conftest* | |
3807 | - eval "ac_cv_lib_$ac_lib_var=yes" | |
3808 | -else | |
3809 | - echo "configure: failed program was:" >&5 | |
3810 | - cat conftest.$ac_ext >&5 | |
3811 | - rm -rf conftest* | |
3812 | - eval "ac_cv_lib_$ac_lib_var=no" | |
3813 | -fi | |
3814 | -rm -f conftest* | |
3815 | -LIBS="$ac_save_LIBS" | |
3816 | - | |
3817 | -fi | |
3818 | -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3819 | - echo "$ac_t""yes" 1>&6 | |
3820 | - echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
3821 | -echo "configure:3822: checking for gettext in libintl" >&5 | |
3822 | -if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then | |
3823 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3824 | -else | |
3825 | - cat > conftest.$ac_ext <<EOF | |
3826 | -#line 3827 "configure" | |
3827 | -#include "confdefs.h" | |
3828 | - | |
3829 | -int main() { | |
3830 | -return (int) gettext ("") | |
3831 | -; return 0; } | |
3832 | -EOF | |
3833 | -if { (eval echo configure:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3834 | - rm -rf conftest* | |
3835 | - gt_cv_func_gettext_libintl=yes | |
3836 | -else | |
3837 | - echo "configure: failed program was:" >&5 | |
3838 | - cat conftest.$ac_ext >&5 | |
3839 | - rm -rf conftest* | |
3840 | - gt_cv_func_gettext_libintl=no | |
3841 | -fi | |
3842 | -rm -f conftest* | |
3843 | -fi | |
3844 | - | |
3845 | -echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
3846 | -else | |
3847 | - echo "$ac_t""no" 1>&6 | |
3848 | -fi | |
3849 | - | |
3850 | - fi | |
3851 | - | |
3852 | - if test "$gt_cv_func_gettext_libc" = "yes" \ | |
3853 | - || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
3854 | - cat >> confdefs.h <<\EOF | |
3855 | -#define HAVE_GETTEXT 1 | |
3856 | -EOF | |
3857 | - | |
3858 | - # Extract the first word of "msgfmt", so it can be a program name with args. | |
3859 | -set dummy msgfmt; ac_word=$2 | |
3860 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3861 | -echo "configure:3862: checking for $ac_word" >&5 | |
3862 | -if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then | |
3863 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3864 | -else | |
3865 | - case "$MSGFMT" in | |
3866 | - /*) | |
3867 | - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
3868 | - ;; | |
3869 | - *) | |
3870 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3871 | - for ac_dir in $PATH; do | |
3872 | - test -z "$ac_dir" && ac_dir=. | |
3873 | - if test -f $ac_dir/$ac_word; then | |
3874 | - if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
3875 | - ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
3876 | - break | |
3877 | - fi | |
3878 | - fi | |
3879 | - done | |
3880 | - IFS="$ac_save_ifs" | |
3881 | - test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
3882 | - ;; | |
3883 | -esac | |
3884 | -fi | |
3885 | -MSGFMT="$ac_cv_path_MSGFMT" | |
3886 | -if test -n "$MSGFMT"; then | |
3887 | - echo "$ac_t""$MSGFMT" 1>&6 | |
3888 | -else | |
3889 | - echo "$ac_t""no" 1>&6 | |
3890 | -fi | |
3891 | - if test "$MSGFMT" != "no"; then | |
3892 | - for ac_func in dcgettext | |
3893 | -do | |
3894 | -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
3895 | -echo "configure:3896: checking for $ac_func" >&5 | |
3896 | -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
3897 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3898 | -else | |
3899 | - cat > conftest.$ac_ext <<EOF | |
3900 | -#line 3901 "configure" | |
3901 | -#include "confdefs.h" | |
3902 | -/* System header to define __stub macros and hopefully few prototypes, | |
3903 | - which can conflict with char $ac_func(); below. */ | |
3904 | -#include <assert.h> | |
3905 | -/* Override any gcc2 internal prototype to avoid an error. */ | |
3906 | -/* We use char because int might match the return type of a gcc2 | |
3907 | - builtin and then its argument prototype would still apply. */ | |
3908 | -char $ac_func(); | |
3909 | - | |
3910 | -int main() { | |
3911 | - | |
3912 | -/* The GNU C library defines this for functions which it implements | |
3913 | - to always fail with ENOSYS. Some functions are actually named | |
3914 | - something starting with __ and the normal name is an alias. */ | |
3915 | -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3916 | -choke me | |
3917 | -#else | |
3918 | -$ac_func(); | |
3919 | -#endif | |
3920 | - | |
3921 | -; return 0; } | |
3922 | -EOF | |
3923 | -if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3924 | - rm -rf conftest* | |
3925 | - eval "ac_cv_func_$ac_func=yes" | |
3926 | -else | |
3927 | - echo "configure: failed program was:" >&5 | |
3928 | - cat conftest.$ac_ext >&5 | |
3929 | - rm -rf conftest* | |
3930 | - eval "ac_cv_func_$ac_func=no" | |
3931 | -fi | |
3932 | -rm -f conftest* | |
3933 | -fi | |
3934 | - | |
3935 | -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3936 | - echo "$ac_t""yes" 1>&6 | |
3937 | - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3938 | - cat >> confdefs.h <<EOF | |
3939 | -#define $ac_tr_func 1 | |
3940 | -EOF | |
3941 | - | |
3942 | -else | |
3943 | - echo "$ac_t""no" 1>&6 | |
3944 | -fi | |
3945 | -done | |
3946 | - | |
3947 | - # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
3948 | -set dummy gmsgfmt; ac_word=$2 | |
3949 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3950 | -echo "configure:3951: checking for $ac_word" >&5 | |
3951 | -if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then | |
3952 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3953 | -else | |
3954 | - case "$GMSGFMT" in | |
3955 | - /*) | |
3956 | - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
3957 | - ;; | |
3958 | - ?:/*) | |
3959 | - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
3960 | - ;; | |
3961 | - *) | |
3962 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3963 | - ac_dummy="$PATH" | |
3964 | - for ac_dir in $ac_dummy; do | |
3965 | - test -z "$ac_dir" && ac_dir=. | |
3966 | - if test -f $ac_dir/$ac_word; then | |
3967 | - ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
3968 | - break | |
3969 | - fi | |
3970 | - done | |
3971 | - IFS="$ac_save_ifs" | |
3972 | - test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
3973 | - ;; | |
3974 | -esac | |
3975 | -fi | |
3976 | -GMSGFMT="$ac_cv_path_GMSGFMT" | |
3977 | -if test -n "$GMSGFMT"; then | |
3978 | - echo "$ac_t""$GMSGFMT" 1>&6 | |
3979 | -else | |
3980 | - echo "$ac_t""no" 1>&6 | |
3981 | -fi | |
3982 | - | |
3983 | - # Extract the first word of "xgettext", so it can be a program name with args. | |
3984 | -set dummy xgettext; ac_word=$2 | |
3985 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
3986 | -echo "configure:3987: checking for $ac_word" >&5 | |
3987 | -if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then | |
3988 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
3989 | -else | |
3990 | - case "$XGETTEXT" in | |
3991 | - /*) | |
3992 | - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
3993 | - ;; | |
3994 | - *) | |
3995 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3996 | - for ac_dir in $PATH; do | |
3997 | - test -z "$ac_dir" && ac_dir=. | |
3998 | - if test -f $ac_dir/$ac_word; then | |
3999 | - if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
4000 | - ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
4001 | - break | |
4002 | - fi | |
4003 | - fi | |
4004 | - done | |
4005 | - IFS="$ac_save_ifs" | |
4006 | - test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
4007 | - ;; | |
4008 | -esac | |
4009 | -fi | |
4010 | -XGETTEXT="$ac_cv_path_XGETTEXT" | |
4011 | -if test -n "$XGETTEXT"; then | |
4012 | - echo "$ac_t""$XGETTEXT" 1>&6 | |
4013 | -else | |
4014 | - echo "$ac_t""no" 1>&6 | |
4015 | -fi | |
4016 | - | |
4017 | - cat > conftest.$ac_ext <<EOF | |
4018 | -#line 4019 "configure" | |
4019 | -#include "confdefs.h" | |
4020 | - | |
4021 | -int main() { | |
4022 | -extern int _nl_msg_cat_cntr; | |
4023 | - return _nl_msg_cat_cntr | |
4024 | -; return 0; } | |
4025 | -EOF | |
4026 | -if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4027 | - rm -rf conftest* | |
4028 | - CATOBJEXT=.gmo | |
4029 | - DATADIRNAME=share | |
4030 | -else | |
4031 | - echo "configure: failed program was:" >&5 | |
4032 | - cat conftest.$ac_ext >&5 | |
4033 | - rm -rf conftest* | |
4034 | - CATOBJEXT=.mo | |
4035 | - DATADIRNAME=lib | |
4036 | -fi | |
4037 | -rm -f conftest* | |
4038 | - INSTOBJEXT=.mo | |
4039 | - fi | |
4040 | - fi | |
4041 | - | |
4042 | -else | |
4043 | - echo "$ac_t""no" 1>&6 | |
4044 | -fi | |
4045 | - | |
4046 | - | |
4047 | - | |
4048 | - if test "$CATOBJEXT" = "NONE"; then | |
4049 | - nls_cv_use_gnu_gettext=yes | |
4050 | - fi | |
4051 | - fi | |
4052 | - | |
4053 | - if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
4054 | - INTLOBJS="\$(GETTOBJS)" | |
4055 | - # Extract the first word of "msgfmt", so it can be a program name with args. | |
4056 | -set dummy msgfmt; ac_word=$2 | |
4057 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4058 | -echo "configure:4059: checking for $ac_word" >&5 | |
4059 | -if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then | |
4060 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
4061 | -else | |
4062 | - case "$MSGFMT" in | |
4063 | - /*) | |
4064 | - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
4065 | - ;; | |
4066 | - *) | |
4067 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
4068 | - for ac_dir in $PATH; do | |
4069 | - test -z "$ac_dir" && ac_dir=. | |
4070 | - if test -f $ac_dir/$ac_word; then | |
4071 | - if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
4072 | - ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
4073 | - break | |
4074 | - fi | |
4075 | - fi | |
4076 | - done | |
4077 | - IFS="$ac_save_ifs" | |
4078 | - test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
4079 | - ;; | |
4080 | -esac | |
4081 | -fi | |
4082 | -MSGFMT="$ac_cv_path_MSGFMT" | |
4083 | -if test -n "$MSGFMT"; then | |
4084 | - echo "$ac_t""$MSGFMT" 1>&6 | |
4085 | -else | |
4086 | - echo "$ac_t""no" 1>&6 | |
4087 | -fi | |
4088 | - | |
4089 | - # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
4090 | -set dummy gmsgfmt; ac_word=$2 | |
4091 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
4092 | -echo "configure:4093: checking for $ac_word" >&5 | |
4093 | -if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then | |
4094 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
4095 | -else | |
4096 | - case "$GMSGFMT" in | |
4097 | - /*) | |
4098 | - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
4099 | - ;; | |
4100 | - ?:/*) | |
4101 | - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
4102 | - ;; | |
4103 | - *) | |
4104 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4105 | - ac_dummy="$PATH" | |
4106 | - for ac_dir in $ac_dummy; do | |
4107 | - test -z "$ac_dir" && ac_dir=. | |
4108 | - if test -f $ac_dir/$ac_word; then | |
4109 | - ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
1507 | + if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1508 | + ac_prog_rejected=yes | |
1509 | + continue | |
1510 | + fi | |
1511 | + ac_cv_prog_CC="cc" | |
4110 | 1512 | break |
4111 | 1513 | fi |
4112 | 1514 | done |
4113 | 1515 | IFS="$ac_save_ifs" |
4114 | - test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
4115 | - ;; | |
4116 | -esac | |
1516 | +if test $ac_prog_rejected = yes; then | |
1517 | + # We found a bogon in the path, so make sure we never use it. | |
1518 | + set dummy $ac_cv_prog_CC | |
1519 | + shift | |
1520 | + if test $# -gt 0; then | |
1521 | + # We chose a different compiler from the bogus one. | |
1522 | + # However, it has the same basename, so the bogon will be chosen | |
1523 | + # first if we set CC to just the basename; use the full file name. | |
1524 | + shift | |
1525 | + set dummy "$ac_dir/$ac_word" "$@" | |
1526 | + shift | |
1527 | + ac_cv_prog_CC="$@" | |
1528 | + fi | |
1529 | +fi | |
4117 | 1530 | fi |
4118 | -GMSGFMT="$ac_cv_path_GMSGFMT" | |
4119 | -if test -n "$GMSGFMT"; then | |
4120 | - echo "$ac_t""$GMSGFMT" 1>&6 | |
1531 | +fi | |
1532 | +CC="$ac_cv_prog_CC" | |
1533 | +if test -n "$CC"; then | |
1534 | + echo "$ac_t""$CC" 1>&6 | |
4121 | 1535 | else |
4122 | 1536 | echo "$ac_t""no" 1>&6 |
4123 | 1537 | fi |
4124 | 1538 | |
4125 | - # Extract the first word of "xgettext", so it can be a program name with args. | |
4126 | -set dummy xgettext; ac_word=$2 | |
1539 | + if test -z "$CC"; then | |
1540 | + case "`uname -s`" in | |
1541 | + *win32* | *WIN32*) | |
1542 | + # Extract the first word of "cl", so it can be a program name with args. | |
1543 | +set dummy cl; ac_word=$2 | |
4127 | 1544 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4128 | -echo "configure:4129: checking for $ac_word" >&5 | |
4129 | -if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then | |
1545 | +echo "configure:1546: checking for $ac_word" >&5 | |
1546 | +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
4130 | 1547 | echo $ac_n "(cached) $ac_c" 1>&6 |
4131 | 1548 | else |
4132 | - case "$XGETTEXT" in | |
4133 | - /*) | |
4134 | - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
4135 | - ;; | |
4136 | - *) | |
4137 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
4138 | - for ac_dir in $PATH; do | |
1549 | + if test -n "$CC"; then | |
1550 | + ac_cv_prog_CC="$CC" # Let the user override the test. | |
1551 | +else | |
1552 | + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1553 | + ac_dummy="$PATH" | |
1554 | + for ac_dir in $ac_dummy; do | |
4139 | 1555 | test -z "$ac_dir" && ac_dir=. |
4140 | 1556 | if test -f $ac_dir/$ac_word; then |
4141 | - if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
4142 | - ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
4143 | - break | |
4144 | - fi | |
1557 | + ac_cv_prog_CC="cl" | |
1558 | + break | |
4145 | 1559 | fi |
4146 | 1560 | done |
4147 | 1561 | IFS="$ac_save_ifs" |
4148 | - test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
4149 | - ;; | |
4150 | -esac | |
4151 | 1562 | fi |
4152 | -XGETTEXT="$ac_cv_path_XGETTEXT" | |
4153 | -if test -n "$XGETTEXT"; then | |
4154 | - echo "$ac_t""$XGETTEXT" 1>&6 | |
1563 | +fi | |
1564 | +CC="$ac_cv_prog_CC" | |
1565 | +if test -n "$CC"; then | |
1566 | + echo "$ac_t""$CC" 1>&6 | |
4155 | 1567 | else |
4156 | 1568 | echo "$ac_t""no" 1>&6 |
4157 | 1569 | fi |
1570 | + ;; | |
1571 | + esac | |
1572 | + fi | |
1573 | + test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1574 | +fi | |
4158 | 1575 | |
4159 | - | |
4160 | - USE_INCLUDED_LIBINTL=yes | |
4161 | - CATOBJEXT=.gmo | |
4162 | - INSTOBJEXT=.mo | |
4163 | - DATADIRNAME=share | |
4164 | - INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
4165 | - INTLLIBS=$INTLDEPS | |
4166 | - LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
4167 | - nls_cv_header_intl=libintl.h | |
4168 | - nls_cv_header_libgt=libgettext.h | |
4169 | - fi | |
4170 | - | |
4171 | - if test "$XGETTEXT" != ":"; then | |
4172 | - if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
4173 | - : ; | |
4174 | - else | |
4175 | - echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 | |
4176 | - XGETTEXT=":" | |
4177 | - fi | |
4178 | - fi | |
4179 | - | |
4180 | - # We need to process the po/ directory. | |
4181 | - POSUB=po | |
4182 | - else | |
4183 | - DATADIRNAME=share | |
4184 | - nls_cv_header_intl=libintl.h | |
4185 | - nls_cv_header_libgt=libgettext.h | |
4186 | - fi | |
1576 | +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
1577 | +echo "configure:1578: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
4187 | 1578 | |
4188 | - # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
4189 | - # because some of the sources are only built for this goal. | |
4190 | - if test "$PACKAGE" = gettext; then | |
4191 | - USE_NLS=yes | |
4192 | - USE_INCLUDED_LIBINTL=yes | |
4193 | - fi | |
1579 | +ac_ext=c | |
1580 | +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1581 | +ac_cpp='$CPP $CPPFLAGS' | |
1582 | +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1583 | +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1584 | +cross_compiling=$ac_cv_prog_cc_cross | |
4194 | 1585 | |
4195 | - for lang in $ALL_LINGUAS; do | |
4196 | - GMOFILES="$GMOFILES $lang.gmo" | |
4197 | - POFILES="$POFILES $lang.po" | |
4198 | - done | |
1586 | +cat > conftest.$ac_ext << EOF | |
4199 | 1587 | |
4200 | - | |
4201 | - | |
4202 | - | |
4203 | - | |
4204 | - | |
4205 | - | |
4206 | - | |
4207 | - | |
4208 | - | |
4209 | - | |
4210 | - | |
4211 | - | |
1588 | +#line 1589 "configure" | |
1589 | +#include "confdefs.h" | |
4212 | 1590 | |
4213 | - if test "x$CATOBJEXT" != "x"; then | |
4214 | - if test "x$ALL_LINGUAS" = "x"; then | |
4215 | - LINGUAS= | |
4216 | - else | |
4217 | - echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
4218 | -echo "configure:4219: checking for catalogs to be installed" >&5 | |
4219 | - NEW_LINGUAS= | |
4220 | - for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
4221 | - case "$ALL_LINGUAS" in | |
4222 | - *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
4223 | - esac | |
4224 | - done | |
4225 | - LINGUAS=$NEW_LINGUAS | |
4226 | - echo "$ac_t""$LINGUAS" 1>&6 | |
4227 | - fi | |
4228 | - | |
4229 | - if test -n "$LINGUAS"; then | |
4230 | - for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
4231 | - fi | |
4232 | - fi | |
1591 | +main(){return(0);} | |
1592 | +EOF | |
1593 | +if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1594 | + ac_cv_prog_cc_works=yes | |
1595 | + # If we can't run a trivial program, we are probably using a cross compiler. | |
1596 | + if (./conftest; exit) 2>/dev/null; then | |
1597 | + ac_cv_prog_cc_cross=no | |
1598 | + else | |
1599 | + ac_cv_prog_cc_cross=yes | |
1600 | + fi | |
1601 | +else | |
1602 | + echo "configure: failed program was:" >&5 | |
1603 | + cat conftest.$ac_ext >&5 | |
1604 | + ac_cv_prog_cc_works=no | |
1605 | +fi | |
1606 | +rm -fr conftest* | |
1607 | +ac_ext=c | |
1608 | +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1609 | +ac_cpp='$CPP $CPPFLAGS' | |
1610 | +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1611 | +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1612 | +cross_compiling=$ac_cv_prog_cc_cross | |
4233 | 1613 | |
4234 | - if test $ac_cv_header_locale_h = yes; then | |
4235 | - INCLUDE_LOCALE_H="#include <locale.h>" | |
4236 | - else | |
4237 | - INCLUDE_LOCALE_H="\ | |
4238 | -/* The system does not provide the header <locale.h>. Take care yourself. */" | |
4239 | - fi | |
4240 | - | |
1614 | +echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1615 | +if test $ac_cv_prog_cc_works = no; then | |
1616 | + { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1617 | +fi | |
1618 | +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
1619 | +echo "configure:1620: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
1620 | +echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
1621 | +cross_compiling=$ac_cv_prog_cc_cross | |
4241 | 1622 | |
4242 | - if test -f $srcdir/po2tbl.sed.in; then | |
4243 | - if test "$CATOBJEXT" = ".cat"; then | |
4244 | - ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
4245 | -echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
4246 | -echo "configure:4247: checking for linux/version.h" >&5 | |
4247 | -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
1623 | +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
1624 | +echo "configure:1625: checking whether we are using GNU C" >&5 | |
1625 | +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
4248 | 1626 | echo $ac_n "(cached) $ac_c" 1>&6 |
4249 | 1627 | else |
4250 | - cat > conftest.$ac_ext <<EOF | |
4251 | -#line 4252 "configure" | |
4252 | -#include "confdefs.h" | |
4253 | -#include <linux/version.h> | |
1628 | + cat > conftest.c <<EOF | |
1629 | +#ifdef __GNUC__ | |
1630 | + yes; | |
1631 | +#endif | |
4254 | 1632 | EOF |
4255 | -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4256 | -{ (eval echo configure:4257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
4257 | -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
4258 | -if test -z "$ac_err"; then | |
4259 | - rm -rf conftest* | |
4260 | - eval "ac_cv_header_$ac_safe=yes" | |
1633 | +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
1634 | + ac_cv_prog_gcc=yes | |
4261 | 1635 | else |
4262 | - echo "$ac_err" >&5 | |
4263 | - echo "configure: failed program was:" >&5 | |
4264 | - cat conftest.$ac_ext >&5 | |
4265 | - rm -rf conftest* | |
4266 | - eval "ac_cv_header_$ac_safe=no" | |
1636 | + ac_cv_prog_gcc=no | |
4267 | 1637 | fi |
4268 | -rm -f conftest* | |
4269 | 1638 | fi |
4270 | -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4271 | - echo "$ac_t""yes" 1>&6 | |
4272 | - msgformat=linux | |
1639 | + | |
1640 | +echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1641 | + | |
1642 | +if test $ac_cv_prog_gcc = yes; then | |
1643 | + GCC=yes | |
4273 | 1644 | else |
4274 | - echo "$ac_t""no" 1>&6 | |
4275 | -msgformat=xopen | |
1645 | + GCC= | |
4276 | 1646 | fi |
4277 | 1647 | |
1648 | +ac_test_CFLAGS="${CFLAGS+set}" | |
1649 | +ac_save_CFLAGS="$CFLAGS" | |
1650 | +CFLAGS= | |
1651 | +echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
1652 | +echo "configure:1653: checking whether ${CC-cc} accepts -g" >&5 | |
1653 | +if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
1654 | + echo $ac_n "(cached) $ac_c" 1>&6 | |
1655 | +else | |
1656 | + echo 'void f(){}' > conftest.c | |
1657 | +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1658 | + ac_cv_prog_cc_g=yes | |
1659 | +else | |
1660 | + ac_cv_prog_cc_g=no | |
1661 | +fi | |
1662 | +rm -f conftest* | |
4278 | 1663 | |
4279 | - sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed | |
4280 | - fi | |
4281 | - sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
4282 | - $srcdir/po2tbl.sed.in > po2tbl.sed | |
4283 | - fi | |
4284 | - | |
4285 | - if test "$PACKAGE" = "gettext"; then | |
4286 | - GT_NO="#NO#" | |
4287 | - GT_YES= | |
4288 | - else | |
4289 | - GT_NO= | |
4290 | - GT_YES="#YES#" | |
4291 | - fi | |
4292 | - | |
4293 | - | |
1664 | +fi | |
4294 | 1665 | |
4295 | - MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
4296 | - | |
1666 | +echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1667 | +if test "$ac_test_CFLAGS" = set; then | |
1668 | + CFLAGS="$ac_save_CFLAGS" | |
1669 | +elif test $ac_cv_prog_cc_g = yes; then | |
1670 | + if test "$GCC" = yes; then | |
1671 | + CFLAGS="-g -O2" | |
1672 | + else | |
1673 | + CFLAGS="-g" | |
1674 | + fi | |
1675 | +else | |
1676 | + if test "$GCC" = yes; then | |
1677 | + CFLAGS="-O2" | |
1678 | + else | |
1679 | + CFLAGS= | |
1680 | + fi | |
1681 | +fi | |
4297 | 1682 | |
4298 | - l= | |
4299 | - | |
4300 | 1683 | |
4301 | - if test -d $srcdir/po; then | |
4302 | - test -d po || mkdir po | |
4303 | - if test "x$srcdir" != "x."; then | |
4304 | - if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
4305 | - posrcprefix="$srcdir/" | |
4306 | - else | |
4307 | - posrcprefix="../$srcdir/" | |
4308 | - fi | |
4309 | - else | |
4310 | - posrcprefix="../" | |
4311 | - fi | |
4312 | - rm -f po/POTFILES | |
4313 | - sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
4314 | - < $srcdir/po/POTFILES.in > po/POTFILES | |
4315 | - fi | |
4316 | - | |
1684 | +ALL_LINGUAS= | |
1685 | +CY_GNU_GETTEXT | |
4317 | 1686 | |
4318 | 1687 | # Permit host specific settings. |
4319 | 1688 | . ${srcdir}/configure.host |
@@ -4331,7 +1700,7 @@ fi | ||
4331 | 1700 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
4332 | 1701 | # ./install, which can be erroneously created by make from ./install.sh. |
4333 | 1702 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
4334 | -echo "configure:4335: checking for a BSD compatible install" >&5 | |
1703 | +echo "configure:1704: checking for a BSD compatible install" >&5 | |
4335 | 1704 | if test -z "$INSTALL"; then |
4336 | 1705 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
4337 | 1706 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -4414,7 +1783,7 @@ if test "x$cross_compiling" = "xno"; then | ||
4414 | 1783 | EXEEXT_FOR_BUILD='$(EXEEXT)' |
4415 | 1784 | else |
4416 | 1785 | echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6 |
4417 | -echo "configure:4418: checking for build system executable suffix" >&5 | |
1786 | +echo "configure:1787: checking for build system executable suffix" >&5 | |
4418 | 1787 | if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then |
4419 | 1788 | echo $ac_n "(cached) $ac_c" 1>&6 |
4420 | 1789 | else |
@@ -4438,21 +1807,101 @@ echo "$ac_t""$bfd_cv_build_exeext" 1>&6 | ||
4438 | 1807 | fi |
4439 | 1808 | |
4440 | 1809 | |
1810 | +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
1811 | +echo "configure:1812: checking how to run the C preprocessor" >&5 | |
1812 | +# On Suns, sometimes $CPP names a directory. | |
1813 | +if test -n "$CPP" && test -d "$CPP"; then | |
1814 | + CPP= | |
1815 | +fi | |
1816 | +if test -z "$CPP"; then | |
1817 | +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
1818 | + echo $ac_n "(cached) $ac_c" 1>&6 | |
1819 | +else | |
1820 | + # This must be in double quotes, not single quotes, because CPP may get | |
1821 | + # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1822 | + CPP="${CC-cc} -E" | |
1823 | + # On the NeXT, cc -E runs the code through the compiler's parser, | |
1824 | + # not just through cpp. | |
1825 | + cat > conftest.$ac_ext <<EOF | |
1826 | +#line 1827 "configure" | |
1827 | +#include "confdefs.h" | |
1828 | +#include <assert.h> | |
1829 | +Syntax Error | |
1830 | +EOF | |
1831 | +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1832 | +{ (eval echo configure:1833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1833 | +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
1834 | +if test -z "$ac_err"; then | |
1835 | + : | |
1836 | +else | |
1837 | + echo "$ac_err" >&5 | |
1838 | + echo "configure: failed program was:" >&5 | |
1839 | + cat conftest.$ac_ext >&5 | |
1840 | + rm -rf conftest* | |
1841 | + CPP="${CC-cc} -E -traditional-cpp" | |
1842 | + cat > conftest.$ac_ext <<EOF | |
1843 | +#line 1844 "configure" | |
1844 | +#include "confdefs.h" | |
1845 | +#include <assert.h> | |
1846 | +Syntax Error | |
1847 | +EOF | |
1848 | +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1849 | +{ (eval echo configure:1850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1850 | +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
1851 | +if test -z "$ac_err"; then | |
1852 | + : | |
1853 | +else | |
1854 | + echo "$ac_err" >&5 | |
1855 | + echo "configure: failed program was:" >&5 | |
1856 | + cat conftest.$ac_ext >&5 | |
1857 | + rm -rf conftest* | |
1858 | + CPP="${CC-cc} -nologo -E" | |
1859 | + cat > conftest.$ac_ext <<EOF | |
1860 | +#line 1861 "configure" | |
1861 | +#include "confdefs.h" | |
1862 | +#include <assert.h> | |
1863 | +Syntax Error | |
1864 | +EOF | |
1865 | +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
1866 | +{ (eval echo configure:1867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1867 | +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
1868 | +if test -z "$ac_err"; then | |
1869 | + : | |
1870 | +else | |
1871 | + echo "$ac_err" >&5 | |
1872 | + echo "configure: failed program was:" >&5 | |
1873 | + cat conftest.$ac_ext >&5 | |
1874 | + rm -rf conftest* | |
1875 | + CPP=/lib/cpp | |
1876 | +fi | |
1877 | +rm -f conftest* | |
1878 | +fi | |
1879 | +rm -f conftest* | |
1880 | +fi | |
1881 | +rm -f conftest* | |
1882 | + ac_cv_prog_CPP="$CPP" | |
1883 | +fi | |
1884 | + CPP="$ac_cv_prog_CPP" | |
1885 | +else | |
1886 | + ac_cv_prog_CPP="$CPP" | |
1887 | +fi | |
1888 | +echo "$ac_t""$CPP" 1>&6 | |
1889 | + | |
4441 | 1890 | for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h |
4442 | 1891 | do |
4443 | 1892 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4444 | 1893 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4445 | -echo "configure:4446: checking for $ac_hdr" >&5 | |
1894 | +echo "configure:1895: checking for $ac_hdr" >&5 | |
4446 | 1895 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4447 | 1896 | echo $ac_n "(cached) $ac_c" 1>&6 |
4448 | 1897 | else |
4449 | 1898 | cat > conftest.$ac_ext <<EOF |
4450 | -#line 4451 "configure" | |
1899 | +#line 1900 "configure" | |
4451 | 1900 | #include "confdefs.h" |
4452 | 1901 | #include <$ac_hdr> |
4453 | 1902 | EOF |
4454 | 1903 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4455 | -{ (eval echo configure:4456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1904 | +{ (eval echo configure:1905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
4456 | 1905 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4457 | 1906 | if test -z "$ac_err"; then |
4458 | 1907 | rm -rf conftest* |
@@ -4482,17 +1931,17 @@ for ac_hdr in fcntl.h sys/file.h sys/time.h | ||
4482 | 1931 | do |
4483 | 1932 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4484 | 1933 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4485 | -echo "configure:4486: checking for $ac_hdr" >&5 | |
1934 | +echo "configure:1935: checking for $ac_hdr" >&5 | |
4486 | 1935 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4487 | 1936 | echo $ac_n "(cached) $ac_c" 1>&6 |
4488 | 1937 | else |
4489 | 1938 | cat > conftest.$ac_ext <<EOF |
4490 | -#line 4491 "configure" | |
1939 | +#line 1940 "configure" | |
4491 | 1940 | #include "confdefs.h" |
4492 | 1941 | #include <$ac_hdr> |
4493 | 1942 | EOF |
4494 | 1943 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4495 | -{ (eval echo configure:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1944 | +{ (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
4496 | 1945 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4497 | 1946 | if test -z "$ac_err"; then |
4498 | 1947 | rm -rf conftest* |
@@ -4519,12 +1968,12 @@ fi | ||
4519 | 1968 | done |
4520 | 1969 | |
4521 | 1970 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
4522 | -echo "configure:4523: checking whether time.h and sys/time.h may both be included" >&5 | |
1971 | +echo "configure:1972: checking whether time.h and sys/time.h may both be included" >&5 | |
4523 | 1972 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
4524 | 1973 | echo $ac_n "(cached) $ac_c" 1>&6 |
4525 | 1974 | else |
4526 | 1975 | cat > conftest.$ac_ext <<EOF |
4527 | -#line 4528 "configure" | |
1976 | +#line 1977 "configure" | |
4528 | 1977 | #include "confdefs.h" |
4529 | 1978 | #include <sys/types.h> |
4530 | 1979 | #include <sys/time.h> |
@@ -4533,7 +1982,7 @@ int main() { | ||
4533 | 1982 | struct tm *tp; |
4534 | 1983 | ; return 0; } |
4535 | 1984 | EOF |
4536 | -if { (eval echo configure:4537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1985 | +if { (eval echo configure:1986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4537 | 1986 | rm -rf conftest* |
4538 | 1987 | ac_cv_header_time=yes |
4539 | 1988 | else |
@@ -4558,12 +2007,12 @@ for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | ||
4558 | 2007 | do |
4559 | 2008 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4560 | 2009 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
4561 | -echo "configure:4562: checking for $ac_hdr that defines DIR" >&5 | |
2010 | +echo "configure:2011: checking for $ac_hdr that defines DIR" >&5 | |
4562 | 2011 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
4563 | 2012 | echo $ac_n "(cached) $ac_c" 1>&6 |
4564 | 2013 | else |
4565 | 2014 | cat > conftest.$ac_ext <<EOF |
4566 | -#line 4567 "configure" | |
2015 | +#line 2016 "configure" | |
4567 | 2016 | #include "confdefs.h" |
4568 | 2017 | #include <sys/types.h> |
4569 | 2018 | #include <$ac_hdr> |
@@ -4571,7 +2020,7 @@ int main() { | ||
4571 | 2020 | DIR *dirp = 0; |
4572 | 2021 | ; return 0; } |
4573 | 2022 | EOF |
4574 | -if { (eval echo configure:4575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2023 | +if { (eval echo configure:2024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4575 | 2024 | rm -rf conftest* |
4576 | 2025 | eval "ac_cv_header_dirent_$ac_safe=yes" |
4577 | 2026 | else |
@@ -4596,7 +2045,7 @@ done | ||
4596 | 2045 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
4597 | 2046 | if test $ac_header_dirent = dirent.h; then |
4598 | 2047 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
4599 | -echo "configure:4600: checking for opendir in -ldir" >&5 | |
2048 | +echo "configure:2049: checking for opendir in -ldir" >&5 | |
4600 | 2049 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
4601 | 2050 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4602 | 2051 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -4604,7 +2053,7 @@ else | ||
4604 | 2053 | ac_save_LIBS="$LIBS" |
4605 | 2054 | LIBS="-ldir $LIBS" |
4606 | 2055 | cat > conftest.$ac_ext <<EOF |
4607 | -#line 4608 "configure" | |
2056 | +#line 2057 "configure" | |
4608 | 2057 | #include "confdefs.h" |
4609 | 2058 | /* Override any gcc2 internal prototype to avoid an error. */ |
4610 | 2059 | /* We use char because int might match the return type of a gcc2 |
@@ -4615,7 +2064,7 @@ int main() { | ||
4615 | 2064 | opendir() |
4616 | 2065 | ; return 0; } |
4617 | 2066 | EOF |
4618 | -if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2067 | +if { (eval echo configure:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4619 | 2068 | rm -rf conftest* |
4620 | 2069 | eval "ac_cv_lib_$ac_lib_var=yes" |
4621 | 2070 | else |
@@ -4637,7 +2086,7 @@ fi | ||
4637 | 2086 | |
4638 | 2087 | else |
4639 | 2088 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
4640 | -echo "configure:4641: checking for opendir in -lx" >&5 | |
2089 | +echo "configure:2090: checking for opendir in -lx" >&5 | |
4641 | 2090 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
4642 | 2091 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4643 | 2092 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -4645,7 +2094,7 @@ else | ||
4645 | 2094 | ac_save_LIBS="$LIBS" |
4646 | 2095 | LIBS="-lx $LIBS" |
4647 | 2096 | cat > conftest.$ac_ext <<EOF |
4648 | -#line 4649 "configure" | |
2097 | +#line 2098 "configure" | |
4649 | 2098 | #include "confdefs.h" |
4650 | 2099 | /* Override any gcc2 internal prototype to avoid an error. */ |
4651 | 2100 | /* We use char because int might match the return type of a gcc2 |
@@ -4656,7 +2105,7 @@ int main() { | ||
4656 | 2105 | opendir() |
4657 | 2106 | ; return 0; } |
4658 | 2107 | EOF |
4659 | -if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2108 | +if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4660 | 2109 | rm -rf conftest* |
4661 | 2110 | eval "ac_cv_lib_$ac_lib_var=yes" |
4662 | 2111 | else |
@@ -4681,12 +2130,12 @@ fi | ||
4681 | 2130 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid |
4682 | 2131 | do |
4683 | 2132 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4684 | -echo "configure:4685: checking for $ac_func" >&5 | |
2133 | +echo "configure:2134: checking for $ac_func" >&5 | |
4685 | 2134 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4686 | 2135 | echo $ac_n "(cached) $ac_c" 1>&6 |
4687 | 2136 | else |
4688 | 2137 | cat > conftest.$ac_ext <<EOF |
4689 | -#line 4690 "configure" | |
2138 | +#line 2139 "configure" | |
4690 | 2139 | #include "confdefs.h" |
4691 | 2140 | /* System header to define __stub macros and hopefully few prototypes, |
4692 | 2141 | which can conflict with char $ac_func(); below. */ |
@@ -4709,7 +2158,7 @@ $ac_func(); | ||
4709 | 2158 | |
4710 | 2159 | ; return 0; } |
4711 | 2160 | EOF |
4712 | -if { (eval echo configure:4713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2161 | +if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4713 | 2162 | rm -rf conftest* |
4714 | 2163 | eval "ac_cv_func_$ac_func=yes" |
4715 | 2164 | else |
@@ -4744,12 +2193,12 @@ EOF | ||
4744 | 2193 | esac |
4745 | 2194 | |
4746 | 2195 | echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6 |
4747 | -echo "configure:4748: checking whether strstr must be declared" >&5 | |
2196 | +echo "configure:2197: checking whether strstr must be declared" >&5 | |
4748 | 2197 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then |
4749 | 2198 | echo $ac_n "(cached) $ac_c" 1>&6 |
4750 | 2199 | else |
4751 | 2200 | cat > conftest.$ac_ext <<EOF |
4752 | -#line 4753 "configure" | |
2201 | +#line 2202 "configure" | |
4753 | 2202 | #include "confdefs.h" |
4754 | 2203 | |
4755 | 2204 | #include <stdio.h> |
@@ -4770,7 +2219,7 @@ int main() { | ||
4770 | 2219 | char *(*pfn) = (char *(*)) strstr |
4771 | 2220 | ; return 0; } |
4772 | 2221 | EOF |
4773 | -if { (eval echo configure:4774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2222 | +if { (eval echo configure:2223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4774 | 2223 | rm -rf conftest* |
4775 | 2224 | bfd_cv_decl_needed_strstr=no |
4776 | 2225 | else |
@@ -4791,12 +2240,12 @@ EOF | ||
4791 | 2240 | fi |
4792 | 2241 | |
4793 | 2242 | echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6 |
4794 | -echo "configure:4795: checking whether malloc must be declared" >&5 | |
2243 | +echo "configure:2244: checking whether malloc must be declared" >&5 | |
4795 | 2244 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then |
4796 | 2245 | echo $ac_n "(cached) $ac_c" 1>&6 |
4797 | 2246 | else |
4798 | 2247 | cat > conftest.$ac_ext <<EOF |
4799 | -#line 4800 "configure" | |
2248 | +#line 2249 "configure" | |
4800 | 2249 | #include "confdefs.h" |
4801 | 2250 | |
4802 | 2251 | #include <stdio.h> |
@@ -4817,7 +2266,7 @@ int main() { | ||
4817 | 2266 | char *(*pfn) = (char *(*)) malloc |
4818 | 2267 | ; return 0; } |
4819 | 2268 | EOF |
4820 | -if { (eval echo configure:4821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2269 | +if { (eval echo configure:2270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4821 | 2270 | rm -rf conftest* |
4822 | 2271 | bfd_cv_decl_needed_malloc=no |
4823 | 2272 | else |
@@ -4838,12 +2287,12 @@ EOF | ||
4838 | 2287 | fi |
4839 | 2288 | |
4840 | 2289 | echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6 |
4841 | -echo "configure:4842: checking whether realloc must be declared" >&5 | |
2290 | +echo "configure:2291: checking whether realloc must be declared" >&5 | |
4842 | 2291 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then |
4843 | 2292 | echo $ac_n "(cached) $ac_c" 1>&6 |
4844 | 2293 | else |
4845 | 2294 | cat > conftest.$ac_ext <<EOF |
4846 | -#line 4847 "configure" | |
2295 | +#line 2296 "configure" | |
4847 | 2296 | #include "confdefs.h" |
4848 | 2297 | |
4849 | 2298 | #include <stdio.h> |
@@ -4864,7 +2313,7 @@ int main() { | ||
4864 | 2313 | char *(*pfn) = (char *(*)) realloc |
4865 | 2314 | ; return 0; } |
4866 | 2315 | EOF |
4867 | -if { (eval echo configure:4868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2316 | +if { (eval echo configure:2317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4868 | 2317 | rm -rf conftest* |
4869 | 2318 | bfd_cv_decl_needed_realloc=no |
4870 | 2319 | else |
@@ -4885,12 +2334,12 @@ EOF | ||
4885 | 2334 | fi |
4886 | 2335 | |
4887 | 2336 | echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6 |
4888 | -echo "configure:4889: checking whether free must be declared" >&5 | |
2337 | +echo "configure:2338: checking whether free must be declared" >&5 | |
4889 | 2338 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then |
4890 | 2339 | echo $ac_n "(cached) $ac_c" 1>&6 |
4891 | 2340 | else |
4892 | 2341 | cat > conftest.$ac_ext <<EOF |
4893 | -#line 4894 "configure" | |
2342 | +#line 2343 "configure" | |
4894 | 2343 | #include "confdefs.h" |
4895 | 2344 | |
4896 | 2345 | #include <stdio.h> |
@@ -4911,7 +2360,7 @@ int main() { | ||
4911 | 2360 | char *(*pfn) = (char *(*)) free |
4912 | 2361 | ; return 0; } |
4913 | 2362 | EOF |
4914 | -if { (eval echo configure:4915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2363 | +if { (eval echo configure:2364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4915 | 2364 | rm -rf conftest* |
4916 | 2365 | bfd_cv_decl_needed_free=no |
4917 | 2366 | else |
@@ -4932,12 +2381,12 @@ EOF | ||
4932 | 2381 | fi |
4933 | 2382 | |
4934 | 2383 | echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6 |
4935 | -echo "configure:4936: checking whether getenv must be declared" >&5 | |
2384 | +echo "configure:2385: checking whether getenv must be declared" >&5 | |
4936 | 2385 | if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then |
4937 | 2386 | echo $ac_n "(cached) $ac_c" 1>&6 |
4938 | 2387 | else |
4939 | 2388 | cat > conftest.$ac_ext <<EOF |
4940 | -#line 4941 "configure" | |
2389 | +#line 2390 "configure" | |
4941 | 2390 | #include "confdefs.h" |
4942 | 2391 | |
4943 | 2392 | #include <stdio.h> |
@@ -4958,7 +2407,7 @@ int main() { | ||
4958 | 2407 | char *(*pfn) = (char *(*)) getenv |
4959 | 2408 | ; return 0; } |
4960 | 2409 | EOF |
4961 | -if { (eval echo configure:4962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2410 | +if { (eval echo configure:2411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4962 | 2411 | rm -rf conftest* |
4963 | 2412 | bfd_cv_decl_needed_getenv=no |
4964 | 2413 | else |
@@ -5015,7 +2464,7 @@ if test "${target}" = "${host}"; then | ||
5015 | 2464 | COREFILE=trad-core.lo |
5016 | 2465 | TRAD_HEADER='"hosts/symmetry.h"' |
5017 | 2466 | ;; |
5018 | - i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*) | |
2467 | + i[3456]86-*-bsd* | i[34567]86-*-freebsd[123] | i[34567]86-*-freebsd[123]\.* | i[34567]86-*-freebsd4\.[01]* | i[34567]86-*-freebsd*aout*) | |
5019 | 2468 | COREFILE=trad-core.lo |
5020 | 2469 | TRAD_HEADER='"hosts/i386bsd.h"' |
5021 | 2470 | ;; |
@@ -5177,17 +2626,17 @@ if test "${target}" = "${host}"; then | ||
5177 | 2626 | do |
5178 | 2627 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5179 | 2628 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5180 | -echo "configure:5181: checking for $ac_hdr" >&5 | |
2629 | +echo "configure:2630: checking for $ac_hdr" >&5 | |
5181 | 2630 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5182 | 2631 | echo $ac_n "(cached) $ac_c" 1>&6 |
5183 | 2632 | else |
5184 | 2633 | cat > conftest.$ac_ext <<EOF |
5185 | -#line 5186 "configure" | |
2634 | +#line 2635 "configure" | |
5186 | 2635 | #include "confdefs.h" |
5187 | 2636 | #include <$ac_hdr> |
5188 | 2637 | EOF |
5189 | 2638 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5190 | -{ (eval echo configure:5191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2639 | +{ (eval echo configure:2640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
5191 | 2640 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5192 | 2641 | if test -z "$ac_err"; then |
5193 | 2642 | rm -rf conftest* |
@@ -5215,12 +2664,12 @@ done | ||
5215 | 2664 | |
5216 | 2665 | if test "$ac_cv_header_sys_procfs_h" = yes; then |
5217 | 2666 | echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
5218 | -echo "configure:5219: checking for prstatus_t in sys/procfs.h" >&5 | |
2667 | +echo "configure:2668: checking for prstatus_t in sys/procfs.h" >&5 | |
5219 | 2668 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then |
5220 | 2669 | echo $ac_n "(cached) $ac_c" 1>&6 |
5221 | 2670 | else |
5222 | 2671 | cat > conftest.$ac_ext <<EOF |
5223 | -#line 5224 "configure" | |
2672 | +#line 2673 "configure" | |
5224 | 2673 | #include "confdefs.h" |
5225 | 2674 | |
5226 | 2675 | #define _SYSCALL32 |
@@ -5229,7 +2678,7 @@ int main() { | ||
5229 | 2678 | prstatus_t avar |
5230 | 2679 | ; return 0; } |
5231 | 2680 | EOF |
5232 | -if { (eval echo configure:5233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2681 | +if { (eval echo configure:2682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5233 | 2682 | rm -rf conftest* |
5234 | 2683 | bfd_cv_have_sys_procfs_type_prstatus_t=yes |
5235 | 2684 | else |
@@ -5251,12 +2700,12 @@ EOF | ||
5251 | 2700 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6 |
5252 | 2701 | |
5253 | 2702 | echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6 |
5254 | -echo "configure:5255: checking for prstatus32_t in sys/procfs.h" >&5 | |
2703 | +echo "configure:2704: checking for prstatus32_t in sys/procfs.h" >&5 | |
5255 | 2704 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then |
5256 | 2705 | echo $ac_n "(cached) $ac_c" 1>&6 |
5257 | 2706 | else |
5258 | 2707 | cat > conftest.$ac_ext <<EOF |
5259 | -#line 5260 "configure" | |
2708 | +#line 2709 "configure" | |
5260 | 2709 | #include "confdefs.h" |
5261 | 2710 | |
5262 | 2711 | #define _SYSCALL32 |
@@ -5265,7 +2714,7 @@ int main() { | ||
5265 | 2714 | prstatus32_t avar |
5266 | 2715 | ; return 0; } |
5267 | 2716 | EOF |
5268 | -if { (eval echo configure:5269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2717 | +if { (eval echo configure:2718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5269 | 2718 | rm -rf conftest* |
5270 | 2719 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes |
5271 | 2720 | else |
@@ -5287,12 +2736,12 @@ EOF | ||
5287 | 2736 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6 |
5288 | 2737 | |
5289 | 2738 | echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6 |
5290 | -echo "configure:5291: checking for prstatus_t.pr_who in sys/procfs.h" >&5 | |
2739 | +echo "configure:2740: checking for prstatus_t.pr_who in sys/procfs.h" >&5 | |
5291 | 2740 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then |
5292 | 2741 | echo $ac_n "(cached) $ac_c" 1>&6 |
5293 | 2742 | else |
5294 | 2743 | cat > conftest.$ac_ext <<EOF |
5295 | -#line 5296 "configure" | |
2744 | +#line 2745 "configure" | |
5296 | 2745 | #include "confdefs.h" |
5297 | 2746 | |
5298 | 2747 | #define _SYSCALL32 |
@@ -5301,7 +2750,7 @@ int main() { | ||
5301 | 2750 | prstatus_t avar; void* aref = (void*) &avar.pr_who |
5302 | 2751 | ; return 0; } |
5303 | 2752 | EOF |
5304 | -if { (eval echo configure:5305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2753 | +if { (eval echo configure:2754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5305 | 2754 | rm -rf conftest* |
5306 | 2755 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes |
5307 | 2756 | else |
@@ -5323,12 +2772,12 @@ EOF | ||
5323 | 2772 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6 |
5324 | 2773 | |
5325 | 2774 | echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6 |
5326 | -echo "configure:5327: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 | |
2775 | +echo "configure:2776: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 | |
5327 | 2776 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then |
5328 | 2777 | echo $ac_n "(cached) $ac_c" 1>&6 |
5329 | 2778 | else |
5330 | 2779 | cat > conftest.$ac_ext <<EOF |
5331 | -#line 5332 "configure" | |
2780 | +#line 2781 "configure" | |
5332 | 2781 | #include "confdefs.h" |
5333 | 2782 | |
5334 | 2783 | #define _SYSCALL32 |
@@ -5337,7 +2786,7 @@ int main() { | ||
5337 | 2786 | prstatus32_t avar; void* aref = (void*) &avar.pr_who |
5338 | 2787 | ; return 0; } |
5339 | 2788 | EOF |
5340 | -if { (eval echo configure:5341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2789 | +if { (eval echo configure:2790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5341 | 2790 | rm -rf conftest* |
5342 | 2791 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes |
5343 | 2792 | else |
@@ -5359,12 +2808,12 @@ EOF | ||
5359 | 2808 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6 |
5360 | 2809 | |
5361 | 2810 | echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
5362 | -echo "configure:5363: checking for pstatus_t in sys/procfs.h" >&5 | |
2811 | +echo "configure:2812: checking for pstatus_t in sys/procfs.h" >&5 | |
5363 | 2812 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then |
5364 | 2813 | echo $ac_n "(cached) $ac_c" 1>&6 |
5365 | 2814 | else |
5366 | 2815 | cat > conftest.$ac_ext <<EOF |
5367 | -#line 5368 "configure" | |
2816 | +#line 2817 "configure" | |
5368 | 2817 | #include "confdefs.h" |
5369 | 2818 | |
5370 | 2819 | #define _SYSCALL32 |
@@ -5373,7 +2822,7 @@ int main() { | ||
5373 | 2822 | pstatus_t avar |
5374 | 2823 | ; return 0; } |
5375 | 2824 | EOF |
5376 | -if { (eval echo configure:5377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2825 | +if { (eval echo configure:2826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5377 | 2826 | rm -rf conftest* |
5378 | 2827 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
5379 | 2828 | else |
@@ -5395,12 +2844,12 @@ EOF | ||
5395 | 2844 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6 |
5396 | 2845 | |
5397 | 2846 | echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
5398 | -echo "configure:5399: checking for pxstatus_t in sys/procfs.h" >&5 | |
2847 | +echo "configure:2848: checking for pxstatus_t in sys/procfs.h" >&5 | |
5399 | 2848 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then |
5400 | 2849 | echo $ac_n "(cached) $ac_c" 1>&6 |
5401 | 2850 | else |
5402 | 2851 | cat > conftest.$ac_ext <<EOF |
5403 | -#line 5404 "configure" | |
2852 | +#line 2853 "configure" | |
5404 | 2853 | #include "confdefs.h" |
5405 | 2854 | |
5406 | 2855 | #define _SYSCALL32 |
@@ -5409,7 +2858,7 @@ int main() { | ||
5409 | 2858 | pxstatus_t avar |
5410 | 2859 | ; return 0; } |
5411 | 2860 | EOF |
5412 | -if { (eval echo configure:5413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2861 | +if { (eval echo configure:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5413 | 2862 | rm -rf conftest* |
5414 | 2863 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes |
5415 | 2864 | else |
@@ -5431,12 +2880,12 @@ EOF | ||
5431 | 2880 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6 |
5432 | 2881 | |
5433 | 2882 | echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6 |
5434 | -echo "configure:5435: checking for pstatus32_t in sys/procfs.h" >&5 | |
2883 | +echo "configure:2884: checking for pstatus32_t in sys/procfs.h" >&5 | |
5435 | 2884 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then |
5436 | 2885 | echo $ac_n "(cached) $ac_c" 1>&6 |
5437 | 2886 | else |
5438 | 2887 | cat > conftest.$ac_ext <<EOF |
5439 | -#line 5440 "configure" | |
2888 | +#line 2889 "configure" | |
5440 | 2889 | #include "confdefs.h" |
5441 | 2890 | |
5442 | 2891 | #define _SYSCALL32 |
@@ -5445,7 +2894,7 @@ int main() { | ||
5445 | 2894 | pstatus32_t avar |
5446 | 2895 | ; return 0; } |
5447 | 2896 | EOF |
5448 | -if { (eval echo configure:5449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2897 | +if { (eval echo configure:2898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5449 | 2898 | rm -rf conftest* |
5450 | 2899 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes |
5451 | 2900 | else |
@@ -5467,12 +2916,12 @@ EOF | ||
5467 | 2916 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6 |
5468 | 2917 | |
5469 | 2918 | echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6 |
5470 | -echo "configure:5471: checking for prpsinfo_t in sys/procfs.h" >&5 | |
2919 | +echo "configure:2920: checking for prpsinfo_t in sys/procfs.h" >&5 | |
5471 | 2920 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then |
5472 | 2921 | echo $ac_n "(cached) $ac_c" 1>&6 |
5473 | 2922 | else |
5474 | 2923 | cat > conftest.$ac_ext <<EOF |
5475 | -#line 5476 "configure" | |
2924 | +#line 2925 "configure" | |
5476 | 2925 | #include "confdefs.h" |
5477 | 2926 | |
5478 | 2927 | #define _SYSCALL32 |
@@ -5481,7 +2930,7 @@ int main() { | ||
5481 | 2930 | prpsinfo_t avar |
5482 | 2931 | ; return 0; } |
5483 | 2932 | EOF |
5484 | -if { (eval echo configure:5485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2933 | +if { (eval echo configure:2934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5485 | 2934 | rm -rf conftest* |
5486 | 2935 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes |
5487 | 2936 | else |
@@ -5503,12 +2952,12 @@ EOF | ||
5503 | 2952 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6 |
5504 | 2953 | |
5505 | 2954 | echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6 |
5506 | -echo "configure:5507: checking for prpsinfo32_t in sys/procfs.h" >&5 | |
2955 | +echo "configure:2956: checking for prpsinfo32_t in sys/procfs.h" >&5 | |
5507 | 2956 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then |
5508 | 2957 | echo $ac_n "(cached) $ac_c" 1>&6 |
5509 | 2958 | else |
5510 | 2959 | cat > conftest.$ac_ext <<EOF |
5511 | -#line 5512 "configure" | |
2960 | +#line 2961 "configure" | |
5512 | 2961 | #include "confdefs.h" |
5513 | 2962 | |
5514 | 2963 | #define _SYSCALL32 |
@@ -5517,7 +2966,7 @@ int main() { | ||
5517 | 2966 | prpsinfo32_t avar |
5518 | 2967 | ; return 0; } |
5519 | 2968 | EOF |
5520 | -if { (eval echo configure:5521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2969 | +if { (eval echo configure:2970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5521 | 2970 | rm -rf conftest* |
5522 | 2971 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes |
5523 | 2972 | else |
@@ -5539,12 +2988,12 @@ EOF | ||
5539 | 2988 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6 |
5540 | 2989 | |
5541 | 2990 | echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6 |
5542 | -echo "configure:5543: checking for psinfo_t in sys/procfs.h" >&5 | |
2991 | +echo "configure:2992: checking for psinfo_t in sys/procfs.h" >&5 | |
5543 | 2992 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then |
5544 | 2993 | echo $ac_n "(cached) $ac_c" 1>&6 |
5545 | 2994 | else |
5546 | 2995 | cat > conftest.$ac_ext <<EOF |
5547 | -#line 5548 "configure" | |
2996 | +#line 2997 "configure" | |
5548 | 2997 | #include "confdefs.h" |
5549 | 2998 | |
5550 | 2999 | #define _SYSCALL32 |
@@ -5553,7 +3002,7 @@ int main() { | ||
5553 | 3002 | psinfo_t avar |
5554 | 3003 | ; return 0; } |
5555 | 3004 | EOF |
5556 | -if { (eval echo configure:5557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3005 | +if { (eval echo configure:3006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5557 | 3006 | rm -rf conftest* |
5558 | 3007 | bfd_cv_have_sys_procfs_type_psinfo_t=yes |
5559 | 3008 | else |
@@ -5575,12 +3024,12 @@ EOF | ||
5575 | 3024 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6 |
5576 | 3025 | |
5577 | 3026 | echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6 |
5578 | -echo "configure:5579: checking for psinfo32_t in sys/procfs.h" >&5 | |
3027 | +echo "configure:3028: checking for psinfo32_t in sys/procfs.h" >&5 | |
5579 | 3028 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then |
5580 | 3029 | echo $ac_n "(cached) $ac_c" 1>&6 |
5581 | 3030 | else |
5582 | 3031 | cat > conftest.$ac_ext <<EOF |
5583 | -#line 5584 "configure" | |
3032 | +#line 3033 "configure" | |
5584 | 3033 | #include "confdefs.h" |
5585 | 3034 | |
5586 | 3035 | #define _SYSCALL32 |
@@ -5589,7 +3038,7 @@ int main() { | ||
5589 | 3038 | psinfo32_t avar |
5590 | 3039 | ; return 0; } |
5591 | 3040 | EOF |
5592 | -if { (eval echo configure:5593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3041 | +if { (eval echo configure:3042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5593 | 3042 | rm -rf conftest* |
5594 | 3043 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes |
5595 | 3044 | else |
@@ -5611,12 +3060,12 @@ EOF | ||
5611 | 3060 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6 |
5612 | 3061 | |
5613 | 3062 | echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
5614 | -echo "configure:5615: checking for lwpstatus_t in sys/procfs.h" >&5 | |
3063 | +echo "configure:3064: checking for lwpstatus_t in sys/procfs.h" >&5 | |
5615 | 3064 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then |
5616 | 3065 | echo $ac_n "(cached) $ac_c" 1>&6 |
5617 | 3066 | else |
5618 | 3067 | cat > conftest.$ac_ext <<EOF |
5619 | -#line 5620 "configure" | |
3068 | +#line 3069 "configure" | |
5620 | 3069 | #include "confdefs.h" |
5621 | 3070 | |
5622 | 3071 | #define _SYSCALL32 |
@@ -5625,7 +3074,7 @@ int main() { | ||
5625 | 3074 | lwpstatus_t avar |
5626 | 3075 | ; return 0; } |
5627 | 3076 | EOF |
5628 | -if { (eval echo configure:5629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3077 | +if { (eval echo configure:3078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5629 | 3078 | rm -rf conftest* |
5630 | 3079 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes |
5631 | 3080 | else |
@@ -5647,12 +3096,12 @@ EOF | ||
5647 | 3096 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6 |
5648 | 3097 | |
5649 | 3098 | echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
5650 | -echo "configure:5651: checking for lwpxstatus_t in sys/procfs.h" >&5 | |
3099 | +echo "configure:3100: checking for lwpxstatus_t in sys/procfs.h" >&5 | |
5651 | 3100 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then |
5652 | 3101 | echo $ac_n "(cached) $ac_c" 1>&6 |
5653 | 3102 | else |
5654 | 3103 | cat > conftest.$ac_ext <<EOF |
5655 | -#line 5656 "configure" | |
3104 | +#line 3105 "configure" | |
5656 | 3105 | #include "confdefs.h" |
5657 | 3106 | |
5658 | 3107 | #define _SYSCALL32 |
@@ -5661,7 +3110,7 @@ int main() { | ||
5661 | 3110 | lwpxstatus_t avar |
5662 | 3111 | ; return 0; } |
5663 | 3112 | EOF |
5664 | -if { (eval echo configure:5665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3113 | +if { (eval echo configure:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5665 | 3114 | rm -rf conftest* |
5666 | 3115 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes |
5667 | 3116 | else |
@@ -5683,12 +3132,12 @@ EOF | ||
5683 | 3132 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6 |
5684 | 3133 | |
5685 | 3134 | echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6 |
5686 | -echo "configure:5687: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 | |
3135 | +echo "configure:3136: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 | |
5687 | 3136 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then |
5688 | 3137 | echo $ac_n "(cached) $ac_c" 1>&6 |
5689 | 3138 | else |
5690 | 3139 | cat > conftest.$ac_ext <<EOF |
5691 | -#line 5692 "configure" | |
3140 | +#line 3141 "configure" | |
5692 | 3141 | #include "confdefs.h" |
5693 | 3142 | |
5694 | 3143 | #define _SYSCALL32 |
@@ -5697,7 +3146,7 @@ int main() { | ||
5697 | 3146 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context |
5698 | 3147 | ; return 0; } |
5699 | 3148 | EOF |
5700 | -if { (eval echo configure:5701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3149 | +if { (eval echo configure:3150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5701 | 3150 | rm -rf conftest* |
5702 | 3151 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes |
5703 | 3152 | else |
@@ -5719,12 +3168,12 @@ EOF | ||
5719 | 3168 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6 |
5720 | 3169 | |
5721 | 3170 | echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6 |
5722 | -echo "configure:5723: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 | |
3171 | +echo "configure:3172: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 | |
5723 | 3172 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then |
5724 | 3173 | echo $ac_n "(cached) $ac_c" 1>&6 |
5725 | 3174 | else |
5726 | 3175 | cat > conftest.$ac_ext <<EOF |
5727 | -#line 5728 "configure" | |
3176 | +#line 3177 "configure" | |
5728 | 3177 | #include "confdefs.h" |
5729 | 3178 | |
5730 | 3179 | #define _SYSCALL32 |
@@ -5733,7 +3182,7 @@ int main() { | ||
5733 | 3182 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg |
5734 | 3183 | ; return 0; } |
5735 | 3184 | EOF |
5736 | -if { (eval echo configure:5737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3185 | +if { (eval echo configure:3186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5737 | 3186 | rm -rf conftest* |
5738 | 3187 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes |
5739 | 3188 | else |
@@ -5755,12 +3204,12 @@ EOF | ||
5755 | 3204 | echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6 |
5756 | 3205 | |
5757 | 3206 | echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6 |
5758 | -echo "configure:5759: checking for win32_pstatus_t in sys/procfs.h" >&5 | |
3207 | +echo "configure:3208: checking for win32_pstatus_t in sys/procfs.h" >&5 | |
5759 | 3208 | if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then |
5760 | 3209 | echo $ac_n "(cached) $ac_c" 1>&6 |
5761 | 3210 | else |
5762 | 3211 | cat > conftest.$ac_ext <<EOF |
5763 | -#line 5764 "configure" | |
3212 | +#line 3213 "configure" | |
5764 | 3213 | #include "confdefs.h" |
5765 | 3214 | |
5766 | 3215 | #define _SYSCALL32 |
@@ -5769,7 +3218,7 @@ int main() { | ||
5769 | 3218 | win32_pstatus_t avar |
5770 | 3219 | ; return 0; } |
5771 | 3220 | EOF |
5772 | -if { (eval echo configure:5773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3221 | +if { (eval echo configure:3222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
5773 | 3222 | rm -rf conftest* |
5774 | 3223 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes |
5775 | 3224 | else |
@@ -6167,17 +3616,17 @@ for ac_hdr in unistd.h | ||
6167 | 3616 | do |
6168 | 3617 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6169 | 3618 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6170 | -echo "configure:6171: checking for $ac_hdr" >&5 | |
3619 | +echo "configure:3620: checking for $ac_hdr" >&5 | |
6171 | 3620 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6172 | 3621 | echo $ac_n "(cached) $ac_c" 1>&6 |
6173 | 3622 | else |
6174 | 3623 | cat > conftest.$ac_ext <<EOF |
6175 | -#line 6176 "configure" | |
3624 | +#line 3625 "configure" | |
6176 | 3625 | #include "confdefs.h" |
6177 | 3626 | #include <$ac_hdr> |
6178 | 3627 | EOF |
6179 | 3628 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6180 | -{ (eval echo configure:6181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
3629 | +{ (eval echo configure:3630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6181 | 3630 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6182 | 3631 | if test -z "$ac_err"; then |
6183 | 3632 | rm -rf conftest* |
@@ -6206,12 +3655,12 @@ done | ||
6206 | 3655 | for ac_func in getpagesize |
6207 | 3656 | do |
6208 | 3657 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6209 | -echo "configure:6210: checking for $ac_func" >&5 | |
3658 | +echo "configure:3659: checking for $ac_func" >&5 | |
6210 | 3659 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6211 | 3660 | echo $ac_n "(cached) $ac_c" 1>&6 |
6212 | 3661 | else |
6213 | 3662 | cat > conftest.$ac_ext <<EOF |
6214 | -#line 6215 "configure" | |
3663 | +#line 3664 "configure" | |
6215 | 3664 | #include "confdefs.h" |
6216 | 3665 | /* System header to define __stub macros and hopefully few prototypes, |
6217 | 3666 | which can conflict with char $ac_func(); below. */ |
@@ -6234,7 +3683,7 @@ $ac_func(); | ||
6234 | 3683 | |
6235 | 3684 | ; return 0; } |
6236 | 3685 | EOF |
6237 | -if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3686 | +if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6238 | 3687 | rm -rf conftest* |
6239 | 3688 | eval "ac_cv_func_$ac_func=yes" |
6240 | 3689 | else |
@@ -6259,7 +3708,7 @@ fi | ||
6259 | 3708 | done |
6260 | 3709 | |
6261 | 3710 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
6262 | -echo "configure:6263: checking for working mmap" >&5 | |
3711 | +echo "configure:3712: checking for working mmap" >&5 | |
6263 | 3712 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
6264 | 3713 | echo $ac_n "(cached) $ac_c" 1>&6 |
6265 | 3714 | else |
@@ -6267,7 +3716,7 @@ else | ||
6267 | 3716 | ac_cv_func_mmap_fixed_mapped=no |
6268 | 3717 | else |
6269 | 3718 | cat > conftest.$ac_ext <<EOF |
6270 | -#line 6271 "configure" | |
3719 | +#line 3720 "configure" | |
6271 | 3720 | #include "confdefs.h" |
6272 | 3721 | |
6273 | 3722 | /* Thanks to Mike Haertel and Jim Avera for this test. |
@@ -6407,7 +3856,7 @@ main() | ||
6407 | 3856 | } |
6408 | 3857 | |
6409 | 3858 | EOF |
6410 | -if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
3859 | +if { (eval echo configure:3860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
6411 | 3860 | then |
6412 | 3861 | ac_cv_func_mmap_fixed_mapped=yes |
6413 | 3862 | else |
@@ -6432,12 +3881,12 @@ fi | ||
6432 | 3881 | for ac_func in madvise mprotect |
6433 | 3882 | do |
6434 | 3883 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6435 | -echo "configure:6436: checking for $ac_func" >&5 | |
3884 | +echo "configure:3885: checking for $ac_func" >&5 | |
6436 | 3885 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6437 | 3886 | echo $ac_n "(cached) $ac_c" 1>&6 |
6438 | 3887 | else |
6439 | 3888 | cat > conftest.$ac_ext <<EOF |
6440 | -#line 6441 "configure" | |
3889 | +#line 3890 "configure" | |
6441 | 3890 | #include "confdefs.h" |
6442 | 3891 | /* System header to define __stub macros and hopefully few prototypes, |
6443 | 3892 | which can conflict with char $ac_func(); below. */ |
@@ -6460,7 +3909,7 @@ $ac_func(); | ||
6460 | 3909 | |
6461 | 3910 | ; return 0; } |
6462 | 3911 | EOF |
6463 | -if { (eval echo configure:6464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3912 | +if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6464 | 3913 | rm -rf conftest* |
6465 | 3914 | eval "ac_cv_func_$ac_func=yes" |
6466 | 3915 | else |
@@ -6654,37 +4103,11 @@ s%@MAKEINFO@%$MAKEINFO%g | ||
6654 | 4103 | s%@SET_MAKE@%$SET_MAKE%g |
6655 | 4104 | s%@AR@%$AR%g |
6656 | 4105 | s%@RANLIB@%$RANLIB%g |
6657 | -s%@LN_S@%$LN_S%g | |
6658 | -s%@OBJEXT@%$OBJEXT%g | |
6659 | -s%@EXEEXT@%$EXEEXT%g | |
6660 | -s%@STRIP@%$STRIP%g | |
6661 | -s%@LIBTOOL@%$LIBTOOL%g | |
6662 | 4106 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g |
6663 | 4107 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
6664 | 4108 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g |
6665 | 4109 | s%@MAINT@%$MAINT%g |
6666 | -s%@CPP@%$CPP%g | |
6667 | -s%@ALLOCA@%$ALLOCA%g | |
6668 | -s%@USE_NLS@%$USE_NLS%g | |
6669 | -s%@MSGFMT@%$MSGFMT%g | |
6670 | -s%@GMSGFMT@%$GMSGFMT%g | |
6671 | -s%@XGETTEXT@%$XGETTEXT%g | |
6672 | -s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
6673 | -s%@CATALOGS@%$CATALOGS%g | |
6674 | -s%@CATOBJEXT@%$CATOBJEXT%g | |
6675 | -s%@DATADIRNAME@%$DATADIRNAME%g | |
6676 | -s%@GMOFILES@%$GMOFILES%g | |
6677 | -s%@INSTOBJEXT@%$INSTOBJEXT%g | |
6678 | -s%@INTLDEPS@%$INTLDEPS%g | |
6679 | -s%@INTLLIBS@%$INTLLIBS%g | |
6680 | -s%@INTLOBJS@%$INTLOBJS%g | |
6681 | -s%@POFILES@%$POFILES%g | |
6682 | -s%@POSUB@%$POSUB%g | |
6683 | -s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
6684 | -s%@GT_NO@%$GT_NO%g | |
6685 | -s%@GT_YES@%$GT_YES%g | |
6686 | -s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
6687 | -s%@l@%$l%g | |
4110 | +s%@EXEEXT@%$EXEEXT%g | |
6688 | 4111 | s%@HDEFINES@%$HDEFINES%g |
6689 | 4112 | s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g |
6690 | 4113 | s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g |
@@ -6692,6 +4115,7 @@ s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g | ||
6692 | 4115 | s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g |
6693 | 4116 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g |
6694 | 4117 | s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g |
4118 | +s%@CPP@%$CPP%g | |
6695 | 4119 | s%@COREFILE@%$COREFILE%g |
6696 | 4120 | s%@COREFLAG@%$COREFLAG%g |
6697 | 4121 | s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g |
@@ -170,7 +170,7 @@ changequote([,])dnl | ||
170 | 170 | TRAD_HEADER='"hosts/symmetry.h"' |
171 | 171 | ;; |
172 | 172 | changequote(,)dnl |
173 | - i[3456]86-*-bsd* | i[34567]86-*-freebsd[1234] | i[34567]86-*-freebsd[1234]\.* | i[34567]86-*-freebsd*aout*) | |
173 | + i[3456]86-*-bsd* | i[34567]86-*-freebsd[123] | i[34567]86-*-freebsd[123]\.* | i[34567]86-*-freebsd4\.[01]* | i[34567]86-*-freebsd*aout*) | |
174 | 174 | changequote([,])dnl |
175 | 175 | COREFILE=trad-core.lo |
176 | 176 | TRAD_HEADER='"hosts/i386bsd.h"' |