summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorPaul A. Patience <paul@apatience.com>2024-01-01 20:08:17 +0000
committerKaz Kylheku <kaz@kylheku.com>2024-01-01 12:46:58 -0800
commitd28977171f795ced690cbbc3ab9bb4f34e02f956 (patch)
treed7ccc6a37e83eda132916ad8a96a808f66749c24 /configure
parentc9279d2894a54344cbde24906177323a675dd410 (diff)
downloadtxr-d28977171f795ced690cbbc3ab9bb4f34e02f956.tar.gz
txr-d28977171f795ced690cbbc3ab9bb4f34e02f956.tar.bz2
txr-d28977171f795ced690cbbc3ab9bb4f34e02f956.zip
configure: fix for BSD grep.
* configure: Pipe output of strings into grep in endianness test, like is done for ubsan.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
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