[x264-devel] [Git][videolan/x264][master] configure: allow 'strings' override via STRINGS variable
Anton Mitrofanov
gitlab at videolan.org
Wed Jun 10 23:19:48 CEST 2020
Anton Mitrofanov pushed to branch master at VideoLAN / x264
Commits:
235ce613 by Sergei Trofimovich at 2020-06-10T23:10:38+02:00
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.
- - - - -
1 changed file:
- configure
Changes:
=====================================
configure
=====================================
@@ -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
View it on GitLab: https://code.videolan.org/videolan/x264/-/commit/235ce6130168f4deee55c88ecda5ab84d81d125b
--
View it on GitLab: https://code.videolan.org/videolan/x264/-/commit/235ce6130168f4deee55c88ecda5ab84d81d125b
You're receiving this email because of your account on code.videolan.org.
More information about the x264-devel
mailing list