]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38527: fix configure script for Solaris (GH-16845)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 1 Apr 2020 15:38:17 +0000 (08:38 -0700)
committerGitHub <noreply@github.com>
Wed, 1 Apr 2020 15:38:17 +0000 (08:38 -0700)
On Solaris, the regular "grep" command may be an old version that fails to search a binary file. We need to use the correct command (ggrep, in our case), which is found by the configure script earlier.

Automerge-Triggered-By: @pablogsal
(cherry picked from commit 5dd836030e0e399b21ab0865ae0d93934bdb3930)

Co-authored-by: Arnon Yaari <wiggin15@yahoo.com>
Misc/NEWS.d/next/Build/2020-03-28-10-43-09.bpo-38527.fqCRgD.rst [new file with mode: 0644]
configure
m4/ax_c_float_words_bigendian.m4

diff --git a/Misc/NEWS.d/next/Build/2020-03-28-10-43-09.bpo-38527.fqCRgD.rst b/Misc/NEWS.d/next/Build/2020-03-28-10-43-09.bpo-38527.fqCRgD.rst
new file mode 100644 (file)
index 0000000..8696930
--- /dev/null
@@ -0,0 +1,2 @@
+Fix configure check on Solaris for "float word ordering": sometimes, the correct "grep" command was not being used.
+Patch by Arnon Yaari.
index 3dfd6cce69e4e873272dad2a74f306ea9fde9d06..88865616457621571e73667a72002e20df34e9b3 100755 (executable)
--- a/configure
+++ b/configure
@@ -14303,10 +14303,10 @@ _ACEOF
 if ac_fn_c_try_compile "$LINENO"; then :
 
 
-if grep noonsees conftest.$ac_objext >/dev/null ; then
+if $GREP noonsees conftest.$ac_objext >/dev/null ; then
   ax_cv_c_float_words_bigendian=yes
 fi
-if grep seesnoon conftest.$ac_objext >/dev/null ; then
+if $GREP seesnoon conftest.$ac_objext >/dev/null ; then
   if test "$ax_cv_c_float_words_bigendian" = unknown; then
     ax_cv_c_float_words_bigendian=no
   else
index 216b90d803187087d1a28768b81162804ed5a4d6..746228c2c98df4d320b36bd0dc725396ee28d423 100644 (file)
@@ -49,10 +49,10 @@ double d = 909042349670368103374704789055050114762116927356156320147971208440534
 
 ]])], [
 
-if grep noonsees conftest.$ac_objext >/dev/null ; then
+if $GREP noonsees conftest.$ac_objext >/dev/null ; then
   ax_cv_c_float_words_bigendian=yes
 fi
-if grep seesnoon conftest.$ac_objext >/dev/null ; then
+if $GREP seesnoon conftest.$ac_objext >/dev/null ; then
   if test "$ax_cv_c_float_words_bigendian" = unknown; then
     ax_cv_c_float_words_bigendian=no
   else