source: rtems/c/src/aclocal/prog-cxx.m4 @ bd39add

4.115
Last change on this file since bd39add was cf65bb00, checked in by Ralf Corsépius <ralf.corsepius@…>, on 05/18/12 at 05:37:45

Remove obsolete reference to posix bsp.

  • Property mode set to 100644
File size: 762 bytes
Line 
1dnl
2dnl Check for target g++
3dnl
4
5AC_DEFUN([RTEMS_PROG_CXX_FOR_TARGET],
6[
7AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
8AC_REQUIRE([RTEMS_ENABLE_CXX])
9RTEMS_CHECK_TOOL(CXX,g++)
10if test "$RTEMS_HAS_CPLUSPLUS" = "yes";
11then
12  CXXFLAGS=${CXXFLAGS-${CFLAGS}}
13
14dnl Only accept g++
15dnl NOTE: This might be too restrictive
16test -z "$CXX" \
17  && AC_MSG_ERROR([no acceptable c++ found in \$PATH])
18AC_PROG_CXX
19AC_PROG_CXXCPP
20
21  if test "$ac_cv_prog_cc_cross" != "$ac_cv_prog_cxx_cross"; then
22    AC_MSG_ERROR([***]
23     [Inconsistency in compiler configuration:]
24     [Target C compiler and target C++ compiler]
25     [must both either be cross compilers or native compilers])
26  fi
27else
28## Work-around to a bug in automake
29AM_CONDITIONAL([am__fastdepCXX],[false])
30fi
31])
Note: See TracBrowser for help on using the repository browser.