e_dbus: do not print log when closing dbus connection.
[platform/upstream/edbus.git] / m4 / efl_compiler_flag.m4
1 dnl Checks if a given compiler switch is supported.
2 dnl If so, this macro adds the flag to the CFLAGS
3
4 AC_DEFUN([EFL_COMPILER_FLAG],
5 [
6
7 CFLAGS_save="${CFLAGS}"
8 CFLAGS="${CFLAGS} $1"
9   
10 AC_LANG_PUSH([C])
11 AC_MSG_CHECKING([whether the compiler supports $1])
12
13 AC_COMPILE_IFELSE(
14    [AC_LANG_PROGRAM([[]])],
15    [have_flag="yes"],
16    [have_flag="no"])
17 AC_MSG_RESULT([${have_flag}])
18
19 if test "x${have_flag}" = "xno" ; then
20    CFLAGS="${CFLAGS_save}"
21 fi
22 AC_LANG_POP([C])
23
24 ])