From nobody Wed Oct 29 22:40:06 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1526201533532933.246420632364; Sun, 13 May 2018 01:52:13 -0700 (PDT) Received: from localhost ([::1]:52950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHmjb-0005JD-Mm for importer@patchew.org; Sun, 13 May 2018 04:52:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHmiY-00033i-Pi for qemu-devel@nongnu.org; Sun, 13 May 2018 04:50:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHmiU-0005C7-MY for qemu-devel@nongnu.org; Sun, 13 May 2018 04:50:58 -0400 Received: from mail.weilnetz.de ([37.120.169.71]:41570 helo=v2201612906741603.powersrv.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fHmiU-0005BV-FO for qemu-devel@nongnu.org; Sun, 13 May 2018 04:50:54 -0400 Received: from localhost (localhost [127.0.0.1]) by v2201612906741603.powersrv.de (Postfix) with ESMTP id 3BEF4DAC6EF; Sun, 13 May 2018 10:50:52 +0200 (CEST) Received: from v2201612906741603.powersrv.de ([127.0.0.1]) by localhost (v2201612906741603.powersrv.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hkPwkAIX4tg3; Sun, 13 May 2018 10:50:36 +0200 (CEST) Received: from qemu.weilnetz.de (qemu.weilnetz.de [188.68.58.204]) by v2201612906741603.powersrv.de (Postfix) with ESMTP id E10CBDAC674; Sun, 13 May 2018 10:50:35 +0200 (CEST) Received: by qemu.weilnetz.de (Postfix, from userid 1000) id 17EC8460013; Sun, 13 May 2018 10:50:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at v2201612906741603.powersrv.de From: Stefan Weil To: Mike Frysinger , QEMU Developer Date: Sun, 13 May 2018 10:50:32 +0200 Message-Id: <20180513085032.27773-1-sw@weilnetz.de> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 37.120.169.71 Subject: [Qemu-devel] [PATCH] configure: Use strings command from cross development tools X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Weil Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This fixes cross builds for the (rare) case where cross binutils but no native binutils are installed. Signed-off-by: Stefan Weil Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 24c411e346..4f6ace1ed4 100755 --- a/configure +++ b/configure @@ -517,6 +517,7 @@ objcopy=3D"${OBJCOPY-${cross_prefix}objcopy}" ld=3D"${LD-${cross_prefix}ld}" ranlib=3D"${RANLIB-${cross_prefix}ranlib}" nm=3D"${NM-${cross_prefix}nm}" +strings=3D"${STRINGS-${cross_prefix}strings}" strip=3D"${STRIP-${cross_prefix}strip}" windres=3D"${WINDRES-${cross_prefix}windres}" pkg_config_exe=3D"${PKG_CONFIG-${cross_prefix}pkg-config}" @@ -1956,9 +1957,9 @@ int main(int argc, char *argv[]) { EOF =20 if compile_object ; then - if strings -a $TMPO | grep -q BiGeNdIaN ; then + if "$strings" -a $TMPO | grep -q BiGeNdIaN ; then bigendian=3D"yes" - elif strings -a $TMPO | grep -q LiTtLeEnDiAn ; then + elif "$strings" -a $TMPO | grep -q LiTtLeEnDiAn ; then bigendian=3D"no" else echo big/little test failed --=20 2.11.0