source: rtems/aclocal/prog-cc.m4 @ 2dbd07f8

4.104.114.84.95
Last change on this file since 2dbd07f8 was 2dbd07f8, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 9, 2000 at 5:04:53 PM

2000-11-09 Ralf Corsepius <corsepiu@…>

  • aclocal/gcc-pipe.m4: Use $GCC instead of ac_cv_prog_gcc (autoconf standard).
  • aclocal/gcc-specs.m4: Use $GCC instead of ac_cv_prog_gcc (autoconf standard).
  • aclocal/multilib.m4: Fix m4-quoting (BUG-FIX).
  • aclocal/check-bsp-cache.m4: Fix m4-quoting (autoconf-2.49b).
  • aclocal/prog-cc.m4: Use $GCC instead of ac_cv_prog_gcc (autoconf standard), replace CC_FOR_TARGET with CC (BUG-FIX).
  • 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
19
20AM_CONDITIONAL(RTEMS_USE_GCC,test x"$GCC" = x"yes")
21])
22
23AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET,
24[
25dnl check target cc
26RTEMS_PROG_CC
27dnl check if the compiler supports --specs
28RTEMS_GCC_SPECS
29dnl check if the target compiler may use --pipe
30RTEMS_GCC_PIPE
31dnl check if the compiler supports --specs if gcc28 is requested
32if test "$RTEMS_USE_GCC272" != "yes" ; then
33  if test "$rtems_cv_gcc_specs" = "no"; then
34    AC_MSG_WARN([*** disabling --enable-gcc28])
35      RTEMS_USE_GCC272=yes
36  fi
37fi
38test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
39
40## Conditional for automake files
41AM_CONDITIONAL(RTEMS_USE_GCC272, test x"$RTEMS_USE_GCC272" = x"yes")
42## Make variable for autoconf fragments (*.cfg)
43AC_SUBST(RTEMS_USE_GCC272)
44
45dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-*
46case $host_os in
47*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
48*) ;;
49esac
50AC_SUBST(GCCSED)
51])
Note: See TracBrowser for help on using the repository browser.