mirror of
https://github.com/t-crest/rtems.git
synced 2025-12-05 15:15:48 +00:00
* configure.in: New, Cygnus/GNU style configuration. * Makefile.am: Add macros/, reflect new configure.in, ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/macros * automake/compile.am: BSP_SPECS, remove RTEMS_CANONICALIZATION. * automake/lib.am: Remove RTEMS_CANONICALIZATION. * macros/tool-prefix.m4: Remove. * macros/target.m4: Remove RTEMS_CONFIG_SUBDIRS, RTEMS_OUTPUT_SUBDIRS. * macros/enable-rtemsbsp.m4: Add RTEMS_CONFIG_PER_BSP, add setting RTEMS_ROOT. * macros/i386-gas-code16.m4: Define NEW_GAS only for 16bit mode- * macros/multilib.m4: Various minor fixes. * macros/project-root.m4: Remove setting PROJECT_TOPdir, PROJECT_ROOT, RTEMS_ROOT. * macros/rtems-top.m4: Remove RTEMS_CANONICALIZATION, TARGET_SUBDIRS; Add with_target_subdirs, PROJECT_TOPdir, PROJECT_ROOT.
32 lines
739 B
Plaintext
32 lines
739 B
Plaintext
dnl
|
|
dnl $Id$
|
|
dnl
|
|
dnl Check for target g++
|
|
dnl
|
|
|
|
AC_DEFUN(RTEMS_PROG_CXX,
|
|
[
|
|
AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
|
|
AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
|
|
AC_REQUIRE([RTEMS_ENABLE_LIBCDIR])dnl
|
|
|
|
dnl Only accept g++
|
|
dnl NOTE: This might be too restrictive
|
|
AC_CHECK_TOOL(CXX,g++)
|
|
AC_PROG_CXX
|
|
test -z "$CXX" \
|
|
&& AC_MSG_ERROR([no acceptable c++ found in \$PATH])
|
|
])
|
|
|
|
AC_DEFUN(RTEMS_PROG_CXX_FOR_TARGET,
|
|
[
|
|
RTEMS_PROG_CXX
|
|
if test "$ac_cv_prog_cc_cross" != "$ac_cv_prog_cxx_cross"; then
|
|
AC_MSG_ERROR([***]
|
|
[Inconsistency in compiler configuration:]
|
|
[Target C compiler and target C++ compiler]
|
|
[must both either be cross compilers or native compilers]
|
|
[Hint: If building a posix bsp: LD_LIBRARY_PATH?] )
|
|
fi
|
|
])
|