Mercurial > hg > sv-dependency-builds
annotate src/libvorbis-1.3.3/m4/add_cflags.m4 @ 56:af97cad61ff0
Add updated build of PortAudio for OSX
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 03 Jan 2017 15:10:52 +0000 |
parents | 05aa0afa9217 |
children |
rev | line source |
---|---|
Chris@1 | 1 dnl @synopsis AC_ADD_CFLAGS |
Chris@1 | 2 dnl |
Chris@1 | 3 dnl Add the given option to CFLAGS, if it doesn't break the compiler |
Chris@1 | 4 |
Chris@1 | 5 AC_DEFUN([AC_ADD_CFLAGS], |
Chris@1 | 6 [AC_MSG_CHECKING([if $CC accepts $1]) |
Chris@1 | 7 ac_add_cflags__old_cflags="$CFLAGS" |
Chris@1 | 8 CFLAGS="$CFLAGS $1" |
Chris@1 | 9 AC_TRY_LINK([#include <stdio.h>], |
Chris@1 | 10 [puts("Hello, World!"); return 0;], |
Chris@1 | 11 AC_MSG_RESULT([yes]), |
Chris@1 | 12 AC_MSG_RESULT([no]) |
Chris@1 | 13 CFLAGS="$ac_add_cflags__old_cflags") |
Chris@1 | 14 ]) |
Chris@1 | 15 ])# AC_ADD_CFLAGS |