source: rtems/testsuites/aclocal/prog-cc.m4 @ 16f3f10

Last change on this file since 16f3f10 was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 20, 2018 at 8:35:35 AM

bsps: Move startup files to bsps

Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.

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