Mercurial > hg > sv-dependency-builds
annotate src/libsamplerate-0.1.9/M4/add_cflags.m4 @ 84:08ae793730bd
Add null config files
author | Chris Cannam |
---|---|
date | Mon, 02 Mar 2020 14:03:47 +0000 |
parents | 481f5f8c5634 |
children |
rev | line source |
---|---|
Chris@41 | 1 dnl @synopsis AC_ADD_CFLAGS |
Chris@41 | 2 dnl |
Chris@41 | 3 dnl Add the given option to CFLAGS, if it doesn't break the compiler |
Chris@41 | 4 |
Chris@41 | 5 AC_DEFUN([AC_ADD_CFLAGS], |
Chris@41 | 6 [AC_MSG_CHECKING([if $CC accepts $1]) |
Chris@41 | 7 ac_add_cflags__old_cflags="$CFLAGS" |
Chris@41 | 8 CFLAGS="$CFLAGS $1" |
Chris@41 | 9 AC_TRY_LINK([ |
Chris@41 | 10 #include <stdio.h> |
Chris@41 | 11 ], |
Chris@41 | 12 [puts("Hello, World!"); return 0;], |
Chris@41 | 13 AC_MSG_RESULT([yes]), |
Chris@41 | 14 AC_MSG_RESULT([no]) |
Chris@41 | 15 CFLAGS="$ac_add_cflags__old_cflags" |
Chris@41 | 16 ) |
Chris@41 | 17 ])# AC_ADD_CFLAGS |