summaryrefslogtreecommitdiffstats
path: root/aclocal
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2002-11-19 17:05:34 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2002-11-19 17:05:34 +0000
commit86f12bc0454db726ec3f230315adb3f2510aa8df (patch)
tree1589756e676cb61eddf5f5eb7f067c1e4b9b2d39 /aclocal
parent2002-11-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-86f12bc0454db726ec3f230315adb3f2510aa8df.tar.bz2
2002-11-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* automake/compile.am: Remove LD_PATHS (Unused). * aclocal/check-newlib.m4: Adaptation to autoconf-2.5x (AC_TRY_LINK is announced obsolete).
Diffstat (limited to 'aclocal')
-rw-r--r--aclocal/check-newlib.m419
1 files changed, 9 insertions, 10 deletions
diff --git a/aclocal/check-newlib.m4 b/aclocal/check-newlib.m4
index a26624702e..e80755d462 100644
--- a/aclocal/check-newlib.m4
+++ b/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)