4.104.114.84.95
Last change
on this file since 37222c7e was
2dbd07f8,
checked in by Joel Sherrill <joel.sherrill@…>, on 11/09/00 at 17:04:53
|
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 | |
---|
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 | AC_REQUIRE([RTEMS_ENABLE_LIBCDIR])dnl |
---|
13 | AC_REQUIRE([RTEMS_ENABLE_GCC28])dnl |
---|
14 | |
---|
15 | RTEMS_CHECK_TOOL(CC,gcc) |
---|
16 | test -z "$CC" && \ |
---|
17 | AC_MSG_ERROR([no acceptable cc found in \$PATH]) |
---|
18 | AC_PROG_CC |
---|
19 | |
---|
20 | AM_CONDITIONAL(RTEMS_USE_GCC,test x"$GCC" = x"yes") |
---|
21 | ]) |
---|
22 | |
---|
23 | AC_DEFUN(RTEMS_PROG_CC_FOR_TARGET, |
---|
24 | [ |
---|
25 | dnl check target cc |
---|
26 | RTEMS_PROG_CC |
---|
27 | dnl check if the compiler supports --specs |
---|
28 | RTEMS_GCC_SPECS |
---|
29 | dnl check if the target compiler may use --pipe |
---|
30 | RTEMS_GCC_PIPE |
---|
31 | dnl check if the compiler supports --specs if gcc28 is requested |
---|
32 | if 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 |
---|
37 | fi |
---|
38 | test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe" |
---|
39 | |
---|
40 | ## Conditional for automake files |
---|
41 | AM_CONDITIONAL(RTEMS_USE_GCC272, test x"$RTEMS_USE_GCC272" = x"yes") |
---|
42 | ## Make variable for autoconf fragments (*.cfg) |
---|
43 | AC_SUBST(RTEMS_USE_GCC272) |
---|
44 | |
---|
45 | dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-* |
---|
46 | case $host_os in |
---|
47 | *cygwin*) GCCSED="| sed 's%\\\\%/%g'" ;; |
---|
48 | *) ;; |
---|
49 | esac |
---|
50 | AC_SUBST(GCCSED) |
---|
51 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.