spielwiese
Last change
on this file since 69185ce was
69185ce,
checked in by Hans Schoenemann <hannes@…>, 3 years ago
|
update configure stuff
|
-
Property mode set to
100644
|
File size:
659 bytes
|
Line | |
---|
1 | # Check whether the compiler accepts -pipe |
---|
2 | |
---|
3 | dnl SING_CHECK_PIPE |
---|
4 | dnl |
---|
5 | dnl check whether the compiler accepts -pipe and define PIPE |
---|
6 | |
---|
7 | AC_DEFUN([SING_CHECK_PIPE], |
---|
8 | [ |
---|
9 | |
---|
10 | if test x$ac_cv_c_cpp = xgcc2 -o x$ac_cv_c_cpp = xgcc3 |
---|
11 | then |
---|
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_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[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} |
---|
19 | else |
---|
20 | ac_cv_cxx_have_pipe="no" |
---|
21 | fi |
---|
22 | |
---|
23 | if test "${ac_cv_cxx_have_pipe}" != yes; then |
---|
24 | PIPE= |
---|
25 | else |
---|
26 | PIPE="-pipe" |
---|
27 | fi |
---|
28 | AC_SUBST(PIPE) |
---|
29 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.