URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [rtos/] [rtems/] [aclocal/] [check-newlib.m4] - Rev 507
Go to most recent revision | Compare with Previous | Blame | View Log
dnl $Id: check-newlib.m4,v 1.2 2001-09-27 11:59:11 chris Exp $ AC_DEFUN(RTEMS_CHECK_NEWLIB, [dnl AC_REQUIRE([RTEMS_PROG_CC_FOR_TARGET])dnl AC_REQUIRE([RTEMS_CANONICALIZE_TOOLS])dnl AC_CACHE_CHECK([for newlib], rtems_cv_use_newlib, [ rtems_save_CC=$CC CC=$CC_FOR_TARGET dnl some versions of newlib provide not_required_by_rtems AC_TRY_LINK( [extern int not_required_by_rtems() ;], [not_required_by_rtems()], rtems_cv_use_newlib="yes") dnl older versions of newlib provided rtems_provides_crt0 if test -z "$rtems_cv_use_newlib"; then AC_TRY_LINK( [extern int rtems_provides_crt0 ;], [rtems_provides_crt0 = 0], rtems_cv_use_newlib="yes", rtems_cv_use_newlib="no") fi CC=$rtems_save_CC]) RTEMS_USE_NEWLIB="$rtems_cv_use_newlib" AC_SUBST(RTEMS_USE_NEWLIB) ])
Go to most recent revision | Compare with Previous | Blame | View Log