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

4.104.114.84.95
Last change on this file since 2e0fd427 was 2e0fd427, checked in by Joel Sherrill <joel.sherrill@…>, on 11/02/00 at 15:44:04

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

  • aclocal/*: Replace with contents of macros/*.m4
  • macros/: Remove.
  • aclocal/ar-s.m4 aclocal/tool-prefix.m4: Remove.
  • Makefile.am: Reflect changes to aclocal/ and macros/.
  • Property mode set to 100644
File size: 1.2 KB
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
[70810dc]12AC_REQUIRE([RTEMS_ENABLE_LIBCDIR])dnl
[1ea70d78]13AC_REQUIRE([RTEMS_ENABLE_GCC28])dnl
[2efdd08]14
[2e0fd427]15AC_CHECK_TOOL(CC,gcc)
16AC_PROG_CC
[2efdd08]17
[2e0fd427]18AM_CONDITIONAL(RTEMS_USE_GCC,test x"$ac_cv_prog_gcc" = x"yes")
[51c195d5]19])
[6693a68]20
21AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET,
22[
23dnl check target cc
24RTEMS_PROG_CC
25dnl check if the compiler supports --specs
26RTEMS_GCC_SPECS
27dnl check if the target compiler may use --pipe
28RTEMS_GCC_PIPE
29dnl check if the compiler supports --specs if gcc28 is requested
30if test "$RTEMS_USE_GCC272" != "yes" ; then
31  if test "$rtems_cv_gcc_specs" = "no"; then
32    AC_MSG_WARN([*** disabling --enable-gcc28])
33      RTEMS_USE_GCC272=yes
34  fi
35fi
36test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
37
[1ea70d78]38## Conditional for automake files
39AM_CONDITIONAL(RTEMS_USE_GCC272, test x"$RTEMS_USE_GCC272" = x"yes")
40## Make variable for autoconf fragments (*.cfg)
41AC_SUBST(RTEMS_USE_GCC272)
42
[6693a68]43dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-*
44case $host_os in
45*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
46*) ;;
47esac
48AC_SUBST(GCCSED)
49])
Note: See TracBrowser for help on using the repository browser.