1 dnl Check if the C compiler accepts a certain C flag, and if so adds it to
3 AC_DEFUN(DIA_CHECK_CFLAG, [
4 AC_MSG_CHECKING(if C compiler accepts $1)
7 AC_TRY_COMPILE([#include <stdio.h>], [printf("hello");],
8 [AC_MSG_RESULT(yes)],dnl
10 CFLAGS="$save_CFLAGS"])