Last change
on this file since 2527 was
2527,
checked in by Sam Hocevar, 13 years ago
|
- Build on HP-UX systems: disable unsupported warning flags, define
_XOPEN_SOURCE_EXTENDED where appropriate, use AC_C_INLINE to avoid using
the inline keyword when unsupported, and use #pragma INIT for library
initialisation routines.
|
File size:
510 bytes
|
Line | |
---|
1 | dnl AC_TRY_CFLAGS (CFLAGS, [ACTION-IF-WORKS], [ACTION-IF-FAILS]) |
---|
2 | dnl check if $CC supports a given set of cflags |
---|
3 | AC_DEFUN([AC_TRY_CFLAGS], |
---|
4 | [AC_MSG_CHECKING([if $CC supports $1 flags]) |
---|
5 | SAVE_CFLAGS="$CFLAGS" |
---|
6 | CFLAGS="$1" |
---|
7 | AC_TRY_COMPILE([],[],[ac_cv_try_cflags_ok=yes],[ac_cv_try_cflags_ok=no]) |
---|
8 | CFLAGS="$SAVE_CFLAGS" |
---|
9 | AC_MSG_RESULT([$ac_cv_try_cflags_ok]) |
---|
10 | if test x"$ac_cv_try_cflags_ok" = x"yes"; then |
---|
11 | ifelse([$2],[],[:],[$2]) |
---|
12 | else |
---|
13 | ifelse([$3],[],[:],[$3]) |
---|
14 | fi]) |
---|
Note: See
TracBrowser
for help on using the repository browser.