From 4b3d88f07c8d68a245f86b72024cca28d9a3b340 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 2 Jan 2013 16:19:36 +0300 Subject: [PATCH] m4.include/mc-cflags.m4: report real compiler in MC_CHECK_ONE_CFLAG instead of 'gcc' Example use: CC=clang ./configure Before the patch configure reported 'gcc' is being used: checking whether gcc accepts -Wcomment... yes checking whether gcc accepts -Wdeclaration-after-statement... yes checking whether gcc accepts -Wfloat-equal... yes checking whether gcc accepts -Wformat... yes (config.log used proper ${CC}) After the patch it lies a bit less: checking whether clang accepts -Wcomment... yes checking whether clang accepts -Wdeclaration-after-statement... yes checking whether clang accepts -Wfloat-equal... yes checking whether clang accepts -Wformat... yes Reported-by: Agostino Sarubbo Gentoo-bug: http://bugs.gentoo.org/449752 Signed-off-by: Sergei Trofimovich --- m4.include/mc-cflags.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4.include/mc-cflags.m4 b/m4.include/mc-cflags.m4 index a1e039cf6..6d250cb26 100644 --- a/m4.include/mc-cflags.m4 +++ b/m4.include/mc-cflags.m4 @@ -9,7 +9,7 @@ dnl @copyright Free Software Foundation, Inc. AC_DEFUN([MC_CHECK_ONE_CFLAG],[ - AC_MSG_CHECKING([whether gcc accepts $1]) + AC_MSG_CHECKING([whether ${CC} accepts $1]) safe_CFLAGS=$CFLAGS CFLAGS="$1" -- 2.11.4.GIT