Changeset 609 for branches/GNU/src/binutils/libiberty/configure
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/libiberty/configure
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 13 13 # Any additions from configure.in: 14 14 ac_help="$ac_help 15 --with-target-subdir=SUBDIR Configuring in a subdirectory" 15 --with-target-subdir=SUBDIR Configuring in a subdirectory for target" 16 ac_help="$ac_help 17 --with-build-subdir=SUBDIR Configuring in a subdirectory for build" 16 18 ac_help="$ac_help 17 19 --with-cross-host=HOST Configuring with a cross compiler" 18 20 ac_help="$ac_help 19 21 --with-newlib Configuring with newlib" 22 ac_help="$ac_help 23 --enable-maintainer-mode 24 enable make rules and dependencies not useful 25 (and sometimes confusing) to the casual installer" 26 ac_help="$ac_help 27 --enable-install-libiberty Install headers for end users" 20 28 21 29 # Initialize some variables set by options. … … 458 466 # A filename unique to this package, relative to the directory that 459 467 # configure is in, which we can look for to find out if srcdir is correct. 460 ac_unique_file= pexecute.c468 ac_unique_file=xmalloc.c 461 469 462 470 # Find the source files, if location was not specified. … … 529 537 530 538 539 # This works around the fact that libtool configuration may change LD 540 # for this particular configuration, but some shells, instead of 541 # keeping the changes in LD private, export them just because LD is 542 # exported. We don't use libtool yet, but some day we might, so... 543 ORIGINAL_LD_FOR_MULTILIBS=$LD 544 531 545 # Check whether --with-target-subdir or --without-target-subdir was given. 532 546 if test "${with_target_subdir+set}" = set; then … … 535 549 fi 536 550 551 # Check whether --with-build-subdir or --without-build-subdir was given. 552 if test "${with_build_subdir+set}" = set; then 553 withval="$with_build_subdir" 554 : 555 fi 556 537 557 # Check whether --with-cross-host or --without-cross-host was given. 538 558 if test "${with_cross_host+set}" = set; then … … 549 569 550 570 if test "${srcdir}" = "."; then 551 if test -z "${with_target_subdir}"; then 571 if test -n "${with_build_subdir}"; then 572 libiberty_topdir="${srcdir}/../.." 573 with_target_subdir= 574 elif test -z "${with_target_subdir}"; then 552 575 libiberty_topdir="${srcdir}/.." 553 576 else … … 561 584 libiberty_topdir="${srcdir}/.." 562 585 fi 586 563 587 ac_aux_dir= 564 588 for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do … … 582 606 583 607 608 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 609 echo "configure:610: checking whether to enable maintainer-specific portions of Makefiles" >&5 610 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 611 if test "${enable_maintainer_mode+set}" = set; then 612 enableval="$enable_maintainer_mode" 613 maintainer_mode=$enableval 614 else 615 maintainer_mode=no 616 fi 617 618 619 echo "$ac_t""$maintainer_mode" 1>&6 620 621 if test "$maintainer_mode" = "yes"; then 622 MAINT='' 623 NOTMAINT='#' 624 else 625 MAINT='#' 626 NOTMAINT='' 627 fi 628 629 # Do we have a single-tree copy of texinfo? Even if we do, we can't 630 # rely on it - libiberty is built before texinfo. 631 # Extract the first word of "makeinfo", so it can be a program name with args. 632 set dummy makeinfo; ac_word=$2 633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 634 echo "configure:635: checking for $ac_word" >&5 635 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then 636 echo $ac_n "(cached) $ac_c" 1>&6 637 else 638 if test -n "$MAKEINFO"; then 639 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 640 else 641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 642 ac_dummy="$PATH" 643 for ac_dir in $ac_dummy; do 644 test -z "$ac_dir" && ac_dir=. 645 if test -f $ac_dir/$ac_word; then 646 ac_cv_prog_MAKEINFO="makeinfo" 647 break 648 fi 649 done 650 IFS="$ac_save_ifs" 651 fi 652 fi 653 MAKEINFO="$ac_cv_prog_MAKEINFO" 654 if test -n "$MAKEINFO"; then 655 echo "$ac_t""$MAKEINFO" 1>&6 656 else 657 echo "$ac_t""no" 1>&6 658 fi 659 660 if test "x$MAKEINFO" = "x"; then 661 MAKEINFO="@echo makeinfo missing; true" 662 BUILD_INFO= 663 else 664 BUILD_INFO=info 665 case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in 666 x*\ [1-3].* ) 667 MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true" 668 BUILD_INFO= 669 echo "configure: warning: 670 *** Makeinfo is too old. Info documentation will not be built." 1>&2 671 ;; 672 esac 673 fi 674 675 676 677 # Extract the first word of "perl", so it can be a program name with args. 678 set dummy perl; ac_word=$2 679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 680 echo "configure:681: checking for $ac_word" >&5 681 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then 682 echo $ac_n "(cached) $ac_c" 1>&6 683 else 684 if test -n "$PERL"; then 685 ac_cv_prog_PERL="$PERL" # Let the user override the test. 686 else 687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 688 ac_dummy="$PATH" 689 for ac_dir in $ac_dummy; do 690 test -z "$ac_dir" && ac_dir=. 691 if test -f $ac_dir/$ac_word; then 692 ac_cv_prog_PERL="perl" 693 break 694 fi 695 done 696 IFS="$ac_save_ifs" 697 fi 698 fi 699 PERL="$ac_cv_prog_PERL" 700 if test -n "$PERL"; then 701 echo "$ac_t""$PERL" 1>&6 702 else 703 echo "$ac_t""no" 1>&6 704 fi 705 706 if test x"$PERL" = x""; then 707 HAVE_PERL='#' 708 else 709 HAVE_PERL='' 710 fi 711 712 713 584 714 # Make sure we can run config.sub. 585 715 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : … … 588 718 589 719 echo $ac_n "checking host system type""... $ac_c" 1>&6 590 echo "configure: 591: checking host system type" >&5720 echo "configure:721: checking host system type" >&5 591 721 592 722 host_alias=$host … … 611 741 612 742 echo $ac_n "checking build system type""... $ac_c" 1>&6 613 echo "configure: 614: checking build system type" >&5743 echo "configure:744: checking build system type" >&5 614 744 615 745 build_alias=$build … … 637 767 set dummy ${ac_tool_prefix}ar; ac_word=$2 638 768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 639 echo "configure: 640: checking for $ac_word" >&5769 echo "configure:770: checking for $ac_word" >&5 640 770 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 641 771 echo $ac_n "(cached) $ac_c" 1>&6 … … 669 799 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 670 800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 671 echo "configure: 672: checking for $ac_word" >&5801 echo "configure:802: checking for $ac_word" >&5 672 802 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 673 803 echo $ac_n "(cached) $ac_c" 1>&6 … … 701 831 set dummy ranlib; ac_word=$2 702 832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 703 echo "configure: 704: checking for $ac_word" >&5833 echo "configure:834: checking for $ac_word" >&5 704 834 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 705 835 echo $ac_n "(cached) $ac_c" 1>&6 … … 738 868 set dummy gcc; ac_word=$2 739 869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 740 echo "configure: 741: checking for $ac_word" >&5870 echo "configure:871: checking for $ac_word" >&5 741 871 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 742 872 echo $ac_n "(cached) $ac_c" 1>&6 … … 768 898 set dummy cc; ac_word=$2 769 899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 770 echo "configure: 771: checking for $ac_word" >&5900 echo "configure:901: checking for $ac_word" >&5 771 901 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 772 902 echo $ac_n "(cached) $ac_c" 1>&6 … … 817 947 818 948 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 819 echo "configure: 820: checking whether we are using GNU C" >&5949 echo "configure:950: checking whether we are using GNU C" >&5 820 950 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 821 951 echo $ac_n "(cached) $ac_c" 1>&6 … … 826 956 #endif 827 957 EOF 828 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure: 829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then958 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 829 959 ac_cv_prog_gcc=yes 830 960 else … … 842 972 CFLAGS= 843 973 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 844 echo "configure: 845: checking whether ${CC-cc} accepts -g" >&5974 echo "configure:975: checking whether ${CC-cc} accepts -g" >&5 845 975 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 846 976 echo $ac_n "(cached) $ac_c" 1>&6 … … 872 1002 873 1003 1004 if test "x$CC" != xcc; then 1005 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 1006 echo "configure:1007: checking whether $CC and cc understand -c and -o together" >&5 1007 else 1008 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 1009 echo "configure:1010: checking whether cc understands -c and -o together" >&5 1010 fi 1011 set dummy $CC; ac_cc="`echo $2 | 1012 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" 1013 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then 1014 echo $ac_n "(cached) $ac_c" 1>&6 1015 else 1016 echo 'foo(){}' > conftest.c 1017 # Make sure it works both with $CC and with simple cc. 1018 # We do the test twice because some compilers refuse to overwrite an 1019 # existing .o file with -o, though they will create one. 1020 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' 1021 if { (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && 1022 test -f conftest.o && { (eval echo configure:1023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; 1023 then 1024 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 1025 if test "x$CC" != xcc; then 1026 # Test first that cc exists at all. 1027 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then 1028 ac_try='cc -c conftest.c -o conftest.o 1>&5' 1029 if { (eval echo configure:1030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && 1030 test -f conftest.o && { (eval echo configure:1031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; 1031 then 1032 # cc works too. 1033 : 1034 else 1035 # cc exists but doesn't like -o. 1036 eval ac_cv_prog_cc_${ac_cc}_c_o=no 1037 fi 1038 fi 1039 fi 1040 else 1041 eval ac_cv_prog_cc_${ac_cc}_c_o=no 1042 fi 1043 rm -f conftest* 1044 1045 fi 1046 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then 1047 echo "$ac_t""yes" 1>&6 1048 else 1049 echo "$ac_t""no" 1>&6 1050 cat >> confdefs.h <<\EOF 1051 #define NO_MINUS_C_MINUS_O 1 1052 EOF 1053 1054 fi 1055 1056 # autoconf is lame and doesn't give us any substitution variable for this. 1057 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then 1058 NO_MINUS_C_MINUS_O=yes 1059 else 1060 OUTPUT_OPTION='-o $@' 1061 fi 1062 1063 1064 874 1065 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 875 echo "configure: 876: checking for POSIXized ISC" >&51066 echo "configure:1067: checking for POSIXized ISC" >&5 876 1067 if test -d /etc/conf/kconfig.d && 877 1068 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 … … 894 1085 895 1086 echo $ac_n "checking for working const""... $ac_c" 1>&6 896 echo "configure: 897: checking for working const" >&51087 echo "configure:1088: checking for working const" >&5 897 1088 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 898 1089 echo $ac_n "(cached) $ac_c" 1>&6 899 1090 else 900 1091 cat > conftest.$ac_ext <<EOF 901 #line 902"configure"1092 #line 1093 "configure" 902 1093 #include "confdefs.h" 903 1094 … … 948 1139 ; return 0; } 949 1140 EOF 950 if { (eval echo configure: 951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1141 if { (eval echo configure:1142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 951 1142 rm -rf conftest* 952 1143 ac_cv_c_const=yes … … 969 1160 970 1161 echo $ac_n "checking for inline""... $ac_c" 1>&6 971 echo "configure: 972: checking for inline" >&51162 echo "configure:1163: checking for inline" >&5 972 1163 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 973 1164 echo $ac_n "(cached) $ac_c" 1>&6 … … 976 1167 for ac_kw in inline __inline__ __inline; do 977 1168 cat > conftest.$ac_ext <<EOF 978 #line 979"configure"1169 #line 1170 "configure" 979 1170 #include "confdefs.h" 980 1171 … … 983 1174 ; return 0; } 984 1175 EOF 985 if { (eval echo configure: 986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1176 if { (eval echo configure:1177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 986 1177 rm -rf conftest* 987 1178 ac_cv_c_inline=$ac_kw; break … … 1026 1217 # ./install, which can be erroneously created by make from ./install.sh. 1027 1218 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1028 echo "configure:1 029: checking for a BSD compatible install" >&51219 echo "configure:1220: checking for a BSD compatible install" >&5 1029 1220 if test -z "$INSTALL"; then 1030 1221 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1087 1278 # something. 1088 1279 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1089 echo "configure:1 090: checking how to run the C preprocessor" >&51280 echo "configure:1281: checking how to run the C preprocessor" >&5 1090 1281 # On Suns, sometimes $CPP names a directory. 1091 1282 if test -n "$CPP" && test -d "$CPP"; then … … 1102 1293 # not just through cpp. 1103 1294 cat > conftest.$ac_ext <<EOF 1104 #line 1 105"configure"1295 #line 1296 "configure" 1105 1296 #include "confdefs.h" 1106 1297 #include <assert.h> … … 1108 1299 EOF 1109 1300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1110 { (eval echo configure:1 111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1301 { (eval echo configure:1302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1111 1302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1112 1303 if test -z "$ac_err"; then … … 1119 1310 CPP="${CC-cc} -E -traditional-cpp" 1120 1311 cat > conftest.$ac_ext <<EOF 1121 #line 1 122"configure"1312 #line 1313 "configure" 1122 1313 #include "confdefs.h" 1123 1314 #include <assert.h> … … 1125 1316 EOF 1126 1317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1127 { (eval echo configure:1 128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1318 { (eval echo configure:1319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1128 1319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1129 1320 if test -z "$ac_err"; then … … 1136 1327 CPP="${CC-cc} -nologo -E" 1137 1328 cat > conftest.$ac_ext <<EOF 1138 #line 1 139"configure"1329 #line 1330 "configure" 1139 1330 #include "confdefs.h" 1140 1331 #include <assert.h> … … 1142 1333 EOF 1143 1334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1144 { (eval echo configure:1 145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1335 { (eval echo configure:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1145 1336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1146 1337 if test -z "$ac_err"; then … … 1166 1357 echo "$ac_t""$CPP" 1>&6 1167 1358 1168 for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h 1359 for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h 1169 1360 do 1170 1361 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1171 1362 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1172 echo "configure:1 173: checking for $ac_hdr" >&51363 echo "configure:1364: checking for $ac_hdr" >&5 1173 1364 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1174 1365 echo $ac_n "(cached) $ac_c" 1>&6 1175 1366 else 1176 1367 cat > conftest.$ac_ext <<EOF 1177 #line 1 178"configure"1368 #line 1369 "configure" 1178 1369 #include "confdefs.h" 1179 1370 #include <$ac_hdr> 1180 1371 EOF 1181 1372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1182 { (eval echo configure:1 183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1373 { (eval echo configure:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1183 1374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1184 1375 if test -z "$ac_err"; then … … 1207 1398 1208 1399 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 1209 echo "configure:1 210: checking for sys/wait.h that is POSIX.1 compatible" >&51400 echo "configure:1401: checking for sys/wait.h that is POSIX.1 compatible" >&5 1210 1401 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 1211 1402 echo $ac_n "(cached) $ac_c" 1>&6 1212 1403 else 1213 1404 cat > conftest.$ac_ext <<EOF 1214 #line 1 215"configure"1405 #line 1406 "configure" 1215 1406 #include "confdefs.h" 1216 1407 #include <sys/types.h> … … 1228 1419 ; return 0; } 1229 1420 EOF 1230 if { (eval echo configure:1 231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1421 if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1231 1422 rm -rf conftest* 1232 1423 ac_cv_header_sys_wait_h=yes … … 1249 1440 1250 1441 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1251 echo "configure:1 252: checking whether time.h and sys/time.h may both be included" >&51442 echo "configure:1443: checking whether time.h and sys/time.h may both be included" >&5 1252 1443 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1253 1444 echo $ac_n "(cached) $ac_c" 1>&6 1254 1445 else 1255 1446 cat > conftest.$ac_ext <<EOF 1256 #line 1 257"configure"1447 #line 1448 "configure" 1257 1448 #include "confdefs.h" 1258 1449 #include <sys/types.h> … … 1263 1454 ; return 0; } 1264 1455 EOF 1265 if { (eval echo configure:1 266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1456 if { (eval echo configure:1457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1266 1457 rm -rf conftest* 1267 1458 ac_cv_header_time=yes … … 1285 1476 1286 1477 echo $ac_n "checking whether errno must be declared""... $ac_c" 1>&6 1287 echo "configure:1 288: checking whether errno must be declared" >&51478 echo "configure:1479: checking whether errno must be declared" >&5 1288 1479 if eval "test \"`echo '$''{'libiberty_cv_declare_errno'+set}'`\" = set"; then 1289 1480 echo $ac_n "(cached) $ac_c" 1>&6 1290 1481 else 1291 1482 cat > conftest.$ac_ext <<EOF 1292 #line 1 293"configure"1483 #line 1484 "configure" 1293 1484 #include "confdefs.h" 1294 1485 #include <errno.h> … … 1297 1488 ; return 0; } 1298 1489 EOF 1299 if { (eval echo configure:1 300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1490 if { (eval echo configure:1491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1300 1491 rm -rf conftest* 1301 1492 libiberty_cv_declare_errno=no … … 1313 1504 then cat >> confdefs.h <<\EOF 1314 1505 #define NEED_DECLARATION_ERRNO 1 1506 EOF 1507 1508 fi 1509 1510 1511 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1512 echo "configure:1513: checking for ANSI C header files" >&5 1513 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1514 echo $ac_n "(cached) $ac_c" 1>&6 1515 else 1516 cat > conftest.$ac_ext <<EOF 1517 #line 1518 "configure" 1518 #include "confdefs.h" 1519 #include <stdlib.h> 1520 #include <stdarg.h> 1521 #include <string.h> 1522 #include <float.h> 1523 EOF 1524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1525 { (eval echo configure:1526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1527 if test -z "$ac_err"; then 1528 rm -rf conftest* 1529 ac_cv_header_stdc=yes 1530 else 1531 echo "$ac_err" >&5 1532 echo "configure: failed program was:" >&5 1533 cat conftest.$ac_ext >&5 1534 rm -rf conftest* 1535 ac_cv_header_stdc=no 1536 fi 1537 rm -f conftest* 1538 1539 if test $ac_cv_header_stdc = yes; then 1540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1541 cat > conftest.$ac_ext <<EOF 1542 #line 1543 "configure" 1543 #include "confdefs.h" 1544 #include <string.h> 1545 EOF 1546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1547 egrep "memchr" >/dev/null 2>&1; then 1548 : 1549 else 1550 rm -rf conftest* 1551 ac_cv_header_stdc=no 1552 fi 1553 rm -f conftest* 1554 1555 fi 1556 1557 if test $ac_cv_header_stdc = yes; then 1558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1559 cat > conftest.$ac_ext <<EOF 1560 #line 1561 "configure" 1561 #include "confdefs.h" 1562 #include <stdlib.h> 1563 EOF 1564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1565 egrep "free" >/dev/null 2>&1; then 1566 : 1567 else 1568 rm -rf conftest* 1569 ac_cv_header_stdc=no 1570 fi 1571 rm -f conftest* 1572 1573 fi 1574 1575 if test $ac_cv_header_stdc = yes; then 1576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1577 if test "$cross_compiling" = yes; then 1578 : 1579 else 1580 cat > conftest.$ac_ext <<EOF 1581 #line 1582 "configure" 1582 #include "confdefs.h" 1583 #include <ctype.h> 1584 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1585 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1587 int main () { int i; for (i = 0; i < 256; i++) 1588 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1589 exit (0); } 1590 1591 EOF 1592 if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1593 then 1594 : 1595 else 1596 echo "configure: failed program was:" >&5 1597 cat conftest.$ac_ext >&5 1598 rm -fr conftest* 1599 ac_cv_header_stdc=no 1600 fi 1601 rm -fr conftest* 1602 fi 1603 1604 fi 1605 fi 1606 1607 echo "$ac_t""$ac_cv_header_stdc" 1>&6 1608 if test $ac_cv_header_stdc = yes; then 1609 cat >> confdefs.h <<\EOF 1610 #define STDC_HEADERS 1 1611 EOF 1612 1613 fi 1614 1615 echo $ac_n "checking for uintptr_t""... $ac_c" 1>&6 1616 echo "configure:1617: checking for uintptr_t" >&5 1617 if eval "test \"`echo '$''{'ac_cv_type_uintptr_t'+set}'`\" = set"; then 1618 echo $ac_n "(cached) $ac_c" 1>&6 1619 else 1620 cat > conftest.$ac_ext <<EOF 1621 #line 1622 "configure" 1622 #include "confdefs.h" 1623 #include <sys/types.h> 1624 #if STDC_HEADERS 1625 #include <stdlib.h> 1626 #include <stddef.h> 1627 #endif 1628 EOF 1629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1630 egrep "(^|[^a-zA-Z_0-9])uintptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1631 rm -rf conftest* 1632 ac_cv_type_uintptr_t=yes 1633 else 1634 rm -rf conftest* 1635 ac_cv_type_uintptr_t=no 1636 fi 1637 rm -f conftest* 1638 1639 fi 1640 echo "$ac_t""$ac_cv_type_uintptr_t" 1>&6 1641 if test $ac_cv_type_uintptr_t = no; then 1642 cat >> confdefs.h <<\EOF 1643 #define uintptr_t unsigned long 1644 EOF 1645 1646 fi 1647 1648 # Given the above check, we always have uintptr_t or a fallback 1649 # definition. So define HAVE_UINTPTR_T in case any imported code 1650 # relies on it. 1651 cat >> confdefs.h <<\EOF 1652 #define HAVE_UINTPTR_T 1 1653 EOF 1654 1655 1656 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 1657 echo "configure:1658: checking for pid_t" >&5 1658 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 1659 echo $ac_n "(cached) $ac_c" 1>&6 1660 else 1661 cat > conftest.$ac_ext <<EOF 1662 #line 1663 "configure" 1663 #include "confdefs.h" 1664 #include <sys/types.h> 1665 #if STDC_HEADERS 1666 #include <stdlib.h> 1667 #include <stddef.h> 1668 #endif 1669 EOF 1670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1671 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1672 rm -rf conftest* 1673 ac_cv_type_pid_t=yes 1674 else 1675 rm -rf conftest* 1676 ac_cv_type_pid_t=no 1677 fi 1678 rm -f conftest* 1679 1680 fi 1681 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 1682 if test $ac_cv_type_pid_t = no; then 1683 cat >> confdefs.h <<\EOF 1684 #define pid_t int 1315 1685 EOF 1316 1686 … … 1330 1700 funcs="$funcs calloc" 1331 1701 funcs="$funcs clock" 1702 funcs="$funcs ffs" 1332 1703 funcs="$funcs getcwd" 1333 1704 funcs="$funcs getpagesize" … … 1338 1709 funcs="$funcs memcpy" 1339 1710 funcs="$funcs memmove" 1711 funcs="$funcs mempcpy" 1340 1712 funcs="$funcs memset" 1341 1713 funcs="$funcs mkstemps" … … 1345 1717 funcs="$funcs rindex" 1346 1718 funcs="$funcs setenv" 1719 funcs="$funcs snprintf" 1347 1720 funcs="$funcs sigsetmask" 1721 funcs="$funcs stpcpy" 1722 funcs="$funcs stpncpy" 1348 1723 funcs="$funcs strcasecmp" 1349 1724 funcs="$funcs strchr" … … 1359 1734 funcs="$funcs vfprintf" 1360 1735 funcs="$funcs vprintf" 1736 funcs="$funcs vsnprintf" 1361 1737 funcs="$funcs vsprintf" 1362 1738 funcs="$funcs waitpid" … … 1364 1740 # Also in the old function.def file: alloca, vfork, getopt. 1365 1741 1366 vars="sys_errlist sys_nerr sys_siglist "1742 vars="sys_errlist sys_nerr sys_siglist _system_configuration" 1367 1743 1368 1744 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday" 1745 checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp" 1746 checkfuncs="$checkfuncs getsysinfo table sysctl" 1369 1747 1370 1748 # These are neither executed nor required, but they help keep … … 1374 1752 do 1375 1753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1376 echo "configure:1 377: checking for $ac_func" >&51754 echo "configure:1755: checking for $ac_func" >&5 1377 1755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1378 1756 echo $ac_n "(cached) $ac_c" 1>&6 1379 1757 else 1380 1758 cat > conftest.$ac_ext <<EOF 1381 #line 1 382"configure"1759 #line 1760 "configure" 1382 1760 #include "confdefs.h" 1383 1761 /* System header to define __stub macros and hopefully few prototypes, … … 1402 1780 ; return 0; } 1403 1781 EOF 1404 if { (eval echo configure:1 405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1782 if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1405 1783 rm -rf conftest* 1406 1784 eval "ac_cv_func_$ac_func=yes" … … 1429 1807 do 1430 1808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1431 echo "configure:1 432: checking for $ac_func" >&51809 echo "configure:1810: checking for $ac_func" >&5 1432 1810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1433 1811 echo $ac_n "(cached) $ac_c" 1>&6 1434 1812 else 1435 1813 cat > conftest.$ac_ext <<EOF 1436 #line 1 437"configure"1814 #line 1815 "configure" 1437 1815 #include "confdefs.h" 1438 1816 /* System header to define __stub macros and hopefully few prototypes, … … 1457 1835 ; return 0; } 1458 1836 EOF 1459 if { (eval echo configure:1 460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1837 if { (eval echo configure:1838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1460 1838 rm -rf conftest* 1461 1839 eval "ac_cv_func_$ac_func=yes" … … 1481 1859 done 1482 1860 1483 for ac_func in memmove mem set putenv random rename rindex sigsetmask1861 for ac_func in memmove mempcpy memset putenv random rename rindex sigsetmask 1484 1862 do 1485 1863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1486 echo "configure:1 487: checking for $ac_func" >&51864 echo "configure:1865: checking for $ac_func" >&5 1487 1865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1488 1866 echo $ac_n "(cached) $ac_c" 1>&6 1489 1867 else 1490 1868 cat > conftest.$ac_ext <<EOF 1491 #line 1 492"configure"1869 #line 1870 "configure" 1492 1870 #include "confdefs.h" 1493 1871 /* System header to define __stub macros and hopefully few prototypes, … … 1512 1890 ; return 0; } 1513 1891 EOF 1514 if { (eval echo configure:1 515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1892 if { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1515 1893 rm -rf conftest* 1516 1894 eval "ac_cv_func_$ac_func=yes" … … 1536 1914 done 1537 1915 1538 for ac_func in strcasecmp setenv st rchr strdup strncasecmp strrchr strstr1916 for ac_func in strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strrchr strstr 1539 1917 do 1540 1918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1541 echo "configure:1 542: checking for $ac_func" >&51919 echo "configure:1920: checking for $ac_func" >&5 1542 1920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1543 1921 echo $ac_n "(cached) $ac_c" 1>&6 1544 1922 else 1545 1923 cat > conftest.$ac_ext <<EOF 1546 #line 1 547"configure"1924 #line 1925 "configure" 1547 1925 #include "confdefs.h" 1548 1926 /* System header to define __stub macros and hopefully few prototypes, … … 1567 1945 ; return 0; } 1568 1946 EOF 1569 if { (eval echo configure:1 570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1947 if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1570 1948 rm -rf conftest* 1571 1949 eval "ac_cv_func_$ac_func=yes" … … 1594 1972 do 1595 1973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1596 echo "configure:1 597: checking for $ac_func" >&51974 echo "configure:1975: checking for $ac_func" >&5 1597 1975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1598 1976 echo $ac_n "(cached) $ac_c" 1>&6 1599 1977 else 1600 1978 cat > conftest.$ac_ext <<EOF 1601 #line 1 602"configure"1979 #line 1980 "configure" 1602 1980 #include "confdefs.h" 1603 1981 /* System header to define __stub macros and hopefully few prototypes, … … 1622 2000 ; return 0; } 1623 2001 EOF 1624 if { (eval echo configure: 1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2002 if { (eval echo configure:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1625 2003 rm -rf conftest* 1626 2004 eval "ac_cv_func_$ac_func=yes" … … 1649 2027 do 1650 2028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1651 echo "configure: 1652: checking for $ac_func" >&52029 echo "configure:2030: checking for $ac_func" >&5 1652 2030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1653 2031 echo $ac_n "(cached) $ac_c" 1>&6 1654 2032 else 1655 2033 cat > conftest.$ac_ext <<EOF 1656 #line 1657"configure"2034 #line 2035 "configure" 1657 2035 #include "confdefs.h" 1658 2036 /* System header to define __stub macros and hopefully few prototypes, … … 1677 2055 ; return 0; } 1678 2056 EOF 1679 if { (eval echo configure: 1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2057 if { (eval echo configure:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1680 2058 rm -rf conftest* 1681 2059 eval "ac_cv_func_$ac_func=yes" … … 1701 2079 done 1702 2080 1703 for ac_func in sysconf times sbrk gettimeofday 2081 for ac_func in sysconf times sbrk gettimeofday ffs snprintf vsnprintf 1704 2082 do 1705 2083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1706 echo "configure: 1707: checking for $ac_func" >&52084 echo "configure:2085: checking for $ac_func" >&5 1707 2085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1708 2086 echo $ac_n "(cached) $ac_c" 1>&6 1709 2087 else 1710 2088 cat > conftest.$ac_ext <<EOF 1711 #line 1712"configure"2089 #line 2090 "configure" 1712 2090 #include "confdefs.h" 1713 2091 /* System header to define __stub macros and hopefully few prototypes, … … 1732 2110 ; return 0; } 1733 2111 EOF 1734 if { (eval echo configure: 1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2112 if { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1735 2113 rm -rf conftest* 1736 2114 eval "ac_cv_func_$ac_func=yes" … … 1756 2134 done 1757 2135 2136 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl 2137 do 2138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2139 echo "configure:2140: checking for $ac_func" >&5 2140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2141 echo $ac_n "(cached) $ac_c" 1>&6 2142 else 2143 cat > conftest.$ac_ext <<EOF 2144 #line 2145 "configure" 2145 #include "confdefs.h" 2146 /* System header to define __stub macros and hopefully few prototypes, 2147 which can conflict with char $ac_func(); below. */ 2148 #include <assert.h> 2149 /* Override any gcc2 internal prototype to avoid an error. */ 2150 /* We use char because int might match the return type of a gcc2 2151 builtin and then its argument prototype would still apply. */ 2152 char $ac_func(); 2153 2154 int main() { 2155 2156 /* The GNU C library defines this for functions which it implements 2157 to always fail with ENOSYS. Some functions are actually named 2158 something starting with __ and the normal name is an alias. */ 2159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2160 choke me 2161 #else 2162 $ac_func(); 2163 #endif 2164 2165 ; return 0; } 2166 EOF 2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2168 rm -rf conftest* 2169 eval "ac_cv_func_$ac_func=yes" 2170 else 2171 echo "configure: failed program was:" >&5 2172 cat conftest.$ac_ext >&5 2173 rm -rf conftest* 2174 eval "ac_cv_func_$ac_func=no" 2175 fi 2176 rm -f conftest* 2177 fi 2178 2179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2180 echo "$ac_t""yes" 1>&6 2181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2182 cat >> confdefs.h <<EOF 2183 #define $ac_tr_func 1 2184 EOF 2185 2186 else 2187 echo "$ac_t""no" 1>&6 2188 fi 2189 done 2190 2191 for ac_func in realpath canonicalize_file_name 2192 do 2193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2194 echo "configure:2195: checking for $ac_func" >&5 2195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2196 echo $ac_n "(cached) $ac_c" 1>&6 2197 else 2198 cat > conftest.$ac_ext <<EOF 2199 #line 2200 "configure" 2200 #include "confdefs.h" 2201 /* System header to define __stub macros and hopefully few prototypes, 2202 which can conflict with char $ac_func(); below. */ 2203 #include <assert.h> 2204 /* Override any gcc2 internal prototype to avoid an error. */ 2205 /* We use char because int might match the return type of a gcc2 2206 builtin and then its argument prototype would still apply. */ 2207 char $ac_func(); 2208 2209 int main() { 2210 2211 /* The GNU C library defines this for functions which it implements 2212 to always fail with ENOSYS. Some functions are actually named 2213 something starting with __ and the normal name is an alias. */ 2214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2215 choke me 2216 #else 2217 $ac_func(); 2218 #endif 2219 2220 ; return 0; } 2221 EOF 2222 if { (eval echo configure:2223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2223 rm -rf conftest* 2224 eval "ac_cv_func_$ac_func=yes" 2225 else 2226 echo "configure: failed program was:" >&5 2227 cat conftest.$ac_ext >&5 2228 rm -rf conftest* 2229 eval "ac_cv_func_$ac_func=no" 2230 fi 2231 rm -f conftest* 2232 fi 2233 2234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2235 echo "$ac_t""yes" 1>&6 2236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2237 cat >> confdefs.h <<EOF 2238 #define $ac_tr_func 1 2239 EOF 2240 2241 else 2242 echo "$ac_t""no" 1>&6 2243 fi 2244 done 2245 1758 2246 cat >> confdefs.h <<\EOF 1759 2247 #define HAVE_SYS_ERRLIST 1 … … 1768 2256 EOF 1769 2257 2258 cat >> confdefs.h <<\EOF 2259 #define HAVE__SYSTEM_CONFIGURATION 1 2260 EOF 2261 1770 2262 fi 1771 2263 1772 2264 # For each of these functions, if the host does not provide the 1773 2265 # function we want to put FN.o in LIBOBJS, and if the host does 1774 # provide the function, we want to define HAVE_FN in config.h. Also, 1775 # if the host does not provide alloca, we set ALLOCA to alloca.o 2266 # provide the function, we want to define HAVE_FN in config.h. 1776 2267 1777 2268 setobjs= 1778 2269 CHECK= 2270 target_header_dir= 1779 2271 if test -n "${with_target_subdir}"; then 1780 2272 … … 1788 2280 1789 2281 if test "x${with_newlib}" = "xyes"; then 1790 ALLOCA="alloca.o"1791 2282 LIBOBJS="asprintf.o basename.o insque.o random.o strdup.o vasprintf.o" 1792 2283 … … 1818 2309 fi 1819 2310 2311 # We may wish to install the target headers somewhere. 2312 # Check whether --enable-install-libiberty or --disable-install-libiberty was given. 2313 if test "${enable_install_libiberty+set}" = set; then 2314 enableval="$enable_install_libiberty" 2315 enable_install_libiberty=$enableval 2316 else 2317 enable_install_libiberty=no 2318 fi 2319 2320 # Option parsed, now set things appropriately. 2321 case x"$enable_install_libiberty" in 2322 xyes|x) 2323 target_header_dir=libiberty 2324 ;; 2325 xno) 2326 target_header_dir= 2327 ;; 2328 *) 2329 # This could be sanity-checked in various ways... 2330 target_header_dir="${enable_install_libiberty}" 2331 ;; 2332 esac 2333 2334 1820 2335 else 1821 2336 … … 1826 2341 1827 2342 2343 2344 2345 case "${host}" in 2346 *-*-cygwin* | *-*-mingw*) 2347 cat >> confdefs.h <<\EOF 2348 #define HAVE_SYS_ERRLIST 1 2349 EOF 2350 2351 cat >> confdefs.h <<\EOF 2352 #define HAVE_SYS_NERR 1 2353 EOF 2354 2355 ;; 2356 esac 1828 2357 1829 2358 if test -z "${setobjs}"; then … … 1913 2442 ;; 1914 2443 2444 *-*-*vms*) 2445 # Under VMS, vfork works very different than on Unix. The standard test 2446 # won't work, and it isn't easily adaptable. It makes more sense to 2447 # just force it. 2448 ac_cv_func_vfork_works=yes 2449 ;; 2450 1915 2451 esac 1916 2452 … … 1918 2454 # tests. This will only work if the compiler works. 1919 2455 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1920 echo "configure: 1921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&52456 echo "configure:2457: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1921 2457 1922 2458 ac_ext=c … … 1929 2465 cat > conftest.$ac_ext << EOF 1930 2466 1931 #line 1932"configure"2467 #line 2468 "configure" 1932 2468 #include "confdefs.h" 1933 2469 1934 2470 main(){return(0);} 1935 2471 EOF 1936 if { (eval echo configure: 1937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2472 if { (eval echo configure:2473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1937 2473 ac_cv_prog_cc_works=yes 1938 2474 # If we can't run a trivial program, we are probably using a cross compiler. … … 1960 2496 fi 1961 2497 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1962 echo "configure: 1963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&52498 echo "configure:2499: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1963 2499 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1964 2500 cross_compiling=$ac_cv_prog_cc_cross … … 1967 2503 do 1968 2504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1969 echo "configure: 1970: checking for $ac_func" >&52505 echo "configure:2506: checking for $ac_func" >&5 1970 2506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1971 2507 echo $ac_n "(cached) $ac_c" 1>&6 1972 2508 else 1973 2509 cat > conftest.$ac_ext <<EOF 1974 #line 1975"configure"2510 #line 2511 "configure" 1975 2511 #include "confdefs.h" 1976 2512 /* System header to define __stub macros and hopefully few prototypes, … … 1995 2531 ; return 0; } 1996 2532 EOF 1997 if { (eval echo configure: 1998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2533 if { (eval echo configure:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1998 2534 rm -rf conftest* 1999 2535 eval "ac_cv_func_$ac_func=yes" … … 2021 2557 2022 2558 2023 2024 case "${host}" in 2025 *-*-interix) 2026 # On Interix, it wrongly concludes that the MSVC compiler supports alloca. 2027 # (MSVC does on Win32, not on Interix.) 2028 # This should be temporary. 2029 2030 ac_cv_header_alloca_h=no 2031 ac_cv_func_alloca_works=no 2032 ALLOCA=alloca.o 2033 cat >> confdefs.h <<\EOF 2034 #define C_ALLOCA 1 2035 EOF 2036 cat >> confdefs.h <<EOF 2037 #define STACK_DIRECTION -1 2038 EOF 2039 ;; 2040 *) 2041 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 2042 # for constant arguments. Useless! 2043 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2044 echo "configure:2045: checking for working alloca.h" >&5 2045 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2559 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2560 echo "configure:2561: checking whether alloca needs Cray hooks" >&5 2561 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2046 2562 echo $ac_n "(cached) $ac_c" 1>&6 2047 2563 else 2048 2564 cat > conftest.$ac_ext <<EOF 2049 #line 2050 "configure" 2050 #include "confdefs.h" 2051 #include <alloca.h> 2052 int main() { 2053 char *p = alloca(2 * sizeof(int)); 2054 ; return 0; } 2055 EOF 2056 if { (eval echo configure:2057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2057 rm -rf conftest* 2058 ac_cv_header_alloca_h=yes 2059 else 2060 echo "configure: failed program was:" >&5 2061 cat conftest.$ac_ext >&5 2062 rm -rf conftest* 2063 ac_cv_header_alloca_h=no 2064 fi 2065 rm -f conftest* 2066 fi 2067 2068 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 2069 if test $ac_cv_header_alloca_h = yes; then 2070 cat >> confdefs.h <<\EOF 2071 #define HAVE_ALLOCA_H 1 2072 EOF 2073 2074 fi 2075 2076 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2077 echo "configure:2078: checking for alloca" >&5 2078 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2079 echo $ac_n "(cached) $ac_c" 1>&6 2080 else 2081 cat > conftest.$ac_ext <<EOF 2082 #line 2083 "configure" 2083 #include "confdefs.h" 2084 2085 #ifdef __GNUC__ 2086 # define alloca __builtin_alloca 2087 #else 2088 # ifdef _MSC_VER 2089 # include <malloc.h> 2090 # define alloca _alloca 2091 # else 2092 # if HAVE_ALLOCA_H 2093 # include <alloca.h> 2094 # else 2095 # ifdef _AIX 2096 #pragma alloca 2097 # else 2098 # ifndef alloca /* predefined by HP cc +Olibcalls */ 2099 char *alloca (); 2100 # endif 2101 # endif 2102 # endif 2103 # endif 2104 #endif 2105 2106 int main() { 2107 char *p = (char *) alloca(1); 2108 ; return 0; } 2109 EOF 2110 if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2111 rm -rf conftest* 2112 ac_cv_func_alloca_works=yes 2113 else 2114 echo "configure: failed program was:" >&5 2115 cat conftest.$ac_ext >&5 2116 rm -rf conftest* 2117 ac_cv_func_alloca_works=no 2118 fi 2119 rm -f conftest* 2120 fi 2121 2122 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 2123 if test $ac_cv_func_alloca_works = yes; then 2124 cat >> confdefs.h <<\EOF 2125 #define HAVE_ALLOCA 1 2126 EOF 2127 2128 fi 2129 2130 if test $ac_cv_func_alloca_works = no; then 2131 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 2132 # that cause trouble. Some versions do not even contain alloca or 2133 # contain a buggy version. If you still want to use their alloca, 2134 # use ar to extract alloca.o from them instead of compiling alloca.c. 2135 ALLOCA=alloca.${ac_objext} 2136 cat >> confdefs.h <<\EOF 2137 #define C_ALLOCA 1 2138 EOF 2139 2140 2141 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2142 echo "configure:2143: checking whether alloca needs Cray hooks" >&5 2143 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2144 echo $ac_n "(cached) $ac_c" 1>&6 2145 else 2146 cat > conftest.$ac_ext <<EOF 2147 #line 2148 "configure" 2565 #line 2566 "configure" 2148 2566 #include "confdefs.h" 2149 2567 #if defined(CRAY) && ! defined(CRAY2) … … 2168 2586 echo "$ac_t""$ac_cv_os_cray" 1>&6 2169 2587 if test $ac_cv_os_cray = yes; then 2170 for ac_func in _getb67 GETB67 getb67; do2171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&62172 echo "configure:2 173: checking for $ac_func" >&52588 for ac_func in _getb67 GETB67 getb67; do 2589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2590 echo "configure:2591: checking for $ac_func" >&5 2173 2591 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2174 2592 echo $ac_n "(cached) $ac_c" 1>&6 2175 2593 else 2176 2594 cat > conftest.$ac_ext <<EOF 2177 #line 2 178"configure"2595 #line 2596 "configure" 2178 2596 #include "confdefs.h" 2179 2597 /* System header to define __stub macros and hopefully few prototypes, … … 2198 2616 ; return 0; } 2199 2617 EOF 2200 if { (eval echo configure:2 201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2618 if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2201 2619 rm -rf conftest* 2202 2620 eval "ac_cv_func_$ac_func=yes" … … 2215 2633 #define CRAY_STACKSEG_END $ac_func 2216 2634 EOF 2217 2218 2635 break 2219 2636 else … … 2221 2638 fi 2222 2639 2223 done2640 done 2224 2641 fi 2225 2642 2226 2643 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2227 echo "configure:2 228: checking stack direction for C alloca" >&52644 echo "configure:2645: checking stack direction for C alloca" >&5 2228 2645 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2229 2646 echo $ac_n "(cached) $ac_c" 1>&6 … … 2233 2650 else 2234 2651 cat > conftest.$ac_ext <<EOF 2235 #line 2 236"configure"2652 #line 2653 "configure" 2236 2653 #include "confdefs.h" 2237 2654 find_stack_direction () … … 2252 2669 } 2253 2670 EOF 2254 if { (eval echo configure:2 255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2671 if { (eval echo configure:2672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2255 2672 then 2256 2673 ac_cv_c_stack_direction=1 … … 2271 2688 EOF 2272 2689 2273 fi 2274 2275 ;; 2276 esac 2277 2278 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2279 echo "configure:2280: checking for ANSI C header files" >&5 2280 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2690 2691 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 2692 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 2693 echo "configure:2694: checking for vfork.h" >&5 2694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2281 2695 echo $ac_n "(cached) $ac_c" 1>&6 2282 2696 else 2283 2697 cat > conftest.$ac_ext <<EOF 2284 #line 2285 "configure" 2285 #include "confdefs.h" 2286 #include <stdlib.h> 2287 #include <stdarg.h> 2288 #include <string.h> 2289 #include <float.h> 2698 #line 2699 "configure" 2699 #include "confdefs.h" 2700 #include <vfork.h> 2290 2701 EOF 2291 2702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2292 { (eval echo configure:2293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2294 if test -z "$ac_err"; then 2295 rm -rf conftest* 2296 ac_cv_header_stdc=yes 2297 else 2298 echo "$ac_err" >&5 2299 echo "configure: failed program was:" >&5 2300 cat conftest.$ac_ext >&5 2301 rm -rf conftest* 2302 ac_cv_header_stdc=no 2303 fi 2304 rm -f conftest* 2305 2306 if test $ac_cv_header_stdc = yes; then 2307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2308 cat > conftest.$ac_ext <<EOF 2309 #line 2310 "configure" 2310 #include "confdefs.h" 2311 #include <string.h> 2312 EOF 2313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2314 egrep "memchr" >/dev/null 2>&1; then 2315 : 2316 else 2317 rm -rf conftest* 2318 ac_cv_header_stdc=no 2319 fi 2320 rm -f conftest* 2321 2322 fi 2323 2324 if test $ac_cv_header_stdc = yes; then 2325 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2326 cat > conftest.$ac_ext <<EOF 2327 #line 2328 "configure" 2328 #include "confdefs.h" 2329 #include <stdlib.h> 2330 EOF 2331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2332 egrep "free" >/dev/null 2>&1; then 2333 : 2334 else 2335 rm -rf conftest* 2336 ac_cv_header_stdc=no 2337 fi 2338 rm -f conftest* 2339 2340 fi 2341 2342 if test $ac_cv_header_stdc = yes; then 2343 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2344 if test "$cross_compiling" = yes; then 2345 : 2346 else 2347 cat > conftest.$ac_ext <<EOF 2348 #line 2349 "configure" 2349 #include "confdefs.h" 2350 #include <ctype.h> 2351 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2352 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2354 int main () { int i; for (i = 0; i < 256; i++) 2355 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2356 exit (0); } 2357 2358 EOF 2359 if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2360 then 2361 : 2362 else 2363 echo "configure: failed program was:" >&5 2364 cat conftest.$ac_ext >&5 2365 rm -fr conftest* 2366 ac_cv_header_stdc=no 2367 fi 2368 rm -fr conftest* 2369 fi 2370 2371 fi 2372 fi 2373 2374 echo "$ac_t""$ac_cv_header_stdc" 1>&6 2375 if test $ac_cv_header_stdc = yes; then 2376 cat >> confdefs.h <<\EOF 2377 #define STDC_HEADERS 1 2378 EOF 2379 2380 fi 2381 2382 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 2383 echo "configure:2384: checking for pid_t" >&5 2384 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 2385 echo $ac_n "(cached) $ac_c" 1>&6 2386 else 2387 cat > conftest.$ac_ext <<EOF 2388 #line 2389 "configure" 2389 #include "confdefs.h" 2390 #include <sys/types.h> 2391 #if STDC_HEADERS 2392 #include <stdlib.h> 2393 #include <stddef.h> 2394 #endif 2395 EOF 2396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2397 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2398 rm -rf conftest* 2399 ac_cv_type_pid_t=yes 2400 else 2401 rm -rf conftest* 2402 ac_cv_type_pid_t=no 2403 fi 2404 rm -f conftest* 2405 2406 fi 2407 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 2408 if test $ac_cv_type_pid_t = no; then 2409 cat >> confdefs.h <<\EOF 2410 #define pid_t int 2411 EOF 2412 2413 fi 2414 2415 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 2416 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 2417 echo "configure:2418: checking for vfork.h" >&5 2418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2419 echo $ac_n "(cached) $ac_c" 1>&6 2420 else 2421 cat > conftest.$ac_ext <<EOF 2422 #line 2423 "configure" 2423 #include "confdefs.h" 2424 #include <vfork.h> 2425 EOF 2426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2427 { (eval echo configure:2428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2703 { (eval echo configure:2704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2428 2704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2429 2705 if test -z "$ac_err"; then … … 2450 2726 2451 2727 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 2452 echo "configure:2 453: checking for working vfork" >&52728 echo "configure:2729: checking for working vfork" >&5 2453 2729 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 2454 2730 echo $ac_n "(cached) $ac_c" 1>&6 … … 2456 2732 if test "$cross_compiling" = yes; then 2457 2733 echo $ac_n "checking for vfork""... $ac_c" 1>&6 2458 echo "configure:2 459: checking for vfork" >&52734 echo "configure:2735: checking for vfork" >&5 2459 2735 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 2460 2736 echo $ac_n "(cached) $ac_c" 1>&6 2461 2737 else 2462 2738 cat > conftest.$ac_ext <<EOF 2463 #line 2 464"configure"2739 #line 2740 "configure" 2464 2740 #include "confdefs.h" 2465 2741 /* System header to define __stub macros and hopefully few prototypes, … … 2484 2760 ; return 0; } 2485 2761 EOF 2486 if { (eval echo configure:2 487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2762 if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2487 2763 rm -rf conftest* 2488 2764 eval "ac_cv_func_vfork=yes" … … 2506 2782 else 2507 2783 cat > conftest.$ac_ext <<EOF 2508 #line 2 509"configure"2784 #line 2785 "configure" 2509 2785 #include "confdefs.h" 2510 2786 /* Thanks to Paul Eggert for this test. */ … … 2601 2877 } 2602 2878 EOF 2603 if { (eval echo configure:2 604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2879 if { (eval echo configure:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2604 2880 then 2605 2881 ac_cv_func_vfork_works=yes … … 2626 2902 LIBOBJS="$LIBOBJS vfork.o" 2627 2903 fi 2628 for v in $vars; do 2629 echo $ac_n "checking for $v""... $ac_c" 1>&6 2630 echo "configure:2631: checking for $v" >&5 2631 if eval "test \"`echo '$''{'libiberty_cv_var_$v'+set}'`\" = set"; then 2632 echo $ac_n "(cached) $ac_c" 1>&6 2633 else 2634 cat > conftest.$ac_ext <<EOF 2635 #line 2636 "configure" 2636 #include "confdefs.h" 2637 int *p; 2638 int main() { 2639 extern int $v; p = &$v; 2640 ; return 0; } 2641 EOF 2642 if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2643 rm -rf conftest* 2644 eval "libiberty_cv_var_$v=yes" 2645 else 2646 echo "configure: failed program was:" >&5 2647 cat conftest.$ac_ext >&5 2648 rm -rf conftest* 2649 eval "libiberty_cv_var_$v=no" 2650 fi 2651 rm -f conftest* 2652 fi 2653 2654 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then 2655 echo "$ac_t""yes" 1>&6 2656 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2657 cat >> confdefs.h <<EOF 2658 #define $n 1 2659 EOF 2660 2661 else 2662 echo "$ac_t""no" 1>&6 2663 fi 2664 done 2665 for ac_func in $checkfuncs 2904 # We only need _doprnt if we might use it to implement v*printf. 2905 if test $ac_cv_func_vprintf != yes \ 2906 || test $ac_cv_func_vfprintf != yes \ 2907 || test $ac_cv_func_vsprintf != yes; then 2908 for ac_func in _doprnt 2666 2909 do 2667 2910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2668 echo "configure:2 669: checking for $ac_func" >&52911 echo "configure:2912: checking for $ac_func" >&5 2669 2912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2670 2913 echo $ac_n "(cached) $ac_c" 1>&6 2671 2914 else 2672 2915 cat > conftest.$ac_ext <<EOF 2673 #line 2 674"configure"2916 #line 2917 "configure" 2674 2917 #include "confdefs.h" 2675 2918 /* System header to define __stub macros and hopefully few prototypes, … … 2694 2937 ; return 0; } 2695 2938 EOF 2696 if { (eval echo configure:2 697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2939 if { (eval echo configure:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2697 2940 rm -rf conftest* 2698 2941 eval "ac_cv_func_$ac_func=yes" … … 2715 2958 else 2716 2959 echo "$ac_t""no" 1>&6 2960 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2717 2961 fi 2718 2962 done 2719 2963 2720 fi 2721 2722 for ac_hdr in unistd.h 2723 do 2724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2726 echo "configure:2727: checking for $ac_hdr" >&5 2727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2728 echo $ac_n "(cached) $ac_c" 1>&6 2729 else 2730 cat > conftest.$ac_ext <<EOF 2731 #line 2732 "configure" 2732 #include "confdefs.h" 2733 #include <$ac_hdr> 2734 EOF 2735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2736 { (eval echo configure:2737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2738 if test -z "$ac_err"; then 2739 rm -rf conftest* 2740 eval "ac_cv_header_$ac_safe=yes" 2741 else 2742 echo "$ac_err" >&5 2743 echo "configure: failed program was:" >&5 2744 cat conftest.$ac_ext >&5 2745 rm -rf conftest* 2746 eval "ac_cv_header_$ac_safe=no" 2747 fi 2748 rm -f conftest* 2749 fi 2750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2751 echo "$ac_t""yes" 1>&6 2752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2753 cat >> confdefs.h <<EOF 2754 #define $ac_tr_hdr 1 2755 EOF 2756 2757 else 2758 echo "$ac_t""no" 1>&6 2759 fi 2760 done 2761 2762 for ac_func in getpagesize 2964 2965 else 2966 for ac_func in _doprnt 2763 2967 do 2764 2968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2765 echo "configure:2 766: checking for $ac_func" >&52969 echo "configure:2970: checking for $ac_func" >&5 2766 2970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2767 2971 echo $ac_n "(cached) $ac_c" 1>&6 2768 2972 else 2769 2973 cat > conftest.$ac_ext <<EOF 2770 #line 2 771"configure"2974 #line 2975 "configure" 2771 2975 #include "confdefs.h" 2772 2976 /* System header to define __stub macros and hopefully few prototypes, … … 2791 2995 ; return 0; } 2792 2996 EOF 2793 if { (eval echo configure:2 794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2794 2998 rm -rf conftest* 2795 2999 eval "ac_cv_func_$ac_func=yes" … … 2815 3019 done 2816 3020 3021 fi 3022 3023 for v in $vars; do 3024 echo $ac_n "checking for $v""... $ac_c" 1>&6 3025 echo "configure:3026: checking for $v" >&5 3026 if eval "test \"`echo '$''{'libiberty_cv_var_$v'+set}'`\" = set"; then 3027 echo $ac_n "(cached) $ac_c" 1>&6 3028 else 3029 cat > conftest.$ac_ext <<EOF 3030 #line 3031 "configure" 3031 #include "confdefs.h" 3032 int *p; 3033 int main() { 3034 extern int $v []; p = $v; 3035 ; return 0; } 3036 EOF 3037 if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3038 rm -rf conftest* 3039 eval "libiberty_cv_var_$v=yes" 3040 else 3041 echo "configure: failed program was:" >&5 3042 cat conftest.$ac_ext >&5 3043 rm -rf conftest* 3044 eval "libiberty_cv_var_$v=no" 3045 fi 3046 rm -f conftest* 3047 fi 3048 3049 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then 3050 echo "$ac_t""yes" 1>&6 3051 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3052 cat >> confdefs.h <<EOF 3053 #define $n 1 3054 EOF 3055 3056 else 3057 echo "$ac_t""no" 1>&6 3058 fi 3059 done 3060 for ac_func in $checkfuncs 3061 do 3062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3063 echo "configure:3064: checking for $ac_func" >&5 3064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3065 echo $ac_n "(cached) $ac_c" 1>&6 3066 else 3067 cat > conftest.$ac_ext <<EOF 3068 #line 3069 "configure" 3069 #include "confdefs.h" 3070 /* System header to define __stub macros and hopefully few prototypes, 3071 which can conflict with char $ac_func(); below. */ 3072 #include <assert.h> 3073 /* Override any gcc2 internal prototype to avoid an error. */ 3074 /* We use char because int might match the return type of a gcc2 3075 builtin and then its argument prototype would still apply. */ 3076 char $ac_func(); 3077 3078 int main() { 3079 3080 /* The GNU C library defines this for functions which it implements 3081 to always fail with ENOSYS. Some functions are actually named 3082 something starting with __ and the normal name is an alias. */ 3083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3084 choke me 3085 #else 3086 $ac_func(); 3087 #endif 3088 3089 ; return 0; } 3090 EOF 3091 if { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3092 rm -rf conftest* 3093 eval "ac_cv_func_$ac_func=yes" 3094 else 3095 echo "configure: failed program was:" >&5 3096 cat conftest.$ac_ext >&5 3097 rm -rf conftest* 3098 eval "ac_cv_func_$ac_func=no" 3099 fi 3100 rm -f conftest* 3101 fi 3102 3103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3104 echo "$ac_t""yes" 1>&6 3105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3106 cat >> confdefs.h <<EOF 3107 #define $ac_tr_func 1 3108 EOF 3109 3110 else 3111 echo "$ac_t""no" 1>&6 3112 fi 3113 done 3114 3115 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6 3116 echo "configure:3117: checking whether canonicalize_file_name must be declared" >&5 3117 if eval "test \"`echo '$''{'libiberty_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then 3118 echo $ac_n "(cached) $ac_c" 1>&6 3119 else 3120 cat > conftest.$ac_ext <<EOF 3121 #line 3122 "configure" 3122 #include "confdefs.h" 3123 3124 #include "confdefs.h" 3125 #include <stdio.h> 3126 #ifdef HAVE_STRING_H 3127 #include <string.h> 3128 #else 3129 #ifdef HAVE_STRINGS_H 3130 #include <strings.h> 3131 #endif 3132 #endif 3133 #ifdef HAVE_STDLIB_H 3134 #include <stdlib.h> 3135 #endif 3136 #ifdef HAVE_UNISTD_H 3137 #include <unistd.h> 3138 #endif 3139 int main() { 3140 char *(*pfn) = (char *(*)) canonicalize_file_name 3141 ; return 0; } 3142 EOF 3143 if { (eval echo configure:3144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3144 rm -rf conftest* 3145 libiberty_cv_decl_needed_canonicalize_file_name=no 3146 else 3147 echo "configure: failed program was:" >&5 3148 cat conftest.$ac_ext >&5 3149 rm -rf conftest* 3150 libiberty_cv_decl_needed_canonicalize_file_name=yes 3151 fi 3152 rm -f conftest* 3153 fi 3154 3155 echo "$ac_t""$libiberty_cv_decl_needed_canonicalize_file_name" 1>&6 3156 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then 3157 cat >> confdefs.h <<\EOF 3158 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 3159 EOF 3160 3161 fi 3162 3163 fi 3164 3165 # Figure out which version of pexecute to use. 3166 case "${host}" in 3167 *-*-mingw* | *-*-winnt*) pexecute=pex-win32.o ;; 3168 *-*-msdosdjgpp*) pexecute=pex-djgpp.o ;; 3169 *-*-msdos*) pexecute=pex-msdos.o ;; 3170 *-*-os2-emx*) pexecute=pex-os2.o ;; 3171 *) pexecute=pex-unix.o ;; 3172 esac 3173 3174 3175 for ac_hdr in unistd.h 3176 do 3177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3179 echo "configure:3180: checking for $ac_hdr" >&5 3180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3181 echo $ac_n "(cached) $ac_c" 1>&6 3182 else 3183 cat > conftest.$ac_ext <<EOF 3184 #line 3185 "configure" 3185 #include "confdefs.h" 3186 #include <$ac_hdr> 3187 EOF 3188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3189 { (eval echo configure:3190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3191 if test -z "$ac_err"; then 3192 rm -rf conftest* 3193 eval "ac_cv_header_$ac_safe=yes" 3194 else 3195 echo "$ac_err" >&5 3196 echo "configure: failed program was:" >&5 3197 cat conftest.$ac_ext >&5 3198 rm -rf conftest* 3199 eval "ac_cv_header_$ac_safe=no" 3200 fi 3201 rm -f conftest* 3202 fi 3203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3204 echo "$ac_t""yes" 1>&6 3205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3206 cat >> confdefs.h <<EOF 3207 #define $ac_tr_hdr 1 3208 EOF 3209 3210 else 3211 echo "$ac_t""no" 1>&6 3212 fi 3213 done 3214 3215 for ac_func in getpagesize 3216 do 3217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3218 echo "configure:3219: checking for $ac_func" >&5 3219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3220 echo $ac_n "(cached) $ac_c" 1>&6 3221 else 3222 cat > conftest.$ac_ext <<EOF 3223 #line 3224 "configure" 3224 #include "confdefs.h" 3225 /* System header to define __stub macros and hopefully few prototypes, 3226 which can conflict with char $ac_func(); below. */ 3227 #include <assert.h> 3228 /* Override any gcc2 internal prototype to avoid an error. */ 3229 /* We use char because int might match the return type of a gcc2 3230 builtin and then its argument prototype would still apply. */ 3231 char $ac_func(); 3232 3233 int main() { 3234 3235 /* The GNU C library defines this for functions which it implements 3236 to always fail with ENOSYS. Some functions are actually named 3237 something starting with __ and the normal name is an alias. */ 3238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3239 choke me 3240 #else 3241 $ac_func(); 3242 #endif 3243 3244 ; return 0; } 3245 EOF 3246 if { (eval echo configure:3247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3247 rm -rf conftest* 3248 eval "ac_cv_func_$ac_func=yes" 3249 else 3250 echo "configure: failed program was:" >&5 3251 cat conftest.$ac_ext >&5 3252 rm -rf conftest* 3253 eval "ac_cv_func_$ac_func=no" 3254 fi 3255 rm -f conftest* 3256 fi 3257 3258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3259 echo "$ac_t""yes" 1>&6 3260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3261 cat >> confdefs.h <<EOF 3262 #define $ac_tr_func 1 3263 EOF 3264 3265 else 3266 echo "$ac_t""no" 1>&6 3267 fi 3268 done 3269 2817 3270 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 2818 echo "configure: 2819: checking for working mmap" >&53271 echo "configure:3272: checking for working mmap" >&5 2819 3272 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 2820 3273 echo $ac_n "(cached) $ac_c" 1>&6 … … 2824 3277 else 2825 3278 cat > conftest.$ac_ext <<EOF 2826 #line 2827"configure"3279 #line 3280 "configure" 2827 3280 #include "confdefs.h" 2828 3281 … … 2964 3417 2965 3418 EOF 2966 if { (eval echo configure: 2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3419 if { (eval echo configure:3420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2967 3420 then 2968 3421 ac_cv_func_mmap_fixed_mapped=yes … … 2988 3441 2989 3442 echo $ac_n "checking for working strncmp""... $ac_c" 1>&6 2990 echo "configure: 2991: checking for working strncmp" >&53443 echo "configure:3444: checking for working strncmp" >&5 2991 3444 if eval "test \"`echo '$''{'ac_cv_func_strncmp_works'+set}'`\" = set"; then 2992 3445 echo $ac_n "(cached) $ac_c" 1>&6 … … 2996 3449 else 2997 3450 cat > conftest.$ac_ext <<EOF 2998 #line 2999"configure"3451 #line 3452 "configure" 2999 3452 #include "confdefs.h" 3000 3453 … … 3041 3494 MAP_ANON|MAP_PRIVATE, dev_zero, 0); 3042 3495 if (p == (char *)-1) 3496 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE, 3497 MAP_ANON|MAP_PRIVATE, -1, 0); 3498 if (p == (char *)-1) 3043 3499 exit (2); 3044 3500 else … … 3057 3513 3058 3514 EOF 3059 if { (eval echo configure:3 060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3515 if { (eval echo configure:3516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3060 3516 then 3061 3517 ac_cv_func_strncmp_works=yes … … 3221 3677 s%@infodir@%$infodir%g 3222 3678 s%@mandir@%$mandir%g 3679 s%@libiberty_topdir@%$libiberty_topdir%g 3680 s%@MAINT@%$MAINT%g 3681 s%@NOTMAINT@%$NOTMAINT%g 3682 s%@MAKEINFO@%$MAKEINFO%g 3683 s%@BUILD_INFO@%$BUILD_INFO%g 3684 s%@PERL@%$PERL%g 3685 s%@HAVE_PERL@%$HAVE_PERL%g 3223 3686 s%@host@%$host%g 3224 3687 s%@host_alias@%$host_alias%g … … 3235 3698 s%@CC@%$CC%g 3236 3699 s%@ac_libiberty_warn_cflags@%$ac_libiberty_warn_cflags%g 3700 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g 3701 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g 3237 3702 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 3238 3703 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g … … 3242 3707 s%@CPP@%$CPP%g 3243 3708 s%@CHECK@%$CHECK%g 3709 s%@target_header_dir@%$target_header_dir%g 3244 3710 s%@LIBOBJS@%$LIBOBJS%g 3245 s%@ ALLOCA@%$ALLOCA%g3711 s%@pexecute@%$pexecute%g 3246 3712 s%@INSTALL_DEST@%$INSTALL_DEST%g 3247 3713 … … 3458 3924 target=${target} 3459 3925 with_target_subdir=${with_target_subdir} 3926 with_build_subdir=${with_build_subdir} 3460 3927 with_multisubdir=${with_multisubdir} 3461 3928 ac_configure_args="--enable-multilib ${ac_configure_args}" 3462 3929 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 3930 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" 3463 3931 libiberty_topdir=${libiberty_topdir} 3464 3932 … … 3467 3935 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 3468 3936 if test -n "$CONFIG_FILES"; then 3469 if test -n "${with_ target_subdir}"; then3937 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then 3470 3938 # FIXME: We shouldn't need to set ac_file 3471 3939 ac_file=Makefile 3940 LD="${ORIGINAL_LD_FOR_MULTILIBS}" 3472 3941 . ${libiberty_topdir}/config-ml.in 3473 3942 fi -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.