source:
rtems/aclocal/gcc-pipe.m4
@
78ffe89
Last change on this file since 78ffe89 was 78ffe89, checked in by Joel Sherrill <joel.sherrill@…>, on 10/11/99 at 15:50:20 | |
---|---|
|
|
File size: 539 bytes |
Rev | Line | |
---|---|---|
[51c195d5] | 1 | dnl |
2 | dnl $Id$ | |
3 | dnl | |
4 | dnl Check whether the target compiler accepts -pipe | |
5 | dnl | |
6 | ||
7 | AC_DEFUN(RTEMS_GCC_PIPE, | |
[a7a08713] | 8 | [AC_REQUIRE([RTEMS_PROG_CC]) |
9 | AC_REQUIRE([AC_CANONICAL_HOST]) | |
[51c195d5] | 10 | AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts --pipe,rtems_cv_gcc_pipe, |
11 | [ | |
[98100d2] | 12 | rtems_cv_gcc_pipe=no |
13 | if test "$rtems_cv_prog_gcc" = "yes"; then | |
[78ffe89] | 14 | dnl case "$host_os" in |
15 | dnl cygwin*) | |
16 | dnl ;; | |
17 | dnl *) | |
[a7a08713] | 18 | echo 'void f(){}' >conftest.c |
19 | if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then | |
20 | rtems_cv_gcc_pipe=yes | |
21 | fi | |
22 | rm -f conftest* | |
[78ffe89] | 23 | dnl ;; |
24 | dnl esac | |
[98100d2] | 25 | fi |
[a7a08713] | 26 | ]) |
27 | ]) |
Note: See TracBrowser
for help on using the repository browser.