diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-01-06 20:12:13 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-01-06 20:12:13 +0000 |
commit | a0ea6f10629730e343169614c7c3935048cbf16b (patch) | |
tree | ec823176cf8e54daf2691b41fdef1d26e0f1d923 /aclocal/check-newlib.m4 | |
parent | 2002-02-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-a0ea6f10629730e343169614c7c3935048cbf16b.tar.bz2 |
2002-02-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/check-newlib.m4: Apply AS_IF.
* aclocal/config-subdirs.m4: Remove _RTEMS_PUSH_BUILDDIR,
_RTEMS_POP_BUILDDIR, _RTEMS_GIVEN_INSTALL, _RTEMS_SUB_SRCDIR.
* aclocal/subdirs.m4: Fix comments, apply AS_IF.
* aclocal/sysv-ipc.m4: Reflect autoconf-2.5x canonicalization
changes.
* aclocal/target.m4: Add _RTEMS_PUSH_BUILDDIR, _RTEMS_POP_BUILDDIR,
_RTEMS_GIVEN_INSTALL, _RTEMS_SUB_SRCDIR.
* automake/compile.am: Remove librtemsall from LINK_FILES.
Diffstat (limited to '')
-rw-r--r-- | aclocal/check-newlib.m4 | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/aclocal/check-newlib.m4 b/aclocal/check-newlib.m4 index 852ae4f2d5..a26624702e 100644 --- a/aclocal/check-newlib.m4 +++ b/aclocal/check-newlib.m4 @@ -14,20 +14,18 @@ dnl some versions of newlib provide not_required_by_rtems rtems_cv_use_newlib="yes") dnl some versions of newlib provide rtems_provides_crt0() - if test -z "$rtems_cv_use_newlib"; then - AC_TRY_LINK( + AS_IF([test -z "$rtems_cv_use_newlib"], + [AC_TRY_LINK( [extern void rtems_provides_crt0() ;], [rtems_provides_crt0()], rtems_cv_use_newlib="yes", - rtems_cv_use_newlib="no") - fi + rtems_cv_use_newlib="no")] + ) ]) -RTEMS_USE_NEWLIB="$rtems_cv_use_newlib" -AC_SUBST(RTEMS_USE_NEWLIB) + RTEMS_USE_NEWLIB="$rtems_cv_use_newlib" + AC_SUBST(RTEMS_USE_NEWLIB) -if test x"${RTEMS_USE_NEWLIB}" = x"yes"; -then - AC_DEFINE_UNQUOTED(RTEMS_NEWLIB,1,[if using newlib]) - AC_DEFINE_UNQUOTED(MALLOC_PROVIDED,1,[if malloc is provided]) -fi + AS_IF([test x"${RTEMS_USE_NEWLIB}" = x"yes"], + [ AC_DEFINE_UNQUOTED(RTEMS_NEWLIB,1,[if using newlib])] + ) ]) |