source: rtems/testsuites/aclocal/prog-cxx.m4 @ a4b8a37d

4.104.114.84.95
Last change on this file since a4b8a37d was a4b8a37d, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 6, 2005 at 2:56:27 PM

2004-01-06 Ralf Corsepius <ralf.corsepius@…>

  • aclocal/env-rtemsbsp.m4: Remove CPU_CFLAGS, CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V.
  • aclocal/prog-cc.m4: Don't invoke _RTEMS_FLAGS to set up RTEMS_CFLAGS.
  • aclocal/prog-cxx.m4: Let CXXFLAGS default to CFLAGS. Don't invoke _RTEMS_FLAGS to set up RTEMS_CXXFLAGS. Remove amfastdepCXX conditional.
  • Property mode set to 100644
File size: 777 bytes
Line 
1dnl
2dnl $Id$
3dnl
4dnl Check for target g++
5dnl
6
7AC_DEFUN([RTEMS_PROG_CXX_FOR_TARGET],
8[
9AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
10AC_REQUIRE([RTEMS_ENABLE_CXX])
11
12# If CXXFLAGS is not set, default to CFLAGS
13CXXFLAGS=${CXXFLAGS-${CFLAGS}}
14
15RTEMS_CHECK_TOOL(CXX,g++)
16if test "$RTEMS_HAS_CPLUSPLUS" = "yes";
17then
18dnl Only accept g++
19dnl NOTE: This might be too restrictive
20test -z "$CXX" \
21  && AC_MSG_ERROR([no acceptable c++ found in \$PATH])
22AC_PROG_CXX
23
24  if test "$ac_cv_prog_cc_cross" != "$ac_cv_prog_cxx_cross"; then
25    AC_MSG_ERROR([***]
26     [Inconsistency in compiler configuration:]
27     [Target C compiler and target C++ compiler]
28     [must both either be cross compilers or native compilers]
29     [Hint: If building a posix bsp: LD_LIBRARY_PATH?] )
30  fi
31fi
32])
Note: See TracBrowser for help on using the repository browser.