source: git/m4/pipe-check.m4 @ 08a955

spielwiese
Last change on this file since 08a955 was d11524, checked in by Mohamed Barakat <mohamed.barakat@…>, 13 years ago
- merge libpolys/{misc,reporter,resources}/configure.ac into libpolys/configure.ac - seperate some of the checks in separate m4 files
  • Property mode set to 100644
File size: 624 bytes
Line 
1# Check whether the compiler accepts -pipe
2
3dnl SING_CHECK_PIPE
4dnl
5dnl check whether the compiler accepts -pipe and define PIPE
6
7AC_DEFUN([SING_CHECK_PIPE],
8[
9
10if test x$ac_cv_c_cpp = xgcc2 -o  x$ac_cv_c_cpp = xgcc3
11then
12  AC_MSG_CHECKING(whether compiler accepts -pipe)
13  temp_cflags="${CFLAGS}"
14  CFLAGS="${CFLAGS} -pipe"
15  AC_CACHE_VAL(ac_cv_cxx_have_pipe,
16  AC_TRY_COMPILE(,,ac_cv_cxx_have_pipe=yes,ac_cv_cxx_have_pipe=no))
17  AC_MSG_RESULT(${ac_cv_cxx_have_pipe})
18  CFLAGS=${temp_cflags}
19else
20  ac_cv_cxx_have_pipe="no"
21fi
22
23if test "${ac_cv_cxx_have_pipe}" != yes; then
24  PIPE=
25else
26  PIPE="-pipe"
27fi
28AC_SUBST(PIPE)
29])
Note: See TracBrowser for help on using the repository browser.