From: Ruben Kerkhof Date: Mon, 14 May 2018 21:23:36 +0000 (+0200) Subject: Use sane CFLAGS while checking for strtok_r X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f9aaf837d506abb28e607ff86da03cbdf00cb40d;p=collectd.git Use sane CFLAGS while checking for strtok_r Instead of using the flags passed in via the environment. This makes `./configure CC=clang CFLAGS="-Weverything` work properly. --- diff --git a/configure.ac b/configure.ac index 6876829d..0443dbc7 100644 --- a/configure.ac +++ b/configure.ac @@ -766,9 +766,7 @@ AC_CHECK_FUNCS_ONCE([ \ AC_FUNC_STRERROR_R SAVE_CFLAGS="$CFLAGS" -# Emulate behavior of src/Makefile.am -if test "x$GCC" = "xyes"; then - CFLAGS="$CFLAGS -Wall -Werror" +CFLAGS="-Wall -Werror" fi AC_CACHE_CHECK([for strtok_r],