From patchwork Sat May 4 20:57:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 241476 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6ACB92C00AD for ; Sun, 5 May 2013 06:58:23 +1000 (EST) Received: from localhost ([::1]:49496 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYjXB-0006U7-Nh for incoming@patchwork.ozlabs.org; Sat, 04 May 2013 16:58:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYjWu-0006U0-LY for qemu-devel@nongnu.org; Sat, 04 May 2013 16:58:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYjWs-000767-8d for qemu-devel@nongnu.org; Sat, 04 May 2013 16:58:04 -0400 Received: from 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:1d0::1]:56796 helo=mnementh.archaic.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYjWs-00073p-29 for qemu-devel@nongnu.org; Sat, 04 May 2013 16:58:02 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1UYjWh-0001jN-4M; Sat, 04 May 2013 21:57:51 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Sat, 4 May 2013 21:57:51 +0100 Message-Id: <1367701071-6630-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: Anthony Liguori , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Peter Cheung , patches@linaro.org Subject: [Qemu-devel] [PATCH for-1.5] configure: Check that "libtool" is not the MacOSX one X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The "libtool" binary on MacOSX is not GNU libtool, and doesn't support anything like the same set of command line options. Test whether we have accidentally picked this up (by looking for whether it handles the GNU --version switch), and discard it if so. The fallback machinery for the "we don't have a libtool" case will work fine. This fixes a failure in "make install" on MacOSX. Reported-by: Peter Cheung Signed-off-by: Peter Maydell --- configure | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure b/configure index e818e8b..a9ff4ad 100755 --- a/configure +++ b/configure @@ -1685,6 +1685,14 @@ if ! has $libtool; then libtool= fi +# MacOSX ships with a libtool which isn't the GNU one; weed this +# out by checking whether libtool supports the --version switch +if test -n "$libtool"; then + if ! "$libtool" --version >/dev/null 2>&1; then + libtool= + fi +fi + ########################################## # Sparse probe if test "$sparse" != "no" ; then