4.104.114.84.95
Last change
on this file since 2e0fd427 was
2e0fd427,
checked in by Joel Sherrill <joel.sherrill@…>, on 11/02/00 at 15:44:04
|
2000-11-02 Ralf Corsepius <corsepiu@…>
- aclocal/*: Replace with contents of macros/*.m4
- macros/: Remove.
- aclocal/ar-s.m4 aclocal/tool-prefix.m4: Remove.
- Makefile.am: Reflect changes to aclocal/ and macros/.
|
-
Property mode set to
100644
|
File size:
935 bytes
|
Line | |
---|
1 | dnl $Id$ |
---|
2 | |
---|
3 | AC_DEFUN(RTEMS_CHECK_NEWLIB, |
---|
4 | [dnl |
---|
5 | AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])dnl |
---|
6 | AC_REQUIRE([RTEMS_CANONICALIZE_TOOLS])dnl |
---|
7 | AC_CACHE_CHECK([for newlib], |
---|
8 | rtems_cv_use_newlib, |
---|
9 | [ |
---|
10 | rtems_save_CC=$CC |
---|
11 | |
---|
12 | dnl some versions of newlib provide not_required_by_rtems |
---|
13 | AC_TRY_LINK( |
---|
14 | [extern void not_required_by_rtems() ;], |
---|
15 | [not_required_by_rtems()], |
---|
16 | rtems_cv_use_newlib="yes") |
---|
17 | |
---|
18 | dnl some versions of newlib provide rtems_provides_crt0() |
---|
19 | if test -z "$rtems_cv_use_newlib"; then |
---|
20 | AC_TRY_LINK( |
---|
21 | [extern void rtems_provides_crt0() ;], |
---|
22 | [rtems_provides_crt0()], |
---|
23 | rtems_cv_use_newlib="yes", |
---|
24 | rtems_cv_use_newlib="no") |
---|
25 | fi |
---|
26 | CC=$rtems_save_CC]) |
---|
27 | RTEMS_USE_NEWLIB="$rtems_cv_use_newlib" |
---|
28 | AC_SUBST(RTEMS_USE_NEWLIB) |
---|
29 | |
---|
30 | if test x"${RTEMS_USE_NEWLIB}" = x"yes"; |
---|
31 | then |
---|
32 | AC_DEFINE_UNQUOTED(RTEMS_NEWLIB,1,[if using newlib]) |
---|
33 | AC_DEFINE_UNQUOTED(MALLOC_PROVIDED,1,[if malloc is provided]) |
---|
34 | fi |
---|
35 | ]) |
---|
36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.