Files
rtems/cpukit/aclocal/check-newlib.m4
Ralf Corsepius 863fb4f1a9 2003-11-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/canonicalize-tools.m4, aclocal/check-itron.m4,
	aclocal/check-multiprocessing.m4, aclocal/check-newlib.m4,
	aclocal/check-posix.m4, aclocal/check-rtems-debug.m4,
	aclocal/check-tool.m4, aclocal/enable-bare.m4,
	aclocal/enable-inlines.m4, aclocal/enable-itron.m4,
	aclocal/enable-multiprocessing.m4, aclocal/enable-networking.m4,
	aclocal/enable-posix.m4, aclocal/enable-rtems-debug.m4,
	aclocal/env-rtemscpu.m4, aclocal/gcc-isystem.m4,
	aclocal/gcc-pipe.m4, aclocal/multi.m4,
	aclocal/multilib.m4, aclocal/prog-cc.m4,
	aclocal/rtems-top.m4, aclocal/sysv-ipc.m4:
	Fix underquoting to silence automake-1.8.
2003-11-26 06:56:28 +00:00

31 lines
911 B
Plaintext

dnl $Id$
AC_DEFUN([RTEMS_CHECK_NEWLIB],
[dnl
AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])dnl
AC_REQUIRE([RTEMS_CANONICALIZE_TOOLS])dnl
AC_CACHE_CHECK([for RTEMS newlib],
rtems_cv_use_newlib,
[
dnl some versions of newlib provide not_required_by_rtems
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_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)
AS_IF([test x"${RTEMS_USE_NEWLIB}" = x"yes"],
[ AC_DEFINE_UNQUOTED(RTEMS_NEWLIB,1,[if using newlib])]
)
])