Changeset fe2401b2 in rtems
- Timestamp:
- 05/21/98 16:38:17 (25 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 0d48220
- Parents:
- 27dccae
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
aclocal.m4
r27dccae rfe2401b2 57 57 ]) 58 58 59 dnl Set program_prefix 60 dnl 61 dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de) 62 dnl Extracted from configure 63 64 AC_DEFUN(RTEMS_TOOL_PREFIX, 65 [AC_REQUIRE([AC_CANONICAL_TARGET])dnl 66 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 67 68 if [[ "${program_prefix}" = "NONE" ]] ; then 69 if [[ "${target}" = "${host}" ]] ; then 70 program_prefix= 71 else 72 program_prefix=${target}- 73 fi 74 fi 75 ]) 76 59 77 dnl 60 78 dnl $Id$ … … 62 80 dnl Check for target gcc 63 81 dnl 64 dnl Adaptation of autoconf-2.12's AC_PROG_CC to rtems 65 dnl 66 dnl 98/02/10 Ralf Corsepius (corsepiu@faw.uni-ulm.de) 67 dnl 82 dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de) 83 dnl Completely reworked 68 84 69 85 AC_DEFUN(RTEMS_PROG_CC, … … 71 87 AC_BEFORE([$0], [AC_PROG_CPP])dnl 72 88 AC_BEFORE([$0], [AC_PROG_CC])dnl 73 AC_CHECK_PROG(CC, gcc, gcc) 74 if test -z "$CC"; then 75 AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) 76 test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) 77 fi 78 79 RTEMS_PROG_CC_WORKS 89 AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl 90 91 dnl Only accept gcc and cc 92 dnl NOTE: This might be too restrictive for native compilation 93 AC_PATH_PROGS(CC_FOR_TARGET, "$program_prefix"gcc "$program_prefix"cc ) 94 test -z "$CC_FOR_TARGET" \ 95 && AC_MSG_ERROR([no acceptable cc found in \$PATH]) 96 97 dnl backup 98 rtems_save_CC=$CC 99 rtems_save_CFLAGS=$CFLAGS 100 101 dnl temporarily set CC 102 CC=$CC_FOR_TARGET 103 104 AC_PROG_CC_WORKS 80 105 AC_PROG_CC_GNU 81 106 … … 101 126 fi 102 127 103 CC_FOR_TARGET=$CC104 128 rtems_cv_prog_gcc=$ac_cv_prog_gcc 105 129 rtems_cv_prog_cc_g=$ac_cv_prog_cc_g 130 rtems_cv_prog_cc_works=$ac_cv_prog_cc_works 131 rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross 106 132 107 133 dnl restore initial values 108 unset CC 134 CC=$rtems_save_CC 135 CFLAGS=$rtems_save_CFLAGS 136 109 137 unset ac_cv_prog_gcc 110 138 unset ac_cv_prog_cc_g 111 unset ac_cv_prog_CC 112 ]) 113 114 115 dnl Almost identical to AC_PROG_CC_WORKS 116 dnl added malloc to program fragment, because rtems has its own malloc 117 dnl which is not available while bootstrapping rtems 118 119 AC_DEFUN(RTEMS_PROG_CC_WORKS, 120 [AC_MSG_CHECKING([whether the target C compiler ($CC $CFLAGS $LDFLAGS) works]) 121 AC_LANG_SAVE 122 AC_LANG_C 123 AC_TRY_COMPILER( 124 [main(){return(0);}], 125 rtems_cv_prog_cc_works, rtems_cv_prog_cc_cross) 126 AC_LANG_RESTORE 127 AC_MSG_RESULT($rtems_cv_prog_cc_works) 128 if test $rtems_cv_prog_cc_works = no; then 129 AC_MSG_ERROR([installation or configuration problem: target C compiler cannot create executables.]) 130 fi 131 AC_MSG_CHECKING([whether the target C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler]) 132 AC_MSG_RESULT($rtems_cv_prog_cc_cross) 139 unset ac_cv_prog_cc_works 140 unset ac_cv_prog_cc_cross 133 141 ]) 134 142 … … 189 197 dnl Check for target g++ 190 198 dnl 191 dnl Adaptation of autoconf-2.12's AC_PROG_CXX to rtems 192 dnl 193 dnl 98/02/10 Ralf Corsepius (corsepiu@faw.uni-ulm.de) 194 dnl 195 199 dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de) 200 dnl Completely reworked 201 196 202 AC_DEFUN(RTEMS_PROG_CXX, 197 203 [ 198 204 AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl 199 205 AC_BEFORE([$0], [AC_PROG_CXX])dnl 200 AC_CHECK_PROGS(CXX, $CCC c++ g++ gcc CC cxx cc++, gcc) 201 202 RTEMS_PROG_CXX_WORKS 206 AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl 207 208 dnl Only accept g++ and c++ 209 dnl NOTE: This might be too restrictive for native compilation 210 AC_PATH_PROGS(CXX_FOR_TARGET, "$program_prefix"g++ "$program_prefix"c++) 211 test -z "$CXX_FOR_TARGET" \ 212 && AC_MSG_ERROR([no acceptable c++ found in \$PATH]) 213 214 dnl backup 215 rtems_save_CXX=$CXX 216 rtems_save_CXXFLAGS=$CXXFLAGS 217 218 dnl temporarily set CXX 219 CXX=$CXX_FOR_TARGET 220 221 AC_PROG_CXX_WORKS 203 222 AC_PROG_CXX_GNU 204 223 … … 223 242 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" 224 243 fi 225 CXX_FOR_TARGET=$CXX 244 245 rtems_cv_prog_gxx=$ac_cv_prog_gxx 246 rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g 247 rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works 248 rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross 249 250 CXX=$rtems_save_CXX 251 CXXFLAGS=$rtems_save_CXXFLAGS 226 252 227 253 dnl restore initial values 228 unset CXX229 254 unset ac_cv_prog_gxx 230 ]) 231 232 233 dnl Almost identical to AC_PROG_CXX_WORKS 234 dnl Additional handling of malloc 235 dnl NOTE: using newlib with a native compiler is cross-compiling, indeed. 236 AC_DEFUN(RTEMS_PROG_CXX_WORKS, 237 [AC_MSG_CHECKING([whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works]) 238 AC_LANG_SAVE 239 AC_LANG_CPLUSPLUS 240 241 dnl this fails if rtems uses newlib, because rtems has its own malloc which 242 dnl is not available at bootstrap 243 AC_TRY_COMPILER( 244 [main(){return(0);}], 245 rtems_cv_prog_cxx_works, rtems_cv_prog_cxx_cross) 246 AC_LANG_RESTORE 247 AC_MSG_RESULT($rtems_cv_prog_cxx_works) 248 if test $rtems_cv_prog_cxx_works = no; then 249 AC_MSG_ERROR([installation or configuration problem: target C++ compiler cannot create executables.]) 250 fi 251 AC_MSG_CHECKING([whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler]) 252 AC_MSG_RESULT($rtems_cv_prog_cxx_cross) 255 unset ac_cv_prog_cc_g 256 unset ac_cv_prog_cxx_works 257 unset ac_cv_prog_cxx_cross 253 258 ]) 254 259 … … 276 281 dnl FIXME: What shall be done if they don't exist? 277 282 278 dnl NOTE: CC_FOR_TARGET should always be valid at this point,279 dnl cf. RTEMS_PROG_CC280 AC_PATH_PROG(CC_FOR_TARGET,"$program_prefix"gcc,no)281 282 283 dnl FIXME: This may fail if the compiler has not been recognized as gcc 283 284 dnl and uses tools with different names -
configure
r27dccae rfe2401b2 1340 1340 fi 1341 1341 1342 CC="$program_prefix"gcc 1342 1343 1344 1345 for ac_prog in "$program_prefix"gcc "$program_prefix"cc 1346 do 1347 # Extract the first word of "$ac_prog", so it can be a program name with args. 1348 set dummy $ac_prog; ac_word=$2 1349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1350 echo "configure:1351: checking for $ac_word" >&5 1351 if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then 1352 echo $ac_n "(cached) $ac_c" 1>&6 1353 else 1354 case "$CC_FOR_TARGET" in 1355 /*) 1356 ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path. 1357 ;; 1358 *) 1359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1360 for ac_dir in $PATH; do 1361 test -z "$ac_dir" && ac_dir=. 1362 if test -f $ac_dir/$ac_word; then 1363 ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word" 1364 break 1365 fi 1366 done 1367 IFS="$ac_save_ifs" 1368 ;; 1369 esac 1370 fi 1371 CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET" 1372 if test -n "$CC_FOR_TARGET"; then 1373 echo "$ac_t""$CC_FOR_TARGET" 1>&6 1374 else 1375 echo "$ac_t""no" 1>&6 1376 fi 1377 1378 test -n "$CC_FOR_TARGET" && break 1379 done 1380 1381 test -z "$CC_FOR_TARGET" \ 1382 && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1383 1384 rtems_save_CC=$CC 1385 rtems_save_CFLAGS=$CFLAGS 1386 1387 CC=$CC_FOR_TARGET 1388 1389 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1390 echo "configure:1391: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1391 1392 ac_ext=c 1393 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1394 ac_cpp='$CPP $CPPFLAGS' 1395 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1396 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1397 cross_compiling=$ac_cv_prog_cc_cross 1398 1399 cat > conftest.$ac_ext <<EOF 1400 #line 1401 "configure" 1401 #include "confdefs.h" 1402 main(){return(0);} 1403 EOF 1404 if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1405 ac_cv_prog_cc_works=yes 1406 # If we can't run a trivial program, we are probably using a cross compiler. 1407 if (./conftest; exit) 2>/dev/null; then 1408 ac_cv_prog_cc_cross=no 1409 else 1410 ac_cv_prog_cc_cross=yes 1411 fi 1412 else 1413 echo "configure: failed program was:" >&5 1414 cat conftest.$ac_ext >&5 1415 ac_cv_prog_cc_works=no 1416 fi 1417 rm -fr conftest* 1418 1419 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1420 if test $ac_cv_prog_cc_works = no; then 1421 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1422 fi 1423 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1424 echo "configure:1425: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1425 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1426 cross_compiling=$ac_cv_prog_cc_cross 1427 1428 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1429 echo "configure:1430: checking whether we are using GNU C" >&5 1430 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1431 echo $ac_n "(cached) $ac_c" 1>&6 1432 else 1433 cat > conftest.c <<EOF 1434 #ifdef __GNUC__ 1435 yes; 1436 #endif 1437 EOF 1438 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1439 ac_cv_prog_gcc=yes 1440 else 1441 ac_cv_prog_gcc=no 1442 fi 1443 fi 1444 1445 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1446 1447 if test $ac_cv_prog_gcc = yes; then 1448 GCC=yes 1449 ac_test_CFLAGS="${CFLAGS+set}" 1450 ac_save_CFLAGS="$CFLAGS" 1451 CFLAGS= 1452 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1453 echo "configure:1454: checking whether ${CC-cc} accepts -g" >&5 1454 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1455 echo $ac_n "(cached) $ac_c" 1>&6 1456 else 1457 echo 'void f(){}' > conftest.c 1458 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1459 ac_cv_prog_cc_g=yes 1460 else 1461 ac_cv_prog_cc_g=no 1462 fi 1463 rm -f conftest* 1464 1465 fi 1466 1467 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1468 if test "$ac_test_CFLAGS" = set; then 1469 CFLAGS="$ac_save_CFLAGS" 1470 elif test $ac_cv_prog_cc_g = yes; then 1471 CFLAGS="-g -O2" 1472 else 1473 CFLAGS="-O2" 1474 fi 1475 else 1476 GCC= 1477 test "${CFLAGS+set}" = set || CFLAGS="-g" 1478 fi 1479 1480 rtems_cv_prog_gcc=$ac_cv_prog_gcc 1481 rtems_cv_prog_cc_g=$ac_cv_prog_cc_g 1482 rtems_cv_prog_cc_works=$ac_cv_prog_cc_works 1483 rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross 1484 1485 CC=$rtems_save_CC 1486 CFLAGS=$rtems_save_CFLAGS 1487 1488 unset ac_cv_prog_gcc 1489 unset ac_cv_prog_cc_g 1490 unset ac_cv_prog_cc_works 1491 unset ac_cv_prog_cc_cross 1492 1493 1494 echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6 1495 echo "configure:1496: checking whether $CC_FOR_TARGET accepts -specs" >&5 1496 if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then 1497 echo $ac_n "(cached) $ac_c" 1>&6 1498 else 1499 touch confspec 1500 echo 'void f(){}' >conftest.c 1501 if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then 1502 rtems_cv_gcc_specs=yes 1503 else 1504 rtems_cv_gcc_specs=no 1505 fi 1506 rm -f confspec conftest* 1507 1508 fi 1509 1510 echo "$ac_t""$rtems_cv_gcc_specs" 1>&6 1511 1512 1513 echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6 1514 echo "configure:1515: checking whether $CC_FOR_TARGET accepts --pipe" >&5 1515 if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then 1516 echo $ac_n "(cached) $ac_c" 1>&6 1517 else 1518 1519 case "$host_os" in 1520 cygwin32*) 1521 rtems_cv_gcc_pipe=no 1522 ;; 1523 *) 1524 echo 'void f(){}' >conftest.c 1525 if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then 1526 rtems_cv_gcc_pipe=yes 1527 else 1528 rtems_cv_gcc_pipe=no 1529 fi 1530 rm -f conftest* 1531 ;; 1532 esac 1533 1534 fi 1535 1536 echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6 1537 1538 1539 if test "$RTEMS_USE_GCC272" != "yes" ; then 1540 if test "$rtems_cv_gcc_specs" = "no"; then 1541 echo "configure: warning: *** disabling --enable-gcc28" 1>&2 1542 RTEMS_USE_GCC272=yes 1543 fi 1544 fi 1545 test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe" 1546 1547 if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then 1548 1549 1550 for ac_prog in "$program_prefix"g++ "$program_prefix"c++ 1551 do 1552 # Extract the first word of "$ac_prog", so it can be a program name with args. 1553 set dummy $ac_prog; ac_word=$2 1554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1555 echo "configure:1556: checking for $ac_word" >&5 1556 if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then 1557 echo $ac_n "(cached) $ac_c" 1>&6 1558 else 1559 case "$CXX_FOR_TARGET" in 1560 /*) 1561 ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path. 1562 ;; 1563 *) 1564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1565 for ac_dir in $PATH; do 1566 test -z "$ac_dir" && ac_dir=. 1567 if test -f $ac_dir/$ac_word; then 1568 ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word" 1569 break 1570 fi 1571 done 1572 IFS="$ac_save_ifs" 1573 ;; 1574 esac 1575 fi 1576 CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET" 1577 if test -n "$CXX_FOR_TARGET"; then 1578 echo "$ac_t""$CXX_FOR_TARGET" 1>&6 1579 else 1580 echo "$ac_t""no" 1>&6 1581 fi 1582 1583 test -n "$CXX_FOR_TARGET" && break 1584 done 1585 1586 test -z "$CXX_FOR_TARGET" \ 1587 && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; } 1588 1589 rtems_save_CXX=$CXX 1590 rtems_save_CXXFLAGS=$CXXFLAGS 1591 1592 CXX=$CXX_FOR_TARGET 1593 1594 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1595 echo "configure:1596: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 1596 1597 ac_ext=C 1598 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1599 ac_cpp='$CXXCPP $CPPFLAGS' 1600 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1601 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1602 cross_compiling=$ac_cv_prog_cxx_cross 1603 1604 cat > conftest.$ac_ext <<EOF 1605 #line 1606 "configure" 1606 #include "confdefs.h" 1607 main(){return(0);} 1608 EOF 1609 if { (eval echo configure:1610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1610 ac_cv_prog_cxx_works=yes 1611 # If we can't run a trivial program, we are probably using a cross compiler. 1612 if (./conftest; exit) 2>/dev/null; then 1613 ac_cv_prog_cxx_cross=no 1614 else 1615 ac_cv_prog_cxx_cross=yes 1616 fi 1617 else 1618 echo "configure: failed program was:" >&5 1619 cat conftest.$ac_ext >&5 1620 ac_cv_prog_cxx_works=no 1621 fi 1622 rm -fr conftest* 1623 ac_ext=c 1624 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1625 ac_cpp='$CPP $CPPFLAGS' 1626 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1627 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1628 cross_compiling=$ac_cv_prog_cc_cross 1629 1630 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 1631 if test $ac_cv_prog_cxx_works = no; then 1632 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 1633 fi 1634 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1635 echo "configure:1636: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1636 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1637 cross_compiling=$ac_cv_prog_cxx_cross 1638 1639 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1640 echo "configure:1641: checking whether we are using GNU C++" >&5 1641 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1642 echo $ac_n "(cached) $ac_c" 1>&6 1643 else 1644 cat > conftest.C <<EOF 1645 #ifdef __GNUC__ 1646 yes; 1647 #endif 1648 EOF 1649 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1650 ac_cv_prog_gxx=yes 1651 else 1652 ac_cv_prog_gxx=no 1653 fi 1654 fi 1655 1656 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 1657 1658 if test $ac_cv_prog_gxx = yes; then 1659 GXX=yes 1660 ac_test_CXXFLAGS="${CXXFLAGS+set}" 1661 ac_save_CXXFLAGS="$CXXFLAGS" 1662 CXXFLAGS= 1663 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1664 echo "configure:1665: checking whether ${CXX-g++} accepts -g" >&5 1665 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1666 echo $ac_n "(cached) $ac_c" 1>&6 1667 else 1668 echo 'void f(){}' > conftest.cc 1669 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 1670 ac_cv_prog_cxx_g=yes 1671 else 1672 ac_cv_prog_cxx_g=no 1673 fi 1674 rm -f conftest* 1675 1676 fi 1677 1678 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 1679 if test "$ac_test_CXXFLAGS" = set; then 1680 CXXFLAGS="$ac_save_CXXFLAGS" 1681 elif test $ac_cv_prog_cxx_g = yes; then 1682 CXXFLAGS="-g -O2" 1683 else 1684 CXXFLAGS="-O2" 1685 fi 1686 else 1687 GXX= 1688 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" 1689 fi 1690 1691 rtems_cv_prog_gxx=$ac_cv_prog_gxx 1692 rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g 1693 rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works 1694 rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross 1695 1696 CXX=$rtems_save_CXX 1697 CXXFLAGS=$rtems_save_CXXFLAGS 1698 1699 unset ac_cv_prog_gxx 1700 unset ac_cv_prog_cc_g 1701 unset ac_cv_prog_cxx_works 1702 unset ac_cv_prog_cxx_cross 1703 1704 if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then 1705 { echo "configure: error: *** 1706 Inconsistency in compiler configuration: 1707 Target C compiler and Target C++ compiler 1708 must both ether be cross compilers or native compilers 1709 Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; } 1710 fi 1711 else 1712 CXX_FOR_TARGET="no" 1713 fi 1714 1715 if test "$rtems_cv_prog_gcc" = "yes" ; then 1716 AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar` 1717 AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as` 1718 LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld` 1719 NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm` 1720 RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib` 1721 fi 1722 1723 1724 # Extract the first word of ""$program_prefix"ar", so it can be a program name with args. 1725 set dummy "$program_prefix"ar; ac_word=$2 1726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1727 echo "configure:1728: checking for $ac_word" >&5 1728 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then 1729 echo $ac_n "(cached) $ac_c" 1>&6 1730 else 1731 case "$AR_FOR_TARGET" in 1732 /*) 1733 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. 1734 ;; 1735 *) 1736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1737 for ac_dir in $PATH; do 1738 test -z "$ac_dir" && ac_dir=. 1739 if test -f $ac_dir/$ac_word; then 1740 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word" 1741 break 1742 fi 1743 done 1744 IFS="$ac_save_ifs" 1745 test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no" 1746 ;; 1747 esac 1748 fi 1749 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET" 1750 if test -n "$AR_FOR_TARGET"; then 1751 echo "$ac_t""$AR_FOR_TARGET" 1>&6 1752 else 1753 echo "$ac_t""no" 1>&6 1754 fi 1755 1756 # Extract the first word of ""$program_prefix"as", so it can be a program name with args. 1757 set dummy "$program_prefix"as; ac_word=$2 1758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1759 echo "configure:1760: checking for $ac_word" >&5 1760 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then 1761 echo $ac_n "(cached) $ac_c" 1>&6 1762 else 1763 case "$AS_FOR_TARGET" in 1764 /*) 1765 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. 1766 ;; 1767 *) 1768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1769 for ac_dir in $PATH; do 1770 test -z "$ac_dir" && ac_dir=. 1771 if test -f $ac_dir/$ac_word; then 1772 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word" 1773 break 1774 fi 1775 done 1776 IFS="$ac_save_ifs" 1777 test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no" 1778 ;; 1779 esac 1780 fi 1781 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET" 1782 if test -n "$AS_FOR_TARGET"; then 1783 echo "$ac_t""$AS_FOR_TARGET" 1>&6 1784 else 1785 echo "$ac_t""no" 1>&6 1786 fi 1787 1788 # Extract the first word of ""$program_prefix"nm", so it can be a program name with args. 1789 set dummy "$program_prefix"nm; ac_word=$2 1790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1791 echo "configure:1792: checking for $ac_word" >&5 1792 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then 1793 echo $ac_n "(cached) $ac_c" 1>&6 1794 else 1795 case "$NM_FOR_TARGET" in 1796 /*) 1797 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. 1798 ;; 1799 *) 1800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1801 for ac_dir in $PATH; do 1802 test -z "$ac_dir" && ac_dir=. 1803 if test -f $ac_dir/$ac_word; then 1804 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word" 1805 break 1806 fi 1807 done 1808 IFS="$ac_save_ifs" 1809 test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no" 1810 ;; 1811 esac 1812 fi 1813 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET" 1814 if test -n "$NM_FOR_TARGET"; then 1815 echo "$ac_t""$NM_FOR_TARGET" 1>&6 1816 else 1817 echo "$ac_t""no" 1>&6 1818 fi 1819 1820 # Extract the first word of ""$program_prefix"ld", so it can be a program name with args. 1821 set dummy "$program_prefix"ld; ac_word=$2 1822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1823 echo "configure:1824: checking for $ac_word" >&5 1824 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then 1825 echo $ac_n "(cached) $ac_c" 1>&6 1826 else 1827 case "$LD_FOR_TARGET" in 1828 /*) 1829 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. 1830 ;; 1831 *) 1832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1833 for ac_dir in $PATH; do 1834 test -z "$ac_dir" && ac_dir=. 1835 if test -f $ac_dir/$ac_word; then 1836 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word" 1837 break 1838 fi 1839 done 1840 IFS="$ac_save_ifs" 1841 test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no" 1842 ;; 1843 esac 1844 fi 1845 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET" 1846 if test -n "$LD_FOR_TARGET"; then 1847 echo "$ac_t""$LD_FOR_TARGET" 1>&6 1848 else 1849 echo "$ac_t""no" 1>&6 1850 fi 1851 1852 1853 # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args. 1854 set dummy "$program_prefix"ranlib; ac_word=$2 1855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1856 echo "configure:1857: checking for $ac_word" >&5 1857 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then 1858 echo $ac_n "(cached) $ac_c" 1>&6 1859 else 1860 case "$RANLIB_FOR_TARGET" in 1861 /*) 1862 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. 1863 ;; 1864 *) 1865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1866 for ac_dir in $PATH; do 1867 test -z "$ac_dir" && ac_dir=. 1868 if test -f $ac_dir/$ac_word; then 1869 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word" 1870 break 1871 fi 1872 done 1873 IFS="$ac_save_ifs" 1874 test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no" 1875 ;; 1876 esac 1877 fi 1878 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET" 1879 if test -n "$RANLIB_FOR_TARGET"; then 1880 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6 1881 else 1882 echo "$ac_t""no" 1>&6 1883 fi 1884 1885 1886 # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args. 1887 set dummy "$program_prefix"objcopy; ac_word=$2 1888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1889 echo "configure:1890: checking for $ac_word" >&5 1890 if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then 1891 echo $ac_n "(cached) $ac_c" 1>&6 1892 else 1893 case "$OBJCOPY_FOR_TARGET" in 1894 /*) 1895 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. 1896 ;; 1897 *) 1898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1899 for ac_dir in $PATH; do 1900 test -z "$ac_dir" && ac_dir=. 1901 if test -f $ac_dir/$ac_word; then 1902 ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word" 1903 break 1904 fi 1905 done 1906 IFS="$ac_save_ifs" 1907 test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no" 1908 ;; 1909 esac 1910 fi 1911 OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET" 1912 if test -n "$OBJCOPY_FOR_TARGET"; then 1913 echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6 1914 else 1915 echo "$ac_t""no" 1>&6 1916 fi 1917 1918 # Extract the first word of ""$program_prefix"size", so it can be a program name with args. 1919 set dummy "$program_prefix"size; ac_word=$2 1920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1921 echo "configure:1922: checking for $ac_word" >&5 1922 if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then 1923 echo $ac_n "(cached) $ac_c" 1>&6 1924 else 1925 case "$SIZE_FOR_TARGET" in 1926 /*) 1927 ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path. 1928 ;; 1929 *) 1930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1931 for ac_dir in $PATH; do 1932 test -z "$ac_dir" && ac_dir=. 1933 if test -f $ac_dir/$ac_word; then 1934 ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word" 1935 break 1936 fi 1937 done 1938 IFS="$ac_save_ifs" 1939 test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no" 1940 ;; 1941 esac 1942 fi 1943 SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET" 1944 if test -n "$SIZE_FOR_TARGET"; then 1945 echo "$ac_t""$SIZE_FOR_TARGET" 1>&6 1946 else 1947 echo "$ac_t""no" 1>&6 1948 fi 1949 1950 1343 1951 1344 1952 # Extract the first word of "gcc", so it can be a program name with args. 1345 1953 set dummy gcc; ac_word=$2 1346 1954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1347 echo "configure:1 348: checking for $ac_word" >&51955 echo "configure:1956: checking for $ac_word" >&5 1348 1956 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1349 1957 echo $ac_n "(cached) $ac_c" 1>&6 … … 1374 1982 set dummy cc; ac_word=$2 1375 1983 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1376 echo "configure:1 377: checking for $ac_word" >&51984 echo "configure:1985: checking for $ac_word" >&5 1377 1985 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1378 1986 echo $ac_n "(cached) $ac_c" 1>&6 … … 1421 2029 fi 1422 2030 1423 echo $ac_n "checking whether the targetC compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&61424 echo "configure: 1425: checking whether the targetC compiler ($CC $CFLAGS $LDFLAGS) works" >&52031 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2032 echo "configure:2033: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1425 2033 1426 2034 ac_ext=c … … 1432 2040 1433 2041 cat > conftest.$ac_ext <<EOF 1434 #line 1435"configure"2042 #line 2043 "configure" 1435 2043 #include "confdefs.h" 1436 2044 main(){return(0);} 1437 2045 EOF 1438 if { (eval echo configure: 1439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1439 rtems_cv_prog_cc_works=yes2046 if { (eval echo configure:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2047 ac_cv_prog_cc_works=yes 1440 2048 # If we can't run a trivial program, we are probably using a cross compiler. 1441 2049 if (./conftest; exit) 2>/dev/null; then 1442 rtems_cv_prog_cc_cross=no2050 ac_cv_prog_cc_cross=no 1443 2051 else 1444 rtems_cv_prog_cc_cross=yes2052 ac_cv_prog_cc_cross=yes 1445 2053 fi 1446 2054 else 1447 2055 echo "configure: failed program was:" >&5 1448 2056 cat conftest.$ac_ext >&5 1449 rtems_cv_prog_cc_works=no2057 ac_cv_prog_cc_works=no 1450 2058 fi 1451 2059 rm -fr conftest* 1452 2060 1453 echo "$ac_t""$rtems_cv_prog_cc_works" 1>&6 1454 if test $rtems_cv_prog_cc_works = no; then 1455 { echo "configure: error: installation or configuration problem: target C compiler cannot create executables." 1>&2; exit 1; } 1456 fi 1457 echo $ac_n "checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1458 echo "configure:1459: checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1459 echo "$ac_t""$rtems_cv_prog_cc_cross" 1>&6 2061 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2062 if test $ac_cv_prog_cc_works = no; then 2063 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2064 fi 2065 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2066 echo "configure:2067: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2067 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2068 cross_compiling=$ac_cv_prog_cc_cross 1460 2069 1461 2070 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1462 echo "configure: 1463: checking whether we are using GNU C" >&52071 echo "configure:2072: checking whether we are using GNU C" >&5 1463 2072 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1464 2073 echo $ac_n "(cached) $ac_c" 1>&6 … … 1469 2078 #endif 1470 2079 EOF 1471 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure: 1472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then2080 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1472 2081 ac_cv_prog_gcc=yes 1473 2082 else … … 1484 2093 CFLAGS= 1485 2094 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1486 echo "configure: 1487: checking whether ${CC-cc} accepts -g" >&52095 echo "configure:2096: checking whether ${CC-cc} accepts -g" >&5 1487 2096 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1488 2097 echo $ac_n "(cached) $ac_c" 1>&6 … … 1511 2120 fi 1512 2121 1513 CC_FOR_TARGET=$CC1514 rtems_cv_prog_gcc=$ac_cv_prog_gcc1515 rtems_cv_prog_cc_g=$ac_cv_prog_cc_g1516 1517 unset CC1518 unset ac_cv_prog_gcc1519 unset ac_cv_prog_cc_g1520 unset ac_cv_prog_CC1521 1522 1523 echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&61524 echo "configure:1525: checking whether $CC_FOR_TARGET accepts -specs" >&51525 if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then1526 echo $ac_n "(cached) $ac_c" 1>&61527 else1528 touch confspec1529 echo 'void f(){}' >conftest.c1530 if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then1531 rtems_cv_gcc_specs=yes1532 else1533 rtems_cv_gcc_specs=no1534 fi1535 rm -f confspec conftest*1536 1537 fi1538 1539 echo "$ac_t""$rtems_cv_gcc_specs" 1>&61540 1541 1542 echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&61543 echo "configure:1544: checking whether $CC_FOR_TARGET accepts --pipe" >&51544 if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then1545 echo $ac_n "(cached) $ac_c" 1>&61546 else1547 1548 case "$host_os" in1549 cygwin32*)1550 rtems_cv_gcc_pipe=no1551 ;;1552 *)1553 echo 'void f(){}' >conftest.c1554 if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then1555 rtems_cv_gcc_pipe=yes1556 else1557 rtems_cv_gcc_pipe=no1558 fi1559 rm -f conftest*1560 ;;1561 esac1562 1563 fi1564 1565 echo "$ac_t""$rtems_cv_gcc_pipe" 1>&61566 1567 1568 if test "$RTEMS_USE_GCC272" != "yes" ; then1569 if test "$rtems_cv_gcc_specs" = "no"; then1570 echo "configure: warning: *** disabling --enable-gcc28" 1>&21571 RTEMS_USE_GCC272=yes1572 fi1573 fi1574 1575 if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then1576 CXX="$program_prefix"g++1577 1578 for ac_prog in $CCC c++ g++ gcc CC cxx cc++1579 do1580 # Extract the first word of "$ac_prog", so it can be a program name with args.1581 set dummy $ac_prog; ac_word=$21582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61583 echo "configure:1584: checking for $ac_word" >&51584 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then1585 echo $ac_n "(cached) $ac_c" 1>&61586 else1587 if test -n "$CXX"; then1588 ac_cv_prog_CXX="$CXX" # Let the user override the test.1589 else1590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"1591 for ac_dir in $PATH; do1592 test -z "$ac_dir" && ac_dir=.1593 if test -f $ac_dir/$ac_word; then1594 ac_cv_prog_CXX="$ac_prog"1595 break1596 fi1597 done1598 IFS="$ac_save_ifs"1599 fi1600 fi1601 CXX="$ac_cv_prog_CXX"1602 if test -n "$CXX"; then1603 echo "$ac_t""$CXX" 1>&61604 else1605 echo "$ac_t""no" 1>&61606 fi1607 1608 test -n "$CXX" && break1609 done1610 test -n "$CXX" || CXX="gcc"1611 1612 1613 echo $ac_n "checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&61614 echo "configure:1615: checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&51615 1616 ac_ext=C1617 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.1618 ac_cpp='$CXXCPP $CPPFLAGS'1619 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'1620 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'1621 cross_compiling=$ac_cv_prog_cxx_cross1622 1623 1624 cat > conftest.$ac_ext <<EOF1625 #line 1626 "configure"1626 #include "confdefs.h"1627 main(){return(0);}1628 EOF1629 if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1630 rtems_cv_prog_cxx_works=yes1631 # If we can't run a trivial program, we are probably using a cross compiler.1632 if (./conftest; exit) 2>/dev/null; then1633 rtems_cv_prog_cxx_cross=no1634 else1635 rtems_cv_prog_cxx_cross=yes1636 fi1637 else1638 echo "configure: failed program was:" >&51639 cat conftest.$ac_ext >&51640 rtems_cv_prog_cxx_works=no1641 fi1642 rm -fr conftest*1643 ac_ext=c1644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.1645 ac_cpp='$CPP $CPPFLAGS'1646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'1647 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'1648 cross_compiling=$ac_cv_prog_cc_cross1649 1650 echo "$ac_t""$rtems_cv_prog_cxx_works" 1>&61651 if test $rtems_cv_prog_cxx_works = no; then1652 { echo "configure: error: installation or configuration problem: target C++ compiler cannot create executables." 1>&2; exit 1; }1653 fi1654 echo $ac_n "checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&61655 echo "configure:1656: checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&51656 echo "$ac_t""$rtems_cv_prog_cxx_cross" 1>&61657 1658 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&61659 echo "configure:1660: checking whether we are using GNU C++" >&51660 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then1661 echo $ac_n "(cached) $ac_c" 1>&61662 else1663 cat > conftest.C <<EOF1664 #ifdef __GNUC__1665 yes;1666 #endif1667 EOF1668 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1669 ac_cv_prog_gxx=yes1670 else1671 ac_cv_prog_gxx=no1672 fi1673 fi1674 1675 echo "$ac_t""$ac_cv_prog_gxx" 1>&61676 1677 if test $ac_cv_prog_gxx = yes; then1678 GXX=yes1679 ac_test_CXXFLAGS="${CXXFLAGS+set}"1680 ac_save_CXXFLAGS="$CXXFLAGS"1681 CXXFLAGS=1682 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&61683 echo "configure:1684: checking whether ${CXX-g++} accepts -g" >&51684 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then1685 echo $ac_n "(cached) $ac_c" 1>&61686 else1687 echo 'void f(){}' > conftest.cc1688 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then1689 ac_cv_prog_cxx_g=yes1690 else1691 ac_cv_prog_cxx_g=no1692 fi1693 rm -f conftest*1694 1695 fi1696 1697 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&61698 if test "$ac_test_CXXFLAGS" = set; then1699 CXXFLAGS="$ac_save_CXXFLAGS"1700 elif test $ac_cv_prog_cxx_g = yes; then1701 CXXFLAGS="-g -O2"1702 else1703 CXXFLAGS="-O2"1704 fi1705 else1706 GXX=1707 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"1708 fi1709 CXX_FOR_TARGET=$CXX1710 1711 unset CXX1712 unset ac_cv_prog_gxx1713 1714 if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then1715 { echo "configure: error: ***1716 Inconsistency in compiler configuration:1717 Target C compiler and Target C++ compiler1718 must both ether be cross compilers or native compilers1719 Hint: LD_LIBRARY_PATH ? " 1>&2; exit 1; }1720 fi1721 # Extract the first word of ""$program_prefix"g++", so it can be a program name with args.1722 set dummy "$program_prefix"g++; ac_word=$21723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61724 echo "configure:1725: checking for $ac_word" >&51725 if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then1726 echo $ac_n "(cached) $ac_c" 1>&61727 else1728 case "$CXX_FOR_TARGET" in1729 /*)1730 ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path.1731 ;;1732 *)1733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"1734 for ac_dir in $PATH; do1735 test -z "$ac_dir" && ac_dir=.1736 if test -f $ac_dir/$ac_word; then1737 ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word"1738 break1739 fi1740 done1741 IFS="$ac_save_ifs"1742 test -z "$ac_cv_path_CXX_FOR_TARGET" && ac_cv_path_CXX_FOR_TARGET="no"1743 ;;1744 esac1745 fi1746 CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET"1747 if test -n "$CXX_FOR_TARGET"; then1748 echo "$ac_t""$CXX_FOR_TARGET" 1>&61749 else1750 echo "$ac_t""no" 1>&61751 fi1752 1753 else1754 CXX_FOR_TARGET="no"1755 fi1756 1757 if test "$rtems_cv_prog_gcc" = "yes" ; then1758 AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar`1759 AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as`1760 LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld`1761 NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm`1762 RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib`1763 fi1764 1765 1766 # Extract the first word of ""$program_prefix"gcc", so it can be a program name with args.1767 set dummy "$program_prefix"gcc; ac_word=$21768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61769 echo "configure:1770: checking for $ac_word" >&51770 if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then1771 echo $ac_n "(cached) $ac_c" 1>&61772 else1773 case "$CC_FOR_TARGET" in1774 /*)1775 ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path.1776 ;;1777 *)1778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"1779 for ac_dir in $PATH; do1780 test -z "$ac_dir" && ac_dir=.1781 if test -f $ac_dir/$ac_word; then1782 ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word"1783 break1784 fi1785 done1786 IFS="$ac_save_ifs"1787 test -z "$ac_cv_path_CC_FOR_TARGET" && ac_cv_path_CC_FOR_TARGET="no"1788 ;;1789 esac1790 fi1791 CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET"1792 if test -n "$CC_FOR_TARGET"; then1793 echo "$ac_t""$CC_FOR_TARGET" 1>&61794 else1795 echo "$ac_t""no" 1>&61796 fi1797 1798 1799 # Extract the first word of ""$program_prefix"ar", so it can be a program name with args.1800 set dummy "$program_prefix"ar; ac_word=$21801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61802 echo "configure:1803: checking for $ac_word" >&51803 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then1804 echo $ac_n "(cached) $ac_c" 1>&61805 else1806 case "$AR_FOR_TARGET" in1807 /*)1808 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.1809 ;;1810 *)1811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"1812 for ac_dir in $PATH; do1813 test -z "$ac_dir" && ac_dir=.1814 if test -f $ac_dir/$ac_word; then1815 ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"1816 break1817 fi1818 done1819 IFS="$ac_save_ifs"1820 test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no"1821 ;;1822 esac1823 fi1824 AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"1825 if test -n "$AR_FOR_TARGET"; then1826 echo "$ac_t""$AR_FOR_TARGET" 1>&61827 else1828 echo "$ac_t""no" 1>&61829 fi1830 1831 # Extract the first word of ""$program_prefix"as", so it can be a program name with args.1832 set dummy "$program_prefix"as; ac_word=$21833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61834 echo "configure:1835: checking for $ac_word" >&51835 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then1836 echo $ac_n "(cached) $ac_c" 1>&61837 else1838 case "$AS_FOR_TARGET" in1839 /*)1840 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.1841 ;;1842 *)1843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"1844 for ac_dir in $PATH; do1845 test -z "$ac_dir" && ac_dir=.1846 if test -f $ac_dir/$ac_word; then1847 ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"1848 break1849 fi1850 done1851 IFS="$ac_save_ifs"1852 test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no"1853 ;;1854 esac1855 fi1856 AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"1857 if test -n "$AS_FOR_TARGET"; then1858 echo "$ac_t""$AS_FOR_TARGET" 1>&61859 else1860 echo "$ac_t""no" 1>&61861 fi1862 1863 # Extract the first word of ""$program_prefix"nm", so it can be a program name with args.1864 set dummy "$program_prefix"nm; ac_word=$21865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61866 echo "configure:1867: checking for $ac_word" >&51867 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then1868 echo $ac_n "(cached) $ac_c" 1>&61869 else1870 case "$NM_FOR_TARGET" in1871 /*)1872 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.1873 ;;1874 *)1875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"1876 for ac_dir in $PATH; do1877 test -z "$ac_dir" && ac_dir=.1878 if test -f $ac_dir/$ac_word; then1879 ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"1880 break1881 fi1882 done1883 IFS="$ac_save_ifs"1884 test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no"1885 ;;1886 esac1887 fi1888 NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"1889 if test -n "$NM_FOR_TARGET"; then1890 echo "$ac_t""$NM_FOR_TARGET" 1>&61891 else1892 echo "$ac_t""no" 1>&61893 fi1894 1895 # Extract the first word of ""$program_prefix"ld", so it can be a program name with args.1896 set dummy "$program_prefix"ld; ac_word=$21897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61898 echo "configure:1899: checking for $ac_word" >&51899 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then1900 echo $ac_n "(cached) $ac_c" 1>&61901 else1902 case "$LD_FOR_TARGET" in1903 /*)1904 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.1905 ;;1906 *)1907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"1908 for ac_dir in $PATH; do1909 test -z "$ac_dir" && ac_dir=.1910 if test -f $ac_dir/$ac_word; then1911 ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"1912 break1913 fi1914 done1915 IFS="$ac_save_ifs"1916 test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no"1917 ;;1918 esac1919 fi1920 LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"1921 if test -n "$LD_FOR_TARGET"; then1922 echo "$ac_t""$LD_FOR_TARGET" 1>&61923 else1924 echo "$ac_t""no" 1>&61925 fi1926 1927 1928 # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args.1929 set dummy "$program_prefix"ranlib; ac_word=$21930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61931 echo "configure:1932: checking for $ac_word" >&51932 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then1933 echo $ac_n "(cached) $ac_c" 1>&61934 else1935 case "$RANLIB_FOR_TARGET" in1936 /*)1937 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.1938 ;;1939 *)1940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"1941 for ac_dir in $PATH; do1942 test -z "$ac_dir" && ac_dir=.1943 if test -f $ac_dir/$ac_word; then1944 ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"1945 break1946 fi1947 done1948 IFS="$ac_save_ifs"1949 test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no"1950 ;;1951 esac1952 fi1953 RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"1954 if test -n "$RANLIB_FOR_TARGET"; then1955 echo "$ac_t""$RANLIB_FOR_TARGET" 1>&61956 else1957 echo "$ac_t""no" 1>&61958 fi1959 1960 1961 # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args.1962 set dummy "$program_prefix"objcopy; ac_word=$21963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61964 echo "configure:1965: checking for $ac_word" >&51965 if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then1966 echo $ac_n "(cached) $ac_c" 1>&61967 else1968 case "$OBJCOPY_FOR_TARGET" in1969 /*)1970 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.1971 ;;1972 *)1973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"1974 for ac_dir in $PATH; do1975 test -z "$ac_dir" && ac_dir=.1976 if test -f $ac_dir/$ac_word; then1977 ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word"1978 break1979 fi1980 done1981 IFS="$ac_save_ifs"1982 test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no"1983 ;;1984 esac1985 fi1986 OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET"1987 if test -n "$OBJCOPY_FOR_TARGET"; then1988 echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&61989 else1990 echo "$ac_t""no" 1>&61991 fi1992 1993 # Extract the first word of ""$program_prefix"size", so it can be a program name with args.1994 set dummy "$program_prefix"size; ac_word=$21995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61996 echo "configure:1997: checking for $ac_word" >&51997 if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then1998 echo $ac_n "(cached) $ac_c" 1>&61999 else2000 case "$SIZE_FOR_TARGET" in2001 /*)2002 ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path.2003 ;;2004 *)2005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"2006 for ac_dir in $PATH; do2007 test -z "$ac_dir" && ac_dir=.2008 if test -f $ac_dir/$ac_word; then2009 ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word"2010 break2011 fi2012 done2013 IFS="$ac_save_ifs"2014 test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no"2015 ;;2016 esac2017 fi2018 SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET"2019 if test -n "$SIZE_FOR_TARGET"; then2020 echo "$ac_t""$SIZE_FOR_TARGET" 1>&62021 else2022 echo "$ac_t""no" 1>&62023 fi2024 2025 2026 test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"2027 2028 # Extract the first word of "gcc", so it can be a program name with args.2029 set dummy gcc; ac_word=$22030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&62031 echo "configure:2032: checking for $ac_word" >&52032 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then2033 echo $ac_n "(cached) $ac_c" 1>&62034 else2035 if test -n "$CC"; then2036 ac_cv_prog_CC="$CC" # Let the user override the test.2037 else2038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"2039 for ac_dir in $PATH; do2040 test -z "$ac_dir" && ac_dir=.2041 if test -f $ac_dir/$ac_word; then2042 ac_cv_prog_CC="gcc"2043 break2044 fi2045 done2046 IFS="$ac_save_ifs"2047 fi2048 fi2049 CC="$ac_cv_prog_CC"2050 if test -n "$CC"; then2051 echo "$ac_t""$CC" 1>&62052 else2053 echo "$ac_t""no" 1>&62054 fi2055 2056 if test -z "$CC"; then2057 # Extract the first word of "cc", so it can be a program name with args.2058 set dummy cc; ac_word=$22059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&62060 echo "configure:2061: checking for $ac_word" >&52061 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then2062 echo $ac_n "(cached) $ac_c" 1>&62063 else2064 if test -n "$CC"; then2065 ac_cv_prog_CC="$CC" # Let the user override the test.2066 else2067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"2068 ac_prog_rejected=no2069 for ac_dir in $PATH; do2070 test -z "$ac_dir" && ac_dir=.2071 if test -f $ac_dir/$ac_word; then2072 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then2073 ac_prog_rejected=yes2074 continue2075 fi2076 ac_cv_prog_CC="cc"2077 break2078 fi2079 done2080 IFS="$ac_save_ifs"2081 if test $ac_prog_rejected = yes; then2082 # We found a bogon in the path, so make sure we never use it.2083 set dummy $ac_cv_prog_CC2084 shift2085 if test $# -gt 0; then2086 # We chose a different compiler from the bogus one.2087 # However, it has the same basename, so the bogon will be chosen2088 # first if we set CC to just the basename; use the full file name.2089 shift2090 set dummy "$ac_dir/$ac_word" "$@"2091 shift2092 ac_cv_prog_CC="$@"2093 fi2094 fi2095 fi2096 fi2097 CC="$ac_cv_prog_CC"2098 if test -n "$CC"; then2099 echo "$ac_t""$CC" 1>&62100 else2101 echo "$ac_t""no" 1>&62102 fi2103 2104 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }2105 fi2106 2107 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&62108 echo "configure:2109: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&52109 2110 ac_ext=c2111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.2112 ac_cpp='$CPP $CPPFLAGS'2113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'2114 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'2115 cross_compiling=$ac_cv_prog_cc_cross2116 2117 cat > conftest.$ac_ext <<EOF2118 #line 2119 "configure"2119 #include "confdefs.h"2120 main(){return(0);}2121 EOF2122 if { (eval echo configure:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2123 ac_cv_prog_cc_works=yes2124 # If we can't run a trivial program, we are probably using a cross compiler.2125 if (./conftest; exit) 2>/dev/null; then2126 ac_cv_prog_cc_cross=no2127 else2128 ac_cv_prog_cc_cross=yes2129 fi2130 else2131 echo "configure: failed program was:" >&52132 cat conftest.$ac_ext >&52133 ac_cv_prog_cc_works=no2134 fi2135 rm -fr conftest*2136 2137 echo "$ac_t""$ac_cv_prog_cc_works" 1>&62138 if test $ac_cv_prog_cc_works = no; then2139 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }2140 fi2141 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&62142 echo "configure:2143: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&52143 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&62144 cross_compiling=$ac_cv_prog_cc_cross2145 2146 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&62147 echo "configure:2148: checking whether we are using GNU C" >&52148 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then2149 echo $ac_n "(cached) $ac_c" 1>&62150 else2151 cat > conftest.c <<EOF2152 #ifdef __GNUC__2153 yes;2154 #endif2155 EOF2156 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then2157 ac_cv_prog_gcc=yes2158 else2159 ac_cv_prog_gcc=no2160 fi2161 fi2162 2163 echo "$ac_t""$ac_cv_prog_gcc" 1>&62164 2165 if test $ac_cv_prog_gcc = yes; then2166 GCC=yes2167 ac_test_CFLAGS="${CFLAGS+set}"2168 ac_save_CFLAGS="$CFLAGS"2169 CFLAGS=2170 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&62171 echo "configure:2172: checking whether ${CC-cc} accepts -g" >&52172 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then2173 echo $ac_n "(cached) $ac_c" 1>&62174 else2175 echo 'void f(){}' > conftest.c2176 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then2177 ac_cv_prog_cc_g=yes2178 else2179 ac_cv_prog_cc_g=no2180 fi2181 rm -f conftest*2182 2183 fi2184 2185 echo "$ac_t""$ac_cv_prog_cc_g" 1>&62186 if test "$ac_test_CFLAGS" = set; then2187 CFLAGS="$ac_save_CFLAGS"2188 elif test $ac_cv_prog_cc_g = yes; then2189 CFLAGS="-g -O2"2190 else2191 CFLAGS="-O2"2192 fi2193 else2194 GCC=2195 test "${CFLAGS+set}" = set || CFLAGS="-g"2196 fi2197 2198 2122 2199 2123 for ac_func in strerror 2200 2124 do 2201 2125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2202 echo "configure:2 203: checking for $ac_func" >&52126 echo "configure:2127: checking for $ac_func" >&5 2203 2127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2204 2128 echo $ac_n "(cached) $ac_c" 1>&6 2205 2129 else 2206 2130 cat > conftest.$ac_ext <<EOF 2207 #line 2 208"configure"2131 #line 2132 "configure" 2208 2132 #include "confdefs.h" 2209 2133 /* System header to define __stub macros and hopefully few prototypes, … … 2228 2152 ; return 0; } 2229 2153 EOF 2230 if { (eval echo configure:2 231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then2154 if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2231 2155 rm -rf conftest* 2232 2156 eval "ac_cv_func_$ac_func=yes" … … 2256 2180 2257 2181 echo $ac_n "checking for Makefile.in in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6 2258 echo "configure:2 259: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&52182 echo "configure:2183: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5 2259 2183 if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then 2260 2184 rtems_av_save_dir=`pwd`; … … 2271 2195 2272 2196 echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6 2273 echo "configure:2 274: checking for Makefile.in in c/src/exec/rtems" >&52197 echo "configure:2198: checking for Makefile.in in c/src/exec/rtems" >&5 2274 2198 if test -d $srcdir/c/src/exec/rtems; then 2275 2199 rtems_av_save_dir=`pwd`; … … 2286 2210 2287 2211 echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6 2288 echo "configure:22 89: checking for Makefile.in in c/src/exec/sapi" >&52212 echo "configure:2213: checking for Makefile.in in c/src/exec/sapi" >&5 2289 2213 if test -d $srcdir/c/src/exec/sapi; then 2290 2214 rtems_av_save_dir=`pwd`; … … 2303 2227 2304 2228 echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6 2305 echo "configure:2 306: checking for Makefile.in in c/src/exec/posix" >&52229 echo "configure:2230: checking for Makefile.in in c/src/exec/posix" >&5 2306 2230 if test -d $srcdir/c/src/exec/posix; then 2307 2231 rtems_av_save_dir=`pwd`; … … 2325 2249 if test -z "$rtems_bsp"; then 2326 2250 echo $ac_n "checking for bsps""... $ac_c" 1>&6 2327 echo "configure:2 328: checking for bsps" >&52251 echo "configure:2252: checking for bsps" >&5 2328 2252 files=`ls $srcdir/c/src/lib/libbsp/$target_cpu` 2329 2253 for file in $files; do … … 2372 2296 2373 2297 echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir""... $ac_c" 1>&6 2374 echo "configure:2 375: checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir" >&52298 echo "configure:2299: checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir" >&5 2375 2299 if test -d $srcdir/c/src/lib/libbsp/$target_cpu/$bspdir; then 2376 2300 rtems_av_save_dir=`pwd`; … … 2395 2319 2396 2320 echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6 2397 echo "configure:23 98: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&52321 echo "configure:2322: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5 2398 2322 if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then 2399 2323 rtems_av_save_dir=`pwd`; … … 2412 2336 2413 2337 echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6 2414 echo "configure:2 415: checking for Makefile.in in c/src/lib/start/$target_cpu" >&52338 echo "configure:2339: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5 2415 2339 if test -d $srcdir/c/src/lib/start/$target_cpu; then 2416 2340 rtems_av_save_dir=`pwd`; … … 2454 2378 # If the tests are enabled, then find all the test suite Makefiles 2455 2379 echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6 2456 echo "configure:2 457: checking if the test suites are enabled? " >&52380 echo "configure:2381: checking if the test suites are enabled? " >&5 2457 2381 tests_enabled=yes 2458 2382 # Check whether --enable-tests or --disable-tests was given. … … 2473 2397 2474 2398 echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6 2475 echo "configure:24 76: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&52399 echo "configure:2400: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5 2476 2400 if test -d $srcdir/c/src/tests/tools/$target_cpu; then 2477 2401 rtems_av_save_dir=`pwd`; … … 2490 2414 2491 2415 echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6 2492 echo "configure:24 93: checking for Makefile.in in c/src/tests/libtests" >&52416 echo "configure:2417: checking for Makefile.in in c/src/tests/libtests" >&5 2493 2417 if test -d $srcdir/c/src/tests/libtests; then 2494 2418 rtems_av_save_dir=`pwd`; … … 2505 2429 2506 2430 echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6 2507 echo "configure:2 508: checking for Makefile.in in c/src/tests/sptests" >&52431 echo "configure:2432: checking for Makefile.in in c/src/tests/sptests" >&5 2508 2432 if test -d $srcdir/c/src/tests/sptests; then 2509 2433 rtems_av_save_dir=`pwd`; … … 2520 2444 2521 2445 echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6 2522 echo "configure:2 523: checking for Makefile.in in c/src/tests/tmtests" >&52446 echo "configure:2447: checking for Makefile.in in c/src/tests/tmtests" >&5 2523 2447 if test -d $srcdir/c/src/tests/tmtests; then 2524 2448 rtems_av_save_dir=`pwd`; … … 2535 2459 2536 2460 echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6 2537 echo "configure:2 538: checking for Makefile.in in c/src/tests/mptests" >&52461 echo "configure:2462: checking for Makefile.in in c/src/tests/mptests" >&5 2538 2462 if test -d $srcdir/c/src/tests/mptests; then 2539 2463 rtems_av_save_dir=`pwd`; … … 2551 2475 2552 2476 echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6 2553 echo "configure:2 554: checking for Makefile.in in c/src/tests/psxtests" >&52477 echo "configure:2478: checking for Makefile.in in c/src/tests/psxtests" >&5 2554 2478 if test -d $srcdir/c/src/tests/psxtests; then 2555 2479 rtems_av_save_dir=`pwd`; … … 2569 2493 # If the HWAPI is enabled, the find the HWAPI Makefiles 2570 2494 echo $ac_n "checking if the HWAPI is enabled? ""... $ac_c" 1>&6 2571 echo "configure:2 572: checking if the HWAPI is enabled? " >&52495 echo "configure:2496: checking if the HWAPI is enabled? " >&5 2572 2496 # Check whether --enable-hwapi or --disable-hwapi was given. 2573 2497 if test "${enable_hwapi+set}" = set; then … … 2580 2504 2581 2505 echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6 2582 echo "configure:25 83: checking for Makefile.in in c/src/lib/libhwapi/analog" >&52506 echo "configure:2507: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5 2583 2507 if test -d $srcdir/c/src/lib/libhwapi/analog; then 2584 2508 rtems_av_save_dir=`pwd`; … … 2595 2519 2596 2520 echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6 2597 echo "configure:25 98: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&52521 echo "configure:2522: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5 2598 2522 if test -d $srcdir/c/src/lib/libhwapi/discrete; then 2599 2523 rtems_av_save_dir=`pwd`; … … 2610 2534 2611 2535 echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6 2612 echo "configure:2 613: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&52536 echo "configure:2537: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5 2613 2537 if test -d $srcdir/c/src/lib/libhwapi/drivers; then 2614 2538 rtems_av_save_dir=`pwd`; … … 2625 2549 2626 2550 echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6 2627 echo "configure:2 628: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&52551 echo "configure:2552: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5 2628 2552 if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then 2629 2553 rtems_av_save_dir=`pwd`; … … 2640 2564 2641 2565 echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6 2642 echo "configure:2 643: checking for Makefile.in in c/src/lib/libhwapi/serial" >&52566 echo "configure:2567: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5 2643 2567 if test -d $srcdir/c/src/lib/libhwapi/serial; then 2644 2568 rtems_av_save_dir=`pwd`; … … 2655 2579 2656 2580 echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6 2657 echo "configure:2 658: checking for Makefile.in in c/src/lib/libhwapi/support" >&52581 echo "configure:2582: checking for Makefile.in in c/src/lib/libhwapi/support" >&5 2658 2582 if test -d $srcdir/c/src/lib/libhwapi/support; then 2659 2583 rtems_av_save_dir=`pwd`; … … 2670 2594 2671 2595 echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6 2672 echo "configure:2 673: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&52596 echo "configure:2597: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5 2673 2597 if test -d $srcdir/c/src/lib/libhwapi/wrapup; then 2674 2598 rtems_av_save_dir=`pwd`; … … 2713 2637 2714 2638 echo $ac_n "checking for Makefile.in in c/build-tools""... $ac_c" 1>&6 2715 echo "configure:2 716: checking for Makefile.in in c/build-tools" >&52639 echo "configure:2640: checking for Makefile.in in c/build-tools" >&5 2716 2640 if test -d $srcdir/c/build-tools; then 2717 2641 rtems_av_save_dir=`pwd`; … … 2728 2652 2729 2653 echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6 2730 echo "configure:2 731: checking for Makefile.in in make" >&52654 echo "configure:2655: checking for Makefile.in in make" >&5 2731 2655 if test -d $srcdir/make; then 2732 2656 rtems_av_save_dir=`pwd`; … … 2743 2667 2744 2668 echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6 2745 echo "configure:2 746: checking for Makefile.in in c/src/lib/libmisc" >&52669 echo "configure:2670: checking for Makefile.in in c/src/lib/libmisc" >&5 2746 2670 if test -d $srcdir/c/src/lib/libmisc; then 2747 2671 rtems_av_save_dir=`pwd`; … … 2758 2682 2759 2683 echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6 2760 echo "configure:2 761: checking for Makefile.in in c/src/tests/samples" >&52684 echo "configure:2685: checking for Makefile.in in c/src/tests/samples" >&5 2761 2685 if test -d $srcdir/c/src/tests/samples; then 2762 2686 rtems_av_save_dir=`pwd`; … … 2969 2893 s%@M4@%$M4%g 2970 2894 s%@KSH@%$KSH%g 2971 s%@CC@%$CC%g 2972 s%@CXX@%$CXX%g 2895 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g 2973 2896 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g 2974 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g2975 2897 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g 2976 2898 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g … … 2980 2902 s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g 2981 2903 s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g 2904 s%@CC@%$CC%g 2982 2905 s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g 2983 2906 s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g
Note: See TracChangeset
for help on using the changeset viewer.