From: Lukas van de Wiel <30800501+LukasvdWiel@users.noreply.github.com> Date: Sat, 22 Jul 2023 23:20:03 +0000 (+0200) Subject: gh-106962: Detect mpicc in configure.ac (#106961) X-Git-Tag: v3.13.0a1~1274 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a6b278769b9f24e0650283f6c347db8ae52b7b3;p=thirdparty%2FPython%2Fcpython.git gh-106962: Detect mpicc in configure.ac (#106961) Don't let autoconf mistake MPI compilers for Intel compilers; filter out the MPI case to prevent Intel specific options from being applied. --- diff --git a/Misc/NEWS.d/next/Build/2023-07-23-00-38-51.gh-issue-106962.VVYrWB.rst b/Misc/NEWS.d/next/Build/2023-07-23-00-38-51.gh-issue-106962.VVYrWB.rst new file mode 100644 index 000000000000..32e196fe26d3 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2023-07-23-00-38-51.gh-issue-106962.VVYrWB.rst @@ -0,0 +1 @@ +Detect MPI compilers in :file:`configure`. diff --git a/configure b/configure index e6fb5e3c2b0c..18d404c8dc06 100755 --- a/configure +++ b/configure @@ -10154,6 +10154,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ esac case "$CC" in +*mpicc*) + CFLAGS_NODIST="$CFLAGS_NODIST" + ;; *icc*) # ICC needs -fp-model strict or floats behave badly CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" diff --git a/configure.ac b/configure.ac index a1ee78047692..cdb88a307197 100644 --- a/configure.ac +++ b/configure.ac @@ -2656,6 +2656,9 @@ yes) esac case "$CC" in +*mpicc*) + CFLAGS_NODIST="$CFLAGS_NODIST" + ;; *icc*) # ICC needs -fp-model strict or floats behave badly CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"