Changeset a7a0871 in rtems for aclocal


Ignore:
Timestamp:
Mar 20, 1998, 4:52:10 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
50cf94d
Parents:
aa24c61
Message:

Patch from Ralf Corsepius to properly detect that Cygwin32 does not
support the -pipe option on the compiler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aclocal/gcc-pipe.m4

    raa24c61 ra7a0871  
    88
    99AC_DEFUN(RTEMS_GCC_PIPE,
    10 [AC_REQUIRE([RTEMS_PROG_CC])
     10[AC_REQUIRE([RTEMS_PROG_CC])
     11AC_REQUIRE([AC_CANONICAL_HOST])
    1112AC_CACHE_CHECK(whether $CC_FOR_TARGET accepts --pipe,rtems_cv_gcc_pipe,
    1213[
    13 echo 'void f(){}' >conftest.c
    14 if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
    15   rtems_cv_gcc_pipe=yes
    16 else
    17   rtems_cv_gcc_pipe=no
    18 fi
    19 rm -f conftest*
    20 ])])
     14case "$host_os" in
     15  cygwin32*)
     16    rtems_cv_gcc_pipe=no
     17    ;;
     18  *)
     19    echo 'void f(){}' >conftest.c
     20    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
     21      rtems_cv_gcc_pipe=yes
     22    else
     23      rtems_cv_gcc_pipe=no
     24    fi
     25    rm -f conftest*
     26    ;;
     27esac
     28])
     29])
Note: See TracChangeset for help on using the changeset viewer.