4.104.114.84.95
Last change
on this file since 986e1113 was
1033e27,
checked in by Joel Sherrill <joel.sherrill@…>, on 11/15/00 at 21:56:52
|
2000-11-13 Ralf Corsepius <corsepiu@…>
- aclocal/canonical-host.m4: Abandon changequotes (autoconf-2.49b).
- aclocal/check-newlib.m4: Let check message refer to RTEMS newlib.
- aclocal/rtems-debug.m4: Fix formating and contents of the check's
help string.
- aclocal/rtems-top.m4: Remove AC_ARG_WITH(target-subdir).
|
-
Property mode set to
100644
|
File size:
900 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 RTEMS newlib], |
---|
8 | rtems_cv_use_newlib, |
---|
9 | [ |
---|
10 | dnl some versions of newlib provide not_required_by_rtems |
---|
11 | AC_TRY_LINK( |
---|
12 | [extern void not_required_by_rtems() ;], |
---|
13 | [not_required_by_rtems()], |
---|
14 | rtems_cv_use_newlib="yes") |
---|
15 | |
---|
16 | dnl some versions of newlib provide rtems_provides_crt0() |
---|
17 | if test -z "$rtems_cv_use_newlib"; then |
---|
18 | AC_TRY_LINK( |
---|
19 | [extern void rtems_provides_crt0() ;], |
---|
20 | [rtems_provides_crt0()], |
---|
21 | rtems_cv_use_newlib="yes", |
---|
22 | rtems_cv_use_newlib="no") |
---|
23 | fi |
---|
24 | ]) |
---|
25 | RTEMS_USE_NEWLIB="$rtems_cv_use_newlib" |
---|
26 | AC_SUBST(RTEMS_USE_NEWLIB) |
---|
27 | |
---|
28 | if test x"${RTEMS_USE_NEWLIB}" = x"yes"; |
---|
29 | then |
---|
30 | AC_DEFINE_UNQUOTED(RTEMS_NEWLIB,1,[if using newlib]) |
---|
31 | AC_DEFINE_UNQUOTED(MALLOC_PROVIDED,1,[if malloc is provided]) |
---|
32 | fi |
---|
33 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.