4.104.114.84.95
Last change
on this file since d6a6cff2 was
d6a6cff2,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/17/06 at 17:06:38
|
2006-10-17 Ralf Corsépius <ralf.corsepius@…>
- aclocal/prog-cxx.m4: Add AC_PROG_CXXCPP.
|
-
Property mode set to
100644
|
File size:
831 bytes
|
Rev | Line | |
---|
[867ab080] | 1 | dnl |
---|
| 2 | dnl $Id$ |
---|
| 3 | dnl |
---|
| 4 | dnl Check for target g++ |
---|
| 5 | dnl |
---|
| 6 | |
---|
[9550125e] | 7 | AC_DEFUN([RTEMS_PROG_CXX_FOR_TARGET], |
---|
[867ab080] | 8 | [ |
---|
| 9 | AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl |
---|
| 10 | AC_REQUIRE([RTEMS_ENABLE_CXX]) |
---|
| 11 | RTEMS_CHECK_TOOL(CXX,g++) |
---|
| 12 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; |
---|
| 13 | then |
---|
[6c2b5324] | 14 | CXXFLAGS=${CXXFLAGS-${CFLAGS}} |
---|
[867ab080] | 15 | |
---|
| 16 | dnl Only accept g++ |
---|
| 17 | dnl NOTE: This might be too restrictive |
---|
| 18 | test -z "$CXX" \ |
---|
| 19 | && AC_MSG_ERROR([no acceptable c++ found in \$PATH]) |
---|
| 20 | AC_PROG_CXX |
---|
[d6a6cff2] | 21 | AC_PROG_CXXCPP |
---|
[867ab080] | 22 | |
---|
| 23 | if test "$ac_cv_prog_cc_cross" != "$ac_cv_prog_cxx_cross"; then |
---|
| 24 | AC_MSG_ERROR([***] |
---|
| 25 | [Inconsistency in compiler configuration:] |
---|
| 26 | [Target C compiler and target C++ compiler] |
---|
| 27 | [must both either be cross compilers or native compilers] |
---|
| 28 | [Hint: If building a posix bsp: LD_LIBRARY_PATH?] ) |
---|
| 29 | fi |
---|
| 30 | else |
---|
| 31 | ## Work-around to a bug in automake |
---|
| 32 | AM_CONDITIONAL([am__fastdepCXX],[false]) |
---|
| 33 | fi |
---|
| 34 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.