diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2002-11-19 17:10:36 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2002-11-19 17:10:36 +0000 |
commit | 1f64ebf232ac6c6938794179dceb9045f7662788 (patch) | |
tree | 22f283d8c94a97910f81faa8fac4fb9121a1eb11 /cpukit/aclocal/check-newlib.m4 | |
parent | 2002-11-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-1f64ebf232ac6c6938794179dceb9045f7662788.tar.bz2 |
2002-11-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/sysv-ipc.m4: Adaptation to autoconf-2.5x.
* aclocal/check-newlib.m4: Sync with ../aclocal/check-newlib.m4.
Diffstat (limited to '')
-rw-r--r-- | cpukit/aclocal/check-newlib.m4 | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/cpukit/aclocal/check-newlib.m4 b/cpukit/aclocal/check-newlib.m4 index a26624702e..e80755d462 100644 --- a/cpukit/aclocal/check-newlib.m4 +++ b/cpukit/aclocal/check-newlib.m4 @@ -8,19 +8,18 @@ AC_CACHE_CHECK([for RTEMS newlib], rtems_cv_use_newlib, [ dnl some versions of newlib provide not_required_by_rtems - AC_TRY_LINK( - [extern void not_required_by_rtems() ;], - [not_required_by_rtems()], - rtems_cv_use_newlib="yes") + AC_LINK_IFELSE( + [AC_LANG_PROGRAM([[extern void not_required_by_rtems() ;]], + [[not_required_by_rtems()]])], + [rtems_cv_use_newlib="yes"],[]) dnl some versions of newlib provide rtems_provides_crt0() 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")] - ) + [AC_LINK_IFELSE( + [AC_LANG_PROGRAM([[extern void rtems_provides_crt0() ;]], + [[rtems_provides_crt0()]])], + [rtems_cv_use_newlib="yes"],[rtems_cv_use_newlib="no"]) + ]) ]) RTEMS_USE_NEWLIB="$rtems_cv_use_newlib" AC_SUBST(RTEMS_USE_NEWLIB) |