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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [aclocal/] [gcc-pipe.m4] - Blame information for rev 657

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
dnl
2
dnl $Id: gcc-pipe.m4,v 1.2 2001-09-27 11:59:11 chris Exp $
3
dnl
4
dnl Check whether the target compiler accepts -pipe
5
dnl
6
 
7
AC_DEFUN(RTEMS_GCC_PIPE,
8
[AC_REQUIRE([RTEMS_PROG_CC])
9
AC_REQUIRE([AC_CANONICAL_HOST])
10
AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts --pipe,rtems_cv_gcc_pipe,
11
[
12
rtems_cv_gcc_pipe=no
13
if test "$rtems_cv_prog_gcc" = "yes"; then
14
    echo 'void f(){}' >conftest.c
15
    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
16
      rtems_cv_gcc_pipe=yes
17
    fi
18
    rm -f conftest*
19
fi
20
])
21
])

powered by: WebSVN 2.1.0

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