Mercurial > hg > sv-dependency-builds
comparison src/libvorbis-1.3.3/m4/add_cflags.m4 @ 1:05aa0afa9217
Bring in flac, ogg, vorbis
author | Chris Cannam |
---|---|
date | Tue, 19 Mar 2013 17:37:49 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:c7265573341e | 1:05aa0afa9217 |
---|---|
1 dnl @synopsis AC_ADD_CFLAGS | |
2 dnl | |
3 dnl Add the given option to CFLAGS, if it doesn't break the compiler | |
4 | |
5 AC_DEFUN([AC_ADD_CFLAGS], | |
6 [AC_MSG_CHECKING([if $CC accepts $1]) | |
7 ac_add_cflags__old_cflags="$CFLAGS" | |
8 CFLAGS="$CFLAGS $1" | |
9 AC_TRY_LINK([#include <stdio.h>], | |
10 [puts("Hello, World!"); return 0;], | |
11 AC_MSG_RESULT([yes]), | |
12 AC_MSG_RESULT([no]) | |
13 CFLAGS="$ac_add_cflags__old_cflags") | |
14 ]) | |
15 ])# AC_ADD_CFLAGS |