Skip to content

Commit 403410f

Browse files
authored
gh-89640: Restore configure error message on failure to detect float word order (#126569)
Before #126387, if we didn't detect float word order we'd raise the following configure error: Unknown float word ordering. You need to manually preset ax_cv_c_float_words_bigendian=no (or yes) according to your system. This puts it back (except for ARM or WASM, which as hardcoded).
1 parent 9ecd8f7 commit 403410f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Diff for: configure

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: configure.ac

+6-1
Original file line numberDiff line numberDiff line change
@@ -5920,7 +5920,12 @@ AX_C_FLOAT_WORDS_BIGENDIAN(
59205920
stored in ARM mixed-endian order (byte order 45670123)])],
59215921
[wasm*], [AC_DEFINE([DOUBLE_IS_LITTLE_ENDIAN_IEEE754], [1],
59225922
[Define if C doubles are 64-bit IEEE 754 binary format,
5923-
stored with the least significant byte first])])])
5923+
stored with the least significant byte first])],
5924+
[AC_MSG_ERROR([m4_normalize([
5925+
Unknown float word ordering. You need to manually
5926+
preset ax_cv_c_float_words_bigendian=no (or yes)
5927+
according to your system.
5928+
])])])])
59245929

59255930
# The short float repr introduced in Python 3.1 requires the
59265931
# correctly-rounded string <-> double conversion functions from

0 commit comments

Comments
 (0)