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 | |
---|
1 | dnl |
---|
2 | dnl $Id$ |
---|
3 | dnl |
---|
4 | dnl Check for target gcc |
---|
5 | dnl |
---|
6 | |
---|
7 | AC_DEFUN([RTEMS_PROG_CC], |
---|
8 | [ |
---|
9 | AC_BEFORE([$0], [AC_PROG_CPP])dnl |
---|
10 | AC_BEFORE([$0], [AC_PROG_CC])dnl |
---|
11 | AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl |
---|
12 | |
---|
13 | case "$host" in |
---|
14 | *-*-rtems*) ac_cv_exeext=.exe;; |
---|
15 | esac |
---|
16 | |
---|
17 | RTEMS_CHECK_TOOL(CC,gcc) |
---|
18 | test -z "$CC" && \ |
---|
19 | AC_MSG_ERROR([no acceptable cc found in \$PATH]) |
---|
20 | AC_PROG_CC |
---|
21 | AC_PROG_CPP |
---|
22 | ]) |
---|
23 | |
---|
24 | AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET], |
---|
25 | [ |
---|
26 | dnl check target cc |
---|
27 | RTEMS_PROG_CC |
---|
28 | |
---|
29 | AS_IF([test x"$GCC" = xyes],[ |
---|
30 | AS_IF([test "${enable_cpukit_root+set}"],[ |
---|
31 | GCCSPECS="-B\$(CPUKIT_ROOT)/lib/"]) |
---|
32 | AS_IF([test "${enable_project_root+set}"],[ |
---|
33 | GCCSPECS="$GCCSPECS -B\$(PROJECT_ROOT)/lib/"]) |
---|
34 | GCCSPECS="${GCCSPECS} -specs bsp_specs -qrtems"]) |
---|
35 | AC_SUBST(GCCSPECS) |
---|
36 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.