1 dnl as-compiler-flag.m4 0.0.1
\r
2 dnl autostars m4 macro for detection of compiler flags
\r
6 AC_DEFUN([AS_COMPILER_FLAG],
\r
8 AC_MSG_CHECKING([to see if compiler understands $1])
\r
10 save_CFLAGS="$CFLAGS"
\r
13 AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no])
\r
14 CFLAGS="$save_CFLAGS"
\r
16 if test "X$flag_ok" = Xyes ; then
\r
23 AC_MSG_RESULT([$flag_ok])
\r