source: rtems/cpukit/aclocal/prog-cc.m4 @ 66c0078

4.115
Last change on this file since 66c0078 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 942 bytes
Line 
1dnl
2dnl Check for target gcc
3dnl
4
5AC_DEFUN([RTEMS_PROG_CC],
6[
7AC_BEFORE([$0], [AC_PROG_CPP])dnl
8AC_BEFORE([$0], [AC_PROG_CC])dnl
9AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl
10
11RTEMS_CHECK_TOOL(CC,gcc)
12test -z "$CC" && \
13  AC_MSG_ERROR([no acceptable cc found in \$PATH])
14AC_PROG_CC
15AC_PROG_CPP
16])
17
18AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET],
19[
20# Was CFLAGS set?
21rtems_cv_CFLAGS_set="${CFLAGS+set}"
22dnl check target cc
23RTEMS_PROG_CC
24dnl check if the target compiler may use --pipe
25RTEMS_GCC_PIPE
26test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
27
28# Append warning flags if CFLAGS wasn't set.
29AS_IF([test "$GCC" = yes && test "$rtems_cv_CFLAGS_set" != set],
30[CFLAGS="$CFLAGS -Wall -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs"])
31
32RTEMS_CPPFLAGS="-I\$(top_builddir) -I\$(PROJECT_INCLUDE)"
33AC_SUBST(RTEMS_CPPFLAGS)
34
35AS_IF([test "$GCC" = yes],[
36  RTEMS_RELLDFLAGS="-qnolinkcmds -nostdlib -r"
37])
38AC_SUBST(RTEMS_RELLDFLAGS)
39])
Note: See TracBrowser for help on using the repository browser.