Use sane CFLAGS while checking for strtok_r
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 May 2018 21:23:36 +0000 (23:23 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 May 2018 21:23:36 +0000 (23:23 +0200)
Instead of using the flags passed in via the environment.

This makes `./configure CC=clang CFLAGS="-Weverything` work properly.

configure.ac

index 6876829..0443dbc 100644 (file)
@@ -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],