Last change
on this file since f7276a9b was
385b2e2,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/18/03 at 12:58:44
|
2003-02-18 Ralf Corsepius <corsepiu@…>
- automake/local.am: Introduce depend-gcc.
Remove ${ARCH}.
- automake/compile.am: Remove GCCSPECS, GCC_SPECS, CONFIG.CC, CC,
CPP. Add ${ARCH}. depend-gcc.
- aclocal/prog-cc.m4: Set up RTEMS_CPPFLAGS.
- aclocal/env-rtemscpu.m4: Remove GCC_SPECS.
- aclocal/env-rtemsbsp.m4: Remove GCC_SPECS.
|
-
Property mode set to
100644
|
File size:
953 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 | _RTEMS_FLAGS([CFLAGS], |
---|
14 | ["\$(CPU_CFLAGS) \$(RTEMS_CFLAGS_\$(VARIANT_V)_V) \$(CFLAGS_\$(VARIANT_V)_V) -g"]) |
---|
15 | |
---|
16 | RTEMS_CHECK_TOOL(CC,gcc) |
---|
17 | test -z "$CC" && \ |
---|
18 | AC_MSG_ERROR([no acceptable cc found in \$PATH]) |
---|
19 | AC_PROG_CC |
---|
20 | AC_PROG_CPP |
---|
21 | |
---|
22 | AM_CONDITIONAL(RTEMS_USE_GCC,test x"$GCC" = x"yes") |
---|
23 | ]) |
---|
24 | |
---|
25 | AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET, |
---|
26 | [ |
---|
27 | dnl check target cc |
---|
28 | RTEMS_PROG_CC |
---|
29 | dnl check if the compiler supports --specs |
---|
30 | RTEMS_GCC_SPECS |
---|
31 | dnl check if the target compiler may use --pipe |
---|
32 | RTEMS_GCC_PIPE |
---|
33 | test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe" |
---|
34 | |
---|
35 | if test "$GCC" = yes; then |
---|
36 | RTEMS_CFLAGS="$RTEMS_CFLAGS -Wall" |
---|
37 | m4_if([$1],,[],[RTEMS_CFLAGS="$RTEMS_CFLAGS $1"]) |
---|
38 | RTEMS_CPPFLAGS="-isystem \$(PROJECT_INCLUDE)" |
---|
39 | else |
---|
40 | RTEMS_CPPFLAGS="-I\$(PROJECT_INCLUDE)" |
---|
41 | fi |
---|
42 | AC_SUBST(RTEMS_CPPFLAGS) |
---|
43 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.