source: rtems/aclocal/prog-cc.m4 @ ed3ec25

4.104.114.84.95
Last change on this file since ed3ec25 was 560aae24, checked in by Joel Sherrill <joel.sherrill@…>, on 01/29/01 at 15:27:25

2001-01-26 Ralf Corsepius <corsepiu@…>

  • aclocal/enable-rtemsbsp.m4: Split out RTEMS_ENV_RTEMSBSP, RTEMS_ENV_RTEMSCPU.
  • aclocal/env-rtemsbsp.m4: New file for RTEMS_ENV_RTEMSBSP, add special treatment for GCC_SPECS.
  • aclocal/env-rtemscpu.m4: New file for RTEMS_ENV_RTEMSCPU, add special treatment for GCC_SPECS.
  • aclocal/bsp-enable-arg.m4: New file, introduce RTEMS_BSP_ARG_ENABLE.
  • aclocal/prog-cc.m4: Add AC_PROG_CPP, use build_os in GCCSED hack.
  • automake/compile.am: New treatment of CPP, GCCSPECS, use .. instead of $(shell ..) for LIBC_LIB*.
  • Property mode set to 100644
File size: 1.2 KB
Line 
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
11AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
12AC_REQUIRE([RTEMS_ENABLE_LIBCDIR])dnl
13AC_REQUIRE([RTEMS_ENABLE_GCC28])dnl
14
15RTEMS_CHECK_TOOL(CC,gcc)
16test -z "$CC" && \
17  AC_MSG_ERROR([no acceptable cc found in \$PATH])
18AC_PROG_CC
19AC_PROG_CPP
20
21AM_CONDITIONAL(RTEMS_USE_GCC,test x"$GCC" = x"yes")
22])
23
24AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET,
25[
26dnl check target cc
27RTEMS_PROG_CC
28dnl check if the compiler supports --specs
29RTEMS_GCC_SPECS
30dnl check if the target compiler may use --pipe
31RTEMS_GCC_PIPE
32dnl check if the compiler supports --specs if gcc28 is requested
33if test "$RTEMS_USE_GCC272" != "yes" ; then
34  if test "$rtems_cv_gcc_specs" = "no"; then
35    AC_MSG_WARN([*** disabling --enable-gcc28])
36      RTEMS_USE_GCC272=yes
37  fi
38fi
39test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
40
41## Conditional for automake files
42AM_CONDITIONAL(RTEMS_USE_GCC272, test x"$RTEMS_USE_GCC272" = x"yes")
43## Make variable for autoconf fragments (*.cfg)
44AC_SUBST(RTEMS_USE_GCC272)
45
46dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-*
47case $build_os in
48*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
49*) ;;
50esac
51AC_SUBST(GCCSED)
52])
Note: See TracBrowser for help on using the repository browser.