Changeset 3a8915e in rtems
- Timestamp:
- 08/06/99 17:55:25 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 2fe7208
- Parents:
- 22544db9
- Files:
-
- 1 deleted
- 251 edited
Legend:
- Unmodified
- Added
- Removed
-
aclocal/check-multiprocessing.m4
r22544db9 r3a8915e 1 dnl 1 2 dnl $Id$ 3 dnl 2 4 3 5 AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING, … … 16 18 else 17 19 rtems_cv_HAS_MP="no"; 18 fi 19 ]) 20 fi]) 20 21 if test "$rtems_cv_HAS_MP" = "yes"; then 21 22 HAS_MP="yes" -
aclocal/check-rdbg.m4
r22544db9 r3a8915e 1 dnl $Id$ 2 dnl 1 3 AC_DEFUN(RTEMS_CHECK_RDBG, 2 4 [dnl -
c/Makefile.am
r22544db9 r3a8915e 3 3 # 4 4 5 AUTOMAKE_OPTIONS = foreign 1.4 6 ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal 5 7 ## NOTE: This Makefile.am is rather fragile to the value of RTEMS_BSP 6 8 ## Esp. make clean and make distclean have unwanted side-effects 7 9 ## if RTEMS_BSP is not properly set up. 8 9 AUTOMAKE_OPTIONS = foreign 1.410 ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal11 10 12 11 RTEMS_BSP = $(RTEMS_BSP_LIST) … … 16 15 . \ 17 16 $(RTEMS_BSP) 18 19 17 20 18 ## Use @RTEMS_BSP_LIST@ here, using $(RTEMS_BSP_LIST) would trigger -
c/src/exec/aclocal.m4
r22544db9 r3a8915e 516 516 fi 517 517 ]) 518 ])519 520 dnl521 dnl $Id$522 dnl523 dnl Check for target g++524 dnl525 dnl 98/05/20 Ralf Corsepius (corsepiu@faw.uni-ulm.de)526 dnl Completely reworked527 528 AC_DEFUN(RTEMS_PROG_CXX,529 [530 AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl531 AC_BEFORE([$0], [AC_PROG_CXX])dnl532 AC_REQUIRE([RTEMS_TOOL_PREFIX])dnl533 534 dnl Only accept g++ and c++535 dnl NOTE: This might be too restrictive for native compilation536 AC_PATH_PROGS(CXX_FOR_TARGET, "$program_prefix"g++ "$program_prefix"c++)537 test -z "$CXX_FOR_TARGET" \538 && AC_MSG_ERROR([no acceptable c++ found in \$PATH])539 540 dnl backup541 rtems_save_CXX=$CXX542 rtems_save_CXXFLAGS=$CXXFLAGS543 544 dnl temporarily set CXX545 CXX=$CXX_FOR_TARGET546 547 AC_PROG_CXX_WORKS548 AC_PROG_CXX_GNU549 550 if test $ac_cv_prog_gxx = yes; then551 GXX=yes552 dnl Check whether -g works, even if CXXFLAGS is set, in case the package553 dnl plays around with CXXFLAGS (such as to build both debugging and554 dnl normal versions of a library), tasteless as that idea is.555 ac_test_CXXFLAGS="${CXXFLAGS+set}"556 ac_save_CXXFLAGS="$CXXFLAGS"557 CXXFLAGS=558 AC_PROG_CXX_G559 if test "$ac_test_CXXFLAGS" = set; then560 CXXFLAGS="$ac_save_CXXFLAGS"561 elif test $ac_cv_prog_cxx_g = yes; then562 CXXFLAGS="-g -O2"563 else564 CXXFLAGS="-O2"565 fi566 else567 GXX=568 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"569 fi570 571 rtems_cv_prog_gxx=$ac_cv_prog_gxx572 rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g573 rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works574 rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross575 576 CXX=$rtems_save_CXX577 CXXFLAGS=$rtems_save_CXXFLAGS578 579 dnl restore initial values580 unset ac_cv_prog_gxx581 unset ac_cv_prog_cc_g582 unset ac_cv_prog_cxx_works583 unset ac_cv_prog_cxx_cross584 ])585 586 AC_DEFUN(RTEMS_PROG_CXX_FOR_TARGET,587 [588 RTEMS_PROG_CXX589 if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then590 AC_MSG_ERROR([***]591 [Inconsistency in compiler configuration:]592 [Target C compiler and Target C++ compiler]593 [must both either be cross compilers or native compilers]594 [Hint: If building a posix bsp: LD_LIBRARY_PATH?] )595 fi596 518 ]) 597 519 … … 944 866 ])dnl 945 867 946 dnl $Id$ 868 dnl 869 dnl $Id$ 870 dnl 947 871 948 872 AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING, … … 961 885 else 962 886 rtems_cv_HAS_MP="no"; 963 fi 964 ]) 887 fi]) 965 888 if test "$rtems_cv_HAS_MP" = "yes"; then 966 889 HAS_MP="yes" … … 969 892 fi 970 893 AC_SUBST(HAS_MP) 894 ]) 895 896 dnl $Id$ 897 dnl 898 AC_DEFUN(RTEMS_CHECK_POSIX_API, 899 [dnl 900 AC_REQUIRE([RTEMS_CHECK_CPU])dnl 901 AC_CACHE_CHECK([whether BSP supports libposix], 902 rtems_cv_HAS_POSIX_API, 903 [dnl 904 case "$RTEMS_CPU" in 905 unix*) 906 rtems_cv_HAS_POSIX_API="no" 907 ;; 908 *) 909 if test "${RTEMS_HAS_POSIX_API}" = "yes"; then 910 rtems_cv_HAS_POSIX_API="yes"; 911 else 912 rtems_cv_HAS_POSIX_API="disabled"; 913 fi 914 ;; 915 esac]) 916 if test "$rtems_cv_HAS_POSIX_API" = "yes"; then 917 HAS_POSIX_API="yes"; 918 else 919 HAS_POSIX_API="no"; 920 fi 921 AC_SUBST(HAS_POSIX_API)dnl 971 922 ]) 972 923 -
c/src/exec/configure
r22544db9 r3a8915e 1302 1302 1303 1303 1304 if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then1305 1306 1307 1308 for ac_prog in "$program_prefix"g++ "$program_prefix"c++1309 do1310 # Extract the first word of "$ac_prog", so it can be a program name with args.1311 set dummy $ac_prog; ac_word=$21312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61313 echo "configure:1314: checking for $ac_word" >&51314 if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then1315 echo $ac_n "(cached) $ac_c" 1>&61316 else1317 case "$CXX_FOR_TARGET" in1318 /*)1319 ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path.1320 ;;1321 ?:/*)1322 ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a dos path.1323 ;;1324 *)1325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"1326 ac_dummy="$PATH"1327 for ac_dir in $ac_dummy; do1328 test -z "$ac_dir" && ac_dir=.1329 if test -f $ac_dir/$ac_word; then1330 ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word"1331 break1332 fi1333 done1334 IFS="$ac_save_ifs"1335 ;;1336 esac1337 fi1338 CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET"1339 if test -n "$CXX_FOR_TARGET"; then1340 echo "$ac_t""$CXX_FOR_TARGET" 1>&61341 else1342 echo "$ac_t""no" 1>&61343 fi1344 1345 test -n "$CXX_FOR_TARGET" && break1346 done1347 1348 test -z "$CXX_FOR_TARGET" \1349 && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }1350 1351 rtems_save_CXX=$CXX1352 rtems_save_CXXFLAGS=$CXXFLAGS1353 1354 CXX=$CXX_FOR_TARGET1355 1356 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&61357 echo "configure:1358: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&51358 1359 ac_ext=C1360 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.1361 ac_cpp='$CXXCPP $CPPFLAGS'1362 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'1363 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'1364 cross_compiling=$ac_cv_prog_cxx_cross1365 1366 cat > conftest.$ac_ext << EOF1367 1368 #line 1369 "configure"1369 #include "confdefs.h"1370 1371 int main(){return(0);}1372 EOF1373 if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1374 ac_cv_prog_cxx_works=yes1375 # If we can't run a trivial program, we are probably using a cross compiler.1376 if (./conftest; exit) 2>/dev/null; then1377 ac_cv_prog_cxx_cross=no1378 else1379 ac_cv_prog_cxx_cross=yes1380 fi1381 else1382 echo "configure: failed program was:" >&51383 cat conftest.$ac_ext >&51384 ac_cv_prog_cxx_works=no1385 fi1386 rm -fr conftest*1387 ac_ext=c1388 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.1389 ac_cpp='$CPP $CPPFLAGS'1390 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'1391 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'1392 cross_compiling=$ac_cv_prog_cc_cross1393 1394 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&61395 if test $ac_cv_prog_cxx_works = no; then1396 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }1397 fi1398 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&61399 echo "configure:1400: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&51400 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&61401 cross_compiling=$ac_cv_prog_cxx_cross1402 1403 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&61404 echo "configure:1405: checking whether we are using GNU C++" >&51405 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then1406 echo $ac_n "(cached) $ac_c" 1>&61407 else1408 cat > conftest.C <<EOF1409 #ifdef __GNUC__1410 yes;1411 #endif1412 EOF1413 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1414 ac_cv_prog_gxx=yes1415 else1416 ac_cv_prog_gxx=no1417 fi1418 fi1419 1420 echo "$ac_t""$ac_cv_prog_gxx" 1>&61421 1422 if test $ac_cv_prog_gxx = yes; then1423 GXX=yes1424 ac_test_CXXFLAGS="${CXXFLAGS+set}"1425 ac_save_CXXFLAGS="$CXXFLAGS"1426 CXXFLAGS=1427 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&61428 echo "configure:1429: checking whether ${CXX-g++} accepts -g" >&51429 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then1430 echo $ac_n "(cached) $ac_c" 1>&61431 else1432 echo 'void f(){}' > conftest.cc1433 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then1434 ac_cv_prog_cxx_g=yes1435 else1436 ac_cv_prog_cxx_g=no1437 fi1438 rm -f conftest*1439 1440 fi1441 1442 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&61443 if test "$ac_test_CXXFLAGS" = set; then1444 CXXFLAGS="$ac_save_CXXFLAGS"1445 elif test $ac_cv_prog_cxx_g = yes; then1446 CXXFLAGS="-g -O2"1447 else1448 CXXFLAGS="-O2"1449 fi1450 else1451 GXX=1452 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"1453 fi1454 1455 rtems_cv_prog_gxx=$ac_cv_prog_gxx1456 rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g1457 rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works1458 rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross1459 1460 CXX=$rtems_save_CXX1461 CXXFLAGS=$rtems_save_CXXFLAGS1462 1463 unset ac_cv_prog_gxx1464 unset ac_cv_prog_cc_g1465 unset ac_cv_prog_cxx_works1466 unset ac_cv_prog_cxx_cross1467 1468 if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then1469 { echo "configure: error: ***1470 Inconsistency in compiler configuration:1471 Target C compiler and Target C++ compiler1472 must both either be cross compilers or native compilers1473 Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; }1474 fi1475 1476 fi1477 1478 1304 1479 1305 1480 1306 echo $ac_n "checking target's ar""... $ac_c" 1>&6 1481 echo "configure:1 482: checking target's ar" >&51307 echo "configure:1308: checking target's ar" >&5 1482 1308 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then 1483 1309 echo $ac_n "(cached) $ac_c" 1>&6 … … 1512 1338 # intends 1513 1339 echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1514 echo "configure:1 515: checking whether environment variable AR_FOR_TARGET is an absolute path" >&51340 echo "configure:1341: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5 1515 1341 case "$AR_FOR_TARGET" in 1516 1342 /*) # valid … … 1529 1355 set dummy "$program_prefix"ar; ac_word=$2 1530 1356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1531 echo "configure:1 532: checking for $ac_word" >&51357 echo "configure:1358: checking for $ac_word" >&5 1532 1358 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then 1533 1359 echo $ac_n "(cached) $ac_c" 1>&6 … … 1566 1392 1567 1393 echo $ac_n "checking target's as""... $ac_c" 1>&6 1568 echo "configure:1 569: checking target's as" >&51394 echo "configure:1395: checking target's as" >&5 1569 1395 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then 1570 1396 echo $ac_n "(cached) $ac_c" 1>&6 … … 1599 1425 # intends 1600 1426 echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1601 echo "configure:1 602: checking whether environment variable AS_FOR_TARGET is an absolute path" >&51427 echo "configure:1428: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5 1602 1428 case "$AS_FOR_TARGET" in 1603 1429 /*) # valid … … 1616 1442 set dummy "$program_prefix"as; ac_word=$2 1617 1443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1618 echo "configure:1 619: checking for $ac_word" >&51444 echo "configure:1445: checking for $ac_word" >&5 1619 1445 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then 1620 1446 echo $ac_n "(cached) $ac_c" 1>&6 … … 1653 1479 1654 1480 echo $ac_n "checking target's ld""... $ac_c" 1>&6 1655 echo "configure:1 656: checking target's ld" >&51481 echo "configure:1482: checking target's ld" >&5 1656 1482 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then 1657 1483 echo $ac_n "(cached) $ac_c" 1>&6 … … 1686 1512 # intends 1687 1513 echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1688 echo "configure:1 689: checking whether environment variable LD_FOR_TARGET is an absolute path" >&51514 echo "configure:1515: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5 1689 1515 case "$LD_FOR_TARGET" in 1690 1516 /*) # valid … … 1703 1529 set dummy "$program_prefix"ld; ac_word=$2 1704 1530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1705 echo "configure:1 706: checking for $ac_word" >&51531 echo "configure:1532: checking for $ac_word" >&5 1706 1532 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then 1707 1533 echo $ac_n "(cached) $ac_c" 1>&6 … … 1740 1566 1741 1567 echo $ac_n "checking target's nm""... $ac_c" 1>&6 1742 echo "configure:1 743: checking target's nm" >&51568 echo "configure:1569: checking target's nm" >&5 1743 1569 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then 1744 1570 echo $ac_n "(cached) $ac_c" 1>&6 … … 1773 1599 # intends 1774 1600 echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1775 echo "configure:1 776: checking whether environment variable NM_FOR_TARGET is an absolute path" >&51601 echo "configure:1602: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5 1776 1602 case "$NM_FOR_TARGET" in 1777 1603 /*) # valid … … 1790 1616 set dummy "$program_prefix"nm; ac_word=$2 1791 1617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1792 echo "configure:1 793: checking for $ac_word" >&51618 echo "configure:1619: checking for $ac_word" >&5 1793 1619 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then 1794 1620 echo $ac_n "(cached) $ac_c" 1>&6 … … 1828 1654 1829 1655 echo $ac_n "checking target's ranlib""... $ac_c" 1>&6 1830 echo "configure:1 831: checking target's ranlib" >&51656 echo "configure:1657: checking target's ranlib" >&5 1831 1657 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then 1832 1658 echo $ac_n "(cached) $ac_c" 1>&6 … … 1861 1687 # intends 1862 1688 echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1863 echo "configure:1 864: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&51689 echo "configure:1690: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5 1864 1690 case "$RANLIB_FOR_TARGET" in 1865 1691 /*) # valid … … 1878 1704 set dummy "$program_prefix"ranlib; ac_word=$2 1879 1705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1880 echo "configure:1 881: checking for $ac_word" >&51706 echo "configure:1707: checking for $ac_word" >&5 1881 1707 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then 1882 1708 echo $ac_n "(cached) $ac_c" 1>&6 … … 1917 1743 1918 1744 echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6 1919 echo "configure:1 920: checking whether $AR_FOR_TARGET -s works" >&51745 echo "configure:1746: checking whether $AR_FOR_TARGET -s works" >&5 1920 1746 if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then 1921 1747 echo $ac_n "(cached) $ac_c" 1>&6 … … 1926 1752 { return b; } 1927 1753 EOF 1928 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1 929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \1929 && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1 930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \1754 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ 1755 && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ 1930 1756 && test -s conftest.a ; \ 1931 1757 then … … 1952 1778 1953 1779 echo $ac_n "checking target's objcopy""... $ac_c" 1>&6 1954 echo "configure:1 955: checking target's objcopy" >&51780 echo "configure:1781: checking target's objcopy" >&5 1955 1781 if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then 1956 1782 echo $ac_n "(cached) $ac_c" 1>&6 … … 1985 1811 # intends 1986 1812 echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1987 echo "configure:1 988: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&51813 echo "configure:1814: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5 1988 1814 case "$OBJCOPY_FOR_TARGET" in 1989 1815 /*) # valid … … 2002 1828 set dummy "$program_prefix"objcopy; ac_word=$2 2003 1829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2004 echo "configure: 2005: checking for $ac_word" >&51830 echo "configure:1831: checking for $ac_word" >&5 2005 1831 if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then 2006 1832 echo $ac_n "(cached) $ac_c" 1>&6 … … 2039 1865 2040 1866 echo $ac_n "checking target's size""... $ac_c" 1>&6 2041 echo "configure: 2042: checking target's size" >&51867 echo "configure:1868: checking target's size" >&5 2042 1868 if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then 2043 1869 echo $ac_n "(cached) $ac_c" 1>&6 … … 2072 1898 # intends 2073 1899 echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2074 echo "configure: 2075: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&51900 echo "configure:1901: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5 2075 1901 case "$SIZE_FOR_TARGET" in 2076 1902 /*) # valid … … 2089 1915 set dummy "$program_prefix"size; ac_word=$2 2090 1916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2091 echo "configure: 2092: checking for $ac_word" >&51917 echo "configure:1918: checking for $ac_word" >&5 2092 1918 if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then 2093 1919 echo $ac_n "(cached) $ac_c" 1>&6 … … 2126 1952 2127 1953 echo $ac_n "checking target's strip""... $ac_c" 1>&6 2128 echo "configure: 2129: checking target's strip" >&51954 echo "configure:1955: checking target's strip" >&5 2129 1955 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then 2130 1956 echo $ac_n "(cached) $ac_c" 1>&6 … … 2159 1985 # intends 2160 1986 echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2161 echo "configure: 2162: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&51987 echo "configure:1988: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5 2162 1988 case "$STRIP_FOR_TARGET" in 2163 1989 /*) # valid … … 2176 2002 set dummy "$program_prefix"strip; ac_word=$2 2177 2003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2178 echo "configure:2 179: checking for $ac_word" >&52004 echo "configure:2005: checking for $ac_word" >&5 2179 2005 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then 2180 2006 echo $ac_n "(cached) $ac_c" 1>&6 … … 2215 2041 if test "${target_cpu}" = "i386"; then 2216 2042 echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6 2217 echo "configure:2 218: checking for 16 bit mode assembler support" >&52043 echo "configure:2044: checking for 16 bit mode assembler support" >&5 2218 2044 if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then 2219 2045 echo $ac_n "(cached) $ac_c" 1>&6 … … 2225 2051 lgdt 0 2226 2052 EOF 2227 if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2 228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then2053 if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then 2228 2054 rtems_cv_prog_gas_code16=yes 2229 2055 else … … 2241 2067 set dummy gcc; ac_word=$2 2242 2068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2243 echo "configure:2 244: checking for $ac_word" >&52069 echo "configure:2070: checking for $ac_word" >&5 2244 2070 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2245 2071 echo $ac_n "(cached) $ac_c" 1>&6 … … 2271 2097 set dummy cc; ac_word=$2 2272 2098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2273 echo "configure:2 274: checking for $ac_word" >&52099 echo "configure:2100: checking for $ac_word" >&5 2274 2100 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2275 2101 echo $ac_n "(cached) $ac_c" 1>&6 … … 2322 2148 set dummy cl; ac_word=$2 2323 2149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2324 echo "configure:2 325: checking for $ac_word" >&52150 echo "configure:2151: checking for $ac_word" >&5 2325 2151 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2326 2152 echo $ac_n "(cached) $ac_c" 1>&6 … … 2354 2180 2355 2181 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2356 echo "configure:2 357: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&52182 echo "configure:2183: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2357 2183 2358 2184 ac_ext=c … … 2365 2191 cat > conftest.$ac_ext << EOF 2366 2192 2367 #line 2 368"configure"2193 #line 2194 "configure" 2368 2194 #include "confdefs.h" 2369 2195 2370 2196 main(){return(0);} 2371 2197 EOF 2372 if { (eval echo configure:2 373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2198 if { (eval echo configure:2199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2373 2199 ac_cv_prog_cc_works=yes 2374 2200 # If we can't run a trivial program, we are probably using a cross compiler. … … 2396 2222 fi 2397 2223 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2398 echo "configure:2 399: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&52224 echo "configure:2225: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2399 2225 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2400 2226 cross_compiling=$ac_cv_prog_cc_cross 2401 2227 2402 2228 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2403 echo "configure:2 404: checking whether we are using GNU C" >&52229 echo "configure:2230: checking whether we are using GNU C" >&5 2404 2230 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 2405 2231 echo $ac_n "(cached) $ac_c" 1>&6 … … 2410 2236 #endif 2411 2237 EOF 2412 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2 413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then2238 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2413 2239 ac_cv_prog_gcc=yes 2414 2240 else … … 2429 2255 CFLAGS= 2430 2256 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2431 echo "configure:2 432: checking whether ${CC-cc} accepts -g" >&52257 echo "configure:2258: checking whether ${CC-cc} accepts -g" >&5 2432 2258 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 2433 2259 echo $ac_n "(cached) $ac_c" 1>&6 … … 2465 2291 2466 2292 echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6 2467 echo "configure:2 468: checking whether $RTEMS_HOST supports System V semaphores" >&52293 echo "configure:2294: checking whether $RTEMS_HOST supports System V semaphores" >&5 2468 2294 if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then 2469 2295 echo $ac_n "(cached) $ac_c" 1>&6 … … 2474 2300 else 2475 2301 cat > conftest.$ac_ext <<EOF 2476 #line 2 477"configure"2302 #line 2303 "configure" 2477 2303 #include "confdefs.h" 2478 2304 … … 2500 2326 2501 2327 EOF 2502 if { (eval echo configure:2 503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2328 if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2503 2329 then 2504 2330 rtems_cv_sysv_sem="yes" … … 2523 2349 2524 2350 echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6 2525 echo "configure:2 526: checking whether $RTEMS_HOST supports System V shared memory" >&52351 echo "configure:2352: checking whether $RTEMS_HOST supports System V shared memory" >&5 2526 2352 if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then 2527 2353 echo $ac_n "(cached) $ac_c" 1>&6 … … 2532 2358 else 2533 2359 cat > conftest.$ac_ext <<EOF 2534 #line 2 535"configure"2360 #line 2361 "configure" 2535 2361 #include "confdefs.h" 2536 2362 … … 2548 2374 2549 2375 EOF 2550 if { (eval echo configure:2 551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2376 if { (eval echo configure:2377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2551 2377 then 2552 2378 rtems_cv_sysv_shm="yes" … … 2571 2397 2572 2398 echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6 2573 echo "configure:2 574: checking whether $RTEMS_HOST supports System V messages" >&52399 echo "configure:2400: checking whether $RTEMS_HOST supports System V messages" >&5 2574 2400 if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then 2575 2401 echo $ac_n "(cached) $ac_c" 1>&6 … … 2580 2406 else 2581 2407 cat > conftest.$ac_ext <<EOF 2582 #line 2 583"configure"2408 #line 2409 "configure" 2583 2409 #include "confdefs.h" 2584 2410 … … 2596 2422 2597 2423 EOF 2598 if { (eval echo configure:2 599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2424 if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2599 2425 then 2600 2426 rtems_cv_sysv_msg="yes" … … 2620 2446 2621 2447 echo $ac_n "checking for newlib""... $ac_c" 1>&6 2622 echo "configure:2 623: checking for newlib" >&52448 echo "configure:2449: checking for newlib" >&5 2623 2449 if eval "test \"`echo '$''{'rtems_cv_use_newlib'+set}'`\" = set"; then 2624 2450 echo $ac_n "(cached) $ac_c" 1>&6 … … 2629 2455 2630 2456 cat > conftest.$ac_ext <<EOF 2631 #line 2 632"configure"2457 #line 2458 "configure" 2632 2458 #include "confdefs.h" 2633 2459 extern int not_required_by_rtems() ; … … 2636 2462 ; return 0; } 2637 2463 EOF 2638 if { (eval echo configure:2 639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2464 if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2639 2465 rm -rf conftest* 2640 2466 rtems_cv_use_newlib="yes" … … 2647 2473 if test -z "$rtems_cv_use_newlib"; then 2648 2474 cat > conftest.$ac_ext <<EOF 2649 #line 2 650"configure"2475 #line 2476 "configure" 2650 2476 #include "confdefs.h" 2651 2477 extern int rtems_provides_crt0 ; … … 2654 2480 ; return 0; } 2655 2481 EOF 2656 if { (eval echo configure:2 657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2482 if { (eval echo configure:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2657 2483 rm -rf conftest* 2658 2484 rtems_cv_use_newlib="yes" … … 2675 2501 # Check if there is custom/*.cfg for this BSP 2676 2502 echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6 2677 echo "configure:2 678: checking for make/custom/$RTEMS_BSP.cfg" >&52503 echo "configure:2504: checking for make/custom/$RTEMS_BSP.cfg" >&5 2678 2504 if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then 2679 2505 echo "$ac_t""yes" 1>&6 … … 2682 2508 fi 2683 2509 2684 2685 2510 echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6 2686 echo "configure:2 687: checking whether BSP supports multiprocessing" >&52511 echo "configure:2512: checking whether BSP supports multiprocessing" >&5 2687 2512 if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then 2688 2513 echo $ac_n "(cached) $ac_c" 1>&6 … … 2697 2522 rtems_cv_HAS_MP="no"; 2698 2523 fi 2699 2700 2524 fi 2701 2525 … … 2708 2532 2709 2533 2534 echo $ac_n "checking whether BSP supports libposix""... $ac_c" 1>&6 2535 echo "configure:2536: checking whether BSP supports libposix" >&5 2536 if eval "test \"`echo '$''{'rtems_cv_HAS_POSIX_API'+set}'`\" = set"; then 2537 echo $ac_n "(cached) $ac_c" 1>&6 2538 else 2539 case "$RTEMS_CPU" in 2540 unix*) 2541 rtems_cv_HAS_POSIX_API="no" 2542 ;; 2543 *) 2544 if test "${RTEMS_HAS_POSIX_API}" = "yes"; then 2545 rtems_cv_HAS_POSIX_API="yes"; 2546 else 2547 rtems_cv_HAS_POSIX_API="disabled"; 2548 fi 2549 ;; 2550 esac 2551 fi 2552 2553 echo "$ac_t""$rtems_cv_HAS_POSIX_API" 1>&6 2554 if test "$rtems_cv_HAS_POSIX_API" = "yes"; then 2555 HAS_POSIX_API="yes"; 2556 else 2557 HAS_POSIX_API="no"; 2558 fi 2559 2710 2560 2711 2561 # find all the Executive Makefiles 2712 2562 2713 2563 echo $ac_n "checking for Makefile.in in score/cpu/$RTEMS_CPU""... $ac_c" 1>&6 2714 echo "configure:2 715: checking for Makefile.in in score/cpu/$RTEMS_CPU" >&52564 echo "configure:2565: checking for Makefile.in in score/cpu/$RTEMS_CPU" >&5 2715 2565 if test -d $srcdir/score/cpu/$RTEMS_CPU; then 2716 2566 rtems_av_save_dir=`pwd`; … … 2729 2579 if test "$RTEMS_USE_MACROS" = "yes"; then 2730 2580 inline_dir="macros" 2731 if test "$ RTEMS_HAS_POSIX_API" = "yes"; then2581 if test "$HAS_POSIX_API" = "yes"; then 2732 2582 # The problem is that there is currently no code in posix/macros :) 2733 2583 { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; } … … 2737 2587 fi 2738 2588 2739 if test "$ RTEMS_HAS_POSIX_API" = "yes"; then2589 if test "$HAS_POSIX_API" = "yes"; then 2740 2590 makefiles="$makefiles posix/Makefile" 2741 2591 makefiles="$makefiles posix/src/Makefile" … … 2752 2602 makefiles="$makefiles posix/${inline_dir}/rtems/posix/Makefile" 2753 2603 fi 2754 2755 2604 2756 2605 … … 2982 2831 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g 2983 2832 s%@GCCSED@%$GCCSED%g 2984 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g2985 2833 s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g 2986 2834 s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g … … 2995 2843 s%@RTEMS_USE_NEWLIB@%$RTEMS_USE_NEWLIB%g 2996 2844 s%@HAS_MP@%$HAS_MP%g 2845 s%@HAS_POSIX_API@%$HAS_POSIX_API%g 2997 2846 s%@RTEMS_VERSION@%$RTEMS_VERSION%g 2998 2847 s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g 2999 s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g3000 2848 s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g 3001 2849 s%@program_prefix@%$program_prefix%g … … 3149 2997 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 3150 2998 3151 -
c/src/exec/configure.in
r22544db9 r3a8915e 34 34 RTEMS_PROG_CC_FOR_TARGET 35 35 36 dnl check for g++37 if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then38 RTEMS_PROG_CXX_FOR_TARGET39 fi40 41 36 RTEMS_CANONICALIZE_TOOLS 42 37 … … 50 45 # Check if there is custom/*.cfg for this BSP 51 46 RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) 52 53 47 RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) 48 RTEMS_CHECK_POSIX_API(RTEMS_BSP) 54 49 55 50 # find all the Executive Makefiles … … 59 54 if test "$RTEMS_USE_MACROS" = "yes"; then 60 55 inline_dir="macros" 61 if test "$ RTEMS_HAS_POSIX_API" = "yes"; then56 if test "$HAS_POSIX_API" = "yes"; then 62 57 # The problem is that there is currently no code in posix/macros :) 63 58 AC_MSG_ERROR(Macros are not implemented for the POSIX API) … … 67 62 fi 68 63 69 if test "$ RTEMS_HAS_POSIX_API" = "yes"; then64 if test "$HAS_POSIX_API" = "yes"; then 70 65 makefiles="$makefiles posix/Makefile" 71 66 makefiles="$makefiles posix/src/Makefile" … … 86 81 87 82 AC_SUBST(rtems_cv_prog_cc_cross) 88 AC_SUBST(RTEMS_HAS_CPLUSPLUS)89 83 AC_SUBST(RTEMS_USE_GCC272) 90 84 AC_SUBST(program_prefix) … … 130 124 $makefiles 131 125 ) 132 -
c/src/lib/aclocal.m4
r22544db9 r3a8915e 135 135 dnl $Id$ 136 136 137 AC_DEFUN(RTEMS_ENABLE_POSIX,138 [139 AC_ARG_ENABLE(posix,140 [ --enable-posix enable posix interface],141 [case "${enableval}" in142 yes) RTEMS_HAS_POSIX_API=yes ;;143 no) RTEMS_HAS_POSIX_API=no ;;144 *) AC_MSG_ERROR(bad value ${enableval} for enable-posix option) ;;145 esac],[RTEMS_HAS_POSIX_API=yes])146 AC_SUBST(RTEMS_HAS_POSIX_API)147 148 changequote(,)dnl149 case "${target}" in150 # hpux unix port should go here151 i[3456]86-go32-rtems*)152 RTEMS_HAS_POSIX_API=no153 ;;154 i[3456]86-pc-linux*) # unix "simulator" port155 RTEMS_HAS_POSIX_API=no156 ;;157 i[3456]86-*freebsd2*) # unix "simulator" port158 RTEMS_HAS_POSIX_API=no159 ;;160 no_cpu-*rtems*)161 RTEMS_HAS_POSIX_API=no162 ;;163 sparc-sun-solaris*) # unix "simulator" port164 RTEMS_HAS_POSIX_API=no165 ;;166 *)167 ;;168 esac169 changequote([,])dnl170 AC_SUBST(RTEMS_HAS_POSIX_API)171 ])172 173 dnl $Id$174 175 137 AC_DEFUN(RTEMS_ENABLE_NETWORKING, 176 138 [ … … 197 159 esac],[RTEMS_HAS_RDBG=no]) 198 160 AC_SUBST(RTEMS_HAS_RDBG)dnl 199 ])200 201 dnl $Id$202 203 AC_DEFUN(RTEMS_ENABLE_INLINES,204 [AC_ARG_ENABLE(rtems-inlines,205 [ --enable-rtems-inlines enable RTEMS inline functions]206 [ (default:enabled, disable to use macros)],207 [case "${enableval}" in208 yes) RTEMS_USE_MACROS=no ;;209 no) RTEMS_USE_MACROS=yes ;;210 *) AC_MSG_ERROR(bad value ${enableval} for disable-rtems-inlines option) ;;211 esac],[RTEMS_USE_MACROS=no])212 AC_SUBST(RTEMS_USE_MACROS)dnl213 161 ]) 214 162 … … 949 897 ])dnl 950 898 951 dnl $Id$ 899 dnl 900 dnl $Id$ 901 dnl 952 902 953 903 AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING, … … 966 916 else 967 917 rtems_cv_HAS_MP="no"; 968 fi 969 ]) 918 fi]) 970 919 if test "$rtems_cv_HAS_MP" = "yes"; then 971 920 HAS_MP="yes" … … 974 923 fi 975 924 AC_SUBST(HAS_MP) 925 ]) 926 927 dnl $Id$ 928 dnl 929 AC_DEFUN(RTEMS_CHECK_CXX, 930 [dnl 931 AC_REQUIRE([RTEMS_CHECK_CPU])dnl 932 AC_REQUIRE([RTEMS_PROG_CXX_FOR_TARGET])dnl 933 AC_CACHE_VAL(rtems_cv_HAS_CPLUSPLUS, 934 [dnl 935 if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then 936 if test -n "$CXX_FOR_TARGET"; then 937 rtems_cv_HAS_CPLUSPLUS="yes"; 938 else 939 rtems_cv_HAS_CPLUSPLUS="no"; 940 fi 941 else 942 rtems_cv_HAS_CPLUSPLUS="no"; 943 fi 944 ])dnl 945 HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS"; 946 AC_SUBST(HAS_CPLUSPLUS)dnl 947 ]) 948 949 dnl $Id$ 950 dnl 951 AC_DEFUN(RTEMS_CHECK_NETWORKING, 952 [dnl 953 AC_REQUIRE([RTEMS_CHECK_CPU])dnl 954 AC_CACHE_VAL(rtems_cv_HAS_NETWORKING, 955 [dnl 956 if test "$RTEMS_HAS_NETWORKING" = "yes"; then 957 rtems_cv_HAS_NETWORKING="yes"; 958 else 959 rtems_cv_HAS_NETWORKING="no"; 960 fi 961 ])dnl 962 HAS_NETWORKING="$rtems_cv_HAS_NETWORKING"; 963 AC_SUBST(HAS_NETWORKING)dnl 976 964 ]) 977 965 … … 1033 1021 1034 1022 1023 dnl $Id$ 1024 dnl 1035 1025 AC_DEFUN(RTEMS_CHECK_RDBG, 1036 1026 [dnl -
c/src/lib/configure
r22544db9 r3a8915e 20 20 --enable-multiprocessing enable multiprocessing interface" 21 21 ac_help="$ac_help 22 --enable-posix enable posix interface"23 ac_help="$ac_help24 22 --enable-networking enable TCP/IP stack" 25 23 ac_help="$ac_help 26 24 --enable-rdbg enable remote debugger" 27 ac_help="$ac_help28 --enable-rtems-inlines enable RTEMS inline functions29 (default:enabled, disable to use macros)"30 25 ac_help="$ac_help 31 26 --enable-cxx enable C++ support, … … 570 565 571 566 echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6 572 echo "configure:5 73: checking for RTEMS Version" >&5567 echo "configure:568: checking for RTEMS Version" >&5 573 568 if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then 574 569 RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \ … … 603 598 604 599 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 605 echo "configure:60 6: checking whether ${MAKE-make} sets \${MAKE}" >&5600 echo "configure:601: checking whether ${MAKE-make} sets \${MAKE}" >&5 606 601 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 607 602 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 658 653 659 654 echo $ac_n "checking host system type""... $ac_c" 1>&6 660 echo "configure:6 61: checking host system type" >&5655 echo "configure:656: checking host system type" >&5 661 656 662 657 host_alias=$host … … 679 674 680 675 echo $ac_n "checking target system type""... $ac_c" 1>&6 681 echo "configure:6 82: checking target system type" >&5676 echo "configure:677: checking target system type" >&5 682 677 683 678 target_alias=$target … … 697 692 698 693 echo $ac_n "checking build system type""... $ac_c" 1>&6 699 echo "configure: 700: checking build system type" >&5694 echo "configure:695: checking build system type" >&5 700 695 701 696 build_alias=$build … … 720 715 721 716 echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6 722 echo "configure:7 23: checking rtems target cpu" >&5717 echo "configure:718: checking rtems target cpu" >&5 723 718 case "${target}" in 724 719 # hpux unix port should go here … … 747 742 748 743 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 749 echo "configure:7 50: checking whether to enable maintainer-specific portions of Makefiles" >&5744 echo "configure:745: checking whether to enable maintainer-specific portions of Makefiles" >&5 750 745 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 751 746 if test "${enable_maintainer_mode+set}" = set; then … … 785 780 786 781 787 # Check whether --enable-posix or --disable-posix was given.788 if test "${enable_posix+set}" = set; then789 enableval="$enable_posix"790 case "${enableval}" in791 yes) RTEMS_HAS_POSIX_API=yes ;;792 no) RTEMS_HAS_POSIX_API=no ;;793 *) { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;;794 esac795 else796 RTEMS_HAS_POSIX_API=yes797 fi798 799 800 801 case "${target}" in802 # hpux unix port should go here803 i[3456]86-go32-rtems*)804 RTEMS_HAS_POSIX_API=no805 ;;806 i[3456]86-pc-linux*) # unix "simulator" port807 RTEMS_HAS_POSIX_API=no808 ;;809 i[3456]86-*freebsd2*) # unix "simulator" port810 RTEMS_HAS_POSIX_API=no811 ;;812 no_cpu-*rtems*)813 RTEMS_HAS_POSIX_API=no814 ;;815 sparc-sun-solaris*) # unix "simulator" port816 RTEMS_HAS_POSIX_API=no817 ;;818 *)819 ;;820 esac821 822 823 824 782 # Check whether --enable-networking or --disable-networking was given. 825 783 if test "${enable_networking+set}" = set; then … … 849 807 850 808 851 # Check whether --enable-rtems-inlines or --disable-rtems-inlines was given.852 if test "${enable_rtems_inlines+set}" = set; then853 enableval="$enable_rtems_inlines"854 case "${enableval}" in855 yes) RTEMS_USE_MACROS=no ;;856 no) RTEMS_USE_MACROS=yes ;;857 *) { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;;858 esac859 else860 RTEMS_USE_MACROS=no861 fi862 863 864 809 865 810 # Check whether --enable-cxx or --disable-cxx was given. … … 939 884 940 885 echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6 941 echo "configure: 942: checking for RTEMS_BSP" >&5886 echo "configure:887: checking for RTEMS_BSP" >&5 942 887 if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then 943 888 echo $ac_n "(cached) $ac_c" 1>&6 … … 966 911 # ./install, which can be erroneously created by make from ./install.sh. 967 912 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 968 echo "configure:9 69: checking for a BSD compatible install" >&5913 echo "configure:914: checking for a BSD compatible install" >&5 969 914 if test -z "$INSTALL"; then 970 915 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1023 968 # Is this a supported CPU? 1024 969 echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6 1025 echo "configure: 1026: checking if cpu $RTEMS_CPU is supported" >&5970 echo "configure:971: checking if cpu $RTEMS_CPU is supported" >&5 1026 971 if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then 1027 972 echo "$ac_t""yes" 1>&6 … … 1084 1029 set dummy $ac_prog; ac_word=$2 1085 1030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1086 echo "configure:10 87: checking for $ac_word" >&51031 echo "configure:1032: checking for $ac_word" >&5 1087 1032 if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then 1088 1033 echo $ac_n "(cached) $ac_c" 1>&6 … … 1128 1073 1129 1074 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1130 echo "configure:1 131: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&51075 echo "configure:1076: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1131 1076 1132 1077 ac_ext=c … … 1139 1084 cat > conftest.$ac_ext << EOF 1140 1085 1141 #line 1 142"configure"1086 #line 1087 "configure" 1142 1087 #include "confdefs.h" 1143 1088 1144 1089 main(){return(0);} 1145 1090 EOF 1146 if { (eval echo configure:1 147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1091 if { (eval echo configure:1092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1147 1092 ac_cv_prog_cc_works=yes 1148 1093 # If we can't run a trivial program, we are probably using a cross compiler. … … 1170 1115 fi 1171 1116 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1172 echo "configure:11 73: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&51117 echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1173 1118 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1174 1119 cross_compiling=$ac_cv_prog_cc_cross 1175 1120 1176 1121 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1177 echo "configure:11 78: checking whether we are using GNU C" >&51122 echo "configure:1123: checking whether we are using GNU C" >&5 1178 1123 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1179 1124 echo $ac_n "(cached) $ac_c" 1>&6 … … 1184 1129 #endif 1185 1130 EOF 1186 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:11 87: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1131 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1187 1132 ac_cv_prog_gcc=yes 1188 1133 else … … 1199 1144 CFLAGS= 1200 1145 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1201 echo "configure:1 202: checking whether ${CC-cc} accepts -g" >&51146 echo "configure:1147: checking whether ${CC-cc} accepts -g" >&5 1202 1147 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1203 1148 echo $ac_n "(cached) $ac_c" 1>&6 … … 1241 1186 1242 1187 echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6 1243 echo "configure:1 244: checking whether $CC_FOR_TARGET accepts -specs" >&51188 echo "configure:1189: checking whether $CC_FOR_TARGET accepts -specs" >&5 1244 1189 if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then 1245 1190 echo $ac_n "(cached) $ac_c" 1>&6 … … 1262 1207 1263 1208 echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6 1264 echo "configure:12 65: checking whether $CC_FOR_TARGET accepts --pipe" >&51209 echo "configure:1210: checking whether $CC_FOR_TARGET accepts --pipe" >&5 1265 1210 if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then 1266 1211 echo $ac_n "(cached) $ac_c" 1>&6 … … 1310 1255 set dummy $ac_prog; ac_word=$2 1311 1256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1312 echo "configure:1 313: checking for $ac_word" >&51257 echo "configure:1258: checking for $ac_word" >&5 1313 1258 if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then 1314 1259 echo $ac_n "(cached) $ac_c" 1>&6 … … 1354 1299 1355 1300 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1356 echo "configure:13 57: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&51301 echo "configure:1302: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 1357 1302 1358 1303 ac_ext=C … … 1365 1310 cat > conftest.$ac_ext << EOF 1366 1311 1367 #line 13 68"configure"1312 #line 1313 "configure" 1368 1313 #include "confdefs.h" 1369 1314 1370 1315 int main(){return(0);} 1371 1316 EOF 1372 if { (eval echo configure:13 73: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1317 if { (eval echo configure:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1373 1318 ac_cv_prog_cxx_works=yes 1374 1319 # If we can't run a trivial program, we are probably using a cross compiler. … … 1396 1341 fi 1397 1342 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1398 echo "configure:13 99: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&51343 echo "configure:1344: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1399 1344 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1400 1345 cross_compiling=$ac_cv_prog_cxx_cross 1401 1346 1402 1347 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1403 echo "configure:1 404: checking whether we are using GNU C++" >&51348 echo "configure:1349: checking whether we are using GNU C++" >&5 1404 1349 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1405 1350 echo $ac_n "(cached) $ac_c" 1>&6 … … 1410 1355 #endif 1411 1356 EOF 1412 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1 413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1357 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1413 1358 ac_cv_prog_gxx=yes 1414 1359 else … … 1425 1370 CXXFLAGS= 1426 1371 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1427 echo "configure:1 428: checking whether ${CXX-g++} accepts -g" >&51372 echo "configure:1373: checking whether ${CXX-g++} accepts -g" >&5 1428 1373 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1429 1374 echo $ac_n "(cached) $ac_c" 1>&6 … … 1478 1423 1479 1424 echo $ac_n "checking target's ar""... $ac_c" 1>&6 1480 echo "configure:14 81: checking target's ar" >&51425 echo "configure:1426: checking target's ar" >&5 1481 1426 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then 1482 1427 echo $ac_n "(cached) $ac_c" 1>&6 … … 1511 1456 # intends 1512 1457 echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1513 echo "configure:1 514: checking whether environment variable AR_FOR_TARGET is an absolute path" >&51458 echo "configure:1459: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5 1514 1459 case "$AR_FOR_TARGET" in 1515 1460 /*) # valid … … 1528 1473 set dummy "$program_prefix"ar; ac_word=$2 1529 1474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1530 echo "configure:1 531: checking for $ac_word" >&51475 echo "configure:1476: checking for $ac_word" >&5 1531 1476 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then 1532 1477 echo $ac_n "(cached) $ac_c" 1>&6 … … 1565 1510 1566 1511 echo $ac_n "checking target's as""... $ac_c" 1>&6 1567 echo "configure:15 68: checking target's as" >&51512 echo "configure:1513: checking target's as" >&5 1568 1513 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then 1569 1514 echo $ac_n "(cached) $ac_c" 1>&6 … … 1598 1543 # intends 1599 1544 echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1600 echo "configure:1 601: checking whether environment variable AS_FOR_TARGET is an absolute path" >&51545 echo "configure:1546: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5 1601 1546 case "$AS_FOR_TARGET" in 1602 1547 /*) # valid … … 1615 1560 set dummy "$program_prefix"as; ac_word=$2 1616 1561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1617 echo "configure:1 618: checking for $ac_word" >&51562 echo "configure:1563: checking for $ac_word" >&5 1618 1563 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then 1619 1564 echo $ac_n "(cached) $ac_c" 1>&6 … … 1652 1597 1653 1598 echo $ac_n "checking target's ld""... $ac_c" 1>&6 1654 echo "configure:16 55: checking target's ld" >&51599 echo "configure:1600: checking target's ld" >&5 1655 1600 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then 1656 1601 echo $ac_n "(cached) $ac_c" 1>&6 … … 1685 1630 # intends 1686 1631 echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1687 echo "configure:16 88: checking whether environment variable LD_FOR_TARGET is an absolute path" >&51632 echo "configure:1633: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5 1688 1633 case "$LD_FOR_TARGET" in 1689 1634 /*) # valid … … 1702 1647 set dummy "$program_prefix"ld; ac_word=$2 1703 1648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1704 echo "configure:1 705: checking for $ac_word" >&51649 echo "configure:1650: checking for $ac_word" >&5 1705 1650 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then 1706 1651 echo $ac_n "(cached) $ac_c" 1>&6 … … 1739 1684 1740 1685 echo $ac_n "checking target's nm""... $ac_c" 1>&6 1741 echo "configure:1 742: checking target's nm" >&51686 echo "configure:1687: checking target's nm" >&5 1742 1687 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then 1743 1688 echo $ac_n "(cached) $ac_c" 1>&6 … … 1772 1717 # intends 1773 1718 echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1774 echo "configure:17 75: checking whether environment variable NM_FOR_TARGET is an absolute path" >&51719 echo "configure:1720: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5 1775 1720 case "$NM_FOR_TARGET" in 1776 1721 /*) # valid … … 1789 1734 set dummy "$program_prefix"nm; ac_word=$2 1790 1735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1791 echo "configure:17 92: checking for $ac_word" >&51736 echo "configure:1737: checking for $ac_word" >&5 1792 1737 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then 1793 1738 echo $ac_n "(cached) $ac_c" 1>&6 … … 1827 1772 1828 1773 echo $ac_n "checking target's ranlib""... $ac_c" 1>&6 1829 echo "configure:1 830: checking target's ranlib" >&51774 echo "configure:1775: checking target's ranlib" >&5 1830 1775 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then 1831 1776 echo $ac_n "(cached) $ac_c" 1>&6 … … 1860 1805 # intends 1861 1806 echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1862 echo "configure:18 63: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&51807 echo "configure:1808: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5 1863 1808 case "$RANLIB_FOR_TARGET" in 1864 1809 /*) # valid … … 1877 1822 set dummy "$program_prefix"ranlib; ac_word=$2 1878 1823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1879 echo "configure:18 80: checking for $ac_word" >&51824 echo "configure:1825: checking for $ac_word" >&5 1880 1825 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then 1881 1826 echo $ac_n "(cached) $ac_c" 1>&6 … … 1916 1861 1917 1862 echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6 1918 echo "configure:1 919: checking whether $AR_FOR_TARGET -s works" >&51863 echo "configure:1864: checking whether $AR_FOR_TARGET -s works" >&5 1919 1864 if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then 1920 1865 echo $ac_n "(cached) $ac_c" 1>&6 … … 1925 1870 { return b; } 1926 1871 EOF 1927 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1 928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \1928 && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1 929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \1872 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ 1873 && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ 1929 1874 && test -s conftest.a ; \ 1930 1875 then … … 1951 1896 1952 1897 echo $ac_n "checking target's objcopy""... $ac_c" 1>&6 1953 echo "configure:1 954: checking target's objcopy" >&51898 echo "configure:1899: checking target's objcopy" >&5 1954 1899 if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then 1955 1900 echo $ac_n "(cached) $ac_c" 1>&6 … … 1984 1929 # intends 1985 1930 echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1986 echo "configure:19 87: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&51931 echo "configure:1932: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5 1987 1932 case "$OBJCOPY_FOR_TARGET" in 1988 1933 /*) # valid … … 2001 1946 set dummy "$program_prefix"objcopy; ac_word=$2 2002 1947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2003 echo "configure: 2004: checking for $ac_word" >&51948 echo "configure:1949: checking for $ac_word" >&5 2004 1949 if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then 2005 1950 echo $ac_n "(cached) $ac_c" 1>&6 … … 2038 1983 2039 1984 echo $ac_n "checking target's size""... $ac_c" 1>&6 2040 echo "configure: 2041: checking target's size" >&51985 echo "configure:1986: checking target's size" >&5 2041 1986 if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then 2042 1987 echo $ac_n "(cached) $ac_c" 1>&6 … … 2071 2016 # intends 2072 2017 echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2073 echo "configure:20 74: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&52018 echo "configure:2019: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5 2074 2019 case "$SIZE_FOR_TARGET" in 2075 2020 /*) # valid … … 2088 2033 set dummy "$program_prefix"size; ac_word=$2 2089 2034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2090 echo "configure:20 91: checking for $ac_word" >&52035 echo "configure:2036: checking for $ac_word" >&5 2091 2036 if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then 2092 2037 echo $ac_n "(cached) $ac_c" 1>&6 … … 2125 2070 2126 2071 echo $ac_n "checking target's strip""... $ac_c" 1>&6 2127 echo "configure:2 128: checking target's strip" >&52072 echo "configure:2073: checking target's strip" >&5 2128 2073 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then 2129 2074 echo $ac_n "(cached) $ac_c" 1>&6 … … 2158 2103 # intends 2159 2104 echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2160 echo "configure:21 61: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&52105 echo "configure:2106: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5 2161 2106 case "$STRIP_FOR_TARGET" in 2162 2107 /*) # valid … … 2175 2120 set dummy "$program_prefix"strip; ac_word=$2 2176 2121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2177 echo "configure:21 78: checking for $ac_word" >&52122 echo "configure:2123: checking for $ac_word" >&5 2178 2123 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then 2179 2124 echo $ac_n "(cached) $ac_c" 1>&6 … … 2214 2159 if test "${target_cpu}" = "i386"; then 2215 2160 echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6 2216 echo "configure:2 217: checking for 16 bit mode assembler support" >&52161 echo "configure:2162: checking for 16 bit mode assembler support" >&5 2217 2162 if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then 2218 2163 echo $ac_n "(cached) $ac_c" 1>&6 … … 2224 2169 lgdt 0 2225 2170 EOF 2226 if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2 227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then2171 if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then 2227 2172 rtems_cv_prog_gas_code16=yes 2228 2173 else … … 2249 2194 set dummy gcc; ac_word=$2 2250 2195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2251 echo "configure:2 252: checking for $ac_word" >&52196 echo "configure:2197: checking for $ac_word" >&5 2252 2197 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2253 2198 echo $ac_n "(cached) $ac_c" 1>&6 … … 2279 2224 set dummy cc; ac_word=$2 2280 2225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2281 echo "configure:22 82: checking for $ac_word" >&52226 echo "configure:2227: checking for $ac_word" >&5 2282 2227 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2283 2228 echo $ac_n "(cached) $ac_c" 1>&6 … … 2330 2275 set dummy cl; ac_word=$2 2331 2276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2332 echo "configure:2 333: checking for $ac_word" >&52277 echo "configure:2278: checking for $ac_word" >&5 2333 2278 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2334 2279 echo $ac_n "(cached) $ac_c" 1>&6 … … 2362 2307 2363 2308 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2364 echo "configure:23 65: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&52309 echo "configure:2310: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2365 2310 2366 2311 ac_ext=c … … 2373 2318 cat > conftest.$ac_ext << EOF 2374 2319 2375 #line 23 76"configure"2320 #line 2321 "configure" 2376 2321 #include "confdefs.h" 2377 2322 2378 2323 main(){return(0);} 2379 2324 EOF 2380 if { (eval echo configure:23 81: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2381 2326 ac_cv_prog_cc_works=yes 2382 2327 # If we can't run a trivial program, we are probably using a cross compiler. … … 2404 2349 fi 2405 2350 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2406 echo "configure:2 407: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&52351 echo "configure:2352: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2407 2352 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2408 2353 cross_compiling=$ac_cv_prog_cc_cross 2409 2354 2410 2355 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2411 echo "configure:2 412: checking whether we are using GNU C" >&52356 echo "configure:2357: checking whether we are using GNU C" >&5 2412 2357 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 2413 2358 echo $ac_n "(cached) $ac_c" 1>&6 … … 2418 2363 #endif 2419 2364 EOF 2420 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2 421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then2365 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2421 2366 ac_cv_prog_gcc=yes 2422 2367 else … … 2437 2382 CFLAGS= 2438 2383 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2439 echo "configure:2 440: checking whether ${CC-cc} accepts -g" >&52384 echo "configure:2385: checking whether ${CC-cc} accepts -g" >&5 2440 2385 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 2441 2386 echo $ac_n "(cached) $ac_c" 1>&6 … … 2473 2418 2474 2419 echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6 2475 echo "configure:24 76: checking whether $RTEMS_HOST supports System V semaphores" >&52420 echo "configure:2421: checking whether $RTEMS_HOST supports System V semaphores" >&5 2476 2421 if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then 2477 2422 echo $ac_n "(cached) $ac_c" 1>&6 … … 2482 2427 else 2483 2428 cat > conftest.$ac_ext <<EOF 2484 #line 24 85"configure"2429 #line 2430 "configure" 2485 2430 #include "confdefs.h" 2486 2431 … … 2508 2453 2509 2454 EOF 2510 if { (eval echo configure:2 511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2455 if { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2511 2456 then 2512 2457 rtems_cv_sysv_sem="yes" … … 2531 2476 2532 2477 echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6 2533 echo "configure:2 534: checking whether $RTEMS_HOST supports System V shared memory" >&52478 echo "configure:2479: checking whether $RTEMS_HOST supports System V shared memory" >&5 2534 2479 if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then 2535 2480 echo $ac_n "(cached) $ac_c" 1>&6 … … 2540 2485 else 2541 2486 cat > conftest.$ac_ext <<EOF 2542 #line 2 543"configure"2487 #line 2488 "configure" 2543 2488 #include "confdefs.h" 2544 2489 … … 2556 2501 2557 2502 EOF 2558 if { (eval echo configure:25 59: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2503 if { (eval echo configure:2504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2559 2504 then 2560 2505 rtems_cv_sysv_shm="yes" … … 2579 2524 2580 2525 echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6 2581 echo "configure:25 82: checking whether $RTEMS_HOST supports System V messages" >&52526 echo "configure:2527: checking whether $RTEMS_HOST supports System V messages" >&5 2582 2527 if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then 2583 2528 echo $ac_n "(cached) $ac_c" 1>&6 … … 2588 2533 else 2589 2534 cat > conftest.$ac_ext <<EOF 2590 #line 25 91"configure"2535 #line 2536 "configure" 2591 2536 #include "confdefs.h" 2592 2537 … … 2604 2549 2605 2550 EOF 2606 if { (eval echo configure:2 607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2551 if { (eval echo configure:2552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2607 2552 then 2608 2553 rtems_cv_sysv_msg="yes" … … 2635 2580 2636 2581 echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6 2637 echo "configure:2 638: checking for make/custom/$RTEMS_BSP.cfg" >&52582 echo "configure:2583: checking for make/custom/$RTEMS_BSP.cfg" >&5 2638 2583 if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then 2639 2584 echo "$ac_t""yes" 1>&6 … … 2643 2588 2644 2589 echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6 2645 echo "configure:2 646: checking whether BSP supports multiprocessing" >&52590 echo "configure:2591: checking whether BSP supports multiprocessing" >&5 2646 2591 if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then 2647 2592 echo $ac_n "(cached) $ac_c" 1>&6 … … 2656 2601 rtems_cv_HAS_MP="no"; 2657 2602 fi 2658 2659 2603 fi 2660 2604 … … 2666 2610 fi 2667 2611 2612 2613 if eval "test \"`echo '$''{'rtems_cv_HAS_CPLUSPLUS'+set}'`\" = set"; then 2614 echo $ac_n "(cached) $ac_c" 1>&6 2615 else 2616 if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then 2617 if test -n "$CXX_FOR_TARGET"; then 2618 rtems_cv_HAS_CPLUSPLUS="yes"; 2619 else 2620 rtems_cv_HAS_CPLUSPLUS="no"; 2621 fi 2622 else 2623 rtems_cv_HAS_CPLUSPLUS="no"; 2624 fi 2625 2626 fi 2627 HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS"; 2628 2629 if eval "test \"`echo '$''{'rtems_cv_HAS_NETWORKING'+set}'`\" = set"; then 2630 echo $ac_n "(cached) $ac_c" 1>&6 2631 else 2632 if test "$RTEMS_HAS_NETWORKING" = "yes"; then 2633 rtems_cv_HAS_NETWORKING="yes"; 2634 else 2635 rtems_cv_HAS_NETWORKING="no"; 2636 fi 2637 2638 fi 2639 HAS_NETWORKING="$rtems_cv_HAS_NETWORKING"; 2668 2640 2669 2641 … … 2707 2679 2708 2680 echo $ac_n "checking for Makefile.in in libbsp/${bspcpudir}$bspdir""... $ac_c" 1>&6 2709 echo "configure:2 710: checking for Makefile.in in libbsp/${bspcpudir}$bspdir" >&52681 echo "configure:2682: checking for Makefile.in in libbsp/${bspcpudir}$bspdir" >&5 2710 2682 if test -d $srcdir/libbsp/${bspcpudir}$bspdir; then 2711 2683 rtems_av_save_dir=`pwd`; … … 2722 2694 2723 2695 echo $ac_n "checking for Makefile.in in libbsp/${bspcpudir}shared""... $ac_c" 1>&6 2724 echo "configure:2 725: checking for Makefile.in in libbsp/${bspcpudir}shared" >&52696 echo "configure:2697: checking for Makefile.in in libbsp/${bspcpudir}shared" >&5 2725 2697 if test -d $srcdir/libbsp/${bspcpudir}shared; then 2726 2698 rtems_av_save_dir=`pwd`; … … 2746 2718 fi 2747 2719 2720 if test "$HAS_MP" = "yes"; then 2721 makefiles="$makefiles libbsp/shmdr/Makefile" 2722 fi 2723 2748 2724 2749 2725 … … 2758 2734 2759 2735 echo $ac_n "checking for Makefile.in in libcpu/$RTEMS_CPU""... $ac_c" 1>&6 2760 echo "configure:27 61: checking for Makefile.in in libcpu/$RTEMS_CPU" >&52736 echo "configure:2737: checking for Makefile.in in libcpu/$RTEMS_CPU" >&5 2761 2737 if test -d $srcdir/libcpu/$RTEMS_CPU; then 2762 2738 rtems_av_save_dir=`pwd`; … … 2778 2754 2779 2755 echo $ac_n "checking for Makefile.in in start/$RTEMS_CPU""... $ac_c" 1>&6 2780 echo "configure:27 81: checking for Makefile.in in start/$RTEMS_CPU" >&52756 echo "configure:2757: checking for Makefile.in in start/$RTEMS_CPU" >&5 2781 2757 if test -d $srcdir/start/$RTEMS_CPU; then 2782 2758 rtems_av_save_dir=`pwd`; … … 2794 2770 esac 2795 2771 2796 # If RTEMS macros are enabled, then use them. Otherwise, use inlines.2797 if test "$RTEMS_USE_MACROS" = "yes"; then2798 inline_dir=macros2799 if test "$RTEMS_HAS_POSIX_API" = "yes"; then2800 # The problem is that there is currently no code in posix/macros :)2801 { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; }2802 fi2803 else2804 inline_dir=inline2805 fi2806 2807 2772 # If the TCP/IP stack is enabled, then find all TCP/IP Makefiles 2808 2773 echo $ac_n "checking if networking is enabled? ""... $ac_c" 1>&6 2809 echo "configure:2 810: checking if networking is enabled? " >&52774 echo "configure:2775: checking if networking is enabled? " >&5 2810 2775 echo "$ac_t""$RTEMS_HAS_NETWORKING" 1>&6 2811 2776 if test "$RTEMS_HAS_NETWORKING" = "yes"; then 2812 2777 2813 2778 echo $ac_n "checking for Makefile.in in libnetworking""... $ac_c" 1>&6 2814 echo "configure:2 815: checking for Makefile.in in libnetworking" >&52779 echo "configure:2780: checking for Makefile.in in libnetworking" >&5 2815 2780 if test -d $srcdir/libnetworking; then 2816 2781 rtems_av_save_dir=`pwd`; … … 2827 2792 2828 2793 echo $ac_n "checking for Makefile.in in librpc""... $ac_c" 1>&6 2829 echo "configure:2 830: checking for Makefile.in in librpc" >&52794 echo "configure:2795: checking for Makefile.in in librpc" >&5 2830 2795 if test -d $srcdir/librpc; then 2831 2796 rtems_av_save_dir=`pwd`; … … 2843 2808 if test "$RTEMS_HAS_RDBG" = "yes"; then 2844 2809 echo $ac_n "checking whether BSP supports librdbg""... $ac_c" 1>&6 2845 echo "configure:28 46: checking whether BSP supports librdbg" >&52810 echo "configure:2811: checking whether BSP supports librdbg" >&5 2846 2811 if eval "test \"`echo '$''{'rtems_cv_HAS_RDBG'+set}'`\" = set"; then 2847 2812 echo $ac_n "(cached) $ac_c" 1>&6 … … 2865 2830 set dummy rpcgen; ac_word=$2 2866 2831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2867 echo "configure:28 68: checking for $ac_word" >&52832 echo "configure:2833: checking for $ac_word" >&5 2868 2833 if eval "test \"`echo '$''{'ac_cv_prog_RPCGEN'+set}'`\" = set"; then 2869 2834 echo $ac_n "(cached) $ac_c" 1>&6 … … 2896 2861 set dummy $ac_prog; ac_word=$2 2897 2862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2898 echo "configure:28 99: checking for $ac_word" >&52863 echo "configure:2864: checking for $ac_word" >&5 2899 2864 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 2900 2865 echo $ac_n "(cached) $ac_c" 1>&6 … … 2935 2900 2936 2901 echo $ac_n "checking for Makefile.in in librdbg""... $ac_c" 1>&6 2937 echo "configure:29 38: checking for Makefile.in in librdbg" >&52902 echo "configure:2903: checking for Makefile.in in librdbg" >&5 2938 2903 if test -d $srcdir/librdbg; then 2939 2904 rtems_av_save_dir=`pwd`; … … 2956 2921 2957 2922 echo $ac_n "checking for Makefile.in in librtems++""... $ac_c" 1>&6 2958 echo "configure:29 59: checking for Makefile.in in librtems++" >&52923 echo "configure:2924: checking for Makefile.in in librtems++" >&5 2959 2924 if test -d $srcdir/librtems++; then 2960 2925 rtems_av_save_dir=`pwd`; … … 2987 2952 if test "$RTEMS_HAS_HWAPI" = "yes"; then 2988 2953 echo $ac_n "checking whether libwapi is present""... $ac_c" 1>&6 2989 echo "configure:29 90: checking whether libwapi is present" >&52954 echo "configure:2955: checking whether libwapi is present" >&5 2990 2955 if test -f ${srcdir}/libhwapi/Makefile.in ; then 2991 2956 echo "$ac_t""yes" 1>&6 … … 2993 2958 2994 2959 echo $ac_n "checking for Makefile.in in libhwapi/analog""... $ac_c" 1>&6 2995 echo "configure:29 96: checking for Makefile.in in libhwapi/analog" >&52960 echo "configure:2961: checking for Makefile.in in libhwapi/analog" >&5 2996 2961 if test -d $srcdir/libhwapi/analog; then 2997 2962 rtems_av_save_dir=`pwd`; … … 3008 2973 3009 2974 echo $ac_n "checking for Makefile.in in libhwapi/discrete""... $ac_c" 1>&6 3010 echo "configure: 3011: checking for Makefile.in in libhwapi/discrete" >&52975 echo "configure:2976: checking for Makefile.in in libhwapi/discrete" >&5 3011 2976 if test -d $srcdir/libhwapi/discrete; then 3012 2977 rtems_av_save_dir=`pwd`; … … 3023 2988 3024 2989 echo $ac_n "checking for Makefile.in in libhwapi/drivers""... $ac_c" 1>&6 3025 echo "configure: 3026: checking for Makefile.in in libhwapi/drivers" >&52990 echo "configure:2991: checking for Makefile.in in libhwapi/drivers" >&5 3026 2991 if test -d $srcdir/libhwapi/drivers; then 3027 2992 rtems_av_save_dir=`pwd`; … … 3038 3003 3039 3004 echo $ac_n "checking for Makefile.in in libhwapi/non_volatile_memory""... $ac_c" 1>&6 3040 echo "configure:30 41: checking for Makefile.in in libhwapi/non_volatile_memory" >&53005 echo "configure:3006: checking for Makefile.in in libhwapi/non_volatile_memory" >&5 3041 3006 if test -d $srcdir/libhwapi/non_volatile_memory; then 3042 3007 rtems_av_save_dir=`pwd`; … … 3053 3018 3054 3019 echo $ac_n "checking for Makefile.in in libhwapi/serial""... $ac_c" 1>&6 3055 echo "configure:30 56: checking for Makefile.in in libhwapi/serial" >&53020 echo "configure:3021: checking for Makefile.in in libhwapi/serial" >&5 3056 3021 if test -d $srcdir/libhwapi/serial; then 3057 3022 rtems_av_save_dir=`pwd`; … … 3068 3033 3069 3034 echo $ac_n "checking for Makefile.in in libhwapi/support""... $ac_c" 1>&6 3070 echo "configure:30 71: checking for Makefile.in in libhwapi/support" >&53035 echo "configure:3036: checking for Makefile.in in libhwapi/support" >&5 3071 3036 if test -d $srcdir/libhwapi/support; then 3072 3037 rtems_av_save_dir=`pwd`; … … 3083 3048 3084 3049 echo $ac_n "checking for Makefile.in in libhwapi/wrapup""... $ac_c" 1>&6 3085 echo "configure:30 86: checking for Makefile.in in libhwapi/wrapup" >&53050 echo "configure:3051: checking for Makefile.in in libhwapi/wrapup" >&5 3086 3051 if test -d $srcdir/libhwapi/wrapup; then 3087 3052 rtems_av_save_dir=`pwd`; … … 3111 3076 3112 3077 echo $ac_n "checking for Makefile.in in libchip""... $ac_c" 1>&6 3113 echo "configure:3 114: checking for Makefile.in in libchip" >&53078 echo "configure:3079: checking for Makefile.in in libchip" >&5 3114 3079 if test -d $srcdir/libchip; then 3115 3080 rtems_av_save_dir=`pwd`; … … 3126 3091 3127 3092 echo $ac_n "checking for Makefile.in in libmisc""... $ac_c" 1>&6 3128 echo "configure:3 129: checking for Makefile.in in libmisc" >&53093 echo "configure:3094: checking for Makefile.in in libmisc" >&5 3129 3094 if test -d $srcdir/libmisc; then 3130 3095 rtems_av_save_dir=`pwd`; … … 3263 3228 include/Makefile 3264 3229 libbsp/Makefile 3265 libbsp/shmdr/Makefile3266 3230 libc/Makefile 3267 3231 libcpu/Makefile … … 3322 3286 s%@MAINT@%$MAINT%g 3323 3287 s%@RTEMS_HAS_MULTIPROCESSING@%$RTEMS_HAS_MULTIPROCESSING%g 3324 s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g3325 3288 s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g 3326 3289 s%@RTEMS_HAS_RDBG@%$RTEMS_HAS_RDBG%g 3327 s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g3328 3290 s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g 3329 3291 s%@RTEMS_HAS_HWAPI@%$RTEMS_HAS_HWAPI%g … … 3353 3315 s%@CC@%$CC%g 3354 3316 s%@HAS_MP@%$HAS_MP%g 3317 s%@HAS_CPLUSPLUS@%$HAS_CPLUSPLUS%g 3318 s%@HAS_NETWORKING@%$HAS_NETWORKING%g 3355 3319 s%@RTEMS_LIBBSP_CPU_SUBDIR@%$RTEMS_LIBBSP_CPU_SUBDIR%g 3356 3320 s%@UNIX_TRUE@%$UNIX_TRUE%g … … 3410 3374 include/Makefile 3411 3375 libbsp/Makefile 3412 libbsp/shmdr/Makefile3413 3376 libc/Makefile 3414 3377 libcpu/Makefile -
c/src/lib/configure.in
r22544db9 r3a8915e 14 14 15 15 RTEMS_ENABLE_MULTIPROCESSING 16 RTEMS_ENABLE_POSIX17 16 RTEMS_ENABLE_NETWORKING 18 17 RTEMS_ENABLE_RDBG 19 RTEMS_ENABLE_INLINES20 18 RTEMS_ENABLE_CXX 21 19 RTEMS_ENABLE_GCC28 … … 58 56 RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) 59 57 RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) 58 RTEMS_CHECK_CXX(RTEMS_BSP) 59 RTEMS_CHECK_NETWORKING(RTEMS_BSP) 60 60 61 61 RTEMS_BSP_ALIAS(${RTEMS_BSP},bspdir) … … 99 99 fi 100 100 101 if test "$HAS_MP" = "yes"; then 102 makefiles="$makefiles libbsp/shmdr/Makefile" 103 fi 104 101 105 AM_CONDITIONAL(UNIX,test "$RTEMS_CPU" = "unix") 102 106 # find all the CPU dependent library Makefiles … … 113 117 ;; 114 118 esac 115 116 # If RTEMS macros are enabled, then use them. Otherwise, use inlines.117 if test "$RTEMS_USE_MACROS" = "yes"; then118 inline_dir=macros119 if test "$RTEMS_HAS_POSIX_API" = "yes"; then120 # The problem is that there is currently no code in posix/macros :)121 AC_MSG_ERROR(Macros are not implemented for the POSIX API)122 fi123 else124 inline_dir=inline125 fi126 119 127 120 # If the TCP/IP stack is enabled, then find all TCP/IP Makefiles … … 196 189 include/Makefile 197 190 libbsp/Makefile 198 libbsp/shmdr/Makefile199 191 libc/Makefile 200 192 libcpu/Makefile -
c/src/lib/include/Makefile.in
r22544db9 r3a8915e 18 18 mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs 19 19 20 INSTALLDIRS = $(PROJECT_INCLUDE)/sys $(PROJECT_INCLUDE)/motorola \ 21 $(PROJECT_INCLUDE)/zilog $(LIBRPCdir) $(LIBRDBGdir) \ 22 $(LIBRTEMSCPLUSPLUSdir) $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/rtems++ \ 23 $(PROJECT_INCLUDE)/rpc $(PROJECT_INCLUDE)/rdbg 20 INSTALLDIRS = $(PROJECT_INCLUDE) $(PROJECT_INCLUDE)/sys \ 21 $(PROJECT_INCLUDE)/motorola $(PROJECT_INCLUDE)/zilog $(LIBRPCdir) \ 22 $(LIBRDBGdir) $(LIBRTEMSCPLUSPLUSdir) 24 23 25 24 $(INSTALLDIRS): … … 81 80 @$(INSTALL_CHANGE) -m 644 $(ZILOG_H_FILES) $(PROJECT_INCLUDE)/zilog 82 81 @if test "$(HAS_CPLUSPLUS)" = "yes"; then \ 83 $(INSTALL_CHANGE) -m 644 $(RTEMSCPLUSPLUS_H_FILES) $( PROJECT_INCLUDE)/rtems++; \82 $(INSTALL_CHANGE) -m 644 $(RTEMSCPLUSPLUS_H_FILES) $(LIBRTEMSCPLUSPLUSdir); \ 84 83 fi 85 84 @if test "$(HAS_NETWORKING)" = "yes"; then \ 86 $(INSTALL_CHANGE) -m 644 $(RPC_H_FILES) $( PROJECT_INCLUDE)/rpc; \85 $(INSTALL_CHANGE) -m 644 $(RPC_H_FILES) $(LIBRPCdir); \ 87 86 fi 88 87 @if test "$(HAS_RDBG)" = "yes"; then \ 89 $(INSTALL_CHANGE) -m 644 $(RDBG_H_FILES) $( PROJECT_INCLUDE)/rdbg; \88 $(INSTALL_CHANGE) -m 644 $(RDBG_H_FILES) $(LIBRDBGdir); \ 90 89 fi 91 90 -
c/src/lib/libbsp/bare/include/Makefile.in
r22544db9 r3a8915e 14 14 VPATH = @srcdir@ 15 15 16 H_FILES = $(srcdir)/bsp.h 16 H_FILES = $(srcdir)/bsp.h $(srcdir)/coverhd.h 17 17 18 18 # -
c/src/lib/libbsp/i386/force386/startup/Makefile.in
r22544db9 r3a8915e 68 68 $(make-rel) 69 69 all: ${ARCH} $(SRCS) $(PGM) 70 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib70 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 71 71 72 72 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/i386/i386ex/startup/Makefile.in
r22544db9 r3a8915e 73 73 $(make-rel) 74 74 all: ${ARCH} $(SRCS) $(PGM) 75 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib75 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 76 76 77 77 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/i386/pc386/bsp_specs
r22544db9 r3a8915e 20 20 %{!qrtems: %(old_startfile)} %{qrtems: \ 21 21 %{!qrtems_debug: start.o%s crti.o%s crtbegin.o%s} \ 22 %{qrtems_debug: start_g.o%s }}22 %{qrtems_debug: start_g.o%s crti.o%s crtbegin.o%s}} 23 23 24 24 *link: -
c/src/lib/libbsp/i386/pc386/startup/Makefile.in
r22544db9 r3a8915e 71 71 $(make-rel) 72 72 all: ${ARCH} $(SRCS) $(PGM) 73 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib73 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 74 74 75 75 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/i386/ts_386ex/startup/Makefile.in
r22544db9 r3a8915e 73 73 $(make-rel) 74 74 all: ${ARCH} $(SRCS) $(PGM) 75 @$(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib75 @$(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 76 76 77 77 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/i960/cvme961/startup/Makefile.in
r22544db9 r3a8915e 64 64 65 65 all: ${ARCH} $(SRCS) $(PGM) 66 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib66 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 67 67 68 68 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/m68k/dmv152/startup/Makefile.in
r22544db9 r3a8915e 64 64 65 65 all: ${ARCH} $(SRCS) $(PGM) 66 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib66 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 67 67 68 68 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
c/src/lib/libbsp/m68k/efi332/startup/Makefile.in
r22544db9 r3a8915e 69 69 70 70 all: ${ARCH} $(SRCS) $(PGM) 71 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib72 $(INSTALL_CHANGE) $(srcdir)/linkcmds_ROM $(PROJECT_RELEASE)/lib73 $(INSTALL_CHANGE) ${ARCH}/except_vect_332_ROM.o $(PROJECT_RELEASE)/lib71 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 72 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds_ROM $(PROJECT_RELEASE)/lib 73 $(INSTALL_CHANGE) -m 644 ${ARCH}/except_vect_332_ROM.o $(PROJECT_RELEASE)/lib 74 74 75 75 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/m68k/efi68k/startup/Makefile.in
r22544db9 r3a8915e 64 64 65 65 all: ${ARCH} $(SRCS) $(PGM) 66 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib66 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 67 67 68 68 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/m68k/gen68302/startup/Makefile.in
r22544db9 r3a8915e 64 64 65 65 all: ${ARCH} $(SRCS) $(PGM) 66 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib66 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 67 67 68 68 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/m68k/gen68340/startup/Makefile.in
r22544db9 r3a8915e 64 64 65 65 all: ${ARCH} $(SRCS) $(PGM) 66 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib66 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 67 67 68 68 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/m68k/gen68360/startup/Makefile.in
r22544db9 r3a8915e 65 65 66 66 all: ${ARCH} $(SRCS) $(PGM) 67 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(srcdir)/linkcmds.prom $(PROJECT_RELEASE)/lib67 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(srcdir)/linkcmds.prom $(PROJECT_RELEASE)/lib 68 68 69 69 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/m68k/idp/startup/Makefile.in
r22544db9 r3a8915e 64 64 65 65 all: ${ARCH} $(SRCS) $(PGM) 66 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib66 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 67 67 68 68 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/m68k/mvme136/startup/Makefile.in
r22544db9 r3a8915e 64 64 65 65 all: ${ARCH} $(SRCS) $(PGM) 66 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib66 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 67 67 68 68 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/m68k/mvme147/startup/Makefile.in
r22544db9 r3a8915e 64 64 65 65 all: ${ARCH} $(SRCS) $(PGM) 66 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib66 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 67 67 68 68 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/m68k/mvme147s/startup/Makefile.in
r22544db9 r3a8915e 65 65 66 66 all: ${ARCH} $(SRCS) $(PGM) 67 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib67 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 68 68 69 69 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/m68k/mvme162/startup/Makefile.in
r22544db9 r3a8915e 64 64 65 65 all: ${ARCH} $(SRCS) $(PGM) 66 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib66 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 67 67 68 68 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/m68k/mvme167/startup/Makefile.in
r22544db9 r3a8915e 66 66 67 67 all: ${ARCH} $(SRCS) $(PGM) 68 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib69 $(INSTALL_CHANGE) $(srcdir)/elflinkcmds $(PROJECT_RELEASE)/lib68 $(INSTALL_CHANGE) -m644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 69 $(INSTALL_CHANGE) -m644 $(srcdir)/elflinkcmds $(PROJECT_RELEASE)/lib 70 70 71 71 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
c/src/lib/libbsp/m68k/ods68302/startup/Makefile.in
r22544db9 r3a8915e 69 69 70 70 all: ${ARCH} $(SRCS) $(PGM) 71 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(srcdir)/rom $(srcdir)/debugger $(PROJECT_RELEASE)/lib71 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(srcdir)/rom $(srcdir)/debugger $(PROJECT_RELEASE)/lib 72 72 73 73 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/mips64orion/p4000/startup/Makefile.in
r22544db9 r3a8915e 69 69 70 70 all: ${ARCH} $(SRCS) $(PGM) 71 $(INSTALL_CHANGE) $(srcdir)/ghlinkcmds $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib71 $(INSTALL_CHANGE) -m 644 $(srcdir)/ghlinkcmds $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 72 72 73 73 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/no_cpu/no_bsp/startup/Makefile.in
r22544db9 r3a8915e 72 72 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile 73 73 install: all 74 $(INSTALL_CHANGE) linkcmds $(PROJECT_RELEASE)/lib74 $(INSTALL_CHANGE) -m 644 linkcmds $(PROJECT_RELEASE)/lib 75 75 76 76 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
c/src/lib/libbsp/powerpc/dmv177/startup/Makefile.in
r22544db9 r3a8915e 69 69 70 70 all: ${ARCH} $(SRCS) $(PGM) 71 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib71 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 72 72 73 73 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
c/src/lib/libbsp/powerpc/eth_comm/startup/Makefile.in
r22544db9 r3a8915e 69 69 70 70 all: ${ARCH} $(SRCS) $(PGM) 71 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib71 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 72 72 73 73 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/powerpc/helas403/startup/Makefile.in
r22544db9 r3a8915e 64 64 65 65 all: ${ARCH} $(SRCS) $(PGM) 66 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib66 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 67 67 68 68 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/powerpc/mcp750/startup/Makefile.in
r22544db9 r3a8915e 65 65 all: ${ARCH} $(SRCS) $(OBJS) 66 66 $(INSTALL_VARIANT) -m 755 ${PGM} $(PROJECT_RELEASE)/lib 67 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib67 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 68 68 69 69 $(PROJECT_RELEASE)/lib/libbsp.a: -
c/src/lib/libbsp/powerpc/motorola_powerpc/startup/Makefile.in
r22544db9 r3a8915e 65 65 all: ${ARCH} $(SRCS) $(OBJS) 66 66 $(INSTALL_VARIANT) -m 755 ${PGM} $(PROJECT_RELEASE)/lib 67 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib67 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 68 68 69 69 $(PROJECT_RELEASE)/lib/libbsp.a: -
c/src/lib/libbsp/powerpc/papyrus/startup/Makefile.in
r22544db9 r3a8915e 64 64 65 65 all: ${ARCH} $(SRCS) $(PGM) 66 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib66 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 67 67 68 68 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/powerpc/ppcn_60x/startup/Makefile.in
r22544db9 r3a8915e 73 73 74 74 all: ${ARCH} $(SRCS) $(PGM) 75 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib75 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 76 76 77 77 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
c/src/lib/libbsp/powerpc/psim/startup/Makefile.in
r22544db9 r3a8915e 69 69 70 70 all: ${ARCH} $(SRCS) $(PGM) 71 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib72 $(INSTALL_CHANGE) $(srcdir)/device-tree $(PROJECT_RELEASE)/lib71 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 72 $(INSTALL_CHANGE) -m 644 $(srcdir)/device-tree $(PROJECT_RELEASE)/lib 73 73 74 74 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
c/src/lib/libbsp/sh/gensh1/start/Makefile.in
r22544db9 r3a8915e 64 64 65 65 all: ${ARCH} $(SRCS) $(OBJS) $(PGM) 66 $(INSTALL_VARIANT) -m 755 ${PGMS} $(PROJECT_RELEASE)/lib66 @$(INSTALL_VARIANT) -m 755 ${PGMS} $(PROJECT_RELEASE)/lib 67 67 68 68 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
c/src/lib/libbsp/sh/gensh1/startup/Makefile.in
r22544db9 r3a8915e 69 69 70 70 all: ${ARCH} $(SRCS) $(PGM) 71 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib71 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 72 72 73 73 # the .rel file built here will be put into libbsp.a by ../wrapup/Makefile -
c/src/lib/libbsp/sparc/erc32/startup/Makefile.in
r22544db9 r3a8915e 71 71 72 72 all: ${ARCH} $(SRCS) $(PGM) 73 $(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib73 $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib 74 74 75 75 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
c/src/lib/libmisc/wrapup/Makefile.in
r22544db9 r3a8915e 45 45 46 46 all: ${ARCH} $(SRCS) $(LIB) 47 $(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib47 @$(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib 48 48 49 49 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
c/src/lib/start/sh/Makefile.in
r22544db9 r3a8915e 64 64 65 65 all: ${ARCH} $(SRCS) $(OBJS) $(PGM) 66 $(INSTALL_VARIANT) -m 755 ${PGMS} $(PROJECT_RELEASE)/lib66 @$(INSTALL_VARIANT) -m 755 ${PGMS} $(PROJECT_RELEASE)/lib 67 67 68 68 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
c/src/libmisc/wrapup/Makefile.in
r22544db9 r3a8915e 45 45 46 46 all: ${ARCH} $(SRCS) $(LIB) 47 $(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib47 @$(INSTALL_VARIANT) -m 644 $(LIB) $(PROJECT_RELEASE)/lib 48 48 49 49 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
c/src/make/Makefile.am
r22544db9 r3a8915e 35 35 sed -e 's%\$$(RTEMS_BSP)%\@RTEMS_BSP\@%g' < $< >$@ 36 36 37 $(srcdir)/Makefile.inc.in: $(top_srcdir)/@RTEMS_TOPdir@/make/Templates/Makefile.inc.in38 echo "RTEMS_BSP = @""RTEMS_BSP@" > $@39 echo "" >> $@40 cat $< >> $@41 42 37 $(srcdir)/host.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/host.cfg.in 43 38 cp $< $@ -
c/src/make/Makefile.in
r22544db9 r3a8915e 88 88 CXX_FOR_TARGET = @CXX_FOR_TARGET@ 89 89 GCCSED = @GCCSED@ 90 HAS_CPLUSPLUS = @HAS_CPLUSPLUS@ 90 91 HAS_MP = @HAS_MP@ 92 HAS_NETWORKING = @HAS_NETWORKING@ 93 HAS_POSIX_API = @HAS_POSIX_API@ 91 94 HAS_RDBG = @HAS_RDBG@ 92 95 INSTALL_CHANGE = @INSTALL_CHANGE@ … … 482 485 @MAINTAINER_MODE_TRUE@ sed -e 's%\$$(RTEMS_BSP)%\@RTEMS_BSP\@%g' < $< >$@ 483 486 484 @MAINTAINER_MODE_TRUE@$(srcdir)/Makefile.inc.in: $(top_srcdir)/@RTEMS_TOPdir@/make/Templates/Makefile.inc.in485 @MAINTAINER_MODE_TRUE@ echo "RTEMS_BSP = @""RTEMS_BSP@" > $@486 @MAINTAINER_MODE_TRUE@ echo "" >> $@487 @MAINTAINER_MODE_TRUE@ cat $< >> $@488 489 487 @MAINTAINER_MODE_TRUE@$(srcdir)/host.cfg.in: $(top_srcdir)/@RTEMS_TOPdir@/make/host.cfg.in 490 488 @MAINTAINER_MODE_TRUE@ cp $< $@ -
c/src/make/Makefile.inc.in
r22544db9 r3a8915e 1 RTEMS_BSP = @RTEMS_BSP@2 3 1 # 4 # 5 # Target specific settings. To be included in application Makefiles. 2 # BSP specific settings. To be included in application Makefiles 6 3 # 7 4 8 5 prefix = @prefix@ 9 6 10 CC_FOR_TARGET = @ program_prefix@gcc11 AS_FOR_TARGET = @ program_prefix@as12 AR_FOR_TARGET = @ program_prefix@ar13 NM_FOR_TARGET = @ program_prefix@nm14 LD_FOR_TARGET = @ program_prefix@ld15 SIZE_FOR_TARGET = @ program_prefix@size16 OBJCOPY_FOR_TARGET = @ program_prefix@objcopy7 CC_FOR_TARGET = @CC_FOR_TARGET@ 8 AS_FOR_TARGET = @AS_FOR_TARGET@ 9 AR_FOR_TARGET = @AR_FOR_TARGET@ 10 NM_FOR_TARGET = @NM_FOR_TARGET@ 11 LD_FOR_TARGET = @LD_FOR_TARGET@ 12 SIZE_FOR_TARGET = @SIZE_FOR_TARGET@ 13 OBJCOPY_FOR_TARGET = @OBJCOPY_FOR_TARGET@ 17 14 18 15 CC= $(CC_FOR_TARGET) -
c/src/make/Templates/Makefile.in
r22544db9 r3a8915e 87 87 CXX_FOR_TARGET = @CXX_FOR_TARGET@ 88 88 GCCSED = @GCCSED@ 89 HAS_CPLUSPLUS = @HAS_CPLUSPLUS@ 89 90 HAS_MP = @HAS_MP@ 91 HAS_NETWORKING = @HAS_NETWORKING@ 92 HAS_POSIX_API = @HAS_POSIX_API@ 90 93 HAS_RDBG = @HAS_RDBG@ 91 94 INSTALL_CHANGE = @INSTALL_CHANGE@ -
c/src/make/aclocal.m4
r22544db9 r3a8915e 938 938 ])dnl 939 939 940 dnl $Id$ 940 dnl 941 dnl $Id$ 942 dnl 941 943 942 944 AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING, … … 955 957 else 956 958 rtems_cv_HAS_MP="no"; 957 fi 958 ]) 959 fi]) 959 960 if test "$rtems_cv_HAS_MP" = "yes"; then 960 961 HAS_MP="yes" … … 965 966 ]) 966 967 968 dnl $Id$ 969 dnl 967 970 AC_DEFUN(RTEMS_CHECK_RDBG, 968 971 [dnl … … 982 985 ]) 983 986 987 dnl $Id$ 988 dnl 989 AC_DEFUN(RTEMS_CHECK_POSIX_API, 990 [dnl 991 AC_REQUIRE([RTEMS_CHECK_CPU])dnl 992 AC_CACHE_CHECK([whether BSP supports libposix], 993 rtems_cv_HAS_POSIX_API, 994 [dnl 995 case "$RTEMS_CPU" in 996 unix*) 997 rtems_cv_HAS_POSIX_API="no" 998 ;; 999 *) 1000 if test "${RTEMS_HAS_POSIX_API}" = "yes"; then 1001 rtems_cv_HAS_POSIX_API="yes"; 1002 else 1003 rtems_cv_HAS_POSIX_API="disabled"; 1004 fi 1005 ;; 1006 esac]) 1007 if test "$rtems_cv_HAS_POSIX_API" = "yes"; then 1008 HAS_POSIX_API="yes"; 1009 else 1010 HAS_POSIX_API="no"; 1011 fi 1012 AC_SUBST(HAS_POSIX_API)dnl 1013 ]) 1014 1015 dnl $Id$ 1016 dnl 1017 AC_DEFUN(RTEMS_CHECK_CXX, 1018 [dnl 1019 AC_REQUIRE([RTEMS_CHECK_CPU])dnl 1020 AC_REQUIRE([RTEMS_PROG_CXX_FOR_TARGET])dnl 1021 AC_CACHE_VAL(rtems_cv_HAS_CPLUSPLUS, 1022 [dnl 1023 if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then 1024 if test -n "$CXX_FOR_TARGET"; then 1025 rtems_cv_HAS_CPLUSPLUS="yes"; 1026 else 1027 rtems_cv_HAS_CPLUSPLUS="no"; 1028 fi 1029 else 1030 rtems_cv_HAS_CPLUSPLUS="no"; 1031 fi 1032 ])dnl 1033 HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS"; 1034 AC_SUBST(HAS_CPLUSPLUS)dnl 1035 ]) 1036 1037 dnl $Id$ 1038 dnl 1039 AC_DEFUN(RTEMS_CHECK_NETWORKING, 1040 [dnl 1041 AC_REQUIRE([RTEMS_CHECK_CPU])dnl 1042 AC_CACHE_VAL(rtems_cv_HAS_NETWORKING, 1043 [dnl 1044 if test "$RTEMS_HAS_NETWORKING" = "yes"; then 1045 rtems_cv_HAS_NETWORKING="yes"; 1046 else 1047 rtems_cv_HAS_NETWORKING="no"; 1048 fi 1049 ])dnl 1050 HAS_NETWORKING="$rtems_cv_HAS_NETWORKING"; 1051 AC_SUBST(HAS_NETWORKING)dnl 1052 ]) 1053 -
c/src/make/bsp.cfg.in
r22544db9 r3a8915e 1 ## BSP configuration flags for BSP "@RTEMS_BSP@" 2 1 3 ## 2 4 ## Does this BSP support multiprocessing ? … … 8 10 ## 9 11 HAS_RDBG = @HAS_RDBG@ 12 13 ## 14 ## Does this BSP support RTEMS's posix API ? 15 ## 16 HAS_POSIX_API = @HAS_POSIX_API@ 17 18 ## 19 ## Does this BSP support RTEMS's CXX API ? 20 ## 21 HAS_CPLUSPLUS = @HAS_CPLUSPLUS@ 22 23 ## 24 ## Does this BSP support RTEMS's networking ? 25 ## 26 HAS_NETWORKING = @HAS_NETWORKING@ -
c/src/make/compilers/Makefile.in
r22544db9 r3a8915e 87 87 CXX_FOR_TARGET = @CXX_FOR_TARGET@ 88 88 GCCSED = @GCCSED@ 89 HAS_CPLUSPLUS = @HAS_CPLUSPLUS@ 89 90 HAS_MP = @HAS_MP@ 91 HAS_NETWORKING = @HAS_NETWORKING@ 92 HAS_POSIX_API = @HAS_POSIX_API@ 90 93 HAS_RDBG = @HAS_RDBG@ 91 94 INSTALL_CHANGE = @INSTALL_CHANGE@ -
c/src/make/compilers/gcc-target-default.cfg
r22544db9 r3a8915e 88 88 # This requires that at least the GNU C++ compiler and libg++ be installed. 89 89 ifeq ($(RTEMS_HAS_CPLUSPLUS),yes) 90 HAS_CPLUSPLUS=yes91 90 CPLUS_LD_LIBS += $(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA) 92 else93 HAS_CPLUSPLUS=no94 91 endif 95 92 … … 288 285 $(CONSTRUCTOR) \ 289 286 $(OBJS) \ 290 $(MANAGERS_NOT_WANTED:%=$(PROJECT_RELEASE)/lib/no-%$(LIB_VARIANT).rel) \ 291 $(PROJECT_RELEASE)/lib/libtest$(LIBSUFFIX_VA) 287 $(MANAGERS_NOT_WANTED:%=$(PROJECT_RELEASE)/lib/no-%$(LIB_VARIANT).rel) 292 288 293 289 LINK_FILES =\ … … 296 292 $(OBJS) \ 297 293 $(MANAGERS_NOT_WANTED:%=$(PROJECT_RELEASE)/lib/no-%$(LIB_VARIANT).rel) \ 298 $(PROJECT_RELEASE)/lib/libtest$(LIBSUFFIX_VA) \299 294 $(PROJECT_RELEASE)/lib/librtemsall$(LIBSUFFIX_VA) 300 295 -
c/src/make/configure
r22544db9 r3a8915e 2944 2944 rtems_cv_HAS_MP="no"; 2945 2945 fi 2946 2947 2946 fi 2948 2947 … … 2956 2955 2957 2956 echo $ac_n "checking whether BSP supports librdbg""... $ac_c" 1>&6 2958 echo "configure:295 9: checking whether BSP supports librdbg" >&52957 echo "configure:2958: checking whether BSP supports librdbg" >&5 2959 2958 if eval "test \"`echo '$''{'rtems_cv_HAS_RDBG'+set}'`\" = set"; then 2960 2959 echo $ac_n "(cached) $ac_c" 1>&6 … … 2972 2971 HAS_RDBG="$rtems_cv_HAS_RDBG" 2973 2972 2973 2974 echo $ac_n "checking whether BSP supports libposix""... $ac_c" 1>&6 2975 echo "configure:2976: checking whether BSP supports libposix" >&5 2976 if eval "test \"`echo '$''{'rtems_cv_HAS_POSIX_API'+set}'`\" = set"; then 2977 echo $ac_n "(cached) $ac_c" 1>&6 2978 else 2979 case "$RTEMS_CPU" in 2980 unix*) 2981 rtems_cv_HAS_POSIX_API="no" 2982 ;; 2983 *) 2984 if test "${RTEMS_HAS_POSIX_API}" = "yes"; then 2985 rtems_cv_HAS_POSIX_API="yes"; 2986 else 2987 rtems_cv_HAS_POSIX_API="disabled"; 2988 fi 2989 ;; 2990 esac 2991 fi 2992 2993 echo "$ac_t""$rtems_cv_HAS_POSIX_API" 1>&6 2994 if test "$rtems_cv_HAS_POSIX_API" = "yes"; then 2995 HAS_POSIX_API="yes"; 2996 else 2997 HAS_POSIX_API="no"; 2998 fi 2999 3000 if eval "test \"`echo '$''{'rtems_cv_HAS_CPLUSPLUS'+set}'`\" = set"; then 3001 echo $ac_n "(cached) $ac_c" 1>&6 3002 else 3003 if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then 3004 if test -n "$CXX_FOR_TARGET"; then 3005 rtems_cv_HAS_CPLUSPLUS="yes"; 3006 else 3007 rtems_cv_HAS_CPLUSPLUS="no"; 3008 fi 3009 else 3010 rtems_cv_HAS_CPLUSPLUS="no"; 3011 fi 3012 3013 fi 3014 HAS_CPLUSPLUS="$rtems_cv_HAS_CPLUSPLUS"; 3015 3016 if eval "test \"`echo '$''{'rtems_cv_HAS_NETWORKING'+set}'`\" = set"; then 3017 echo $ac_n "(cached) $ac_c" 1>&6 3018 else 3019 if test "$RTEMS_HAS_NETWORKING" = "yes"; then 3020 rtems_cv_HAS_NETWORKING="yes"; 3021 else 3022 rtems_cv_HAS_NETWORKING="no"; 3023 fi 3024 3025 fi 3026 HAS_NETWORKING="$rtems_cv_HAS_NETWORKING"; 2974 3027 2975 3028 … … 3244 3297 s%@HAS_MP@%$HAS_MP%g 3245 3298 s%@HAS_RDBG@%$HAS_RDBG%g 3299 s%@HAS_POSIX_API@%$HAS_POSIX_API%g 3300 s%@HAS_CPLUSPLUS@%$HAS_CPLUSPLUS%g 3301 s%@HAS_NETWORKING@%$HAS_NETWORKING%g 3246 3302 s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g 3247 3303 s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g -
c/src/make/configure.in
r22544db9 r3a8915e 74 74 RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) 75 75 RTEMS_CHECK_RDBG(RTEMS_BSP) 76 RTEMS_CHECK_POSIX_API(RTEMS_BSP) 77 RTEMS_CHECK_CXX(RTEMS_BSP) 78 RTEMS_CHECK_NETWORKING(RTEMS_BSP) 76 79 77 80 AC_SUBST(rtems_cv_prog_cc_cross) -
c/src/make/custom/Makefile.in
r22544db9 r3a8915e 87 87 CXX_FOR_TARGET = @CXX_FOR_TARGET@ 88 88 GCCSED = @GCCSED@ 89 HAS_CPLUSPLUS = @HAS_CPLUSPLUS@ 89 90 HAS_MP = @HAS_MP@ 91 HAS_NETWORKING = @HAS_NETWORKING@ 92 HAS_POSIX_API = @HAS_POSIX_API@ 90 93 HAS_RDBG = @HAS_RDBG@ 91 94 INSTALL_CHANGE = @INSTALL_CHANGE@ -
c/src/make/custom/default.cfg.in
r22544db9 r3a8915e 41 41 RTEMS_BSP_SPECS = $(PROJECT_ROOT)/@RTEMS_BSP@/lib/bsp_specs 42 42 43 ## LIBC support44 ## Specify the one you want here and fill in the blanks.45 ## Currently CYGNUS newlib is supported.46 ## NOTE: RTEMS libcsupport.a includes RTEMS versions of stuff like47 ## malloc, gettimeofday, etc.48 49 # Define this to yes if C++ is included in the development environment.50 # This requires that at least the GNU C++ compiler and libg++ be installed.51 ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)52 HAS_CPLUSPLUS=yes53 else54 HAS_CPLUSPLUS=no55 endif56 57 # Define this to yes if this target wants the TCP/IP stack58 ifeq ($(RTEMS_HAS_NETWORKING),yes)59 HAS_NETWORKING=yes60 else61 HAS_NETWORKING=no62 endif63 64 # Define this to yes if this target wants the posix api65 ifeq ($(RTEMS_HAS_POSIX_API),yes)66 HAS_POSIX_API=yes67 else68 HAS_POSIX_API=no69 endif70 71 43 # Base name of start file 72 44 START_BASE=start -
c/src/make/host.cfg.in
r22544db9 r3a8915e 49 49 50 50 # 51 # RCS support52 #53 RCS_CLEAN=$(PROJECT_BIN)/rcs-clean54 55 #56 51 # Rule to install a shell script with the proper shell to run it. 57 52 # -
c/src/tests/Makefile.in
r22544db9 r3a8915e 1 # Makefile.in generated automatically by automake 1.4 from Makefile.am 2 3 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. 4 # This Makefile.in is free software; the Free Software Foundation 5 # gives unlimited permission to copy and/or distribute it, 6 # with or without modifications, as long as this notice is preserved. 7 8 # This program is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 11 # PARTICULAR PURPOSE. 12 1 13 # 2 # 14 # $Id$ 3 15 # 4 16 5 @SET_MAKE@ 17 18 19 20 SHELL = @SHELL@ 21 6 22 srcdir = @srcdir@ 7 23 top_srcdir = @top_srcdir@ 24 VPATH = @srcdir@ 25 prefix = @prefix@ 26 exec_prefix = @exec_prefix@ 27 28 bindir = @bindir@ 29 sbindir = @sbindir@ 30 libexecdir = @libexecdir@ 31 datadir = @datadir@ 32 sysconfdir = @sysconfdir@ 33 sharedstatedir = @sharedstatedir@ 34 localstatedir = @localstatedir@ 35 libdir = @libdir@ 36 infodir = @infodir@ 37 mandir = @mandir@ 38 includedir = @includedir@ 39 oldincludedir = /usr/include 40 41 DESTDIR = 42 43 pkgdatadir = $(datadir)/@PACKAGE@ 44 pkglibdir = $(libdir)/@PACKAGE@ 45 pkgincludedir = $(includedir)/@PACKAGE@ 46 8 47 top_builddir = . 9 48 49 ACLOCAL = @ACLOCAL@ 50 AUTOCONF = @AUTOCONF@ 51 AUTOMAKE = @AUTOMAKE@ 52 AUTOHEADER = @AUTOHEADER@ 53 54 INSTALL = @INSTALL@ 55 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) 56 INSTALL_DATA = @INSTALL_DATA@ 57 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 58 transform = @program_transform_name@ 59 60 NORMAL_INSTALL = : 61 PRE_INSTALL = : 62 POST_INSTALL = : 63 NORMAL_UNINSTALL = : 64 PRE_UNINSTALL = : 65 POST_UNINSTALL = : 66 build_alias = @build_alias@ 67 build_triplet = @build@ 68 host_alias = @host_alias@ 69 host_triplet = @host@ 70 target_alias = @target_alias@ 71 target_triplet = @target@ 72 BARE_CPU_CFLAGS = @BARE_CPU_CFLAGS@ 73 BARE_CPU_MODEL = @BARE_CPU_MODEL@ 74 CC = @CC@ 75 CC_FOR_TARGET = @CC_FOR_TARGET@ 76 CPP = @CPP@ 77 CXX = @CXX@ 78 CXXCPP = @CXXCPP@ 79 CXX_FOR_TARGET = @CXX_FOR_TARGET@ 80 GCCSED = @GCCSED@ 81 HAS_MP = @HAS_MP@ 82 HAS_POSIX_API = @HAS_POSIX_API@ 83 INSTALL_CHANGE = @INSTALL_CHANGE@ 84 MAINT = @MAINT@ 85 MAKEINFO = @MAKEINFO@ 86 PACKAGE = @PACKAGE@ 87 PACKHEX = @PACKHEX@ 88 PROJECT_ROOT = @PROJECT_ROOT@ 89 RTEMS_BSP = @RTEMS_BSP@ 90 RTEMS_CPU = @RTEMS_CPU@ 91 RTEMS_HAS_MULTIPROCESSING = @RTEMS_HAS_MULTIPROCESSING@ 92 RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@ 93 RTEMS_HAS_POSIX_API = @RTEMS_HAS_POSIX_API@ 94 RTEMS_HOST = @RTEMS_HOST@ 95 RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@ 10 96 RTEMS_ROOT = @RTEMS_ROOT@ 11 PROJECT_ROOT = @PROJECT_ROOT@ 12 13 VPATH = @srcdir@ 14 15 include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg 16 include $(RTEMS_ROOT)/make/directory.cfg 17 18 INSTALL_CHANGE = @INSTALL_CHANGE@ 19 mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs 20 21 INSTALLDIRS = $(PROJECT_RELEASE)/tests/screens/sptests \ 22 $(PROJECT_RELEASE)/tests/screens/mptests \ 23 $(PROJECT_RELEASE)/tests/screens/psxtests \ 24 $(PROJECT_RELEASE)/tests/screens/mptests/node1 \ 25 $(PROJECT_RELEASE)/tests/screens/mptests/node2 \ 26 $(PROJECT_RELEASE)/samples 27 28 $(INSTALLDIRS): 29 @$(mkinstalldirs) $(INSTALLDIRS) 30 31 all: README 32 33 # mptests are the multiprocessing test suite 34 # We only build them if HAS_MP was defined 35 MP_TESTS_yes_V = mptests 36 MP_TESTS = $(MP_TESTS_$(HAS_MP)_V) 37 38 # psxtests are the POSIX API test suite 39 # We only build them if HAS_POSIX_API was defined 40 POSIX_TESTS_yes_V = psxtests 41 POSIX_TESTS = $(POSIX_TESTS_$(HAS_POSIX_API)_V) 42 43 # wildcard on this lets ALL test suites be optional 44 SUB_DIRS = $(wildcard tools support samples libtests sptests $(MP_TESTS) \ 45 $(POSIX_TESTS) tmtests) 46 47 preinstall: $(INSTALLDIRS) 48 49 CLOBBER_ADDITIONS += config.log config.cache 50 51 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 97 RTEMS_TOPdir = @RTEMS_TOPdir@ 98 RTEMS_USE_MACROS = @RTEMS_USE_MACROS@ 99 VERSION = @VERSION@ 100 101 AUTOMAKE_OPTIONS = foreign 1.4 102 ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal 103 104 SUBDIRS = support @subdirs@ 105 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 106 mkinstalldirs = $(SHELL) $(top_srcdir)/../../../mkinstalldirs 107 CONFIG_CLEAN_FILES = 108 DIST_COMMON = README Makefile.am Makefile.in aclocal.m4 configure \ 109 configure.in 110 111 112 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) 113 114 TAR = tar 115 GZIP_ENV = --best 116 all: all-redirect 117 .SUFFIXES: 118 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../automake/subdirs.am $(top_srcdir)/../../../automake/local.am 119 cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile 120 121 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) 52 122 cd $(top_builddir) \ 53 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status 123 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status 124 125 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in 126 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 127 128 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 129 $(SHELL) ./config.status --recheck 130 $(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) 131 cd $(srcdir) && $(AUTOCONF) 132 133 # This directory's subdirectories are mostly independent; you can cd 134 # into them and run `make' without going through this Makefile. 135 # To change the values of `make' variables: instead of editing Makefiles, 136 # (1) if the variable is set in `config.status', edit `config.status' 137 # (which will cause the Makefiles to be regenerated when you run `make'); 138 # (2) otherwise, pass the desired values on the `make' command line. 139 140 @SET_MAKE@ 141 142 all-recursive install-data-recursive install-exec-recursive \ 143 installdirs-recursive install-recursive uninstall-recursive \ 144 check-recursive installcheck-recursive info-recursive dvi-recursive: 145 @set fnord $(MAKEFLAGS); amf=$$2; \ 146 dot_seen=no; \ 147 target=`echo $@ | sed s/-recursive//`; \ 148 list='$(SUBDIRS)'; for subdir in $$list; do \ 149 echo "Making $$target in $$subdir"; \ 150 if test "$$subdir" = "."; then \ 151 dot_seen=yes; \ 152 local_target="$$target-am"; \ 153 else \ 154 local_target="$$target"; \ 155 fi; \ 156 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 157 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 158 done; \ 159 if test "$$dot_seen" = "no"; then \ 160 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 161 fi; test -z "$$fail" 162 163 mostlyclean-recursive clean-recursive distclean-recursive \ 164 maintainer-clean-recursive: 165 @set fnord $(MAKEFLAGS); amf=$$2; \ 166 dot_seen=no; \ 167 rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ 168 rev="$$subdir $$rev"; \ 169 test "$$subdir" = "." && dot_seen=yes; \ 170 done; \ 171 test "$$dot_seen" = "no" && rev=". $$rev"; \ 172 target=`echo $@ | sed s/-recursive//`; \ 173 for subdir in $$rev; do \ 174 echo "Making $$target in $$subdir"; \ 175 if test "$$subdir" = "."; then \ 176 local_target="$$target-am"; \ 177 else \ 178 local_target="$$target"; \ 179 fi; \ 180 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 181 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 182 done && test -z "$$fail" 183 tags-recursive: 184 list='$(SUBDIRS)'; for subdir in $$list; do \ 185 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ 186 done 187 188 tags: TAGS 189 190 ID: $(HEADERS) $(SOURCES) $(LISP) 191 list='$(SOURCES) $(HEADERS)'; \ 192 unique=`for i in $$list; do echo $$i; done | \ 193 awk ' { files[$$0] = 1; } \ 194 END { for (i in files) print i; }'`; \ 195 here=`pwd` && cd $(srcdir) \ 196 && mkid -f$$here/ID $$unique $(LISP) 197 198 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) 199 tags=; \ 200 here=`pwd`; \ 201 list='$(SUBDIRS)'; for subdir in $$list; do \ 202 if test "$$subdir" = .; then :; else \ 203 test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ 204 fi; \ 205 done; \ 206 list='$(SOURCES) $(HEADERS)'; \ 207 unique=`for i in $$list; do echo $$i; done | \ 208 awk ' { files[$$0] = 1; } \ 209 END { for (i in files) print i; }'`; \ 210 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ 211 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) 212 213 mostlyclean-tags: 214 215 clean-tags: 216 217 distclean-tags: 218 -rm -f TAGS ID 219 220 maintainer-clean-tags: 221 222 distdir = $(PACKAGE)-$(VERSION) 223 top_distdir = $(distdir) 224 225 # This target untars the dist file and tries a VPATH configuration. Then 226 # it guarantees that the distribution is self-contained by making another 227 # tarfile. 228 distcheck: dist 229 -rm -rf $(distdir) 230 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz 231 mkdir $(distdir)/=build 232 mkdir $(distdir)/=inst 233 dc_install_base=`cd $(distdir)/=inst && pwd`; \ 234 cd $(distdir)/=build \ 235 && ../configure --srcdir=.. --prefix=$$dc_install_base \ 236 && $(MAKE) $(AM_MAKEFLAGS) \ 237 && $(MAKE) $(AM_MAKEFLAGS) dvi \ 238 && $(MAKE) $(AM_MAKEFLAGS) check \ 239 && $(MAKE) $(AM_MAKEFLAGS) install \ 240 && $(MAKE) $(AM_MAKEFLAGS) installcheck \ 241 && $(MAKE) $(AM_MAKEFLAGS) dist 242 -rm -rf $(distdir) 243 @banner="$(distdir).tar.gz is ready for distribution"; \ 244 dashes=`echo "$$banner" | sed s/./=/g`; \ 245 echo "$$dashes"; \ 246 echo "$$banner"; \ 247 echo "$$dashes" 248 dist: distdir 249 -chmod -R a+r $(distdir) 250 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) 251 -rm -rf $(distdir) 252 dist-all: distdir 253 -chmod -R a+r $(distdir) 254 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) 255 -rm -rf $(distdir) 256 distdir: $(DISTFILES) 257 -rm -rf $(distdir) 258 mkdir $(distdir) 259 -chmod 777 $(distdir) 260 here=`cd $(top_builddir) && pwd`; \ 261 top_distdir=`cd $(distdir) && pwd`; \ 262 distdir=`cd $(distdir) && pwd`; \ 263 cd $(top_srcdir) \ 264 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile 265 @for file in $(DISTFILES); do \ 266 d=$(srcdir); \ 267 if test -d $$d/$$file; then \ 268 cp -pr $$/$$file $(distdir)/$$file; \ 269 else \ 270 test -f $(distdir)/$$file \ 271 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ 272 || cp -p $$d/$$file $(distdir)/$$file || :; \ 273 fi; \ 274 done 275 for subdir in $(SUBDIRS); do \ 276 if test "$$subdir" = .; then :; else \ 277 test -d $(distdir)/$$subdir \ 278 || mkdir $(distdir)/$$subdir \ 279 || exit 1; \ 280 chmod 777 $(distdir)/$$subdir; \ 281 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \ 282 || exit 1; \ 283 fi; \ 284 done 285 info-am: 286 info: info-recursive 287 dvi-am: 288 dvi: dvi-recursive 289 check-am: all-am 290 check: check-recursive 291 installcheck-am: 292 installcheck: installcheck-recursive 293 install-exec-am: 294 install-exec: install-exec-recursive 295 296 install-data-am: 297 install-data: install-data-recursive 298 299 install-am: all-am 300 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 301 install: install-recursive 302 uninstall-am: 303 uninstall: uninstall-recursive 304 all-am: Makefile 305 all-redirect: all-recursive 306 install-strip: 307 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install 308 installdirs: installdirs-recursive 309 installdirs-am: 310 311 312 mostlyclean-generic: 313 314 clean-generic: 315 316 distclean-generic: 317 -rm -f Makefile $(CONFIG_CLEAN_FILES) 318 -rm -f config.cache config.log stamp-h stamp-h[0-9]* 319 320 maintainer-clean-generic: 321 mostlyclean-am: mostlyclean-tags mostlyclean-generic 322 323 mostlyclean: mostlyclean-recursive 324 325 clean-am: clean-tags clean-generic mostlyclean-am 326 327 clean: clean-recursive 328 329 distclean-am: distclean-tags distclean-generic clean-am 330 331 distclean: distclean-recursive 332 -rm -f config.status 333 334 maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \ 335 distclean-am 336 @echo "This command is intended for maintainers to use;" 337 @echo "it deletes files that may require special tools to rebuild." 338 339 maintainer-clean: maintainer-clean-recursive 340 -rm -f config.status 341 342 .PHONY: install-data-recursive uninstall-data-recursive \ 343 install-exec-recursive uninstall-exec-recursive installdirs-recursive \ 344 uninstalldirs-recursive all-recursive check-recursive \ 345 installcheck-recursive info-recursive dvi-recursive \ 346 mostlyclean-recursive distclean-recursive clean-recursive \ 347 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ 348 distclean-tags clean-tags maintainer-clean-tags distdir info-am info \ 349 dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ 350 install-exec install-data-am install-data install-am install \ 351 uninstall-am uninstall all-redirect all-am all installdirs-am \ 352 installdirs mostlyclean-generic distclean-generic clean-generic \ 353 maintainer-clean-generic clean mostlyclean distclean maintainer-clean 354 355 356 depend-recursive \ 357 preinstall-recursive \ 358 debug-recursive \ 359 profile-recursive: 360 @set fnord $(MAKEFLAGS); amf=$$2; \ 361 dot_seen=no; \ 362 target=`echo $@ | sed s/-recursive//`; \ 363 list='$(SUBDIRS)'; for subdir in $$list; do \ 364 echo "Making $$target in $$subdir"; \ 365 if test "$$subdir" = "."; then \ 366 dot_seen=yes; \ 367 local_target="$$target-am"; \ 368 else \ 369 local_target="$$target"; \ 370 fi; \ 371 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 372 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 373 done; \ 374 if test "$$dot_seen" = "no"; then \ 375 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 376 fi; test -z "$$fail" 377 378 debug: debug-recursive 379 .PHONY: debug-recursive 380 381 profile: profile-recursive 382 .PHONY: profile-recursive 383 384 preinstall: preinstall-recursive 385 .PHONY: preinstall-recursive 386 387 depend: depend-recursive 388 .PHONY: depend-recursive 389 390 debug-am: 391 debug: debug-am 392 .PHONY: debug debug-am 393 394 profile-am: 395 profile: profile-am 396 .PHONY: profile profile-am 397 398 preinstall-am: 399 preinstall: preinstall-am 400 .PHONY: preinstall preinstall-am 401 402 depend-am: 403 depend: depend-am 404 .PHONY: depend depend-am 405 406 # Tell versions [3.59,3.63) of GNU make to not export all variables. 407 # Otherwise a system limit (for SysV at least) may be exceeded. 408 .NOEXPORT: -
c/src/tests/aclocal.m4
r22544db9 r3a8915e 85 85 AC_MSG_RESULT($RTEMS_CPU) 86 86 ]) 87 88 # Do all the work for Automake. This macro actually does too much -- 89 # some checks are only needed if your package does certain things. 90 # But this isn't really a big deal. 91 92 # serial 1 93 94 dnl Usage: 95 dnl AM_INIT_AUTOMAKE(package,version, [no-define]) 96 97 AC_DEFUN(AM_INIT_AUTOMAKE, 98 [AC_REQUIRE([AC_PROG_INSTALL]) 99 PACKAGE=[$1] 100 AC_SUBST(PACKAGE) 101 VERSION=[$2] 102 AC_SUBST(VERSION) 103 dnl test to see if srcdir already configured 104 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 105 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 106 fi 107 ifelse([$3],, 108 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 109 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) 110 AC_REQUIRE([AM_SANITY_CHECK]) 111 AC_REQUIRE([AC_ARG_PROGRAM]) 112 dnl FIXME This is truly gross. 113 missing_dir=`cd $ac_aux_dir && pwd` 114 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) 115 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) 116 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) 117 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) 118 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) 119 AC_REQUIRE([AC_PROG_MAKE_SET])]) 120 121 # 122 # Check to make sure that the build environment is sane. 123 # 124 125 AC_DEFUN(AM_SANITY_CHECK, 126 [AC_MSG_CHECKING([whether build environment is sane]) 127 # Just in case 128 sleep 1 129 echo timestamp > conftestfile 130 # Do `set' in a subshell so we don't clobber the current shell's 131 # arguments. Must try -L first in case configure is actually a 132 # symlink; some systems play weird games with the mod time of symlinks 133 # (eg FreeBSD returns the mod time of the symlink's containing 134 # directory). 135 if ( 136 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 137 if test "[$]*" = "X"; then 138 # -L didn't work. 139 set X `ls -t $srcdir/configure conftestfile` 140 fi 141 if test "[$]*" != "X $srcdir/configure conftestfile" \ 142 && test "[$]*" != "X conftestfile $srcdir/configure"; then 143 144 # If neither matched, then we have a broken ls. This can happen 145 # if, for instance, CONFIG_SHELL is bash and it inherits a 146 # broken ls alias from the environment. This has actually 147 # happened. Such a system could not be considered "sane". 148 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 149 alias in your environment]) 150 fi 151 152 test "[$]2" = conftestfile 153 ) 154 then 155 # Ok. 156 : 157 else 158 AC_MSG_ERROR([newly created file is older than distributed files! 159 Check your system clock]) 160 fi 161 rm -f conftest* 162 AC_MSG_RESULT(yes)]) 163 164 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) 165 dnl The program must properly implement --version. 166 AC_DEFUN(AM_MISSING_PROG, 167 [AC_MSG_CHECKING(for working $2) 168 # Run test in a subshell; some versions of sh will print an error if 169 # an executable is not found, even if stderr is redirected. 170 # Redirect stdin to placate older versions of autoconf. Sigh. 171 if ($2 --version) < /dev/null > /dev/null 2>&1; then 172 $1=$2 173 AC_MSG_RESULT(found) 174 else 175 $1="$3/missing $2" 176 AC_MSG_RESULT(missing) 177 fi 178 AC_SUBST($1)]) 87 179 88 180 # Add --enable-maintainer-mode option to configure. … … 183 275 esac],[RTEMS_HAS_NETWORKING=yes]) 184 276 AC_SUBST(RTEMS_HAS_NETWORKING)dnl 185 ])186 187 dnl $Id$188 189 AC_DEFUN(RTEMS_ENABLE_RDBG,190 [191 AC_ARG_ENABLE(rdbg,192 [ --enable-rdbg enable remote debugger],193 [case "${enableval}" in194 yes) RTEMS_HAS_RDBG=yes ;;195 no) RTEMS_HAS_RDBG=no ;;196 *) AC_MSG_ERROR(bad value ${enableval} for enable-rdbg option) ;;197 esac],[RTEMS_HAS_RDBG=no])198 AC_SUBST(RTEMS_HAS_RDBG)dnl199 277 ]) 200 278 … … 756 834 ]) 757 835 758 759 dnl760 dnl $Id$761 dnl762 763 dnl check for i386 gas supporting 16 bit mode764 dnl - binutils 2.9.1.0.7 and higher765 766 AC_DEFUN(RTEMS_I386_GAS_CODE16,767 [ if test "${target_cpu}" = "i386"; then768 AC_CACHE_CHECK([for 16 bit mode assembler support],769 rtems_cv_prog_gas_code16,770 [cat > conftest.s << EOF771 .code16772 data32773 addr32774 lgdt 0775 EOF776 if AC_TRY_COMMAND($AS_FOR_TARGET -o conftest.o conftest.s); then777 rtems_cv_prog_gas_code16=yes778 else779 rtems_cv_prog_gas_code16=no780 fi])781 RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16"782 fi783 AC_SUBST(RTEMS_GAS_CODE16)784 ])785 786 787 dnl788 dnl $Id$789 dnl790 dnl Check for System V IPC calls used by Unix simulators791 dnl792 dnl 98/07/17 Dario Alcocer alcocer@netcom.com793 dnl Ralf Corsepius corsepiu@faw.uni-ulm.de794 dnl795 dnl Note: $host_os should probably *not* ever be used here to796 dnl determine if host supports System V IPC calls, since some797 dnl (e.g. FreeBSD 2.x) are configured by default to include only798 dnl a subset of the System V IPC calls. Therefore, to make sure799 dnl all of the required calls are found, test for each call explicitly.800 dnl801 dnl All of the calls use IPC_PRIVATE, so tests will not unintentionally802 dnl modify any existing key sets. See the man pages for semget, shmget,803 dnl msgget, semctl, shmctl and msgctl for details.804 805 AC_DEFUN(RTEMS_SYSV_SEM,806 [AC_REQUIRE([AC_PROG_CC])807 AC_REQUIRE([RTEMS_CANONICAL_HOST])808 AC_CACHE_CHECK(whether $RTEMS_HOST supports System V semaphores,809 rtems_cv_sysv_sem,810 [811 AC_TRY_RUN([812 #include <sys/types.h>813 #include <sys/ipc.h>814 #include <sys/sem.h>815 int main () {816 #if !defined(sun)817 union semun arg ;818 #else819 union semun {820 int val;821 struct semid_ds *buf;822 ushort *array;823 } arg;824 #endif825 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);826 if (id == -1)827 exit(1);828 arg.val = 0; /* avoid implicit type cast to union */829 if (semctl(id, 0, IPC_RMID, arg) == -1)830 exit(1);831 exit(0);832 }833 ],834 rtems_cv_sysv_sem="yes", rtems_cv_sysv_sem="no", :)835 ])836 ])837 838 AC_DEFUN(RTEMS_SYSV_SHM,839 [AC_REQUIRE([AC_PROG_CC])840 AC_REQUIRE([RTEMS_CANONICAL_HOST])841 AC_CACHE_CHECK(whether $RTEMS_HOST supports System V shared memory,842 rtems_cv_sysv_shm,843 [844 AC_TRY_RUN([845 #include <sys/types.h>846 #include <sys/ipc.h>847 #include <sys/shm.h>848 int main () {849 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);850 if (id == -1)851 exit(1);852 if (shmctl(id, IPC_RMID, 0) == -1)853 exit(1);854 exit(0);855 }856 ],857 rtems_cv_sysv_shm="yes", rtems_cv_sysv_shm="no", :)858 ])859 ])860 861 AC_DEFUN(RTEMS_SYSV_MSG,862 [AC_REQUIRE([AC_PROG_CC])863 AC_REQUIRE([RTEMS_CANONICAL_HOST])864 AC_CACHE_CHECK(whether $RTEMS_HOST supports System V messages,865 rtems_cv_sysv_msg,866 [867 AC_TRY_RUN([868 #include <sys/types.h>869 #include <sys/ipc.h>870 #include <sys/msg.h>871 int main () {872 int id=msgget(IPC_PRIVATE,IPC_CREAT|0400);873 if (id == -1)874 exit(1);875 if (msgctl(id, IPC_RMID, 0) == -1)876 exit(1);877 exit(0);878 }879 ],880 rtems_cv_sysv_msg="yes", rtems_cv_sysv_msg="no", :)881 ])882 ])883 884 AC_DEFUN(RTEMS_CHECK_SYSV_UNIX,885 [AC_REQUIRE([RTEMS_CANONICAL_HOST])886 if test "$RTEMS_CPU" = "unix" ; then887 RTEMS_SYSV_SEM888 if test "$rtems_cv_sysv_sem" != "yes" ; then889 AC_MSG_ERROR([System V semaphores don't work, required by simulator])890 fi891 RTEMS_SYSV_SHM892 if test "$rtems_cv_sysv_shm" != "yes" ; then893 AC_MSG_ERROR([System V shared memory doesn't work, required by simulator])894 fi895 RTEMS_SYSV_MSG896 if test "$rtems_cv_sysv_msg" != "yes" ; then897 AC_MSG_ERROR([System V messages don't work, required by simulator])898 fi899 fi900 ])901 836 902 837 dnl $Id$ … … 949 884 ])dnl 950 885 951 dnl $Id$ 886 dnl 887 dnl $Id$ 888 dnl 952 889 953 890 AC_DEFUN(RTEMS_CHECK_MULTIPROCESSING, … … 966 903 else 967 904 rtems_cv_HAS_MP="no"; 968 fi 969 ]) 905 fi]) 970 906 if test "$rtems_cv_HAS_MP" = "yes"; then 971 907 HAS_MP="yes" … … 976 912 ]) 977 913 978 dnl 979 dnl $Id$ 980 dnl 981 982 dnl RTEMS_CHECK_MAKEFILE(path) 983 dnl Search for Makefile.in's within the directory starting 984 dnl at path and append an entry for Makefile to global variable 985 dnl "makefiles" (from configure.in) for each Makefile.in found 986 dnl 987 AC_DEFUN(RTEMS_CHECK_MAKEFILE, 988 [RTEMS_CHECK_FILES_IN($1,Makefile,makefiles) 989 ]) 990 991 dnl 992 dnl $Id$ 993 dnl 994 995 dnl RTEMS_CHECK_FILES_IN(path,file,var) 996 dnl path .. path relative to srcdir, where to start searching for files 997 dnl file .. name of the files to search for 998 dnl var .. shell variable to append files found 999 1000 AC_DEFUN(RTEMS_CHECK_FILES_IN, 1001 [ 1002 AC_MSG_CHECKING(for $2.in in $1) 1003 if test -d $srcdir/$1; then 1004 rtems_av_save_dir=`pwd`; 1005 cd $srcdir; 1006 rtems_av_tmp=`find $1 -name "$2.in" -print | sed "s/$2\.in/%/" | sort | sed "s/%/$2/"` 1007 $3="$$3 $rtems_av_tmp"; 1008 cd $rtems_av_save_dir; 1009 AC_MSG_RESULT(done) 1010 else 1011 AC_MSG_RESULT(no) 1012 fi 1013 ]) 1014 1015 914 dnl $Id$ 915 dnl 916 AC_DEFUN(RTEMS_CHECK_POSIX_API, 917 [dnl 918 AC_REQUIRE([RTEMS_CHECK_CPU])dnl 919 AC_CACHE_CHECK([whether BSP supports libposix], 920 rtems_cv_HAS_POSIX_API, 921 [dnl 922 case "$RTEMS_CPU" in 923 unix*) 924 rtems_cv_HAS_POSIX_API="no" 925 ;; 926 *) 927 if test "${RTEMS_HAS_POSIX_API}" = "yes"; then 928 rtems_cv_HAS_POSIX_API="yes"; 929 else 930 rtems_cv_HAS_POSIX_API="disabled"; 931 fi 932 ;; 933 esac]) 934 if test "$rtems_cv_HAS_POSIX_API" = "yes"; then 935 HAS_POSIX_API="yes"; 936 else 937 HAS_POSIX_API="no"; 938 fi 939 AC_SUBST(HAS_POSIX_API)dnl 940 ]) 941 -
c/src/tests/configure
r22544db9 r3a8915e 23 23 ac_help="$ac_help 24 24 --enable-networking enable TCP/IP stack" 25 ac_help="$ac_help26 --enable-rdbg enable remote debugger"27 25 ac_help="$ac_help 28 26 --enable-rtems-inlines enable RTEMS inline functions … … 483 481 # A filename unique to this package, relative to the directory that 484 482 # configure is in, which we can look for to find out if srcdir is correct. 485 ac_unique_file= libtests483 ac_unique_file=samples 486 484 487 485 # Find the source files, if location was not specified. … … 566 564 567 565 echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6 568 echo "configure:56 9: checking for RTEMS Version" >&5566 echo "configure:567: checking for RTEMS Version" >&5 569 567 if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then 570 568 RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \ … … 597 595 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 598 596 599 600 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6601 echo "configure:602: checking whether ${MAKE-make} sets \${MAKE}" >&5602 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`603 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then604 echo $ac_n "(cached) $ac_c" 1>&6605 else606 cat > conftestmake <<\EOF607 all:608 @echo 'ac_maketemp="${MAKE}"'609 EOF610 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.611 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`612 if test -n "$ac_maketemp"; then613 eval ac_cv_prog_make_${ac_make}_set=yes614 else615 eval ac_cv_prog_make_${ac_make}_set=no616 fi617 rm -f conftestmake618 fi619 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then620 echo "$ac_t""yes" 1>&6621 SET_MAKE=622 else623 echo "$ac_t""no" 1>&6624 SET_MAKE="MAKE=${MAKE-make}"625 fi626 597 627 598 … … 654 625 655 626 echo $ac_n "checking host system type""... $ac_c" 1>&6 656 echo "configure:6 57: checking host system type" >&5627 echo "configure:628: checking host system type" >&5 657 628 658 629 host_alias=$host … … 675 646 676 647 echo $ac_n "checking target system type""... $ac_c" 1>&6 677 echo "configure:6 78: checking target system type" >&5648 echo "configure:649: checking target system type" >&5 678 649 679 650 target_alias=$target … … 693 664 694 665 echo $ac_n "checking build system type""... $ac_c" 1>&6 695 echo "configure:6 96: checking build system type" >&5666 echo "configure:667: checking build system type" >&5 696 667 697 668 build_alias=$build … … 716 687 717 688 echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6 718 echo "configure: 719: checking rtems target cpu" >&5689 echo "configure:690: checking rtems target cpu" >&5 719 690 case "${target}" in 720 691 # hpux unix port should go here … … 742 713 743 714 744 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6745 echo "configure:746: checking whether to enable maintainer-specific portions of Makefiles" >&5746 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.747 if test "${enable_maintainer_mode+set}" = set; then748 enableval="$enable_maintainer_mode"749 USE_MAINTAINER_MODE=$enableval750 else751 USE_MAINTAINER_MODE=no752 fi753 754 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6755 756 757 if test $USE_MAINTAINER_MODE = yes; then758 MAINTAINER_MODE_TRUE=759 MAINTAINER_MODE_FALSE='#'760 else761 MAINTAINER_MODE_TRUE='#'762 MAINTAINER_MODE_FALSE=763 fi764 MAINT=$MAINTAINER_MODE_TRUE765 766 767 768 769 # Check whether --enable-multiprocessing or --disable-multiprocessing was given.770 if test "${enable_multiprocessing+set}" = set; then771 enableval="$enable_multiprocessing"772 case "${enableval}" in773 yes) RTEMS_HAS_MULTIPROCESSING=yes ;;774 no) RTEMS_HAS_MULTIPROCESSING=no ;;775 *) { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;;776 esac777 else778 RTEMS_HAS_MULTIPROCESSING=no779 fi780 781 782 783 # Check whether --enable-posix or --disable-posix was given.784 if test "${enable_posix+set}" = set; then785 enableval="$enable_posix"786 case "${enableval}" in787 yes) RTEMS_HAS_POSIX_API=yes ;;788 no) RTEMS_HAS_POSIX_API=no ;;789 *) { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;;790 esac791 else792 RTEMS_HAS_POSIX_API=yes793 fi794 795 796 797 case "${target}" in798 # hpux unix port should go here799 i[3456]86-go32-rtems*)800 RTEMS_HAS_POSIX_API=no801 ;;802 i[3456]86-pc-linux*) # unix "simulator" port803 RTEMS_HAS_POSIX_API=no804 ;;805 i[3456]86-*freebsd2*) # unix "simulator" port806 RTEMS_HAS_POSIX_API=no807 ;;808 no_cpu-*rtems*)809 RTEMS_HAS_POSIX_API=no810 ;;811 sparc-sun-solaris*) # unix "simulator" port812 RTEMS_HAS_POSIX_API=no813 ;;814 *)815 ;;816 esac817 818 819 820 # Check whether --enable-networking or --disable-networking was given.821 if test "${enable_networking+set}" = set; then822 enableval="$enable_networking"823 case "${enableval}" in824 yes) RTEMS_HAS_NETWORKING=yes ;;825 no) RTEMS_HAS_NETWORKING=no ;;826 *) { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;;827 esac828 else829 RTEMS_HAS_NETWORKING=yes830 fi831 832 833 834 # Check whether --enable-rdbg or --disable-rdbg was given.835 if test "${enable_rdbg+set}" = set; then836 enableval="$enable_rdbg"837 case "${enableval}" in838 yes) RTEMS_HAS_RDBG=yes ;;839 no) RTEMS_HAS_RDBG=no ;;840 *) { echo "configure: error: bad value ${enableval} for enable-rdbg option" 1>&2; exit 1; } ;;841 esac842 else843 RTEMS_HAS_RDBG=no844 fi845 846 847 # Check whether --enable-rtems-inlines or --disable-rtems-inlines was given.848 if test "${enable_rtems_inlines+set}" = set; then849 enableval="$enable_rtems_inlines"850 case "${enableval}" in851 yes) RTEMS_USE_MACROS=no ;;852 no) RTEMS_USE_MACROS=yes ;;853 *) { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;;854 esac855 else856 RTEMS_USE_MACROS=no857 fi858 859 860 861 # Check whether --enable-cxx or --disable-cxx was given.862 if test "${enable_cxx+set}" = set; then863 enableval="$enable_cxx"864 case "${enableval}" in865 yes) RTEMS_HAS_CPLUSPLUS=yes ;;866 no) RTEMS_HAS_CPLUSPLUS=no ;;867 *) { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;;868 esac869 else870 RTEMS_HAS_CPLUSPLUS=no871 fi872 873 874 875 # Check whether --enable-gcc28 or --disable-gcc28 was given.876 if test "${enable_gcc28+set}" = set; then877 enableval="$enable_gcc28"878 case "${enableval}" in879 yes) RTEMS_USE_GCC272=no ;;880 no) RTEMS_USE_GCC272=yes ;;881 *) { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;;882 esac883 else884 RTEMS_USE_GCC272=no885 fi886 887 888 889 # Check whether --enable-libcdir or --disable-libcdir was given.890 if test "${enable_libcdir+set}" = set; then891 enableval="$enable_libcdir"892 RTEMS_LIBC_DIR="${enableval}" ; \893 test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; }894 fi895 896 897 898 # Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.899 if test "${enable_bare_cpu_cflags+set}" = set; then900 enableval="$enable_bare_cpu_cflags"901 case "${enableval}" in902 no) BARE_CPU_CFLAGS="" ;;903 *) BARE_CPU_CFLAGS="${enableval}" ;;904 esac905 else906 BARE_CPU_CFLAGS=""907 fi908 909 910 # Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.911 if test "${enable_bare_cpu_model+set}" = set; then912 enableval="$enable_bare_cpu_model"913 case "${enableval}" in914 no) BARE_CPU_MODEL="" ;;915 *) BARE_CPU_MODEL="${enableval}" ;;916 esac917 else918 BARE_CPU_MODEL=""919 fi920 921 922 923 # If the tests are enabled, then find all the test suite Makefiles924 echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6925 echo "configure:926: checking if the test suites are enabled? " >&5926 # Check whether --enable-tests or --disable-tests was given.927 if test "${enable_tests+set}" = set; then928 enableval="$enable_tests"929 case "${enableval}" in930 yes) tests_enabled=yes ;;931 no) tests_enabled=no ;;932 *) { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;;933 esac934 else935 tests_enabled=no936 fi937 938 echo "$ac_t""$tests_enabled" 1>&6939 940 941 echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6942 echo "configure:943: checking for RTEMS_BSP" >&5943 if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then944 echo $ac_n "(cached) $ac_c" 1>&6945 else946 test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";947 948 fi949 if test -z "$rtems_cv_RTEMS_BSP"; then950 { echo "configure: error: Missing RTEMS_BSP" 1>&2; exit 1; }951 fi952 RTEMS_BSP="$rtems_cv_RTEMS_BSP"953 echo "$ac_t""${RTEMS_BSP}" 1>&6954 955 956 957 958 715 # Find a good install program. We prefer a C program (faster), 959 716 # so one script is as good as another. But avoid the broken or … … 968 725 # ./install, which can be erroneously created by make from ./install.sh. 969 726 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 970 echo "configure: 971: checking for a BSD compatible install" >&5727 echo "configure:728: checking for a BSD compatible install" >&5 971 728 if test -z "$INSTALL"; then 972 729 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1020 777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1021 778 779 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 780 echo "configure:781: checking whether build environment is sane" >&5 781 # Just in case 782 sleep 1 783 echo timestamp > conftestfile 784 # Do `set' in a subshell so we don't clobber the current shell's 785 # arguments. Must try -L first in case configure is actually a 786 # symlink; some systems play weird games with the mod time of symlinks 787 # (eg FreeBSD returns the mod time of the symlink's containing 788 # directory). 789 if ( 790 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 791 if test "$*" = "X"; then 792 # -L didn't work. 793 set X `ls -t $srcdir/configure conftestfile` 794 fi 795 if test "$*" != "X $srcdir/configure conftestfile" \ 796 && test "$*" != "X conftestfile $srcdir/configure"; then 797 798 # If neither matched, then we have a broken ls. This can happen 799 # if, for instance, CONFIG_SHELL is bash and it inherits a 800 # broken ls alias from the environment. This has actually 801 # happened. Such a system could not be considered "sane". 802 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 803 alias in your environment" 1>&2; exit 1; } 804 fi 805 806 test "$2" = conftestfile 807 ) 808 then 809 # Ok. 810 : 811 else 812 { echo "configure: error: newly created file is older than distributed files! 813 Check your system clock" 1>&2; exit 1; } 814 fi 815 rm -f conftest* 816 echo "$ac_t""yes" 1>&6 817 if test "$program_transform_name" = s,x,x,; then 818 program_transform_name= 819 else 820 # Double any \ or $. echo might interpret backslashes. 821 cat <<\EOF_SED > conftestsed 822 s,\\,\\\\,g; s,\$,$$,g 823 EOF_SED 824 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 825 rm -f conftestsed 826 fi 827 test "$program_prefix" != NONE && 828 program_transform_name="s,^,${program_prefix},; $program_transform_name" 829 # Use a double $ so make ignores it. 830 test "$program_suffix" != NONE && 831 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 832 833 # sed with no file args requires a program. 834 test "$program_transform_name" = "" && program_transform_name="s,x,x," 835 836 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 837 echo "configure:838: checking whether ${MAKE-make} sets \${MAKE}" >&5 838 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 839 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 840 echo $ac_n "(cached) $ac_c" 1>&6 841 else 842 cat > conftestmake <<\EOF 843 all: 844 @echo 'ac_maketemp="${MAKE}"' 845 EOF 846 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 847 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 848 if test -n "$ac_maketemp"; then 849 eval ac_cv_prog_make_${ac_make}_set=yes 850 else 851 eval ac_cv_prog_make_${ac_make}_set=no 852 fi 853 rm -f conftestmake 854 fi 855 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 856 echo "$ac_t""yes" 1>&6 857 SET_MAKE= 858 else 859 echo "$ac_t""no" 1>&6 860 SET_MAKE="MAKE=${MAKE-make}" 861 fi 862 863 864 PACKAGE=rtems-c-src-tests 865 866 VERSION=$RTEMS_VERSION 867 868 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 869 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 870 fi 871 872 873 874 missing_dir=`cd $ac_aux_dir && pwd` 875 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 876 echo "configure:877: checking for working aclocal" >&5 877 # Run test in a subshell; some versions of sh will print an error if 878 # an executable is not found, even if stderr is redirected. 879 # Redirect stdin to placate older versions of autoconf. Sigh. 880 if (aclocal --version) < /dev/null > /dev/null 2>&1; then 881 ACLOCAL=aclocal 882 echo "$ac_t""found" 1>&6 883 else 884 ACLOCAL="$missing_dir/missing aclocal" 885 echo "$ac_t""missing" 1>&6 886 fi 887 888 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 889 echo "configure:890: checking for working autoconf" >&5 890 # Run test in a subshell; some versions of sh will print an error if 891 # an executable is not found, even if stderr is redirected. 892 # Redirect stdin to placate older versions of autoconf. Sigh. 893 if (autoconf --version) < /dev/null > /dev/null 2>&1; then 894 AUTOCONF=autoconf 895 echo "$ac_t""found" 1>&6 896 else 897 AUTOCONF="$missing_dir/missing autoconf" 898 echo "$ac_t""missing" 1>&6 899 fi 900 901 echo $ac_n "checking for working automake""... $ac_c" 1>&6 902 echo "configure:903: checking for working automake" >&5 903 # Run test in a subshell; some versions of sh will print an error if 904 # an executable is not found, even if stderr is redirected. 905 # Redirect stdin to placate older versions of autoconf. Sigh. 906 if (automake --version) < /dev/null > /dev/null 2>&1; then 907 AUTOMAKE=automake 908 echo "$ac_t""found" 1>&6 909 else 910 AUTOMAKE="$missing_dir/missing automake" 911 echo "$ac_t""missing" 1>&6 912 fi 913 914 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 915 echo "configure:916: checking for working autoheader" >&5 916 # Run test in a subshell; some versions of sh will print an error if 917 # an executable is not found, even if stderr is redirected. 918 # Redirect stdin to placate older versions of autoconf. Sigh. 919 if (autoheader --version) < /dev/null > /dev/null 2>&1; then 920 AUTOHEADER=autoheader 921 echo "$ac_t""found" 1>&6 922 else 923 AUTOHEADER="$missing_dir/missing autoheader" 924 echo "$ac_t""missing" 1>&6 925 fi 926 927 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 928 echo "configure:929: checking for working makeinfo" >&5 929 # Run test in a subshell; some versions of sh will print an error if 930 # an executable is not found, even if stderr is redirected. 931 # Redirect stdin to placate older versions of autoconf. Sigh. 932 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 933 MAKEINFO=makeinfo 934 echo "$ac_t""found" 1>&6 935 else 936 MAKEINFO="$missing_dir/missing makeinfo" 937 echo "$ac_t""missing" 1>&6 938 fi 939 940 941 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 942 echo "configure:943: checking whether to enable maintainer-specific portions of Makefiles" >&5 943 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 944 if test "${enable_maintainer_mode+set}" = set; then 945 enableval="$enable_maintainer_mode" 946 USE_MAINTAINER_MODE=$enableval 947 else 948 USE_MAINTAINER_MODE=no 949 fi 950 951 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 952 953 954 if test $USE_MAINTAINER_MODE = yes; then 955 MAINTAINER_MODE_TRUE= 956 MAINTAINER_MODE_FALSE='#' 957 else 958 MAINTAINER_MODE_TRUE='#' 959 MAINTAINER_MODE_FALSE= 960 fi 961 MAINT=$MAINTAINER_MODE_TRUE 962 963 964 965 966 # Check whether --enable-multiprocessing or --disable-multiprocessing was given. 967 if test "${enable_multiprocessing+set}" = set; then 968 enableval="$enable_multiprocessing" 969 case "${enableval}" in 970 yes) RTEMS_HAS_MULTIPROCESSING=yes ;; 971 no) RTEMS_HAS_MULTIPROCESSING=no ;; 972 *) { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;; 973 esac 974 else 975 RTEMS_HAS_MULTIPROCESSING=no 976 fi 977 978 979 980 # Check whether --enable-posix or --disable-posix was given. 981 if test "${enable_posix+set}" = set; then 982 enableval="$enable_posix" 983 case "${enableval}" in 984 yes) RTEMS_HAS_POSIX_API=yes ;; 985 no) RTEMS_HAS_POSIX_API=no ;; 986 *) { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;; 987 esac 988 else 989 RTEMS_HAS_POSIX_API=yes 990 fi 991 992 993 994 case "${target}" in 995 # hpux unix port should go here 996 i[3456]86-go32-rtems*) 997 RTEMS_HAS_POSIX_API=no 998 ;; 999 i[3456]86-pc-linux*) # unix "simulator" port 1000 RTEMS_HAS_POSIX_API=no 1001 ;; 1002 i[3456]86-*freebsd2*) # unix "simulator" port 1003 RTEMS_HAS_POSIX_API=no 1004 ;; 1005 no_cpu-*rtems*) 1006 RTEMS_HAS_POSIX_API=no 1007 ;; 1008 sparc-sun-solaris*) # unix "simulator" port 1009 RTEMS_HAS_POSIX_API=no 1010 ;; 1011 *) 1012 ;; 1013 esac 1014 1015 1016 1017 # Check whether --enable-networking or --disable-networking was given. 1018 if test "${enable_networking+set}" = set; then 1019 enableval="$enable_networking" 1020 case "${enableval}" in 1021 yes) RTEMS_HAS_NETWORKING=yes ;; 1022 no) RTEMS_HAS_NETWORKING=no ;; 1023 *) { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;; 1024 esac 1025 else 1026 RTEMS_HAS_NETWORKING=yes 1027 fi 1028 1029 1030 # Check whether --enable-rtems-inlines or --disable-rtems-inlines was given. 1031 if test "${enable_rtems_inlines+set}" = set; then 1032 enableval="$enable_rtems_inlines" 1033 case "${enableval}" in 1034 yes) RTEMS_USE_MACROS=no ;; 1035 no) RTEMS_USE_MACROS=yes ;; 1036 *) { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;; 1037 esac 1038 else 1039 RTEMS_USE_MACROS=no 1040 fi 1041 1042 1043 1044 # Check whether --enable-cxx or --disable-cxx was given. 1045 if test "${enable_cxx+set}" = set; then 1046 enableval="$enable_cxx" 1047 case "${enableval}" in 1048 yes) RTEMS_HAS_CPLUSPLUS=yes ;; 1049 no) RTEMS_HAS_CPLUSPLUS=no ;; 1050 *) { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;; 1051 esac 1052 else 1053 RTEMS_HAS_CPLUSPLUS=no 1054 fi 1055 1056 1057 1058 # Check whether --enable-gcc28 or --disable-gcc28 was given. 1059 if test "${enable_gcc28+set}" = set; then 1060 enableval="$enable_gcc28" 1061 case "${enableval}" in 1062 yes) RTEMS_USE_GCC272=no ;; 1063 no) RTEMS_USE_GCC272=yes ;; 1064 *) { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;; 1065 esac 1066 else 1067 RTEMS_USE_GCC272=no 1068 fi 1069 1070 1071 1072 # Check whether --enable-libcdir or --disable-libcdir was given. 1073 if test "${enable_libcdir+set}" = set; then 1074 enableval="$enable_libcdir" 1075 RTEMS_LIBC_DIR="${enableval}" ; \ 1076 test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } 1077 fi 1078 1079 1080 1081 # Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given. 1082 if test "${enable_bare_cpu_cflags+set}" = set; then 1083 enableval="$enable_bare_cpu_cflags" 1084 case "${enableval}" in 1085 no) BARE_CPU_CFLAGS="" ;; 1086 *) BARE_CPU_CFLAGS="${enableval}" ;; 1087 esac 1088 else 1089 BARE_CPU_CFLAGS="" 1090 fi 1091 1092 1093 # Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given. 1094 if test "${enable_bare_cpu_model+set}" = set; then 1095 enableval="$enable_bare_cpu_model" 1096 case "${enableval}" in 1097 no) BARE_CPU_MODEL="" ;; 1098 *) BARE_CPU_MODEL="${enableval}" ;; 1099 esac 1100 else 1101 BARE_CPU_MODEL="" 1102 fi 1103 1104 1105 1106 # If the tests are enabled, then find all the test suite Makefiles 1107 echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6 1108 echo "configure:1109: checking if the test suites are enabled? " >&5 1109 # Check whether --enable-tests or --disable-tests was given. 1110 if test "${enable_tests+set}" = set; then 1111 enableval="$enable_tests" 1112 case "${enableval}" in 1113 yes) tests_enabled=yes ;; 1114 no) tests_enabled=no ;; 1115 *) { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;; 1116 esac 1117 else 1118 tests_enabled=no 1119 fi 1120 1121 echo "$ac_t""$tests_enabled" 1>&6 1122 1123 1124 echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6 1125 echo "configure:1126: checking for RTEMS_BSP" >&5 1126 if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then 1127 echo $ac_n "(cached) $ac_c" 1>&6 1128 else 1129 test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP"; 1130 1131 fi 1132 if test -z "$rtems_cv_RTEMS_BSP"; then 1133 { echo "configure: error: Missing RTEMS_BSP" 1>&2; exit 1; } 1134 fi 1135 RTEMS_BSP="$rtems_cv_RTEMS_BSP" 1136 echo "$ac_t""${RTEMS_BSP}" 1>&6 1022 1137 1023 1138 … … 1026 1141 # Is this a supported CPU? 1027 1142 echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6 1028 echo "configure:1 029: checking if cpu $RTEMS_CPU is supported" >&51143 echo "configure:1144: checking if cpu $RTEMS_CPU is supported" >&5 1029 1144 if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then 1030 1145 echo "$ac_t""yes" 1>&6 … … 1087 1202 set dummy $ac_prog; ac_word=$2 1088 1203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1089 echo "configure:1 090: checking for $ac_word" >&51204 echo "configure:1205: checking for $ac_word" >&5 1090 1205 if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then 1091 1206 echo $ac_n "(cached) $ac_c" 1>&6 … … 1131 1246 1132 1247 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1133 echo "configure:1 134: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&51248 echo "configure:1249: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1134 1249 1135 1250 ac_ext=c … … 1142 1257 cat > conftest.$ac_ext << EOF 1143 1258 1144 #line 1 145"configure"1259 #line 1260 "configure" 1145 1260 #include "confdefs.h" 1146 1261 1147 1262 main(){return(0);} 1148 1263 EOF 1149 if { (eval echo configure:1 150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1264 if { (eval echo configure:1265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1150 1265 ac_cv_prog_cc_works=yes 1151 1266 # If we can't run a trivial program, we are probably using a cross compiler. … … 1173 1288 fi 1174 1289 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1175 echo "configure:1 176: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&51290 echo "configure:1291: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1176 1291 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1177 1292 cross_compiling=$ac_cv_prog_cc_cross 1178 1293 1179 1294 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1180 echo "configure:1 181: checking whether we are using GNU C" >&51295 echo "configure:1296: checking whether we are using GNU C" >&5 1181 1296 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1182 1297 echo $ac_n "(cached) $ac_c" 1>&6 … … 1187 1302 #endif 1188 1303 EOF 1189 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1 190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1304 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1190 1305 ac_cv_prog_gcc=yes 1191 1306 else … … 1202 1317 CFLAGS= 1203 1318 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1204 echo "configure:1 205: checking whether ${CC-cc} accepts -g" >&51319 echo "configure:1320: checking whether ${CC-cc} accepts -g" >&5 1205 1320 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1206 1321 echo $ac_n "(cached) $ac_c" 1>&6 … … 1244 1359 1245 1360 echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6 1246 echo "configure:1 247: checking whether $CC_FOR_TARGET accepts -specs" >&51361 echo "configure:1362: checking whether $CC_FOR_TARGET accepts -specs" >&5 1247 1362 if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then 1248 1363 echo $ac_n "(cached) $ac_c" 1>&6 … … 1265 1380 1266 1381 echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6 1267 echo "configure:1 268: checking whether $CC_FOR_TARGET accepts --pipe" >&51382 echo "configure:1383: checking whether $CC_FOR_TARGET accepts --pipe" >&5 1268 1383 if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then 1269 1384 echo $ac_n "(cached) $ac_c" 1>&6 … … 1313 1428 set dummy $ac_prog; ac_word=$2 1314 1429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1315 echo "configure:1 316: checking for $ac_word" >&51430 echo "configure:1431: checking for $ac_word" >&5 1316 1431 if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then 1317 1432 echo $ac_n "(cached) $ac_c" 1>&6 … … 1357 1472 1358 1473 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1359 echo "configure:1 360: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&51474 echo "configure:1475: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 1360 1475 1361 1476 ac_ext=C … … 1368 1483 cat > conftest.$ac_ext << EOF 1369 1484 1370 #line 1 371"configure"1485 #line 1486 "configure" 1371 1486 #include "confdefs.h" 1372 1487 1373 1488 int main(){return(0);} 1374 1489 EOF 1375 if { (eval echo configure:1 376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1490 if { (eval echo configure:1491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1376 1491 ac_cv_prog_cxx_works=yes 1377 1492 # If we can't run a trivial program, we are probably using a cross compiler. … … 1399 1514 fi 1400 1515 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1401 echo "configure:1 402: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&51516 echo "configure:1517: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1402 1517 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1403 1518 cross_compiling=$ac_cv_prog_cxx_cross 1404 1519 1405 1520 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1406 echo "configure:1 407: checking whether we are using GNU C++" >&51521 echo "configure:1522: checking whether we are using GNU C++" >&5 1407 1522 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1408 1523 echo $ac_n "(cached) $ac_c" 1>&6 … … 1413 1528 #endif 1414 1529 EOF 1415 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1 416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1530 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1416 1531 ac_cv_prog_gxx=yes 1417 1532 else … … 1428 1543 CXXFLAGS= 1429 1544 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1430 echo "configure:1 431: checking whether ${CXX-g++} accepts -g" >&51545 echo "configure:1546: checking whether ${CXX-g++} accepts -g" >&5 1431 1546 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1432 1547 echo $ac_n "(cached) $ac_c" 1>&6 … … 1481 1596 1482 1597 echo $ac_n "checking target's ar""... $ac_c" 1>&6 1483 echo "configure:1 484: checking target's ar" >&51598 echo "configure:1599: checking target's ar" >&5 1484 1599 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then 1485 1600 echo $ac_n "(cached) $ac_c" 1>&6 … … 1514 1629 # intends 1515 1630 echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1516 echo "configure:1 517: checking whether environment variable AR_FOR_TARGET is an absolute path" >&51631 echo "configure:1632: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5 1517 1632 case "$AR_FOR_TARGET" in 1518 1633 /*) # valid … … 1531 1646 set dummy "$program_prefix"ar; ac_word=$2 1532 1647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1533 echo "configure:1 534: checking for $ac_word" >&51648 echo "configure:1649: checking for $ac_word" >&5 1534 1649 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then 1535 1650 echo $ac_n "(cached) $ac_c" 1>&6 … … 1568 1683 1569 1684 echo $ac_n "checking target's as""... $ac_c" 1>&6 1570 echo "configure:1 571: checking target's as" >&51685 echo "configure:1686: checking target's as" >&5 1571 1686 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then 1572 1687 echo $ac_n "(cached) $ac_c" 1>&6 … … 1601 1716 # intends 1602 1717 echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1603 echo "configure:1 604: checking whether environment variable AS_FOR_TARGET is an absolute path" >&51718 echo "configure:1719: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5 1604 1719 case "$AS_FOR_TARGET" in 1605 1720 /*) # valid … … 1618 1733 set dummy "$program_prefix"as; ac_word=$2 1619 1734 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1620 echo "configure:1 621: checking for $ac_word" >&51735 echo "configure:1736: checking for $ac_word" >&5 1621 1736 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then 1622 1737 echo $ac_n "(cached) $ac_c" 1>&6 … … 1655 1770 1656 1771 echo $ac_n "checking target's ld""... $ac_c" 1>&6 1657 echo "configure:1 658: checking target's ld" >&51772 echo "configure:1773: checking target's ld" >&5 1658 1773 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then 1659 1774 echo $ac_n "(cached) $ac_c" 1>&6 … … 1688 1803 # intends 1689 1804 echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1690 echo "configure:1 691: checking whether environment variable LD_FOR_TARGET is an absolute path" >&51805 echo "configure:1806: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5 1691 1806 case "$LD_FOR_TARGET" in 1692 1807 /*) # valid … … 1705 1820 set dummy "$program_prefix"ld; ac_word=$2 1706 1821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1707 echo "configure:1 708: checking for $ac_word" >&51822 echo "configure:1823: checking for $ac_word" >&5 1708 1823 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then 1709 1824 echo $ac_n "(cached) $ac_c" 1>&6 … … 1742 1857 1743 1858 echo $ac_n "checking target's nm""... $ac_c" 1>&6 1744 echo "configure:1 745: checking target's nm" >&51859 echo "configure:1860: checking target's nm" >&5 1745 1860 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then 1746 1861 echo $ac_n "(cached) $ac_c" 1>&6 … … 1775 1890 # intends 1776 1891 echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1777 echo "configure:1 778: checking whether environment variable NM_FOR_TARGET is an absolute path" >&51892 echo "configure:1893: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5 1778 1893 case "$NM_FOR_TARGET" in 1779 1894 /*) # valid … … 1792 1907 set dummy "$program_prefix"nm; ac_word=$2 1793 1908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1794 echo "configure:1 795: checking for $ac_word" >&51909 echo "configure:1910: checking for $ac_word" >&5 1795 1910 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then 1796 1911 echo $ac_n "(cached) $ac_c" 1>&6 … … 1830 1945 1831 1946 echo $ac_n "checking target's ranlib""... $ac_c" 1>&6 1832 echo "configure:1 833: checking target's ranlib" >&51947 echo "configure:1948: checking target's ranlib" >&5 1833 1948 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then 1834 1949 echo $ac_n "(cached) $ac_c" 1>&6 … … 1863 1978 # intends 1864 1979 echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1865 echo "configure:1 866: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&51980 echo "configure:1981: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5 1866 1981 case "$RANLIB_FOR_TARGET" in 1867 1982 /*) # valid … … 1880 1995 set dummy "$program_prefix"ranlib; ac_word=$2 1881 1996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1882 echo "configure:1 883: checking for $ac_word" >&51997 echo "configure:1998: checking for $ac_word" >&5 1883 1998 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then 1884 1999 echo $ac_n "(cached) $ac_c" 1>&6 … … 1919 2034 1920 2035 echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6 1921 echo "configure: 1922: checking whether $AR_FOR_TARGET -s works" >&52036 echo "configure:2037: checking whether $AR_FOR_TARGET -s works" >&5 1922 2037 if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then 1923 2038 echo $ac_n "(cached) $ac_c" 1>&6 … … 1928 2043 { return b; } 1929 2044 EOF 1930 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure: 1931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \1931 && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure: 1932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \2045 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ 2046 && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ 1932 2047 && test -s conftest.a ; \ 1933 2048 then … … 1954 2069 1955 2070 echo $ac_n "checking target's objcopy""... $ac_c" 1>&6 1956 echo "configure: 1957: checking target's objcopy" >&52071 echo "configure:2072: checking target's objcopy" >&5 1957 2072 if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then 1958 2073 echo $ac_n "(cached) $ac_c" 1>&6 … … 1987 2102 # intends 1988 2103 echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6 1989 echo "configure: 1990: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&52104 echo "configure:2105: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5 1990 2105 case "$OBJCOPY_FOR_TARGET" in 1991 2106 /*) # valid … … 2004 2119 set dummy "$program_prefix"objcopy; ac_word=$2 2005 2120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2006 echo "configure:2 007: checking for $ac_word" >&52121 echo "configure:2122: checking for $ac_word" >&5 2007 2122 if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then 2008 2123 echo $ac_n "(cached) $ac_c" 1>&6 … … 2041 2156 2042 2157 echo $ac_n "checking target's size""... $ac_c" 1>&6 2043 echo "configure:2 044: checking target's size" >&52158 echo "configure:2159: checking target's size" >&5 2044 2159 if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then 2045 2160 echo $ac_n "(cached) $ac_c" 1>&6 … … 2074 2189 # intends 2075 2190 echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2076 echo "configure:2 077: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&52191 echo "configure:2192: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5 2077 2192 case "$SIZE_FOR_TARGET" in 2078 2193 /*) # valid … … 2091 2206 set dummy "$program_prefix"size; ac_word=$2 2092 2207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2093 echo "configure:2 094: checking for $ac_word" >&52208 echo "configure:2209: checking for $ac_word" >&5 2094 2209 if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then 2095 2210 echo $ac_n "(cached) $ac_c" 1>&6 … … 2128 2243 2129 2244 echo $ac_n "checking target's strip""... $ac_c" 1>&6 2130 echo "configure:2 131: checking target's strip" >&52245 echo "configure:2246: checking target's strip" >&5 2131 2246 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then 2132 2247 echo $ac_n "(cached) $ac_c" 1>&6 … … 2161 2276 # intends 2162 2277 echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2163 echo "configure:2 164: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&52278 echo "configure:2279: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5 2164 2279 case "$STRIP_FOR_TARGET" in 2165 2280 /*) # valid … … 2178 2293 set dummy "$program_prefix"strip; ac_word=$2 2179 2294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2180 echo "configure:2 181: checking for $ac_word" >&52295 echo "configure:2296: checking for $ac_word" >&5 2181 2296 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then 2182 2297 echo $ac_n "(cached) $ac_c" 1>&6 … … 2215 2330 2216 2331 2217 if test "${target_cpu}" = "i386"; then2218 echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&62219 echo "configure:2220: checking for 16 bit mode assembler support" >&52220 if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then2221 echo $ac_n "(cached) $ac_c" 1>&62222 else2223 cat > conftest.s << EOF2224 .code162225 data322226 addr322227 lgdt 02228 EOF2229 if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then2230 rtems_cv_prog_gas_code16=yes2231 else2232 rtems_cv_prog_gas_code16=no2233 fi2234 fi2235 2236 echo "$ac_t""$rtems_cv_prog_gas_code16" 1>&62237 RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16"2238 fi2239 2240 2241 2242 # Extract the first word of "gcc", so it can be a program name with args.2243 set dummy gcc; ac_word=$22244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&62245 echo "configure:2246: checking for $ac_word" >&52246 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then2247 echo $ac_n "(cached) $ac_c" 1>&62248 else2249 if test -n "$CC"; then2250 ac_cv_prog_CC="$CC" # Let the user override the test.2251 else2252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"2253 ac_dummy="$PATH"2254 for ac_dir in $ac_dummy; do2255 test -z "$ac_dir" && ac_dir=.2256 if test -f $ac_dir/$ac_word; then2257 ac_cv_prog_CC="gcc"2258 break2259 fi2260 done2261 IFS="$ac_save_ifs"2262 fi2263 fi2264 CC="$ac_cv_prog_CC"2265 if test -n "$CC"; then2266 echo "$ac_t""$CC" 1>&62267 else2268 echo "$ac_t""no" 1>&62269 fi2270 2271 if test -z "$CC"; then2272 # Extract the first word of "cc", so it can be a program name with args.2273 set dummy cc; ac_word=$22274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&62275 echo "configure:2276: checking for $ac_word" >&52276 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then2277 echo $ac_n "(cached) $ac_c" 1>&62278 else2279 if test -n "$CC"; then2280 ac_cv_prog_CC="$CC" # Let the user override the test.2281 else2282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"2283 ac_prog_rejected=no2284 ac_dummy="$PATH"2285 for ac_dir in $ac_dummy; do2286 test -z "$ac_dir" && ac_dir=.2287 if test -f $ac_dir/$ac_word; then2288 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then2289 ac_prog_rejected=yes2290 continue2291 fi2292 ac_cv_prog_CC="cc"2293 break2294 fi2295 done2296 IFS="$ac_save_ifs"2297 if test $ac_prog_rejected = yes; then2298 # We found a bogon in the path, so make sure we never use it.2299 set dummy $ac_cv_prog_CC2300 shift2301 if test $# -gt 0; then2302 # We chose a different compiler from the bogus one.2303 # However, it has the same basename, so the bogon will be chosen2304 # first if we set CC to just the basename; use the full file name.2305 shift2306 set dummy "$ac_dir/$ac_word" "$@"2307 shift2308 ac_cv_prog_CC="$@"2309 fi2310 fi2311 fi2312 fi2313 CC="$ac_cv_prog_CC"2314 if test -n "$CC"; then2315 echo "$ac_t""$CC" 1>&62316 else2317 echo "$ac_t""no" 1>&62318 fi2319 2320 if test -z "$CC"; then2321 case "`uname -s`" in2322 *win32* | *WIN32*)2323 # Extract the first word of "cl", so it can be a program name with args.2324 set dummy cl; ac_word=$22325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&62326 echo "configure:2327: checking for $ac_word" >&52327 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then2328 echo $ac_n "(cached) $ac_c" 1>&62329 else2330 if test -n "$CC"; then2331 ac_cv_prog_CC="$CC" # Let the user override the test.2332 else2333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"2334 ac_dummy="$PATH"2335 for ac_dir in $ac_dummy; do2336 test -z "$ac_dir" && ac_dir=.2337 if test -f $ac_dir/$ac_word; then2338 ac_cv_prog_CC="cl"2339 break2340 fi2341 done2342 IFS="$ac_save_ifs"2343 fi2344 fi2345 CC="$ac_cv_prog_CC"2346 if test -n "$CC"; then2347 echo "$ac_t""$CC" 1>&62348 else2349 echo "$ac_t""no" 1>&62350 fi2351 ;;2352 esac2353 fi2354 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }2355 fi2356 2357 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&62358 echo "configure:2359: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&52359 2360 ac_ext=c2361 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.2362 ac_cpp='$CPP $CPPFLAGS'2363 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'2364 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'2365 cross_compiling=$ac_cv_prog_cc_cross2366 2367 cat > conftest.$ac_ext << EOF2368 2369 #line 2370 "configure"2370 #include "confdefs.h"2371 2372 main(){return(0);}2373 EOF2374 if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2375 ac_cv_prog_cc_works=yes2376 # If we can't run a trivial program, we are probably using a cross compiler.2377 if (./conftest; exit) 2>/dev/null; then2378 ac_cv_prog_cc_cross=no2379 else2380 ac_cv_prog_cc_cross=yes2381 fi2382 else2383 echo "configure: failed program was:" >&52384 cat conftest.$ac_ext >&52385 ac_cv_prog_cc_works=no2386 fi2387 rm -fr conftest*2388 ac_ext=c2389 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.2390 ac_cpp='$CPP $CPPFLAGS'2391 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'2392 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'2393 cross_compiling=$ac_cv_prog_cc_cross2394 2395 echo "$ac_t""$ac_cv_prog_cc_works" 1>&62396 if test $ac_cv_prog_cc_works = no; then2397 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }2398 fi2399 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&62400 echo "configure:2401: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&52401 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&62402 cross_compiling=$ac_cv_prog_cc_cross2403 2404 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&62405 echo "configure:2406: checking whether we are using GNU C" >&52406 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then2407 echo $ac_n "(cached) $ac_c" 1>&62408 else2409 cat > conftest.c <<EOF2410 #ifdef __GNUC__2411 yes;2412 #endif2413 EOF2414 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then2415 ac_cv_prog_gcc=yes2416 else2417 ac_cv_prog_gcc=no2418 fi2419 fi2420 2421 echo "$ac_t""$ac_cv_prog_gcc" 1>&62422 2423 if test $ac_cv_prog_gcc = yes; then2424 GCC=yes2425 else2426 GCC=2427 fi2428 2429 ac_test_CFLAGS="${CFLAGS+set}"2430 ac_save_CFLAGS="$CFLAGS"2431 CFLAGS=2432 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&62433 echo "configure:2434: checking whether ${CC-cc} accepts -g" >&52434 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then2435 echo $ac_n "(cached) $ac_c" 1>&62436 else2437 echo 'void f(){}' > conftest.c2438 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then2439 ac_cv_prog_cc_g=yes2440 else2441 ac_cv_prog_cc_g=no2442 fi2443 rm -f conftest*2444 2445 fi2446 2447 echo "$ac_t""$ac_cv_prog_cc_g" 1>&62448 if test "$ac_test_CFLAGS" = set; then2449 CFLAGS="$ac_save_CFLAGS"2450 elif test $ac_cv_prog_cc_g = yes; then2451 if test "$GCC" = yes; then2452 CFLAGS="-g -O2"2453 else2454 CFLAGS="-g"2455 fi2456 else2457 if test "$GCC" = yes; then2458 CFLAGS="-O2"2459 else2460 CFLAGS=2461 fi2462 fi2463 2464 2465 if test "$RTEMS_CPU" = "unix" ; then2466 2467 2468 echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&62469 echo "configure:2470: checking whether $RTEMS_HOST supports System V semaphores" >&52470 if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then2471 echo $ac_n "(cached) $ac_c" 1>&62472 else2473 2474 if test "$cross_compiling" = yes; then2475 :2476 else2477 cat > conftest.$ac_ext <<EOF2478 #line 2479 "configure"2479 #include "confdefs.h"2480 2481 #include <sys/types.h>2482 #include <sys/ipc.h>2483 #include <sys/sem.h>2484 int main () {2485 #if !defined(sun)2486 union semun arg ;2487 #else2488 union semun {2489 int val;2490 struct semid_ds *buf;2491 ushort *array;2492 } arg;2493 #endif2494 int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);2495 if (id == -1)2496 exit(1);2497 arg.val = 0; /* avoid implicit type cast to union */2498 if (semctl(id, 0, IPC_RMID, arg) == -1)2499 exit(1);2500 exit(0);2501 }2502 2503 EOF2504 if { (eval echo configure:2505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2505 then2506 rtems_cv_sysv_sem="yes"2507 else2508 echo "configure: failed program was:" >&52509 cat conftest.$ac_ext >&52510 rm -fr conftest*2511 rtems_cv_sysv_sem="no"2512 fi2513 rm -fr conftest*2514 fi2515 2516 2517 fi2518 2519 echo "$ac_t""$rtems_cv_sysv_sem" 1>&62520 2521 if test "$rtems_cv_sysv_sem" != "yes" ; then2522 { echo "configure: error: System V semaphores don't work, required by simulator" 1>&2; exit 1; }2523 fi2524 2525 2526 echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&62527 echo "configure:2528: checking whether $RTEMS_HOST supports System V shared memory" >&52528 if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then2529 echo $ac_n "(cached) $ac_c" 1>&62530 else2531 2532 if test "$cross_compiling" = yes; then2533 :2534 else2535 cat > conftest.$ac_ext <<EOF2536 #line 2537 "configure"2537 #include "confdefs.h"2538 2539 #include <sys/types.h>2540 #include <sys/ipc.h>2541 #include <sys/shm.h>2542 int main () {2543 int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);2544 if (id == -1)2545 exit(1);2546 if (shmctl(id, IPC_RMID, 0) == -1)2547 exit(1);2548 exit(0);2549 }2550 2551 EOF2552 if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2553 then2554 rtems_cv_sysv_shm="yes"2555 else2556 echo "configure: failed program was:" >&52557 cat conftest.$ac_ext >&52558 rm -fr conftest*2559 rtems_cv_sysv_shm="no"2560 fi2561 rm -fr conftest*2562 fi2563 2564 2565 fi2566 2567 echo "$ac_t""$rtems_cv_sysv_shm" 1>&62568 2569 if test "$rtems_cv_sysv_shm" != "yes" ; then2570 { echo "configure: error: System V shared memory doesn't work, required by simulator" 1>&2; exit 1; }2571 fi2572 2573 2574 echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&62575 echo "configure:2576: checking whether $RTEMS_HOST supports System V messages" >&52576 if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then2577 echo $ac_n "(cached) $ac_c" 1>&62578 else2579 2580 if test "$cross_compiling" = yes; then2581 :2582 else2583 cat > conftest.$ac_ext <<EOF2584 #line 2585 "configure"2585 #include "confdefs.h"2586 2587 #include <sys/types.h>2588 #include <sys/ipc.h>2589 #include <sys/msg.h>2590 int main () {2591 int id=msgget(IPC_PRIVATE,IPC_CREAT|0400);2592 if (id == -1)2593 exit(1);2594 if (msgctl(id, IPC_RMID, 0) == -1)2595 exit(1);2596 exit(0);2597 }2598 2599 EOF2600 if { (eval echo configure:2601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2601 then2602 rtems_cv_sysv_msg="yes"2603 else2604 echo "configure: failed program was:" >&52605 cat conftest.$ac_ext >&52606 rm -fr conftest*2607 rtems_cv_sysv_msg="no"2608 fi2609 rm -fr conftest*2610 fi2611 2612 2613 fi2614 2615 echo "$ac_t""$rtems_cv_sysv_msg" 1>&62616 2617 if test "$rtems_cv_sysv_msg" != "yes" ; then2618 { echo "configure: error: System V messages don't work, required by simulator" 1>&2; exit 1; }2619 fi2620 fi2621 2622 2623 2332 echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6 2624 echo "configure:2 625: checking for make/custom/$RTEMS_BSP.cfg" >&52333 echo "configure:2334: checking for make/custom/$RTEMS_BSP.cfg" >&5 2625 2334 if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then 2626 2335 echo "$ac_t""yes" 1>&6 … … 2630 2339 2631 2340 echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6 2632 echo "configure:2 633: checking whether BSP supports multiprocessing" >&52341 echo "configure:2342: checking whether BSP supports multiprocessing" >&5 2633 2342 if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then 2634 2343 echo $ac_n "(cached) $ac_c" 1>&6 … … 2643 2352 rtems_cv_HAS_MP="no"; 2644 2353 fi 2645 2646 2354 fi 2647 2355 … … 2654 2362 2655 2363 2656 2657 # always build the test tools 2658 testtools_cfgdirs="tools/generic" 2659 2660 if test "$HAS_MP" = "yes"; then 2661 makefiles="$makefiles samples/base_mp/Makefile" 2662 makefiles="$makefiles samples/base_mp/node1/Makefile" 2663 makefiles="$makefiles samples/base_mp/node2/Makefile" 2664 makefiles="$makefiles samples/base_sp/Makefile" 2665 fi 2364 echo $ac_n "checking whether BSP supports libposix""... $ac_c" 1>&6 2365 echo "configure:2366: checking whether BSP supports libposix" >&5 2366 if eval "test \"`echo '$''{'rtems_cv_HAS_POSIX_API'+set}'`\" = set"; then 2367 echo $ac_n "(cached) $ac_c" 1>&6 2368 else 2369 case "$RTEMS_CPU" in 2370 unix*) 2371 rtems_cv_HAS_POSIX_API="no" 2372 ;; 2373 *) 2374 if test "${RTEMS_HAS_POSIX_API}" = "yes"; then 2375 rtems_cv_HAS_POSIX_API="yes"; 2376 else 2377 rtems_cv_HAS_POSIX_API="disabled"; 2378 fi 2379 ;; 2380 esac 2381 fi 2382 2383 echo "$ac_t""$rtems_cv_HAS_POSIX_API" 1>&6 2384 if test "$rtems_cv_HAS_POSIX_API" = "yes"; then 2385 HAS_POSIX_API="yes"; 2386 else 2387 HAS_POSIX_API="no"; 2388 fi 2389 2666 2390 2667 2391 if test "$tests_enabled" = "yes"; then 2668 2669 echo $ac_n "checking for Makefile.in in libtests""... $ac_c" 1>&6 2670 echo "configure:2671: checking for Makefile.in in libtests" >&5 2671 if test -d $srcdir/libtests; then 2672 rtems_av_save_dir=`pwd`; 2673 cd $srcdir; 2674 rtems_av_tmp=`find libtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` 2675 makefiles="$makefiles $rtems_av_tmp"; 2676 cd $rtems_av_save_dir; 2677 echo "$ac_t""done" 1>&6 2678 else 2679 echo "$ac_t""no" 1>&6 2680 fi 2681 2682 2683 2684 echo $ac_n "checking for Makefile.in in sptests""... $ac_c" 1>&6 2685 echo "configure:2686: checking for Makefile.in in sptests" >&5 2686 if test -d $srcdir/sptests; then 2687 rtems_av_save_dir=`pwd`; 2688 cd $srcdir; 2689 rtems_av_tmp=`find sptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"` 2690 makefiles="$makefiles $rtems_av_tmp"; 2691 cd $rtems_av_save_dir; 2692 echo "$ac_t""done" 1>&6 2693 else 2694 echo "$ac_t""no" 1>&6 2695 fi 2696 2697 2698