diff options
author | Paul A. Patience <paul@apatience.com> | 2024-01-01 20:08:17 +0000 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2024-01-01 12:46:58 -0800 |
commit | d28977171f795ced690cbbc3ab9bb4f34e02f956 (patch) | |
tree | d7ccc6a37e83eda132916ad8a96a808f66749c24 | |
parent | c9279d2894a54344cbde24906177323a675dd410 (diff) | |
download | txr-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.
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |