Skip to content
Snippets Groups Projects
Commit 235ce613 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

configure: allow 'strings' override via STRINGS variable

This allows building x264 on systems where 'strings' or
'${HOST}-strings' does not exist, but llvm-strings exists.
parent 22fcbe12
No related branches found
No related tags found
1 merge request!21configure: allow 'strings' override via STRINGS variable
Pipeline #18731 passed with stages
in 8 minutes and 34 seconds
......@@ -541,6 +541,7 @@ done
CC="${CC-${cross_prefix}gcc}"
STRIP="${STRIP-${cross_prefix}strip}"
STRINGS="${STRINGS-${cross_prefix}strings}"
INSTALL="${INSTALL-install}"
PKGCONFIG="${PKGCONFIG-${cross_prefix}pkg-config}"
......@@ -1017,10 +1018,10 @@ CPU_ENDIAN="little-endian"
if [ $compiler = GNU ]; then
echo "int i[2] = {0x42494745,0}; double f[2] = {0x1.0656e6469616ep+102,0};" > conftest.c
$CC $CFLAGS conftest.c -c -o conftest.o 2>/dev/null || die "endian test failed"
if (${cross_prefix}strings -a conftest.o | grep -q BIGE) && (${cross_prefix}strings -a conftest.o | grep -q FPendian) ; then
if (${STRINGS} -a conftest.o | grep -q BIGE) && (${STRINGS} -a conftest.o | grep -q FPendian) ; then
define WORDS_BIGENDIAN
CPU_ENDIAN="big-endian"
elif !(${cross_prefix}strings -a conftest.o | grep -q EGIB && ${cross_prefix}strings -a conftest.o | grep -q naidnePF) ; then
elif !(${STRINGS} -a conftest.o | grep -q EGIB && ${STRINGS} -a conftest.o | grep -q naidnePF) ; then
die "endian test failed"
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment