1 dnl Checks if a given compiler switch is supported.
2 dnl If so, this macro adds the flag to the CFLAGS
4 AC_DEFUN([EFL_COMPILER_FLAG],
7 CFLAGS_save="${CFLAGS}"
11 AC_MSG_CHECKING([whether the compiler supports $1])
14 [AC_LANG_PROGRAM([[]])],
17 AC_MSG_RESULT([${have_flag}])
19 if test "x${have_flag}" = "xno" ; then
20 CFLAGS="${CFLAGS_save}"