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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [aclocal/] [gcc-pipe.m4] - Diff between revs 1026 and 1765

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

Rev 1026 Rev 1765
dnl
dnl
dnl gcc-pipe.m4,v 1.8 2000/11/09 17:04:53 joel Exp
dnl gcc-pipe.m4,v 1.8 2000/11/09 17:04:53 joel Exp
dnl
dnl
dnl Check whether the target compiler accepts -pipe
dnl Check whether the target compiler accepts -pipe
dnl
dnl
 
 
AC_DEFUN(RTEMS_GCC_PIPE,
AC_DEFUN(RTEMS_GCC_PIPE,
[AC_REQUIRE([RTEMS_PROG_CC])
[AC_REQUIRE([RTEMS_PROG_CC])
AC_REQUIRE([AC_CANONICAL_HOST])
AC_REQUIRE([AC_CANONICAL_HOST])
AC_CACHE_CHECK(whether $CC accepts --pipe,rtems_cv_gcc_pipe,
AC_CACHE_CHECK(whether $CC accepts --pipe,rtems_cv_gcc_pipe,
[
[
rtems_cv_gcc_pipe=no
rtems_cv_gcc_pipe=no
if test x"$GCC" = x"yes"; then
if test x"$GCC" = x"yes"; then
    echo 'void f(){}' >conftest.c
    echo 'void f(){}' >conftest.c
    if test -z "`${CC} --pipe -c conftest.c 2>&1`";then
    if test -z "`${CC} --pipe -c conftest.c 2>&1`";then
      rtems_cv_gcc_pipe=yes
      rtems_cv_gcc_pipe=yes
    fi
    fi
    rm -f conftest*
    rm -f conftest*
fi
fi
])
])
])
])
 
 

powered by: WebSVN 2.1.0

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