Mercurial > hg > sv-dependency-builds
annotate src/libsndfile-1.0.25/M4/add_cflags.m4 @ 22:b07fe9e906dc
Portaudio: add missed file
author | Chris Cannam |
---|---|
date | Tue, 26 Mar 2013 12:14:11 +0000 |
parents | c7265573341e |
children |
rev | line source |
---|---|
Chris@0 | 1 dnl @synopsis MN_ADD_CFLAGS |
Chris@0 | 2 dnl |
Chris@0 | 3 dnl Add the given option to CFLAGS, if it doesn't break the compiler |
Chris@0 | 4 |
Chris@0 | 5 AC_DEFUN([MN_ADD_CFLAGS], |
Chris@0 | 6 [AC_MSG_CHECKING([if $CC accepts $1]) |
Chris@0 | 7 ac_add_cflags__old_cflags="$CFLAGS" |
Chris@0 | 8 CFLAGS="$1" |
Chris@0 | 9 AC_TRY_LINK([ |
Chris@0 | 10 #include <stdio.h> |
Chris@0 | 11 ], |
Chris@0 | 12 [puts("Hello, World!"); return 0;], |
Chris@0 | 13 AC_MSG_RESULT([yes]) |
Chris@0 | 14 CFLAGS="$ac_add_cflags__old_cflags $1", |
Chris@0 | 15 AC_MSG_RESULT([no]) |
Chris@0 | 16 CFLAGS="$ac_add_cflags__old_cflags" |
Chris@0 | 17 ) |
Chris@0 | 18 ])# MN_ADD_CFLAGS |