aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2014-05-22 01:58:47 +0200
committerJohannes Schickel2014-05-22 01:58:47 +0200
commitec931b26ecc6226de95cd10b5a1ae561ea0f5386 (patch)
tree0f1b905c67f96eaf029f972bced4d9362d20f298
parent347c03d8b7c8768dc58f5f42ff013c426f7acebb (diff)
parent2ff0a553c303569412030a55d61802f7006727f1 (diff)
downloadscummvm-rg350-ec931b26ecc6226de95cd10b5a1ae561ea0f5386.tar.gz
scummvm-rg350-ec931b26ecc6226de95cd10b5a1ae561ea0f5386.tar.bz2
scummvm-rg350-ec931b26ecc6226de95cd10b5a1ae561ea0f5386.zip
Merge pull request #463 from digitall/wiiMiscConfigure
CONFIGURE: Add support for host-alias prefixed strings binary.
-rwxr-xr-xconfigure13
1 files changed, 11 insertions, 2 deletions
diff --git a/configure b/configure
index 4e4e9d1456..c2020ab89e 100755
--- a/configure
+++ b/configure
@@ -1843,6 +1843,15 @@ if test "$_global_constructors" = yes; then
fi
echo $_global_constructors
+echo_n "Checking for $_host_alias-strings... " >> "$TMPLOG"
+if test ! "x$(which $_host_alias-strings 2>/dev/null)" = "x"; then
+_strings=$_host_alias-strings
+echo yes >> "$TMPLOG"
+else
+_strings=strings
+echo no >> "$TMPLOG"
+fi
+
#
# Check for endianness
#
@@ -1857,9 +1866,9 @@ void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
int main() { _ascii (); _ebcdic (); return 0; }
EOF
$CXX $CXXFLAGS -c -o $TMPO.o tmp_endianness_check.cpp
-if strings $TMPO.o | grep BIGenDianSyS >/dev/null; then
+if $_strings $TMPO.o | grep BIGenDianSyS >/dev/null; then
_endian=big
-elif strings $TMPO.o | grep LiTTleEnDian >/dev/null; then
+elif $_strings $TMPO.o | grep LiTTleEnDian >/dev/null; then
_endian=little
fi
echo $_endian;