anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / audio / moc / use-ax-check-compile-flag.patch
blob90dadf092bb797980e0b6f4a71c5aacb188455e4
1 diff --git a/configure.in b/configure.in
2 index eb71bdf0b0...342baf10c5 100644
3 --- a/configure.in
4 +++ b/configure.in
5 @@ -102,16 +102,16 @@
7 AC_C_CONST
8 AC_TYPE_INTPTR_T
9 -AX_CFLAGS_GCC_OPTION(-Wall)
10 -AX_CFLAGS_GCC_OPTION(-Wextra)
11 +AX_CHECK_COMPILE_FLAG(-Wall)
12 +AX_CHECK_COMPILE_FLAG(-Wextra)
14 dnl Overly-enthusiastic warning suppression.
15 save_CFLAGS="$CFLAGS"
16 -AX_CFLAGS_GCC_OPTION([-Wgnu-zero-variadic-macro-arguments], ,
17 +AX_CHECK_COMPILE_FLAG([-Wgnu-zero-variadic-macro-arguments],
18 AC_DEFINE([HAVE_VARIADIC_MACRO_WARNING], 1,
19 [Define if compiler recognises warning option]))
20 -AX_CFLAGS_GCC_OPTION([-Werror=unknown-warning-option])
21 -AX_CFLAGS_GCC_OPTION([-Wformat-truncation], ,
22 +AX_CHECK_COMPILE_FLAG([-Werror=unknown-warning-option])
23 +AX_CHECK_COMPILE_FLAG([-Wformat-truncation],
24 AC_DEFINE([HAVE_FORMAT_TRUNCATION_WARNING], 1,
25 [Define if compiler recognises warning option]))
26 CFLAGS="$save_CFLAGS"
27 @@ -242,13 +242,13 @@
28 else
29 if test "x$enable_debug" = "xgdb"
30 then
31 - AX_CFLAGS_GCC_OPTION([-ggdb])
32 - AX_CFLAGS_GCC_OPTION([-O0])
33 + AX_CHECK_COMPILE_FLAG([-ggdb])
34 + AX_CHECK_COMPILE_FLAG([-O0])
35 COMPILE_DEBUG='gdb'
37 if test "x$ac_cv_cflags_gcc_option__ggdb" = "x"
38 then
39 - AX_CFLAGS_GCC_OPTION([-g])
40 + AX_CHECK_COMPILE_FLAG([-g])
41 COMPILE_DEBUG='yes'
43 EXTRA_OBJS="$EXTRA_OBJS null_out.o md5.o"