OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [aclocal/] [ar-s.m4] - Diff between revs 30 and 173

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 30 Rev 173
dnl
dnl
dnl $Id: ar-s.m4,v 1.2 2001-09-27 11:59:11 chris Exp $
dnl $Id: ar-s.m4,v 1.2 2001-09-27 11:59:11 chris Exp $
dnl
dnl
 
 
AC_DEFUN(RTEMS_AR_FOR_TARGET_S,
AC_DEFUN(RTEMS_AR_FOR_TARGET_S,
[
[
AC_CACHE_CHECK(whether $AR_FOR_TARGET -s works,
AC_CACHE_CHECK(whether $AR_FOR_TARGET -s works,
rtems_cv_AR_FOR_TARGET_S,
rtems_cv_AR_FOR_TARGET_S,
[
[
cat > conftest.$ac_ext <<EOF
cat > conftest.$ac_ext <<EOF
int foo( int b )
int foo( int b )
{ return b; }
{ return b; }
EOF
EOF
if AC_TRY_COMMAND($CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext) \
if AC_TRY_COMMAND($CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext) \
  && AC_TRY_COMMAND($AR_FOR_TARGET -sr conftest.a conftest.o) \
  && AC_TRY_COMMAND($AR_FOR_TARGET -sr conftest.a conftest.o) \
  && test -s conftest.a ; \
  && test -s conftest.a ; \
then
then
  rtems_cv_AR_FOR_TARGET_S="yes"
  rtems_cv_AR_FOR_TARGET_S="yes"
else
else
  rtems_cv_AR_FOR_TARGET_S="no"
  rtems_cv_AR_FOR_TARGET_S="no"
fi
fi
  rm -f conftest*
  rm -f conftest*
])
])
])
])
 
 
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.