4.115
Last change
on this file since 8911ffd 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:
874 bytes
|
Line | |
---|
1 | dnl |
---|
2 | dnl $Id$ |
---|
3 | dnl |
---|
4 | dnl Check for target g++ |
---|
5 | dnl |
---|
6 | |
---|
7 | AC_DEFUN([RTEMS_PROG_CXX_FOR_TARGET], |
---|
8 | [ |
---|
9 | AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl |
---|
10 | AC_REQUIRE([RTEMS_ENABLE_CXX]) |
---|
11 | |
---|
12 | # If CXXFLAGS is not set, default to CFLAGS |
---|
13 | CXXFLAGS=${CXXFLAGS-${CFLAGS}} |
---|
14 | |
---|
15 | RTEMS_CHECK_TOOL(CXX,g++) |
---|
16 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; |
---|
17 | then |
---|
18 | dnl Only accept g++ |
---|
19 | dnl NOTE: This might be too restrictive |
---|
20 | test -z "$CXX" \ |
---|
21 | && AC_MSG_ERROR([no acceptable c++ found in \$PATH]) |
---|
22 | AC_PROG_CXX |
---|
23 | AC_PROG_CXXCPP |
---|
24 | |
---|
25 | if test "$ac_cv_prog_cc_cross" != "$ac_cv_prog_cxx_cross"; then |
---|
26 | AC_MSG_ERROR([***] |
---|
27 | [Inconsistency in compiler configuration:] |
---|
28 | [Target C compiler and target C++ compiler] |
---|
29 | [must both either be cross compilers or native compilers] |
---|
30 | [Hint: If building a posix bsp: LD_LIBRARY_PATH?] ) |
---|
31 | fi |
---|
32 | else |
---|
33 | ## Work-around to a bug in automake |
---|
34 | AM_CONDITIONAL([am__fastdepCXX],[false]) |
---|
35 | fi |
---|
36 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.