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

4.104.114.84.9
Last change on this file since f8e5121e was f8e5121e, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 6, 2005 at 4:37:10 PM

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

  • aclocal/prog-cxx.m4: Re-add amfastdepCXX conditional.
  • Property mode set to 100644
File size: 859 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
31else
32## Work-around to a bug in automake
33AM_CONDITIONAL([am__fastdepCXX],[false])
34fi
35])
Note: See TracBrowser for help on using the repository browser.