Changeset 1391 for branches/GNU/src/gcc/libiberty/configure
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (21 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 dir.info 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libiberty/configure
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 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" … … 22 24 enable make rules and dependencies not useful 23 25 (and sometimes confusing) to the casual installer" 26 ac_help="$ac_help 27 --enable-install-libiberty Install headers for end users" 24 28 25 29 # Initialize some variables set by options. … … 545 549 fi 546 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 547 557 # Check whether --with-cross-host or --without-cross-host was given. 548 558 if test "${with_cross_host+set}" = set; then … … 559 569 560 570 if test "${srcdir}" = "."; then 561 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 562 575 libiberty_topdir="${srcdir}/.." 563 576 else … … 594 607 595 608 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 596 echo "configure: 597: checking whether to enable maintainer-specific portions of Makefiles" >&5609 echo "configure:610: checking whether to enable maintainer-specific portions of Makefiles" >&5 597 610 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 598 611 if test "${enable_maintainer_mode+set}" = set; then … … 619 632 set dummy makeinfo; ac_word=$2 620 633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 621 echo "configure:6 22: checking for $ac_word" >&5634 echo "configure:635: checking for $ac_word" >&5 622 635 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then 623 636 echo $ac_n "(cached) $ac_c" 1>&6 … … 665 678 set dummy perl; ac_word=$2 666 679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 667 echo "configure:6 68: checking for $ac_word" >&5680 echo "configure:681: checking for $ac_word" >&5 668 681 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then 669 682 echo $ac_n "(cached) $ac_c" 1>&6 … … 705 718 706 719 echo $ac_n "checking host system type""... $ac_c" 1>&6 707 echo "configure:7 08: checking host system type" >&5720 echo "configure:721: checking host system type" >&5 708 721 709 722 host_alias=$host … … 728 741 729 742 echo $ac_n "checking build system type""... $ac_c" 1>&6 730 echo "configure:7 31: checking build system type" >&5743 echo "configure:744: checking build system type" >&5 731 744 732 745 build_alias=$build … … 754 767 set dummy ${ac_tool_prefix}ar; ac_word=$2 755 768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 756 echo "configure:7 57: checking for $ac_word" >&5769 echo "configure:770: checking for $ac_word" >&5 757 770 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 758 771 echo $ac_n "(cached) $ac_c" 1>&6 … … 786 799 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 787 800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 788 echo "configure: 789: checking for $ac_word" >&5801 echo "configure:802: checking for $ac_word" >&5 789 802 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 790 803 echo $ac_n "(cached) $ac_c" 1>&6 … … 818 831 set dummy ranlib; ac_word=$2 819 832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 820 echo "configure:8 21: checking for $ac_word" >&5833 echo "configure:834: checking for $ac_word" >&5 821 834 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 822 835 echo $ac_n "(cached) $ac_c" 1>&6 … … 855 868 set dummy gcc; ac_word=$2 856 869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 857 echo "configure:8 58: checking for $ac_word" >&5870 echo "configure:871: checking for $ac_word" >&5 858 871 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 859 872 echo $ac_n "(cached) $ac_c" 1>&6 … … 885 898 set dummy cc; ac_word=$2 886 899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 887 echo "configure: 888: checking for $ac_word" >&5900 echo "configure:901: checking for $ac_word" >&5 888 901 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 889 902 echo $ac_n "(cached) $ac_c" 1>&6 … … 934 947 935 948 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 936 echo "configure:9 37: checking whether we are using GNU C" >&5949 echo "configure:950: checking whether we are using GNU C" >&5 937 950 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 938 951 echo $ac_n "(cached) $ac_c" 1>&6 … … 943 956 #endif 944 957 EOF 945 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9 46: \"$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 946 959 ac_cv_prog_gcc=yes 947 960 else … … 959 972 CFLAGS= 960 973 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 961 echo "configure:9 62: checking whether ${CC-cc} accepts -g" >&5974 echo "configure:975: checking whether ${CC-cc} accepts -g" >&5 962 975 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 963 976 echo $ac_n "(cached) $ac_c" 1>&6 … … 989 1002 990 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 991 1065 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 992 echo "configure: 993: checking for POSIXized ISC" >&51066 echo "configure:1067: checking for POSIXized ISC" >&5 993 1067 if test -d /etc/conf/kconfig.d && 994 1068 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 … … 1011 1085 1012 1086 echo $ac_n "checking for working const""... $ac_c" 1>&6 1013 echo "configure:10 14: checking for working const" >&51087 echo "configure:1088: checking for working const" >&5 1014 1088 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1015 1089 echo $ac_n "(cached) $ac_c" 1>&6 1016 1090 else 1017 1091 cat > conftest.$ac_ext <<EOF 1018 #line 10 19"configure"1092 #line 1093 "configure" 1019 1093 #include "confdefs.h" 1020 1094 … … 1065 1139 ; return 0; } 1066 1140 EOF 1067 if { (eval echo configure:1 068: \"$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 1068 1142 rm -rf conftest* 1069 1143 ac_cv_c_const=yes … … 1086 1160 1087 1161 echo $ac_n "checking for inline""... $ac_c" 1>&6 1088 echo "configure:1 089: checking for inline" >&51162 echo "configure:1163: checking for inline" >&5 1089 1163 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 1090 1164 echo $ac_n "(cached) $ac_c" 1>&6 … … 1093 1167 for ac_kw in inline __inline__ __inline; do 1094 1168 cat > conftest.$ac_ext <<EOF 1095 #line 1 096"configure"1169 #line 1170 "configure" 1096 1170 #include "confdefs.h" 1097 1171 … … 1100 1174 ; return 0; } 1101 1175 EOF 1102 if { (eval echo configure:11 03: \"$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 1103 1177 rm -rf conftest* 1104 1178 ac_cv_c_inline=$ac_kw; break … … 1143 1217 # ./install, which can be erroneously created by make from ./install.sh. 1144 1218 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1145 echo "configure:1 146: checking for a BSD compatible install" >&51219 echo "configure:1220: checking for a BSD compatible install" >&5 1146 1220 if test -z "$INSTALL"; then 1147 1221 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1204 1278 # something. 1205 1279 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1206 echo "configure:12 07: checking how to run the C preprocessor" >&51280 echo "configure:1281: checking how to run the C preprocessor" >&5 1207 1281 # On Suns, sometimes $CPP names a directory. 1208 1282 if test -n "$CPP" && test -d "$CPP"; then … … 1219 1293 # not just through cpp. 1220 1294 cat > conftest.$ac_ext <<EOF 1221 #line 12 22"configure"1295 #line 1296 "configure" 1222 1296 #include "confdefs.h" 1223 1297 #include <assert.h> … … 1225 1299 EOF 1226 1300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1227 { (eval echo configure:1 228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1301 { (eval echo configure:1302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1228 1302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1229 1303 if test -z "$ac_err"; then … … 1236 1310 CPP="${CC-cc} -E -traditional-cpp" 1237 1311 cat > conftest.$ac_ext <<EOF 1238 #line 1 239"configure"1312 #line 1313 "configure" 1239 1313 #include "confdefs.h" 1240 1314 #include <assert.h> … … 1242 1316 EOF 1243 1317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1244 { (eval echo configure:1 245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1318 { (eval echo configure:1319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1245 1319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1246 1320 if test -z "$ac_err"; then … … 1253 1327 CPP="${CC-cc} -nologo -E" 1254 1328 cat > conftest.$ac_ext <<EOF 1255 #line 1 256"configure"1329 #line 1330 "configure" 1256 1330 #include "confdefs.h" 1257 1331 #include <assert.h> … … 1259 1333 EOF 1260 1334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1261 { (eval echo configure:1 262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1335 { (eval echo configure:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1262 1336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1263 1337 if test -z "$ac_err"; then … … 1283 1357 echo "$ac_t""$CPP" 1>&6 1284 1358 1285 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.h1359 for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h malloc.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 1286 1360 do 1287 1361 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1288 1362 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1289 echo "configure:1 290: checking for $ac_hdr" >&51363 echo "configure:1364: checking for $ac_hdr" >&5 1290 1364 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1291 1365 echo $ac_n "(cached) $ac_c" 1>&6 1292 1366 else 1293 1367 cat > conftest.$ac_ext <<EOF 1294 #line 1 295"configure"1368 #line 1369 "configure" 1295 1369 #include "confdefs.h" 1296 1370 #include <$ac_hdr> 1297 1371 EOF 1298 1372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1299 { (eval echo configure:13 00: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1373 { (eval echo configure:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1300 1374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1301 1375 if test -z "$ac_err"; then … … 1324 1398 1325 1399 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 1326 echo "configure:1 327: 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 1327 1401 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 1328 1402 echo $ac_n "(cached) $ac_c" 1>&6 1329 1403 else 1330 1404 cat > conftest.$ac_ext <<EOF 1331 #line 1 332"configure"1405 #line 1406 "configure" 1332 1406 #include "confdefs.h" 1333 1407 #include <sys/types.h> … … 1345 1419 ; return 0; } 1346 1420 EOF 1347 if { (eval echo configure:1 348: \"$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 1348 1422 rm -rf conftest* 1349 1423 ac_cv_header_sys_wait_h=yes … … 1366 1440 1367 1441 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1368 echo "configure:1 369: 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 1369 1443 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1370 1444 echo $ac_n "(cached) $ac_c" 1>&6 1371 1445 else 1372 1446 cat > conftest.$ac_ext <<EOF 1373 #line 1 374"configure"1447 #line 1448 "configure" 1374 1448 #include "confdefs.h" 1375 1449 #include <sys/types.h> … … 1380 1454 ; return 0; } 1381 1455 EOF 1382 if { (eval echo configure:1 383: \"$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 1383 1457 rm -rf conftest* 1384 1458 ac_cv_header_time=yes … … 1402 1476 1403 1477 echo $ac_n "checking whether errno must be declared""... $ac_c" 1>&6 1404 echo "configure:14 05: checking whether errno must be declared" >&51478 echo "configure:1479: checking whether errno must be declared" >&5 1405 1479 if eval "test \"`echo '$''{'libiberty_cv_declare_errno'+set}'`\" = set"; then 1406 1480 echo $ac_n "(cached) $ac_c" 1>&6 1407 1481 else 1408 1482 cat > conftest.$ac_ext <<EOF 1409 #line 14 10"configure"1483 #line 1484 "configure" 1410 1484 #include "confdefs.h" 1411 1485 #include <errno.h> … … 1414 1488 ; return 0; } 1415 1489 EOF 1416 if { (eval echo configure:14 17: \"$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 1417 1491 rm -rf conftest* 1418 1492 libiberty_cv_declare_errno=no … … 1436 1510 1437 1511 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1438 echo "configure:1 439: checking for ANSI C header files" >&51512 echo "configure:1513: checking for ANSI C header files" >&5 1439 1513 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1440 1514 echo $ac_n "(cached) $ac_c" 1>&6 1441 1515 else 1442 1516 cat > conftest.$ac_ext <<EOF 1443 #line 1 444"configure"1517 #line 1518 "configure" 1444 1518 #include "confdefs.h" 1445 1519 #include <stdlib.h> … … 1449 1523 EOF 1450 1524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1451 { (eval echo configure:1 452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1525 { (eval echo configure:1526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1452 1526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1453 1527 if test -z "$ac_err"; then … … 1466 1540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1467 1541 cat > conftest.$ac_ext <<EOF 1468 #line 1 469"configure"1542 #line 1543 "configure" 1469 1543 #include "confdefs.h" 1470 1544 #include <string.h> … … 1484 1558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1485 1559 cat > conftest.$ac_ext <<EOF 1486 #line 1 487"configure"1560 #line 1561 "configure" 1487 1561 #include "confdefs.h" 1488 1562 #include <stdlib.h> … … 1505 1579 else 1506 1580 cat > conftest.$ac_ext <<EOF 1507 #line 15 08"configure"1581 #line 1582 "configure" 1508 1582 #include "confdefs.h" 1509 1583 #include <ctype.h> … … 1516 1590 1517 1591 EOF 1518 if { (eval echo configure:15 19: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1592 if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1519 1593 then 1520 1594 : … … 1540 1614 1541 1615 echo $ac_n "checking for uintptr_t""... $ac_c" 1>&6 1542 echo "configure:1 543: checking for uintptr_t" >&51616 echo "configure:1617: checking for uintptr_t" >&5 1543 1617 if eval "test \"`echo '$''{'ac_cv_type_uintptr_t'+set}'`\" = set"; then 1544 1618 echo $ac_n "(cached) $ac_c" 1>&6 1545 1619 else 1546 1620 cat > conftest.$ac_ext <<EOF 1547 #line 1 548"configure"1621 #line 1622 "configure" 1548 1622 #include "confdefs.h" 1549 1623 #include <sys/types.h> … … 1572 1646 fi 1573 1647 1574 1575 if test $ac_cv_type_uintptr_t = yes 1576 then 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 1577 1683 cat >> confdefs.h <<\EOF 1578 #define HAVE_UINTPTR_T 1 1579 EOF 1580 1581 fi 1684 #define pid_t int 1685 EOF 1686 1687 fi 1688 1582 1689 1583 1690 # This is the list of functions which libiberty will provide if they … … 1631 1738 1632 1739 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday" 1740 checkfuncs="$checkfuncs realpath canonicalize_file_name" 1741 checkfuncs="$checkfuncs pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl" 1633 1742 1634 1743 # These are neither executed nor required, but they help keep … … 1638 1747 do 1639 1748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1640 echo "configure:1 641: checking for $ac_func" >&51749 echo "configure:1750: checking for $ac_func" >&5 1641 1750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1642 1751 echo $ac_n "(cached) $ac_c" 1>&6 1643 1752 else 1644 1753 cat > conftest.$ac_ext <<EOF 1645 #line 1 646"configure"1754 #line 1755 "configure" 1646 1755 #include "confdefs.h" 1647 1756 /* System header to define __stub macros and hopefully few prototypes, … … 1666 1775 ; return 0; } 1667 1776 EOF 1668 if { (eval echo configure:1 669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1777 if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1669 1778 rm -rf conftest* 1670 1779 eval "ac_cv_func_$ac_func=yes" … … 1693 1802 do 1694 1803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1695 echo "configure:1 696: checking for $ac_func" >&51804 echo "configure:1805: checking for $ac_func" >&5 1696 1805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1697 1806 echo $ac_n "(cached) $ac_c" 1>&6 1698 1807 else 1699 1808 cat > conftest.$ac_ext <<EOF 1700 #line 1 701"configure"1809 #line 1810 "configure" 1701 1810 #include "confdefs.h" 1702 1811 /* System header to define __stub macros and hopefully few prototypes, … … 1721 1830 ; return 0; } 1722 1831 EOF 1723 if { (eval echo configure:1 724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1832 if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1724 1833 rm -rf conftest* 1725 1834 eval "ac_cv_func_$ac_func=yes" … … 1748 1857 do 1749 1858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1750 echo "configure:1 751: checking for $ac_func" >&51859 echo "configure:1860: checking for $ac_func" >&5 1751 1860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1752 1861 echo $ac_n "(cached) $ac_c" 1>&6 1753 1862 else 1754 1863 cat > conftest.$ac_ext <<EOF 1755 #line 1 756"configure"1864 #line 1865 "configure" 1756 1865 #include "confdefs.h" 1757 1866 /* System header to define __stub macros and hopefully few prototypes, … … 1776 1885 ; return 0; } 1777 1886 EOF 1778 if { (eval echo configure:1 779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1887 if { (eval echo configure:1888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1779 1888 rm -rf conftest* 1780 1889 eval "ac_cv_func_$ac_func=yes" … … 1803 1912 do 1804 1913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1805 echo "configure:1 806: checking for $ac_func" >&51914 echo "configure:1915: checking for $ac_func" >&5 1806 1915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1807 1916 echo $ac_n "(cached) $ac_c" 1>&6 1808 1917 else 1809 1918 cat > conftest.$ac_ext <<EOF 1810 #line 1 811"configure"1919 #line 1920 "configure" 1811 1920 #include "confdefs.h" 1812 1921 /* System header to define __stub macros and hopefully few prototypes, … … 1831 1940 ; return 0; } 1832 1941 EOF 1833 if { (eval echo configure:1 834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1942 if { (eval echo configure:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1834 1943 rm -rf conftest* 1835 1944 eval "ac_cv_func_$ac_func=yes" … … 1858 1967 do 1859 1968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1860 echo "configure:1 861: checking for $ac_func" >&51969 echo "configure:1970: checking for $ac_func" >&5 1861 1970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1862 1971 echo $ac_n "(cached) $ac_c" 1>&6 1863 1972 else 1864 1973 cat > conftest.$ac_ext <<EOF 1865 #line 1 866"configure"1974 #line 1975 "configure" 1866 1975 #include "confdefs.h" 1867 1976 /* System header to define __stub macros and hopefully few prototypes, … … 1886 1995 ; return 0; } 1887 1996 EOF 1888 if { (eval echo configure:1 889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1997 if { (eval echo configure:1998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1889 1998 rm -rf conftest* 1890 1999 eval "ac_cv_func_$ac_func=yes" … … 1913 2022 do 1914 2023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1915 echo "configure: 1916: checking for $ac_func" >&52024 echo "configure:2025: checking for $ac_func" >&5 1916 2025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1917 2026 echo $ac_n "(cached) $ac_c" 1>&6 1918 2027 else 1919 2028 cat > conftest.$ac_ext <<EOF 1920 #line 1921"configure"2029 #line 2030 "configure" 1921 2030 #include "confdefs.h" 1922 2031 /* System header to define __stub macros and hopefully few prototypes, … … 1941 2050 ; return 0; } 1942 2051 EOF 1943 if { (eval echo configure: 1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2052 if { (eval echo configure:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1944 2053 rm -rf conftest* 1945 2054 eval "ac_cv_func_$ac_func=yes" … … 1968 2077 do 1969 2078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1970 echo "configure: 1971: checking for $ac_func" >&52079 echo "configure:2080: checking for $ac_func" >&5 1971 2080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1972 2081 echo $ac_n "(cached) $ac_c" 1>&6 1973 2082 else 1974 2083 cat > conftest.$ac_ext <<EOF 1975 #line 1976"configure"2084 #line 2085 "configure" 1976 2085 #include "confdefs.h" 1977 2086 /* System header to define __stub macros and hopefully few prototypes, … … 1996 2105 ; return 0; } 1997 2106 EOF 1998 if { (eval echo configure: 1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2107 if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1999 2108 rm -rf conftest* 2000 2109 eval "ac_cv_func_$ac_func=yes" … … 2020 2129 done 2021 2130 2131 for ac_func in realpath canonicalize_file_name 2132 do 2133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2134 echo "configure:2135: checking for $ac_func" >&5 2135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2136 echo $ac_n "(cached) $ac_c" 1>&6 2137 else 2138 cat > conftest.$ac_ext <<EOF 2139 #line 2140 "configure" 2140 #include "confdefs.h" 2141 /* System header to define __stub macros and hopefully few prototypes, 2142 which can conflict with char $ac_func(); below. */ 2143 #include <assert.h> 2144 /* Override any gcc2 internal prototype to avoid an error. */ 2145 /* We use char because int might match the return type of a gcc2 2146 builtin and then its argument prototype would still apply. */ 2147 char $ac_func(); 2148 2149 int main() { 2150 2151 /* The GNU C library defines this for functions which it implements 2152 to always fail with ENOSYS. Some functions are actually named 2153 something starting with __ and the normal name is an alias. */ 2154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2155 choke me 2156 #else 2157 $ac_func(); 2158 #endif 2159 2160 ; return 0; } 2161 EOF 2162 if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2163 rm -rf conftest* 2164 eval "ac_cv_func_$ac_func=yes" 2165 else 2166 echo "configure: failed program was:" >&5 2167 cat conftest.$ac_ext >&5 2168 rm -rf conftest* 2169 eval "ac_cv_func_$ac_func=no" 2170 fi 2171 rm -f conftest* 2172 fi 2173 2174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2175 echo "$ac_t""yes" 1>&6 2176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2177 cat >> confdefs.h <<EOF 2178 #define $ac_tr_func 1 2179 EOF 2180 2181 else 2182 echo "$ac_t""no" 1>&6 2183 fi 2184 done 2185 2186 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl 2187 do 2188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2189 echo "configure:2190: checking for $ac_func" >&5 2190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2191 echo $ac_n "(cached) $ac_c" 1>&6 2192 else 2193 cat > conftest.$ac_ext <<EOF 2194 #line 2195 "configure" 2195 #include "confdefs.h" 2196 /* System header to define __stub macros and hopefully few prototypes, 2197 which can conflict with char $ac_func(); below. */ 2198 #include <assert.h> 2199 /* Override any gcc2 internal prototype to avoid an error. */ 2200 /* We use char because int might match the return type of a gcc2 2201 builtin and then its argument prototype would still apply. */ 2202 char $ac_func(); 2203 2204 int main() { 2205 2206 /* The GNU C library defines this for functions which it implements 2207 to always fail with ENOSYS. Some functions are actually named 2208 something starting with __ and the normal name is an alias. */ 2209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2210 choke me 2211 #else 2212 $ac_func(); 2213 #endif 2214 2215 ; return 0; } 2216 EOF 2217 if { (eval echo configure:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2218 rm -rf conftest* 2219 eval "ac_cv_func_$ac_func=yes" 2220 else 2221 echo "configure: failed program was:" >&5 2222 cat conftest.$ac_ext >&5 2223 rm -rf conftest* 2224 eval "ac_cv_func_$ac_func=no" 2225 fi 2226 rm -f conftest* 2227 fi 2228 2229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2230 echo "$ac_t""yes" 1>&6 2231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2232 cat >> confdefs.h <<EOF 2233 #define $ac_tr_func 1 2234 EOF 2235 2236 else 2237 echo "$ac_t""no" 1>&6 2238 fi 2239 done 2240 2022 2241 cat >> confdefs.h <<\EOF 2023 2242 #define HAVE_SYS_ERRLIST 1 … … 2040 2259 setobjs= 2041 2260 CHECK= 2261 target_header_dir= 2042 2262 if test -n "${with_target_subdir}"; then 2043 2263 … … 2080 2300 fi 2081 2301 2302 # We may wish to install the target headers somewhere. 2303 # Check whether --enable-install-libiberty or --disable-install-libiberty was given. 2304 if test "${enable_install_libiberty+set}" = set; then 2305 enableval="$enable_install_libiberty" 2306 enable_install_libiberty=$enableval 2307 else 2308 enable_install_libiberty=no 2309 fi 2310 2311 # Option parsed, now set things appropriately. 2312 case x"$enable_install_libiberty" in 2313 xyes|x) 2314 target_header_dir=libiberty 2315 ;; 2316 xno) 2317 target_header_dir= 2318 ;; 2319 *) 2320 # This could be sanity-checked in various ways... 2321 target_header_dir="${enable_install_libiberty}" 2322 ;; 2323 esac 2324 2325 2082 2326 else 2083 2327 … … 2086 2330 2087 2331 fi 2332 2088 2333 2089 2334 … … 2200 2445 # tests. This will only work if the compiler works. 2201 2446 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2202 echo "configure:2 203: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&52447 echo "configure:2448: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2203 2448 2204 2449 ac_ext=c … … 2211 2456 cat > conftest.$ac_ext << EOF 2212 2457 2213 #line 2 214"configure"2458 #line 2459 "configure" 2214 2459 #include "confdefs.h" 2215 2460 2216 2461 main(){return(0);} 2217 2462 EOF 2218 if { (eval echo configure:2 219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2463 if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2219 2464 ac_cv_prog_cc_works=yes 2220 2465 # If we can't run a trivial program, we are probably using a cross compiler. … … 2242 2487 fi 2243 2488 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2244 echo "configure:2 245: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&52489 echo "configure:2490: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2245 2490 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2246 2491 cross_compiling=$ac_cv_prog_cc_cross … … 2249 2494 do 2250 2495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2251 echo "configure:2 252: checking for $ac_func" >&52496 echo "configure:2497: checking for $ac_func" >&5 2252 2497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2253 2498 echo $ac_n "(cached) $ac_c" 1>&6 2254 2499 else 2255 2500 cat > conftest.$ac_ext <<EOF 2256 #line 2 257"configure"2501 #line 2502 "configure" 2257 2502 #include "confdefs.h" 2258 2503 /* System header to define __stub macros and hopefully few prototypes, … … 2277 2522 ; return 0; } 2278 2523 EOF 2279 if { (eval echo configure:2 280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2524 if { (eval echo configure:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2280 2525 rm -rf conftest* 2281 2526 eval "ac_cv_func_$ac_func=yes" … … 2304 2549 2305 2550 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2306 echo "configure:2 307: checking whether alloca needs Cray hooks" >&52551 echo "configure:2552: checking whether alloca needs Cray hooks" >&5 2307 2552 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2308 2553 echo $ac_n "(cached) $ac_c" 1>&6 2309 2554 else 2310 2555 cat > conftest.$ac_ext <<EOF 2311 #line 2 312"configure"2556 #line 2557 "configure" 2312 2557 #include "confdefs.h" 2313 2558 #if defined(CRAY) && ! defined(CRAY2) … … 2334 2579 for ac_func in _getb67 GETB67 getb67; do 2335 2580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2336 echo "configure:2 337: checking for $ac_func" >&52581 echo "configure:2582: checking for $ac_func" >&5 2337 2582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2338 2583 echo $ac_n "(cached) $ac_c" 1>&6 2339 2584 else 2340 2585 cat > conftest.$ac_ext <<EOF 2341 #line 2 342"configure"2586 #line 2587 "configure" 2342 2587 #include "confdefs.h" 2343 2588 /* System header to define __stub macros and hopefully few prototypes, … … 2362 2607 ; return 0; } 2363 2608 EOF 2364 if { (eval echo configure:2 365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2609 if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2365 2610 rm -rf conftest* 2366 2611 eval "ac_cv_func_$ac_func=yes" … … 2388 2633 2389 2634 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2390 echo "configure:2 391: checking stack direction for C alloca" >&52635 echo "configure:2636: checking stack direction for C alloca" >&5 2391 2636 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2392 2637 echo $ac_n "(cached) $ac_c" 1>&6 … … 2396 2641 else 2397 2642 cat > conftest.$ac_ext <<EOF 2398 #line 2 399"configure"2643 #line 2644 "configure" 2399 2644 #include "confdefs.h" 2400 2645 find_stack_direction () … … 2415 2660 } 2416 2661 EOF 2417 if { (eval echo configure:2 418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2662 if { (eval echo configure:2663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2418 2663 then 2419 2664 ac_cv_c_stack_direction=1 … … 2435 2680 2436 2681 2437 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 2438 echo "configure:2439: checking for pid_t" >&5 2439 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 2682 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 2683 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 2684 echo "configure:2685: checking for vfork.h" >&5 2685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2440 2686 echo $ac_n "(cached) $ac_c" 1>&6 2441 2687 else 2442 2688 cat > conftest.$ac_ext <<EOF 2443 #line 2444 "configure" 2444 #include "confdefs.h" 2445 #include <sys/types.h> 2446 #if STDC_HEADERS 2447 #include <stdlib.h> 2448 #include <stddef.h> 2449 #endif 2450 EOF 2451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2452 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2453 rm -rf conftest* 2454 ac_cv_type_pid_t=yes 2455 else 2456 rm -rf conftest* 2457 ac_cv_type_pid_t=no 2458 fi 2459 rm -f conftest* 2460 2461 fi 2462 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 2463 if test $ac_cv_type_pid_t = no; then 2464 cat >> confdefs.h <<\EOF 2465 #define pid_t int 2466 EOF 2467 2468 fi 2469 2470 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 2471 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 2472 echo "configure:2473: checking for vfork.h" >&5 2473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2474 echo $ac_n "(cached) $ac_c" 1>&6 2475 else 2476 cat > conftest.$ac_ext <<EOF 2477 #line 2478 "configure" 2689 #line 2690 "configure" 2478 2690 #include "confdefs.h" 2479 2691 #include <vfork.h> 2480 2692 EOF 2481 2693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2482 { (eval echo configure:2 483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2694 { (eval echo configure:2695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2483 2695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2484 2696 if test -z "$ac_err"; then … … 2505 2717 2506 2718 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 2507 echo "configure:2 508: checking for working vfork" >&52719 echo "configure:2720: checking for working vfork" >&5 2508 2720 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 2509 2721 echo $ac_n "(cached) $ac_c" 1>&6 … … 2511 2723 if test "$cross_compiling" = yes; then 2512 2724 echo $ac_n "checking for vfork""... $ac_c" 1>&6 2513 echo "configure:2 514: checking for vfork" >&52725 echo "configure:2726: checking for vfork" >&5 2514 2726 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 2515 2727 echo $ac_n "(cached) $ac_c" 1>&6 2516 2728 else 2517 2729 cat > conftest.$ac_ext <<EOF 2518 #line 2 519"configure"2730 #line 2731 "configure" 2519 2731 #include "confdefs.h" 2520 2732 /* System header to define __stub macros and hopefully few prototypes, … … 2539 2751 ; return 0; } 2540 2752 EOF 2541 if { (eval echo configure:2 542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2753 if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2542 2754 rm -rf conftest* 2543 2755 eval "ac_cv_func_vfork=yes" … … 2561 2773 else 2562 2774 cat > conftest.$ac_ext <<EOF 2563 #line 2 564"configure"2775 #line 2776 "configure" 2564 2776 #include "confdefs.h" 2565 2777 /* Thanks to Paul Eggert for this test. */ … … 2656 2868 } 2657 2869 EOF 2658 if { (eval echo configure:2 659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2870 if { (eval echo configure:2871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2659 2871 then 2660 2872 ac_cv_func_vfork_works=yes … … 2688 2900 do 2689 2901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2690 echo "configure:2 691: checking for $ac_func" >&52902 echo "configure:2903: checking for $ac_func" >&5 2691 2903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2692 2904 echo $ac_n "(cached) $ac_c" 1>&6 2693 2905 else 2694 2906 cat > conftest.$ac_ext <<EOF 2695 #line 2 696"configure"2907 #line 2908 "configure" 2696 2908 #include "confdefs.h" 2697 2909 /* System header to define __stub macros and hopefully few prototypes, … … 2716 2928 ; return 0; } 2717 2929 EOF 2718 if { (eval echo configure:2 719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2930 if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2719 2931 rm -rf conftest* 2720 2932 eval "ac_cv_func_$ac_func=yes" … … 2746 2958 do 2747 2959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2748 echo "configure:2 749: checking for $ac_func" >&52960 echo "configure:2961: checking for $ac_func" >&5 2749 2961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2750 2962 echo $ac_n "(cached) $ac_c" 1>&6 2751 2963 else 2752 2964 cat > conftest.$ac_ext <<EOF 2753 #line 2 754"configure"2965 #line 2966 "configure" 2754 2966 #include "confdefs.h" 2755 2967 /* System header to define __stub macros and hopefully few prototypes, … … 2774 2986 ; return 0; } 2775 2987 EOF 2776 if { (eval echo configure:2 777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2988 if { (eval echo configure:2989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2777 2989 rm -rf conftest* 2778 2990 eval "ac_cv_func_$ac_func=yes" … … 2802 3014 for v in $vars; do 2803 3015 echo $ac_n "checking for $v""... $ac_c" 1>&6 2804 echo "configure: 2805: checking for $v" >&53016 echo "configure:3017: checking for $v" >&5 2805 3017 if eval "test \"`echo '$''{'libiberty_cv_var_$v'+set}'`\" = set"; then 2806 3018 echo $ac_n "(cached) $ac_c" 1>&6 2807 3019 else 2808 3020 cat > conftest.$ac_ext <<EOF 2809 #line 2810"configure"3021 #line 3022 "configure" 2810 3022 #include "confdefs.h" 2811 3023 int *p; … … 2814 3026 ; return 0; } 2815 3027 EOF 2816 if { (eval echo configure: 2817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3028 if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2817 3029 rm -rf conftest* 2818 3030 eval "libiberty_cv_var_$v=yes" … … 2837 3049 fi 2838 3050 done 3051 3052 # special check for _system_configuration because AIX <4.3.2 do not 3053 # contain the `physmem' member. 3054 echo $ac_n "checking for external symbol _system_configuration""... $ac_c" 1>&6 3055 echo "configure:3056: checking for external symbol _system_configuration" >&5 3056 cat > conftest.$ac_ext <<EOF 3057 #line 3058 "configure" 3058 #include "confdefs.h" 3059 #include <sys/systemcfg.h> 3060 int main() { 3061 double x = _system_configuration.physmem; 3062 ; return 0; } 3063 EOF 3064 if { (eval echo configure:3065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3065 rm -rf conftest* 3066 echo "$ac_t""yes" 1>&6 3067 cat >> confdefs.h <<\EOF 3068 #define HAVE__SYSTEM_CONFIGURATION 1 3069 EOF 3070 3071 else 3072 echo "configure: failed program was:" >&5 3073 cat conftest.$ac_ext >&5 3074 rm -rf conftest* 3075 echo "$ac_t""no" 1>&6 3076 fi 3077 rm -f conftest* 3078 3079 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6 3080 echo "configure:3081: checking whether canonicalize_file_name must be declared" >&5 3081 if eval "test \"`echo '$''{'libiberty_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then 3082 echo $ac_n "(cached) $ac_c" 1>&6 3083 else 3084 cat > conftest.$ac_ext <<EOF 3085 #line 3086 "configure" 3086 #include "confdefs.h" 3087 3088 #include "confdefs.h" 3089 #include <stdio.h> 3090 #ifdef HAVE_STRING_H 3091 #include <string.h> 3092 #else 3093 #ifdef HAVE_STRINGS_H 3094 #include <strings.h> 3095 #endif 3096 #endif 3097 #ifdef HAVE_STDLIB_H 3098 #include <stdlib.h> 3099 #endif 3100 #ifdef HAVE_UNISTD_H 3101 #include <unistd.h> 3102 #endif 3103 int main() { 3104 char *(*pfn) = (char *(*)) canonicalize_file_name 3105 ; return 0; } 3106 EOF 3107 if { (eval echo configure:3108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3108 rm -rf conftest* 3109 libiberty_cv_decl_needed_canonicalize_file_name=no 3110 else 3111 echo "configure: failed program was:" >&5 3112 cat conftest.$ac_ext >&5 3113 rm -rf conftest* 3114 libiberty_cv_decl_needed_canonicalize_file_name=yes 3115 fi 3116 rm -f conftest* 3117 fi 3118 3119 echo "$ac_t""$libiberty_cv_decl_needed_canonicalize_file_name" 1>&6 3120 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then 3121 cat >> confdefs.h <<\EOF 3122 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 3123 EOF 3124 3125 fi 3126 2839 3127 for ac_func in $checkfuncs 2840 3128 do 2841 3129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2842 echo "configure: 2843: checking for $ac_func" >&53130 echo "configure:3131: checking for $ac_func" >&5 2843 3131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2844 3132 echo $ac_n "(cached) $ac_c" 1>&6 2845 3133 else 2846 3134 cat > conftest.$ac_ext <<EOF 2847 #line 2848"configure"3135 #line 3136 "configure" 2848 3136 #include "confdefs.h" 2849 3137 /* System header to define __stub macros and hopefully few prototypes, … … 2868 3156 ; return 0; } 2869 3157 EOF 2870 if { (eval echo configure: 2871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3158 if { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2871 3159 rm -rf conftest* 2872 3160 eval "ac_cv_func_$ac_func=yes" … … 2898 3186 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2899 3187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2900 echo "configure: 2901: checking for $ac_hdr" >&53188 echo "configure:3189: checking for $ac_hdr" >&5 2901 3189 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2902 3190 echo $ac_n "(cached) $ac_c" 1>&6 2903 3191 else 2904 3192 cat > conftest.$ac_ext <<EOF 2905 #line 2906"configure"3193 #line 3194 "configure" 2906 3194 #include "confdefs.h" 2907 3195 #include <$ac_hdr> 2908 3196 EOF 2909 3197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2910 { (eval echo configure: 2911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }3198 { (eval echo configure:3199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2911 3199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2912 3200 if test -z "$ac_err"; then … … 2937 3225 do 2938 3226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2939 echo "configure: 2940: checking for $ac_func" >&53227 echo "configure:3228: checking for $ac_func" >&5 2940 3228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2941 3229 echo $ac_n "(cached) $ac_c" 1>&6 2942 3230 else 2943 3231 cat > conftest.$ac_ext <<EOF 2944 #line 2945"configure"3232 #line 3233 "configure" 2945 3233 #include "confdefs.h" 2946 3234 /* System header to define __stub macros and hopefully few prototypes, … … 2965 3253 ; return 0; } 2966 3254 EOF 2967 if { (eval echo configure: 2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3255 if { (eval echo configure:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2968 3256 rm -rf conftest* 2969 3257 eval "ac_cv_func_$ac_func=yes" … … 2990 3278 2991 3279 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 2992 echo "configure: 2993: checking for working mmap" >&53280 echo "configure:3281: checking for working mmap" >&5 2993 3281 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 2994 3282 echo $ac_n "(cached) $ac_c" 1>&6 … … 2998 3286 else 2999 3287 cat > conftest.$ac_ext <<EOF 3000 #line 3 001"configure"3288 #line 3289 "configure" 3001 3289 #include "confdefs.h" 3002 3290 … … 3138 3426 3139 3427 EOF 3140 if { (eval echo configure:3 141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3428 if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3141 3429 then 3142 3430 ac_cv_func_mmap_fixed_mapped=yes … … 3162 3450 3163 3451 echo $ac_n "checking for working strncmp""... $ac_c" 1>&6 3164 echo "configure:3 165: checking for working strncmp" >&53452 echo "configure:3453: checking for working strncmp" >&5 3165 3453 if eval "test \"`echo '$''{'ac_cv_func_strncmp_works'+set}'`\" = set"; then 3166 3454 echo $ac_n "(cached) $ac_c" 1>&6 … … 3170 3458 else 3171 3459 cat > conftest.$ac_ext <<EOF 3172 #line 3 173"configure"3460 #line 3461 "configure" 3173 3461 #include "confdefs.h" 3174 3462 … … 3234 3522 3235 3523 EOF 3236 if { (eval echo configure:3 237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3524 if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3237 3525 then 3238 3526 ac_cv_func_strncmp_works=yes … … 3419 3707 s%@CC@%$CC%g 3420 3708 s%@ac_libiberty_warn_cflags@%$ac_libiberty_warn_cflags%g 3709 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g 3710 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g 3421 3711 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 3422 3712 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g … … 3426 3716 s%@CPP@%$CPP%g 3427 3717 s%@CHECK@%$CHECK%g 3718 s%@target_header_dir@%$target_header_dir%g 3428 3719 s%@LIBOBJS@%$LIBOBJS%g 3429 3720 s%@INSTALL_DEST@%$INSTALL_DEST%g … … 3641 3932 target=${target} 3642 3933 with_target_subdir=${with_target_subdir} 3934 with_build_subdir=${with_build_subdir} 3643 3935 with_multisubdir=${with_multisubdir} 3644 3936 ac_configure_args="--enable-multilib ${ac_configure_args}" 3645 3937 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 3938 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" 3646 3939 libiberty_topdir=${libiberty_topdir} 3647 3940 … … 3650 3943 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 3651 3944 if test -n "$CONFIG_FILES"; then 3652 if test -n "${with_ target_subdir}"; then3945 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then 3653 3946 # FIXME: We shouldn't need to set ac_file 3654 3947 ac_file=Makefile -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.