Changeset 3771cc6e in rtems


Ignore:
Timestamp:
Feb 17, 1998, 1:48:43 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
81e0232
Parents:
b4589477
Message:

Update from Ralf Corsepius:

Yep, I have a bunch of bug-fixes and additions pending (Yet another monster
patch, ... I can hear you scream :-).

1) configure.in : one AC_CONFIG_HEADER(...) line too much.

5) configure.in: --enable-cpp should probably be renamed to --enable-cxx, as
gnu-programs use "cxx" to specify C++ specific configure options, while cpp
is used for the preprocessor (e.g egcs uses --with-cxx-includedir, autoconf
internally uses $CXX),

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • configure

    rb4589477 r3771cc6e  
    2828ac_help="$ac_help
    2929\
    30   --enable-cpp            enable C++ support, and build the rtems++ library"
     30  --enable-cxx            enable C++ support, and build the rtems++ library"
    3131ac_help="$ac_help
    3232\
     
    751751
    752752
    753 # Check whether --enable-cpp or --disable-cpp was given.
    754 if test "${enable_cpp+set}" = set; then
    755   enableval="$enable_cpp"
     753# Check whether --enable-cxx or --disable-cxx was given.
     754if test "${enable_cxx+set}" = set; then
     755  enableval="$enable_cxx"
    756756  \
    757757case "${enableval}" in
    758758  yes) RTEMS_HAS_CPLUSPLUS=yes ;;
    759759  no) RTEMS_HAS_CPLUSPLUS=no   ;;
    760   *)  { echo "configure: error: bad value ${enableval} for enable-cpp option" 1>&2; exit 1; } ;;
     760  *)  { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;;
    761761esac
    762762else
     
    10291029fi
    10301030
    1031 for ac_func in strerror
    1032 do
    1033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1034 echo "configure:1035: checking for $ac_func" >&5
    1035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    1036   echo $ac_n "(cached) $ac_c" 1>&6
    1037 else
    1038   cat > conftest.$ac_ext <<EOF
    1039 #line 1040 "configure"
    1040 #include "confdefs.h"
    1041 /* System header to define __stub macros and hopefully few prototypes,
    1042     which can conflict with char $ac_func(); below.  */
    1043 #include <assert.h>
    1044 /* Override any gcc2 internal prototype to avoid an error.  */
    1045 /* We use char because int might match the return type of a gcc2
    1046     builtin and then its argument prototype would still apply.  */
    1047 char $ac_func();
    1048 
    1049 int main() {
    1050 
    1051 /* The GNU C library defines this for functions which it implements
    1052     to always fail with ENOSYS.  Some functions are actually named
    1053     something starting with __ and the normal name is an alias.  */
    1054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
    1055 choke me
    1056 #else
    1057 $ac_func();
    1058 #endif
    1059 
    1060 ; return 0; }
    1061 EOF
    1062 if { (eval echo configure:1063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    1063   rm -rf conftest*
    1064   eval "ac_cv_func_$ac_func=yes"
    1065 else
    1066   echo "configure: failed program was:" >&5
    1067   cat conftest.$ac_ext >&5
    1068   rm -rf conftest*
    1069   eval "ac_cv_func_$ac_func=no"
    1070 fi
    1071 rm -f conftest*
    1072 fi
    1073 
    1074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    1075   echo "$ac_t""yes" 1>&6
    1076     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    1077   cat >> confdefs.h <<EOF
    1078 #define $ac_tr_func 1
    1079 EOF
    1080  
    1081 else
    1082   echo "$ac_t""no" 1>&6
    1083 fi
    1084 done
    1085 
    10861031
    10871032# Extract the first word of "mkdir", so it can be a program name with args.
    10881033set dummy mkdir; ac_word=$2
    10891034echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1090 echo "configure:1091: checking for $ac_word" >&5
     1035echo "configure:1036: checking for $ac_word" >&5
    10911036if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
    10921037  echo $ac_n "(cached) $ac_c" 1>&6
     
    11201065
    11211066echo $ac_n "checking for working $MKDIR -m 0755""... $ac_c" 1>&6
    1122 echo "configure:1123: checking for working $MKDIR -m 0755" >&5
     1067echo "configure:1068: checking for working $MKDIR -m 0755" >&5
    11231068if eval "test \"`echo '$''{'rtems_cv_prog_MKDIR_P'+set}'`\" = set"; then
    11241069  echo $ac_n "(cached) $ac_c" 1>&6
     
    11371082
    11381083echo $ac_n "checking for working $MKDIR -p""... $ac_c" 1>&6
    1139 echo "configure:1140: checking for working $MKDIR -p" >&5
     1084echo "configure:1085: checking for working $MKDIR -p" >&5
    11401085if eval "test \"`echo '$''{'rtems_cv_prog_mkdir_p'+set}'`\" = set"; then
    11411086  echo $ac_n "(cached) $ac_c" 1>&6
     
    11571102set dummy touch; ac_word=$2
    11581103echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1159 echo "configure:1160: checking for $ac_word" >&5
     1104echo "configure:1105: checking for $ac_word" >&5
    11601105if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then
    11611106  echo $ac_n "(cached) $ac_c" 1>&6
     
    11881133set dummy cmp; ac_word=$2
    11891134echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1190 echo "configure:1191: checking for $ac_word" >&5
     1135echo "configure:1136: checking for $ac_word" >&5
    11911136if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
    11921137  echo $ac_n "(cached) $ac_c" 1>&6
     
    12201165set dummy sed; ac_word=$2
    12211166echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1222 echo "configure:1223: checking for $ac_word" >&5
     1167echo "configure:1168: checking for $ac_word" >&5
    12231168if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
    12241169  echo $ac_n "(cached) $ac_c" 1>&6
     
    12531198set dummy $ac_prog; ac_word=$2
    12541199echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1255 echo "configure:1256: checking for $ac_word" >&5
     1200echo "configure:1201: checking for $ac_word" >&5
    12561201if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then
    12571202  echo $ac_n "(cached) $ac_c" 1>&6
     
    12901235set dummy $ac_prog; ac_word=$2
    12911236echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1292 echo "configure:1293: checking for $ac_word" >&5
     1237echo "configure:1238: checking for $ac_word" >&5
    12931238if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
    12941239  echo $ac_n "(cached) $ac_c" 1>&6
     
    13271272    Please contact your system administrator " 1>&2; exit 1; };
    13281273fi
    1329 
    13301274
    13311275
     
    13641308  *)
    13651309        echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
    1366 echo "configure:1367: checking rtems target cpu" >&5
     1310echo "configure:1311: checking rtems target cpu" >&5
    13671311target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
    13681312echo "$ac_t""$target_cpu" 1>&6
     
    13831327# Is this a supported CPU?
    13841328echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6
    1385 echo "configure:1386: checking if cpu $target_cpu is supported" >&5
     1329echo "configure:1330: checking if cpu $target_cpu is supported" >&5
    13861330if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then
    13871331  echo "$ac_t""yes" 1>&6
     
    13911335fi
    13921336
     1337
     1338if [ "${program_prefix}" = "NONE" ] ; then
     1339  if [ "${target}" = "${host}" ] ; then
     1340    program_prefix=
     1341  else
     1342    program_prefix=${target}-
     1343  fi
     1344fi
     1345
     1346CC="$program_prefix"gcc
     1347
     1348# Extract the first word of "gcc", so it can be a program name with args.
     1349set dummy gcc; ac_word=$2
     1350echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1351echo "configure:1352: checking for $ac_word" >&5
     1352if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     1353  echo $ac_n "(cached) $ac_c" 1>&6
     1354else
     1355  if test -n "$CC"; then
     1356  ac_cv_prog_CC="$CC" # Let the user override the test.
     1357else
     1358  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1359  for ac_dir in $PATH; do
     1360    test -z "$ac_dir" && ac_dir=.
     1361    if test -f $ac_dir/$ac_word; then
     1362      ac_cv_prog_CC="gcc"
     1363      break
     1364    fi
     1365  done
     1366  IFS="$ac_save_ifs"
     1367fi
     1368fi
     1369CC="$ac_cv_prog_CC"
     1370if test -n "$CC"; then
     1371  echo "$ac_t""$CC" 1>&6
     1372else
     1373  echo "$ac_t""no" 1>&6
     1374fi
     1375
     1376if test -z "$CC"; then
     1377  # Extract the first word of "cc", so it can be a program name with args.
     1378set dummy cc; ac_word=$2
     1379echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1380echo "configure:1381: checking for $ac_word" >&5
     1381if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     1382  echo $ac_n "(cached) $ac_c" 1>&6
     1383else
     1384  if test -n "$CC"; then
     1385  ac_cv_prog_CC="$CC" # Let the user override the test.
     1386else
     1387  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1388  ac_prog_rejected=no
     1389  for ac_dir in $PATH; do
     1390    test -z "$ac_dir" && ac_dir=.
     1391    if test -f $ac_dir/$ac_word; then
     1392      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
     1393        ac_prog_rejected=yes
     1394        continue
     1395      fi
     1396      ac_cv_prog_CC="cc"
     1397      break
     1398    fi
     1399  done
     1400  IFS="$ac_save_ifs"
     1401if test $ac_prog_rejected = yes; then
     1402  # We found a bogon in the path, so make sure we never use it.
     1403  set dummy $ac_cv_prog_CC
     1404  shift
     1405  if test $# -gt 0; then
     1406    # We chose a different compiler from the bogus one.
     1407    # However, it has the same basename, so the bogon will be chosen
     1408    # first if we set CC to just the basename; use the full file name.
     1409    shift
     1410    set dummy "$ac_dir/$ac_word" "$@"
     1411    shift
     1412    ac_cv_prog_CC="$@"
     1413  fi
     1414fi
     1415fi
     1416fi
     1417CC="$ac_cv_prog_CC"
     1418if test -n "$CC"; then
     1419  echo "$ac_t""$CC" 1>&6
     1420else
     1421  echo "$ac_t""no" 1>&6
     1422fi
     1423
     1424  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
     1425fi
     1426
     1427echo $ac_n "checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     1428echo "configure:1429: checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     1429
     1430ac_ext=c
     1431# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     1432ac_cpp='$CPP $CPPFLAGS'
     1433ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     1434ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1435cross_compiling=$ac_cv_prog_cc_cross
     1436
     1437cat > conftest.$ac_ext <<EOF
     1438#line 1439 "configure"
     1439#include "confdefs.h"
     1440void *malloc() { return 0; }
     1441 main(){return(0);}
     1442EOF
     1443if { (eval echo configure:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1444  rtems_cv_prog_cc_works=yes
     1445  # If we can't run a trivial program, we are probably using a cross compiler.
     1446  if (./conftest; exit) 2>/dev/null; then
     1447    rtems_cv_prog_cc_cross=no
     1448  else
     1449    rtems_cv_prog_cc_cross=yes
     1450  fi
     1451else
     1452  echo "configure: failed program was:" >&5
     1453  cat conftest.$ac_ext >&5
     1454  rtems_cv_prog_cc_works=no
     1455fi
     1456rm -fr conftest*
     1457
     1458echo "$ac_t""$rtems_cv_prog_cc_works" 1>&6
     1459if test $rtems_cv_prog_cc_works = no; then
     1460  { echo "configure: error: installation or configuration problem: target C compiler cannot create executables." 1>&2; exit 1; }
     1461fi
     1462echo $ac_n "checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     1463echo "configure:1464: checking whether the target C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     1464echo "$ac_t""$rtems_cv_prog_cc_cross" 1>&6
     1465
     1466echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
     1467echo "configure:1468: checking whether we are using GNU C" >&5
     1468if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
     1469  echo $ac_n "(cached) $ac_c" 1>&6
     1470else
     1471  cat > conftest.c <<EOF
     1472#ifdef __GNUC__
     1473  yes;
     1474#endif
     1475EOF
     1476if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1477  ac_cv_prog_gcc=yes
     1478else
     1479  ac_cv_prog_gcc=no
     1480fi
     1481fi
     1482
     1483echo "$ac_t""$ac_cv_prog_gcc" 1>&6
     1484
     1485if test $ac_cv_prog_gcc = yes; then
     1486  GCC=yes
     1487  ac_test_CFLAGS="${CFLAGS+set}"
     1488  ac_save_CFLAGS="$CFLAGS"
     1489  CFLAGS=
     1490  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     1491echo "configure:1492: checking whether ${CC-cc} accepts -g" >&5
     1492if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
     1493  echo $ac_n "(cached) $ac_c" 1>&6
     1494else
     1495  echo 'void f(){}' > conftest.c
     1496if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     1497  ac_cv_prog_cc_g=yes
     1498else
     1499  ac_cv_prog_cc_g=no
     1500fi
     1501rm -f conftest*
     1502
     1503fi
     1504
     1505echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
     1506  if test "$ac_test_CFLAGS" = set; then
     1507    CFLAGS="$ac_save_CFLAGS"
     1508  elif test $ac_cv_prog_cc_g = yes; then
     1509    CFLAGS="-g -O2"
     1510  else
     1511    CFLAGS="-O2"
     1512  fi
     1513else
     1514  GCC=
     1515  test "${CFLAGS+set}" = set || CFLAGS="-g"
     1516fi
     1517
     1518CC_FOR_TARGET=$CC
     1519rtems_cv_prog_gcc=$ac_cv_prog_gcc
     1520rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
     1521
     1522unset CC
     1523unset ac_cv_prog_gcc
     1524unset ac_cv_prog_cc_g
     1525unset ac_cv_prog_CC
     1526
     1527
     1528if test "$RTEMS_USE_GCC272" != "yes" ; then
     1529 
     1530echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
     1531echo "configure:1532: checking whether $CC_FOR_TARGET accepts -specs" >&5
     1532if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
     1533  echo $ac_n "(cached) $ac_c" 1>&6
     1534else
     1535  touch confspec
     1536echo 'void f(){}' >conftest.c
     1537if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
     1538  rtems_cv_gcc_specs=yes
     1539else
     1540  rtems_cv_gcc_specs=no
     1541fi
     1542rm -f confspec conftest*
     1543
     1544fi
     1545
     1546echo "$ac_t""$rtems_cv_gcc_specs" 1>&6
     1547  if test "$rtems_cv_gcc_specs" = "no"; then
     1548    echo "configure: warning: *** disabling --enable-gcc28" 1>&2
     1549     RTEMS_USE_GCC272=yes
     1550  fi
     1551fi
     1552
     1553
     1554echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
     1555echo "configure:1556: checking whether $CC_FOR_TARGET accepts --pipe" >&5
     1556if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
     1557  echo $ac_n "(cached) $ac_c" 1>&6
     1558else
     1559 
     1560echo 'void f(){}' >conftest.c
     1561if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
     1562  rtems_cv_gcc_pipe=yes
     1563else
     1564  rtems_cv_gcc_pipe=no
     1565fi
     1566rm -f conftest*
     1567
     1568fi
     1569
     1570echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6
     1571
     1572if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
     1573  CXX="$program_prefix"g++
     1574 
     1575for ac_prog in $CCC c++ g++ gcc CC cxx cc++
     1576do
     1577# Extract the first word of "$ac_prog", so it can be a program name with args.
     1578set dummy $ac_prog; ac_word=$2
     1579echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1580echo "configure:1581: checking for $ac_word" >&5
     1581if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
     1582  echo $ac_n "(cached) $ac_c" 1>&6
     1583else
     1584  if test -n "$CXX"; then
     1585  ac_cv_prog_CXX="$CXX" # Let the user override the test.
     1586else
     1587  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1588  for ac_dir in $PATH; do
     1589    test -z "$ac_dir" && ac_dir=.
     1590    if test -f $ac_dir/$ac_word; then
     1591      ac_cv_prog_CXX="$ac_prog"
     1592      break
     1593    fi
     1594  done
     1595  IFS="$ac_save_ifs"
     1596fi
     1597fi
     1598CXX="$ac_cv_prog_CXX"
     1599if test -n "$CXX"; then
     1600  echo "$ac_t""$CXX" 1>&6
     1601else
     1602  echo "$ac_t""no" 1>&6
     1603fi
     1604
     1605test -n "$CXX" && break
     1606done
     1607test -n "$CXX" || CXX="gcc"
     1608
     1609
     1610echo $ac_n "checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     1611echo "configure:1612: checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     1612
     1613ac_ext=C
     1614# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     1615ac_cpp='$CXXCPP $CPPFLAGS'
     1616ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     1617ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1618cross_compiling=$ac_cv_prog_cxx_cross
     1619
     1620
     1621cat > conftest.$ac_ext <<EOF
     1622#line 1623 "configure"
     1623#include "confdefs.h"
     1624main(){return(0);}
     1625EOF
     1626if { (eval echo configure:1627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1627  rtems_cv_prog_cxx_works=yes
     1628  # If we can't run a trivial program, we are probably using a cross compiler.
     1629  if (./conftest; exit) 2>/dev/null; then
     1630    rtems_cv_prog_cxx_cross=no
     1631  else
     1632    rtems_cv_prog_cxx_cross=yes
     1633  fi
     1634else
     1635  echo "configure: failed program was:" >&5
     1636  cat conftest.$ac_ext >&5
     1637  rtems_cv_prog_cxx_works=no
     1638fi
     1639rm -fr conftest*
     1640if test "$rtems_cv_prog_cxx_works" = "no"; then
     1641    cat > conftest.$ac_ext <<EOF
     1642#line 1643 "configure"
     1643#include "confdefs.h"
     1644extern "C" void *malloc();
     1645     void *malloc() { return (0); }
     1646     main(){return(0);}
     1647EOF
     1648if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1649  rtems_cv_prog_cxx_works=yes
     1650  # If we can't run a trivial program, we are probably using a cross compiler.
     1651  if (./conftest; exit) 2>/dev/null; then
     1652    rtems_cv_prog_cxx_cross=no
     1653  else
     1654    rtems_cv_prog_cxx_cross=yes
     1655  fi
     1656else
     1657  echo "configure: failed program was:" >&5
     1658  cat conftest.$ac_ext >&5
     1659  rtems_cv_prog_cxx_works=no
     1660fi
     1661rm -fr conftest*
     1662fi
     1663ac_ext=c
     1664# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     1665ac_cpp='$CPP $CPPFLAGS'
     1666ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     1667ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     1668cross_compiling=$ac_cv_prog_cc_cross
     1669
     1670echo "$ac_t""$rtems_cv_prog_cxx_works" 1>&6
     1671if test $rtems_cv_prog_cxx_works = no; then
     1672  { echo "configure: error: installation or configuration problem: target C++ compiler cannot create executables." 1>&2; exit 1; }
     1673fi
     1674echo $ac_n "checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     1675echo "configure:1676: checking whether the target C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     1676echo "$ac_t""$rtems_cv_prog_cxx_cross" 1>&6
     1677
     1678echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
     1679echo "configure:1680: checking whether we are using GNU C++" >&5
     1680if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
     1681  echo $ac_n "(cached) $ac_c" 1>&6
     1682else
     1683  cat > conftest.C <<EOF
     1684#ifdef __GNUC__
     1685  yes;
     1686#endif
     1687EOF
     1688if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1689  ac_cv_prog_gxx=yes
     1690else
     1691  ac_cv_prog_gxx=no
     1692fi
     1693fi
     1694
     1695echo "$ac_t""$ac_cv_prog_gxx" 1>&6
     1696
     1697if test $ac_cv_prog_gxx = yes; then
     1698  GXX=yes
     1699  ac_test_CXXFLAGS="${CXXFLAGS+set}"
     1700  ac_save_CXXFLAGS="$CXXFLAGS"
     1701  CXXFLAGS=
     1702  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
     1703echo "configure:1704: checking whether ${CXX-g++} accepts -g" >&5
     1704if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
     1705  echo $ac_n "(cached) $ac_c" 1>&6
     1706else
     1707  echo 'void f(){}' > conftest.cc
     1708if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
     1709  ac_cv_prog_cxx_g=yes
     1710else
     1711  ac_cv_prog_cxx_g=no
     1712fi
     1713rm -f conftest*
     1714
     1715fi
     1716
     1717echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
     1718  if test "$ac_test_CXXFLAGS" = set; then
     1719    CXXFLAGS="$ac_save_CXXFLAGS"
     1720  elif test $ac_cv_prog_cxx_g = yes; then
     1721    CXXFLAGS="-g -O2"
     1722  else
     1723    CXXFLAGS="-O2"
     1724  fi
     1725else
     1726  GXX=
     1727  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
     1728fi
     1729CXX_FOR_TARGET=$CXX
     1730
     1731unset CXX
     1732unset ac_cv_prog_gxx
     1733
     1734  # Extract the first word of ""$program_prefix"g++", so it can be a program name with args.
     1735set dummy "$program_prefix"g++; ac_word=$2
     1736echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1737echo "configure:1738: checking for $ac_word" >&5
     1738if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
     1739  echo $ac_n "(cached) $ac_c" 1>&6
     1740else
     1741  case "$CXX_FOR_TARGET" in
     1742  /*)
     1743  ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path.
     1744  ;;
     1745  *)
     1746  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1747  for ac_dir in $PATH; do
     1748    test -z "$ac_dir" && ac_dir=.
     1749    if test -f $ac_dir/$ac_word; then
     1750      ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word"
     1751      break
     1752    fi
     1753  done
     1754  IFS="$ac_save_ifs"
     1755  test -z "$ac_cv_path_CXX_FOR_TARGET" && ac_cv_path_CXX_FOR_TARGET="no"
     1756  ;;
     1757esac
     1758fi
     1759CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET"
     1760if test -n "$CXX_FOR_TARGET"; then
     1761  echo "$ac_t""$CXX_FOR_TARGET" 1>&6
     1762else
     1763  echo "$ac_t""no" 1>&6
     1764fi
     1765
     1766else
     1767  CXX_FOR_TARGET="no"
     1768fi
     1769
     1770if test "$rtems_cv_prog_gcc" = "yes" ; then
     1771        AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar`
     1772  AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as`
     1773  LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld`
     1774  NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm`
     1775  RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib`
     1776fi
     1777
     1778
     1779# Extract the first word of ""$program_prefix"gcc", so it can be a program name with args.
     1780set dummy "$program_prefix"gcc; ac_word=$2
     1781echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1782echo "configure:1783: checking for $ac_word" >&5
     1783if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
     1784  echo $ac_n "(cached) $ac_c" 1>&6
     1785else
     1786  case "$CC_FOR_TARGET" in
     1787  /*)
     1788  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path.
     1789  ;;
     1790  *)
     1791  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1792  for ac_dir in $PATH; do
     1793    test -z "$ac_dir" && ac_dir=.
     1794    if test -f $ac_dir/$ac_word; then
     1795      ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word"
     1796      break
     1797    fi
     1798  done
     1799  IFS="$ac_save_ifs"
     1800  test -z "$ac_cv_path_CC_FOR_TARGET" && ac_cv_path_CC_FOR_TARGET="no"
     1801  ;;
     1802esac
     1803fi
     1804CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET"
     1805if test -n "$CC_FOR_TARGET"; then
     1806  echo "$ac_t""$CC_FOR_TARGET" 1>&6
     1807else
     1808  echo "$ac_t""no" 1>&6
     1809fi
     1810
     1811
     1812# Extract the first word of ""$program_prefix"ar", so it can be a program name with args.
     1813set dummy "$program_prefix"ar; ac_word=$2
     1814echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1815echo "configure:1816: checking for $ac_word" >&5
     1816if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
     1817  echo $ac_n "(cached) $ac_c" 1>&6
     1818else
     1819  case "$AR_FOR_TARGET" in
     1820  /*)
     1821  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
     1822  ;;
     1823  *)
     1824  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1825  for ac_dir in $PATH; do
     1826    test -z "$ac_dir" && ac_dir=.
     1827    if test -f $ac_dir/$ac_word; then
     1828      ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
     1829      break
     1830    fi
     1831  done
     1832  IFS="$ac_save_ifs"
     1833  test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no"
     1834  ;;
     1835esac
     1836fi
     1837AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
     1838if test -n "$AR_FOR_TARGET"; then
     1839  echo "$ac_t""$AR_FOR_TARGET" 1>&6
     1840else
     1841  echo "$ac_t""no" 1>&6
     1842fi
     1843
     1844# Extract the first word of ""$program_prefix"as", so it can be a program name with args.
     1845set dummy "$program_prefix"as; ac_word=$2
     1846echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1847echo "configure:1848: checking for $ac_word" >&5
     1848if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
     1849  echo $ac_n "(cached) $ac_c" 1>&6
     1850else
     1851  case "$AS_FOR_TARGET" in
     1852  /*)
     1853  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
     1854  ;;
     1855  *)
     1856  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1857  for ac_dir in $PATH; do
     1858    test -z "$ac_dir" && ac_dir=.
     1859    if test -f $ac_dir/$ac_word; then
     1860      ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
     1861      break
     1862    fi
     1863  done
     1864  IFS="$ac_save_ifs"
     1865  test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no"
     1866  ;;
     1867esac
     1868fi
     1869AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
     1870if test -n "$AS_FOR_TARGET"; then
     1871  echo "$ac_t""$AS_FOR_TARGET" 1>&6
     1872else
     1873  echo "$ac_t""no" 1>&6
     1874fi
     1875
     1876# Extract the first word of ""$program_prefix"nm", so it can be a program name with args.
     1877set dummy "$program_prefix"nm; ac_word=$2
     1878echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1879echo "configure:1880: checking for $ac_word" >&5
     1880if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
     1881  echo $ac_n "(cached) $ac_c" 1>&6
     1882else
     1883  case "$NM_FOR_TARGET" in
     1884  /*)
     1885  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
     1886  ;;
     1887  *)
     1888  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1889  for ac_dir in $PATH; do
     1890    test -z "$ac_dir" && ac_dir=.
     1891    if test -f $ac_dir/$ac_word; then
     1892      ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
     1893      break
     1894    fi
     1895  done
     1896  IFS="$ac_save_ifs"
     1897  test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no"
     1898  ;;
     1899esac
     1900fi
     1901NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
     1902if test -n "$NM_FOR_TARGET"; then
     1903  echo "$ac_t""$NM_FOR_TARGET" 1>&6
     1904else
     1905  echo "$ac_t""no" 1>&6
     1906fi
     1907
     1908# Extract the first word of ""$program_prefix"ld", so it can be a program name with args.
     1909set dummy "$program_prefix"ld; ac_word=$2
     1910echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1911echo "configure:1912: checking for $ac_word" >&5
     1912if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
     1913  echo $ac_n "(cached) $ac_c" 1>&6
     1914else
     1915  case "$LD_FOR_TARGET" in
     1916  /*)
     1917  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
     1918  ;;
     1919  *)
     1920  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1921  for ac_dir in $PATH; do
     1922    test -z "$ac_dir" && ac_dir=.
     1923    if test -f $ac_dir/$ac_word; then
     1924      ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
     1925      break
     1926    fi
     1927  done
     1928  IFS="$ac_save_ifs"
     1929  test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no"
     1930  ;;
     1931esac
     1932fi
     1933LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
     1934if test -n "$LD_FOR_TARGET"; then
     1935  echo "$ac_t""$LD_FOR_TARGET" 1>&6
     1936else
     1937  echo "$ac_t""no" 1>&6
     1938fi
     1939
     1940
     1941# Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args.
     1942set dummy "$program_prefix"ranlib; ac_word=$2
     1943echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1944echo "configure:1945: checking for $ac_word" >&5
     1945if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
     1946  echo $ac_n "(cached) $ac_c" 1>&6
     1947else
     1948  case "$RANLIB_FOR_TARGET" in
     1949  /*)
     1950  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
     1951  ;;
     1952  *)
     1953  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1954  for ac_dir in $PATH; do
     1955    test -z "$ac_dir" && ac_dir=.
     1956    if test -f $ac_dir/$ac_word; then
     1957      ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
     1958      break
     1959    fi
     1960  done
     1961  IFS="$ac_save_ifs"
     1962  test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no"
     1963  ;;
     1964esac
     1965fi
     1966RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
     1967if test -n "$RANLIB_FOR_TARGET"; then
     1968  echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
     1969else
     1970  echo "$ac_t""no" 1>&6
     1971fi
     1972
     1973
     1974# Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args.
     1975set dummy "$program_prefix"objcopy; ac_word=$2
     1976echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1977echo "configure:1978: checking for $ac_word" >&5
     1978if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
     1979  echo $ac_n "(cached) $ac_c" 1>&6
     1980else
     1981  case "$OBJCOPY_FOR_TARGET" in
     1982  /*)
     1983  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
     1984  ;;
     1985  *)
     1986  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     1987  for ac_dir in $PATH; do
     1988    test -z "$ac_dir" && ac_dir=.
     1989    if test -f $ac_dir/$ac_word; then
     1990      ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word"
     1991      break
     1992    fi
     1993  done
     1994  IFS="$ac_save_ifs"
     1995  test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no"
     1996  ;;
     1997esac
     1998fi
     1999OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET"
     2000if test -n "$OBJCOPY_FOR_TARGET"; then
     2001  echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6
     2002else
     2003  echo "$ac_t""no" 1>&6
     2004fi
     2005
     2006# Extract the first word of ""$program_prefix"size", so it can be a program name with args.
     2007set dummy "$program_prefix"size; ac_word=$2
     2008echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     2009echo "configure:2010: checking for $ac_word" >&5
     2010if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
     2011  echo $ac_n "(cached) $ac_c" 1>&6
     2012else
     2013  case "$SIZE_FOR_TARGET" in
     2014  /*)
     2015  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path.
     2016  ;;
     2017  *)
     2018  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     2019  for ac_dir in $PATH; do
     2020    test -z "$ac_dir" && ac_dir=.
     2021    if test -f $ac_dir/$ac_word; then
     2022      ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word"
     2023      break
     2024    fi
     2025  done
     2026  IFS="$ac_save_ifs"
     2027  test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no"
     2028  ;;
     2029esac
     2030fi
     2031SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET"
     2032if test -n "$SIZE_FOR_TARGET"; then
     2033  echo "$ac_t""$SIZE_FOR_TARGET" 1>&6
     2034else
     2035  echo "$ac_t""no" 1>&6
     2036fi
     2037
     2038
     2039test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
     2040
     2041# Extract the first word of "gcc", so it can be a program name with args.
     2042set dummy gcc; ac_word=$2
     2043echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     2044echo "configure:2045: checking for $ac_word" >&5
     2045if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     2046  echo $ac_n "(cached) $ac_c" 1>&6
     2047else
     2048  if test -n "$CC"; then
     2049  ac_cv_prog_CC="$CC" # Let the user override the test.
     2050else
     2051  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     2052  for ac_dir in $PATH; do
     2053    test -z "$ac_dir" && ac_dir=.
     2054    if test -f $ac_dir/$ac_word; then
     2055      ac_cv_prog_CC="gcc"
     2056      break
     2057    fi
     2058  done
     2059  IFS="$ac_save_ifs"
     2060fi
     2061fi
     2062CC="$ac_cv_prog_CC"
     2063if test -n "$CC"; then
     2064  echo "$ac_t""$CC" 1>&6
     2065else
     2066  echo "$ac_t""no" 1>&6
     2067fi
     2068
     2069if test -z "$CC"; then
     2070  # Extract the first word of "cc", so it can be a program name with args.
     2071set dummy cc; ac_word=$2
     2072echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     2073echo "configure:2074: checking for $ac_word" >&5
     2074if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     2075  echo $ac_n "(cached) $ac_c" 1>&6
     2076else
     2077  if test -n "$CC"; then
     2078  ac_cv_prog_CC="$CC" # Let the user override the test.
     2079else
     2080  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
     2081  ac_prog_rejected=no
     2082  for ac_dir in $PATH; do
     2083    test -z "$ac_dir" && ac_dir=.
     2084    if test -f $ac_dir/$ac_word; then
     2085      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
     2086        ac_prog_rejected=yes
     2087        continue
     2088      fi
     2089      ac_cv_prog_CC="cc"
     2090      break
     2091    fi
     2092  done
     2093  IFS="$ac_save_ifs"
     2094if test $ac_prog_rejected = yes; then
     2095  # We found a bogon in the path, so make sure we never use it.
     2096  set dummy $ac_cv_prog_CC
     2097  shift
     2098  if test $# -gt 0; then
     2099    # We chose a different compiler from the bogus one.
     2100    # However, it has the same basename, so the bogon will be chosen
     2101    # first if we set CC to just the basename; use the full file name.
     2102    shift
     2103    set dummy "$ac_dir/$ac_word" "$@"
     2104    shift
     2105    ac_cv_prog_CC="$@"
     2106  fi
     2107fi
     2108fi
     2109fi
     2110CC="$ac_cv_prog_CC"
     2111if test -n "$CC"; then
     2112  echo "$ac_t""$CC" 1>&6
     2113else
     2114  echo "$ac_t""no" 1>&6
     2115fi
     2116
     2117  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
     2118fi
     2119
     2120echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     2121echo "configure:2122: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     2122
     2123ac_ext=c
     2124# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     2125ac_cpp='$CPP $CPPFLAGS'
     2126ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     2127ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     2128cross_compiling=$ac_cv_prog_cc_cross
     2129
     2130cat > conftest.$ac_ext <<EOF
     2131#line 2132 "configure"
     2132#include "confdefs.h"
     2133main(){return(0);}
     2134EOF
     2135if { (eval echo configure:2136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2136  ac_cv_prog_cc_works=yes
     2137  # If we can't run a trivial program, we are probably using a cross compiler.
     2138  if (./conftest; exit) 2>/dev/null; then
     2139    ac_cv_prog_cc_cross=no
     2140  else
     2141    ac_cv_prog_cc_cross=yes
     2142  fi
     2143else
     2144  echo "configure: failed program was:" >&5
     2145  cat conftest.$ac_ext >&5
     2146  ac_cv_prog_cc_works=no
     2147fi
     2148rm -fr conftest*
     2149
     2150echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     2151if test $ac_cv_prog_cc_works = no; then
     2152  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
     2153fi
     2154echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     2155echo "configure:2156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     2156echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
     2157cross_compiling=$ac_cv_prog_cc_cross
     2158
     2159echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
     2160echo "configure:2161: checking whether we are using GNU C" >&5
     2161if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
     2162  echo $ac_n "(cached) $ac_c" 1>&6
     2163else
     2164  cat > conftest.c <<EOF
     2165#ifdef __GNUC__
     2166  yes;
     2167#endif
     2168EOF
     2169if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     2170  ac_cv_prog_gcc=yes
     2171else
     2172  ac_cv_prog_gcc=no
     2173fi
     2174fi
     2175
     2176echo "$ac_t""$ac_cv_prog_gcc" 1>&6
     2177
     2178if test $ac_cv_prog_gcc = yes; then
     2179  GCC=yes
     2180  ac_test_CFLAGS="${CFLAGS+set}"
     2181  ac_save_CFLAGS="$CFLAGS"
     2182  CFLAGS=
     2183  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     2184echo "configure:2185: checking whether ${CC-cc} accepts -g" >&5
     2185if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
     2186  echo $ac_n "(cached) $ac_c" 1>&6
     2187else
     2188  echo 'void f(){}' > conftest.c
     2189if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     2190  ac_cv_prog_cc_g=yes
     2191else
     2192  ac_cv_prog_cc_g=no
     2193fi
     2194rm -f conftest*
     2195
     2196fi
     2197
     2198echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
     2199  if test "$ac_test_CFLAGS" = set; then
     2200    CFLAGS="$ac_save_CFLAGS"
     2201  elif test $ac_cv_prog_cc_g = yes; then
     2202    CFLAGS="-g -O2"
     2203  else
     2204    CFLAGS="-O2"
     2205  fi
     2206else
     2207  GCC=
     2208  test "${CFLAGS+set}" = set || CFLAGS="-g"
     2209fi
     2210
     2211
     2212for ac_func in strerror
     2213do
     2214echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2215echo "configure:2216: checking for $ac_func" >&5
     2216if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2217  echo $ac_n "(cached) $ac_c" 1>&6
     2218else
     2219  cat > conftest.$ac_ext <<EOF
     2220#line 2221 "configure"
     2221#include "confdefs.h"
     2222/* System header to define __stub macros and hopefully few prototypes,
     2223    which can conflict with char $ac_func(); below.  */
     2224#include <assert.h>
     2225/* Override any gcc2 internal prototype to avoid an error.  */
     2226/* We use char because int might match the return type of a gcc2
     2227    builtin and then its argument prototype would still apply.  */
     2228char $ac_func();
     2229
     2230int main() {
     2231
     2232/* The GNU C library defines this for functions which it implements
     2233    to always fail with ENOSYS.  Some functions are actually named
     2234    something starting with __ and the normal name is an alias.  */
     2235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     2236choke me
     2237#else
     2238$ac_func();
     2239#endif
     2240
     2241; return 0; }
     2242EOF
     2243if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2244  rm -rf conftest*
     2245  eval "ac_cv_func_$ac_func=yes"
     2246else
     2247  echo "configure: failed program was:" >&5
     2248  cat conftest.$ac_ext >&5
     2249  rm -rf conftest*
     2250  eval "ac_cv_func_$ac_func=no"
     2251fi
     2252rm -f conftest*
     2253fi
     2254
     2255if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2256  echo "$ac_t""yes" 1>&6
     2257    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2258  cat >> confdefs.h <<EOF
     2259#define $ac_tr_func 1
     2260EOF
     2261 
     2262else
     2263  echo "$ac_t""no" 1>&6
     2264fi
     2265done
     2266
     2267
    13932268# find all the Executive Makefiles
    13942269
    13952270echo $ac_n "checking for Makefile.in in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6
    1396 echo "configure:1397: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
     2271echo "configure:2272: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
    13972272if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then
    13982273  rtems_av_save_dir=`pwd`;
     
    14092284
    14102285echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6
    1411 echo "configure:1412: checking for Makefile.in in c/src/exec/rtems" >&5
     2286echo "configure:2287: checking for Makefile.in in c/src/exec/rtems" >&5
    14122287if test -d $srcdir/c/src/exec/rtems; then
    14132288  rtems_av_save_dir=`pwd`;
     
    14242299
    14252300echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6
    1426 echo "configure:1427: checking for Makefile.in in c/src/exec/sapi" >&5
     2301echo "configure:2302: checking for Makefile.in in c/src/exec/sapi" >&5
    14272302if test -d $srcdir/c/src/exec/sapi; then
    14282303  rtems_av_save_dir=`pwd`;
     
    14412316 
    14422317echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6
    1443 echo "configure:1444: checking for Makefile.in in c/src/exec/posix" >&5
     2318echo "configure:2319: checking for Makefile.in in c/src/exec/posix" >&5
    14442319if test -d $srcdir/c/src/exec/posix; then
    14452320  rtems_av_save_dir=`pwd`;
     
    14632338  if test -z "$rtems_bsp"; then
    14642339    echo $ac_n "checking for bsps""... $ac_c" 1>&6
    1465 echo "configure:1466: checking for bsps" >&5
     2340echo "configure:2341: checking for bsps" >&5
    14662341    files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
    14672342    for file in $files; do
     
    15102385       
    15112386echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir""... $ac_c" 1>&6
    1512 echo "configure:1513: checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir" >&5
     2387echo "configure:2388: checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir" >&5
    15132388if test -d $srcdir/c/src/lib/libbsp/$target_cpu/$bspdir; then
    15142389  rtems_av_save_dir=`pwd`;
     
    15332408
    15342409echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6
    1535 echo "configure:1536: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
     2410echo "configure:2411: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
    15362411if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then
    15372412  rtems_av_save_dir=`pwd`;
     
    15502425 
    15512426echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6
    1552 echo "configure:1553: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
     2427echo "configure:2428: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
    15532428if test -d $srcdir/c/src/lib/start/$target_cpu; then
    15542429  rtems_av_save_dir=`pwd`;
     
    15672442
    15682443
    1569 #
    1570 #  Target configurations are listed in alphabetical order. 
    1571 #  The BSPs for a target configuration are also listed in alphabetical order.
    1572 #
    1573 
    1574 
    1575 if [ "${program_prefix}" = "NONE" ] ; then
    1576   if [ "${target}" = "${host}" ] ; then
    1577     program_prefix=
    1578   else
    1579     program_prefix=${target}-
    1580   fi
    1581 fi
    1582 
    15832444PROJECT_ROOT=`pwd;`
    15842445
     
    16062467# If the tests are enabled, then find all the test suite Makefiles
    16072468echo $ac_n "checking Are the test suites enabled? ""... $ac_c" 1>&6
    1608 echo "configure:1609: checking Are the test suites enabled? " >&5
     2469echo "configure:2470: checking Are the test suites enabled? " >&5
    16092470tests_enabled=yes
    16102471# Check whether --enable-tests or --disable-tests was given.
     
    16262487   
    16272488echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6
    1628 echo "configure:1629: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
     2489echo "configure:2490: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
    16292490if test -d $srcdir/c/src/tests/tools/$target_cpu; then
    16302491  rtems_av_save_dir=`pwd`;
     
    16412502   
    16422503echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6
    1643 echo "configure:1644: checking for Makefile.in in c/src/tests/libtests" >&5
     2504echo "configure:2505: checking for Makefile.in in c/src/tests/libtests" >&5
    16442505if test -d $srcdir/c/src/tests/libtests; then
    16452506  rtems_av_save_dir=`pwd`;
     
    16562517   
    16572518echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6
    1658 echo "configure:1659: checking for Makefile.in in c/src/tests/sptests" >&5
     2519echo "configure:2520: checking for Makefile.in in c/src/tests/sptests" >&5
    16592520if test -d $srcdir/c/src/tests/sptests; then
    16602521  rtems_av_save_dir=`pwd`;
     
    16712532   
    16722533echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6
    1673 echo "configure:1674: checking for Makefile.in in c/src/tests/tmtests" >&5
     2534echo "configure:2535: checking for Makefile.in in c/src/tests/tmtests" >&5
    16742535if test -d $srcdir/c/src/tests/tmtests; then
    16752536  rtems_av_save_dir=`pwd`;
     
    16862547   
    16872548echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6
    1688 echo "configure:1689: checking for Makefile.in in c/src/tests/mptests" >&5
     2549echo "configure:2550: checking for Makefile.in in c/src/tests/mptests" >&5
    16892550if test -d $srcdir/c/src/tests/mptests; then
    16902551  rtems_av_save_dir=`pwd`;
     
    17022563     
    17032564echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6
    1704 echo "configure:1705: checking for Makefile.in in c/src/tests/psxtests" >&5
     2565echo "configure:2566: checking for Makefile.in in c/src/tests/psxtests" >&5
    17052566if test -d $srcdir/c/src/tests/psxtests; then
    17062567  rtems_av_save_dir=`pwd`;
     
    17202581# If the HWAPI is enabled, the find the HWAPI Makefiles
    17212582echo $ac_n "checking Is the HWAPI enabled? ""... $ac_c" 1>&6
    1722 echo "configure:1723: checking Is the HWAPI enabled? " >&5
     2583echo "configure:2584: checking Is the HWAPI enabled? " >&5
    17232584# Check whether --enable-hwapi or --disable-hwapi was given.
    17242585if test "${enable_hwapi+set}" = set; then
     
    17312592           
    17322593echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6
    1733 echo "configure:1734: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
     2594echo "configure:2595: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
    17342595if test -d $srcdir/c/src/lib/libhwapi/analog; then
    17352596  rtems_av_save_dir=`pwd`;
     
    17462607           
    17472608echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6
    1748 echo "configure:1749: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
     2609echo "configure:2610: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
    17492610if test -d $srcdir/c/src/lib/libhwapi/discrete; then
    17502611  rtems_av_save_dir=`pwd`;
     
    17612622           
    17622623echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6
    1763 echo "configure:1764: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
     2624echo "configure:2625: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
    17642625if test -d $srcdir/c/src/lib/libhwapi/drivers; then
    17652626  rtems_av_save_dir=`pwd`;
     
    17762637           
    17772638echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6
    1778 echo "configure:1779: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
     2639echo "configure:2640: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
    17792640if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then
    17802641  rtems_av_save_dir=`pwd`;
     
    17912652           
    17922653echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6
    1793 echo "configure:1794: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
     2654echo "configure:2655: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
    17942655if test -d $srcdir/c/src/lib/libhwapi/serial; then
    17952656  rtems_av_save_dir=`pwd`;
     
    18062667           
    18072668echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6
    1808 echo "configure:1809: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
     2669echo "configure:2670: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
    18092670if test -d $srcdir/c/src/lib/libhwapi/support; then
    18102671  rtems_av_save_dir=`pwd`;
     
    18212682           
    18222683echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6
    1823 echo "configure:1824: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
     2684echo "configure:2685: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
    18242685if test -d $srcdir/c/src/lib/libhwapi/wrapup; then
    18252686  rtems_av_save_dir=`pwd`;
     
    18632724
    18642725echo $ac_n "checking for Makefile.in in c/build-tools""... $ac_c" 1>&6
    1865 echo "configure:1866: checking for Makefile.in in c/build-tools" >&5
     2726echo "configure:2727: checking for Makefile.in in c/build-tools" >&5
    18662727if test -d $srcdir/c/build-tools; then
    18672728  rtems_av_save_dir=`pwd`;
     
    18782739
    18792740echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6
    1880 echo "configure:1881: checking for Makefile.in in make" >&5
     2741echo "configure:2742: checking for Makefile.in in make" >&5
    18812742if test -d $srcdir/make; then
    18822743  rtems_av_save_dir=`pwd`;
     
    18932754
    18942755echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6
    1895 echo "configure:1896: checking for Makefile.in in c/src/lib/libmisc" >&5
     2756echo "configure:2757: checking for Makefile.in in c/src/lib/libmisc" >&5
    18962757if test -d $srcdir/c/src/lib/libmisc; then
    18972758  rtems_av_save_dir=`pwd`;
     
    19082769
    19092770echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6
    1910 echo "configure:1911: checking for Makefile.in in c/src/tests/samples" >&5
     2771echo "configure:2772: checking for Makefile.in in c/src/tests/samples" >&5
    19112772if test -d $srcdir/c/src/tests/samples; then
    19122773  rtems_av_save_dir=`pwd`;
     
    19192780  echo "$ac_t""no" 1>&6
    19202781fi
    1921 
    1922 
    19232782
    19242783
     
    20282887
    20292888trap 'rm -fr `echo "Makefile
     2889make/host.cfg
     2890make/target.cfg
     2891make/Templates/Makefile.inc
    20302892c/Makefile
    20312893c/src/Makefile
     
    20572919c/src/tests/tools/generic/Makefile
    20582920$makefiles
    2059 make/host.cfg
    2060 make/target.cfg
    2061 make/Templates/Makefile.inc
    20622921c/update-tools/Makefile c/build-tools/src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    20632922EOF
     
    21202979s%@M4@%$M4%g
    21212980s%@KSH@%$KSH%g
     2981s%@CC@%$CC%g
     2982s%@CXX@%$CXX%g
     2983s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
     2984s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
     2985s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
     2986s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
     2987s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
     2988s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
     2989s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
     2990s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g
     2991s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g
    21222992s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g
    21232993s%@RTEMS_HOST@%$RTEMS_HOST%g
     
    21733043
    21743044CONFIG_FILES=\${CONFIG_FILES-"Makefile
     3045make/host.cfg
     3046make/target.cfg
     3047make/Templates/Makefile.inc
    21753048c/Makefile
    21763049c/src/Makefile
     
    22023075c/src/tests/tools/generic/Makefile
    22033076$makefiles
    2204 make/host.cfg
    2205 make/target.cfg
    2206 make/Templates/Makefile.inc
    22073077c/update-tools/Makefile"}
    22083078EOF
  • configure.in

    rb4589477 r3771cc6e  
    4444esac],[RTEMS_USE_MACROS=no])
    4545
    46 AC_ARG_ENABLE(cpp, \
    47 [  --enable-cpp            enable C++ support, and build the rtems++ library], \
     46AC_ARG_ENABLE(cxx, \
     47[  --enable-cxx            enable C++ support, and build the rtems++ library], \
    4848[case "${enableval}" in
    4949  yes) RTEMS_HAS_CPLUSPLUS=yes ;;
    5050  no) RTEMS_HAS_CPLUSPLUS=no   ;;
    51   *)  AC_MSG_ERROR(bad value ${enableval} for enable-cpp option) ;;
     51  *)  AC_MSG_ERROR(bad value ${enableval} for enable-cxx option) ;;
    5252esac], [RTEMS_HAS_CPLUSPLUS=no])
    5353
     
    7777AC_PATH_PROG(CHMOD,chmod)
    7878AC_PATH_PROG(SORT,sort)
    79 AC_CHECK_FUNCS(strerror)
    8079
    8180dnl check mkdir behaviour, try to get mkdir -p -m 0755
     
    102101[    Please contact your system administrator] );
    103102fi
    104 
    105 dnl END configure.host.in
    106103
    107104dnl BEGIN configure.target.in
     
    172169  AC_MSG_ERROR(no)
    173170fi
     171
     172dnl NOTE: host_os is automatically set by autoconf
     173
     174if [[ "${program_prefix}" = "NONE" ]] ; then
     175  if [[ "${target}" = "${host}" ]] ; then
     176    program_prefix=
     177  else
     178    program_prefix=${target}-
     179  fi
     180fi
     181
     182dnl check target cc
     183CC="$program_prefix"gcc
     184RTEMS_PROG_CC
     185
     186dnl check if the compiler supports --specs if gcc28 is requested
     187if test "$RTEMS_USE_GCC272" != "yes" ; then
     188  RTEMS_GCC_SPECS
     189  if test "$rtems_cv_gcc_specs" = "no"; then
     190    AC_MSG_WARN([*** disabling --enable-gcc28])
     191     RTEMS_USE_GCC272=yes
     192  fi
     193fi
     194
     195dnl check if the target compiler may use --pipe
     196RTEMS_GCC_PIPE
     197
     198dnl check for g++
     199if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
     200  CXX="$program_prefix"g++
     201  RTEMS_PROG_CXX
     202  AC_PATH_PROG(CXX_FOR_TARGET,"$program_prefix"g++,no)
     203else
     204  CXX_FOR_TARGET="no"
     205fi
     206
     207RTEMS_CANONICALIZE_TOOLS
     208test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
     209
     210dnl check host cc
     211AC_PROG_CC
     212
     213dnl check for host library functions
     214dnl NOTE: must be called after AC_PROG_CC
     215AC_CHECK_FUNCS(strerror)
    174216
    175217# find all the Executive Makefiles
     
    251293dnl END configure.target.in
    252294
    253 
    254 #
    255 #  Target configurations are listed in alphabetical order. 
    256 #  The BSPs for a target configuration are also listed in alphabetical order.
    257 #
    258 
    259 dnl NOTE: host_os is automatically set by autoconf
    260 
    261 if [[ "${program_prefix}" = "NONE" ]] ; then
    262   if [[ "${target}" = "${host}" ]] ; then
    263     program_prefix=
    264   else
    265     program_prefix=${target}-
    266   fi
    267 fi
    268295
    269296PROJECT_ROOT=`pwd;`
     
    360387AC_CONFIG_HEADER(c/build-tools/src/config.h)
    361388
    362 AC_CONFIG_HEADER(c/build-tools/src/config.h)
    363 
    364389# try not to explicitly list a Makefile here
    365390AC_OUTPUT(
    366391Makefile
     392make/host.cfg
     393make/target.cfg
     394make/Templates/Makefile.inc
    367395c/Makefile
    368396c/src/Makefile
     
    394422c/src/tests/tools/generic/Makefile
    395423$makefiles
    396 make/host.cfg
    397 make/target.cfg
    398 make/Templates/Makefile.inc
    399424c/update-tools/Makefile)
    400425
Note: See TracChangeset for help on using the changeset viewer.