From d28977171f795ced690cbbc3ab9bb4f34e02f956 Mon Sep 17 00:00:00 2001 From: "Paul A. Patience" Date: Mon, 1 Jan 2024 20:08:17 +0000 Subject: configure: fix for BSD grep. * configure: Pipe output of strings into grep in endianness test, like is done for ubsan. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 09c3c503..df4a37d6 100755 --- a/configure +++ b/configure @@ -1653,10 +1653,10 @@ if ! conftest_o ; then printf "failed\n"; exit 1; else - if grep -q 'PSILXINUEROCMIWD' conftest.o ; then + if strings conftest.o | grep -q 'PSILXINUEROCMIWD' ; then printf "little\n"; printf "#define HAVE_LITTLE_ENDIAN 1\n" >> config.h - elif grep -q 'LISPUNIXCOREDWIM' conftest.o ; then + elif strings conftest.o | grep -q 'LISPUNIXCOREDWIM' ; then printf "big\n"; printf "#define HAVE_LITTLE_ENDIAN 0\n" >> config.h else -- cgit v1.2.3