conf.c: confitems_lookup.c envtoconfitems_lookup.c
$(zlib_objs): CPPFLAGS += -include config.h
+$(zlib_objs): CFLAGS += @no_implicit_fallthrough_warning@
src/zlib/libz.a: $(zlib_objs)
$(AR) cr $@ $(zlib_objs)
esac
AC_SUBST(extra_libs)
-AC_SUBST(extra_cflags)
+AC_SUBST(no_implicit_fallthrough_warning)
AC_SUBST(getopt_long_c)
AC_SUBST(include_dev_mk)
AC_SUBST(test_suites)
version=`(git --git-dir=$srcdir/.git describe --dirty 2>/dev/null || echo vunknown) | sed -e 's/v//' -e 's/-/+/' -e 's/-/_/g'`
echo "extern const char CCACHE_VERSION@<:@@:>@; const char CCACHE_VERSION@<:@@:>@ = \"$version\";" >src/version.c
- dnl Check for -Wimplicit-fallthrough and disable if exists
- AC_MSG_CHECKING([whether C compiler supports -Wimplicit-fallthrough])
+ dnl Check for -Wno-implicit-fallthrough
+ AC_MSG_CHECKING([whether C compiler supports -Wno-implicit-fallthrough])
saved_cflags=$CFLAGS
- CFLAGS=-Wimplicit-fallthrough
+ CFLAGS=-Wno-implicit-fallthrough
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
[AC_MSG_RESULT([yes])]
- [extra_cflags="-Wno-error=implicit-fallthrough"],
+ [no_implicit_fallthrough_warning="-Wno-implicit-fallthrough"],
[AC_MSG_RESULT([no])]
)
CFLAGS=$saved_cflags
# GNU make syntax reigns in this file.
-all_cflags += -Werror @extra_cflags@
+all_cflags += -Werror
all_cppflags += -MD -MP -MF .deps/$(subst .._,,$(subst /,_,$<)).d
A2X = a2x