From 0775d68322ee3060058ca8a357eaa2132e61d626 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Tue, 25 Jun 2024 18:58:53 +0200 Subject: [PATCH] Fix configure log message when cross-compiling (#14658) This puts the configure log into its own lines and makes it readable: checking for gcc... gcc checking for native build C compiler... gcc --- configure.ac | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index d69fafc5363..eaa38a94e6b 100644 --- a/configure.ac +++ b/configure.ac @@ -137,13 +137,11 @@ AC_PROG_CPP AC_USE_SYSTEM_EXTENSIONS AC_PROG_LN_S -if test "$cross_compiling" = yes ; then - AC_MSG_CHECKING(for native build C compiler) - AC_CHECK_PROGS(BUILD_CC, [gcc clang c99 c89 cc cl],none) - AC_MSG_RESULT($BUILD_CC) -else - BUILD_CC=$CC -fi +AS_VAR_IF([cross_compiling], [yes], + [AC_CHECK_PROGS([BUILD_CC], [gcc clang c99 c89 cc cl], [none]) + AC_MSG_CHECKING([for native build C compiler]) + AC_MSG_RESULT([$BUILD_CC])], + [BUILD_CC=$CC]) dnl Support systems with system libraries in e.g. /usr/lib64. PHP_ARG_WITH([libdir],