source: rtems/aclocal/prog-cc.m4 @ 87a95526

4.104.114.84.95
Last change on this file since 87a95526 was c2113d3, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/06/02 at 07:13:50

2002-12-06 Ralf Corsepius <corsepiu@…>

  • aclocal/env-rtemsbsp.m4: Add AC_ARG_VAR for CPU_CFLAGS, CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CFLAGS_PROFILE_V, RTEMS_BSP_FAMILY.
  • aclocal/prog-cc.m4: Reworked CFLAGS handling.
  • aclocal/prog-cxx.m4: Reworked CXXFLAGS handling.
  • Property mode set to 100644
File size: 838 bytes
RevLine 
[51c195d5]1dnl
2dnl $Id$
3dnl
4dnl Check for target gcc
5dnl
6
7AC_DEFUN(RTEMS_PROG_CC,
8[
9AC_BEFORE([$0], [AC_PROG_CPP])dnl
10AC_BEFORE([$0], [AC_PROG_CC])dnl
[b62a92c]11AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
[2efdd08]12
[c2113d3]13_RTEMS_FLAGS([CFLAGS],
14  ["\$(CPU_CFLAGS) \$(RTEMS_CFLAGS_\$(VARIANT_V)_V) \$(CFLAGS_\$(VARIANT_V)_V) -g"])
15
[4686e5d9]16RTEMS_CHECK_TOOL(CC,gcc)
17test -z "$CC" && \
18  AC_MSG_ERROR([no acceptable cc found in \$PATH])
[2e0fd427]19AC_PROG_CC
[560aae24]20AC_PROG_CPP
[2efdd08]21
[2dbd07f8]22AM_CONDITIONAL(RTEMS_USE_GCC,test x"$GCC" = x"yes")
[51c195d5]23])
[6693a68]24
25AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET,
26[
27dnl check target cc
28RTEMS_PROG_CC
29dnl check if the compiler supports --specs
30RTEMS_GCC_SPECS
31dnl check if the target compiler may use --pipe
32RTEMS_GCC_PIPE
[2dbd07f8]33test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
[6693a68]34
[f1d08c98]35if test "$GCC" = yes; then
[c2113d3]36RTEMS_CFLAGS="$RTEMS_CFLAGS -Wall"
37m4_if([$1],,[],[RTEMS_CFLAGS="$RTEMS_CFLAGS $1"])
[f1d08c98]38fi
[6693a68]39])
Note: See TracBrowser for help on using the repository browser.