From 99cd35bd12745364ef777a36b3cb7186d18458b1 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 25 Jan 2022 03:47:07 +0100 Subject: configure: Fix clang detection when configuring --with-fuzzers --- configure.ac | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index d1b1f62..c679151 100644 --- a/configure.ac +++ b/configure.ac @@ -272,9 +272,14 @@ if test "x$build_sanitizers" = "xyes"; then fi if test "x$build_fuzzers" = "xyes"; then - if test "$CXX" != "clang++"; then + IS_CLANG=`$CXX --version 2>/dev/null |grep clang` + case "$IS_CLANG" in + *clang*) + ;; + *) AC_MSG_WARN([building fuzzers requires clang/clang++ (continuing anyway)]) - fi + ;; + esac CFLAGS+=" -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" -- cgit v1.1-32-gdbae