diff options
author | Szabolcs Nagy <nsz@port70.net> | 2017-09-17 15:35:55 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-02-07 15:43:33 -0500 |
commit | 249b621f9efeb8c47f34b698875c54c9c3108df3 (patch) | |
tree | 7bb785cb55fa4a8c6deea5c31ba064a83e48e5aa | |
parent | 23ddab8569ef8ae3488c1d67b6bccaa081c73245 (diff) | |
download | musl-249b621f9efeb8c47f34b698875c54c9c3108df3.tar.gz musl-249b621f9efeb8c47f34b698875c54c9c3108df3.tar.bz2 musl-249b621f9efeb8c47f34b698875c54c9c3108df3.tar.xz musl-249b621f9efeb8c47f34b698875c54c9c3108df3.zip |
better configure check for long double support
-rwxr-xr-x | configure | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -706,9 +706,8 @@ esac # printf "checking whether compiler's long double definition matches float.h... " echo '#include <float.h>' > "$tmpc" -echo '#if LDBL_MANT_DIG == 53' >> "$tmpc" -echo 'typedef char ldcheck[9-(int)sizeof(long double)];' >> "$tmpc" -echo '#endif' >> "$tmpc" +echo '#define C(m,s) (m==LDBL_MANT_DIG && s==sizeof(long double))' >> "$tmpc" +echo 'typedef char ldcheck[(C(53,8)||C(64,12)||C(64,16)||C(113,16))*2-1];' >> "$tmpc" if $CC $CFLAGS_C99FSE \ -I$srcdir/arch/$ARCH -I$srcdir/arch/generic -I$srcdir/include \ $CPPFLAGS $CFLAGS -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then |