]> git.saurik.com Git - bison.git/blame - m4/warning.m4
* lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
[bison.git] / m4 / warning.m4
CommitLineData
630f5212
JT
1AC_DEFUN(BISON_WARNING,
2[AC_MSG_CHECKING(whether compiler accepts $1)
3AC_SUBST(WARNING_CFLAGS)
4ac_save_CFLAGS="$CFLAGS"
5CFLAGS="$CFLAGS $1"
6AC_TRY_COMPILE(,
7[int x;],
8WARNING_CFLAGS="$WARNING_CFLAGS $1"
9AC_MSG_RESULT(yes),
10AC_MSG_RESULT(no))
11CFLAGS="$ac_save_CFLAGS"])