summaryrefslogtreecommitdiffstats
path: root/aclocal/check-newlib.m4
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal/check-newlib.m4')
-rw-r--r--aclocal/check-newlib.m410
1 files changed, 5 insertions, 5 deletions
diff --git a/aclocal/check-newlib.m4 b/aclocal/check-newlib.m4
index f417c65726..b8bdaa19b7 100644
--- a/aclocal/check-newlib.m4
+++ b/aclocal/check-newlib.m4
@@ -12,17 +12,17 @@ AC_CACHE_CHECK([for newlib],
dnl some versions of newlib provide not_required_by_rtems
AC_TRY_LINK(
- [extern int not_required_by_rtems() ;],
+ [extern void not_required_by_rtems() ;],
[not_required_by_rtems()],
rtems_cv_use_newlib="yes")
-dnl older versions of newlib provided rtems_provides_crt0
+dnl some versions of newlib provide rtems_provides_crt0()
if test -z "$rtems_cv_use_newlib"; then
AC_TRY_LINK(
- [extern int rtems_provides_crt0 ;],
- [rtems_provides_crt0 = 0],
+ [extern void rtems_provides_crt0() ;],
+ [rtems_provides_crt0()],
rtems_cv_use_newlib="yes",
- rtems_cv_use_newlib="no")
+ rtems_cv_use_newlib="no")
fi
CC=$rtems_save_CC])
RTEMS_USE_NEWLIB="$rtems_cv_use_newlib"