source: rtems/testsuites/aclocal/prog-cc.m4 @ 8911ffd

4.115
Last change on this file since 8911ffd was dea3a9ca, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/03/09 at 12:43:40

2009-04-03 Ralf Corsépius <ralf.corsepius@…>

  • aclocal/prog-cc.m4: Preset ac_cv_exeext=.exe for *-rtems* toolchains.
  • Property mode set to 100644
File size: 717 bytes
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
12
13case "$host" in
14*-*-rtems*) ac_cv_exeext=.exe;;
15esac
16
17RTEMS_CHECK_TOOL(CC,gcc)
18test -z "$CC" && \
19  AC_MSG_ERROR([no acceptable cc found in \$PATH])
20AC_PROG_CC
21AC_PROG_CPP
22])
23
24AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET],
25[
26dnl check target cc
27RTEMS_PROG_CC
28
29AS_IF([test x"$GCC" = xyes],[
30AS_IF([test "${enable_cpukit_root+set}"],[
31  GCCSPECS="-B\$(CPUKIT_ROOT)/lib/"])
32AS_IF([test "${enable_project_root+set}"],[
33  GCCSPECS="$GCCSPECS -B\$(PROJECT_ROOT)/lib/"])
34GCCSPECS="${GCCSPECS} -specs bsp_specs -qrtems"])
35AC_SUBST(GCCSPECS)
36])
Note: See TracBrowser for help on using the repository browser.