From patchwork Thu Dec 23 10:44:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 76498 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CB1BDB7082 for ; Thu, 23 Dec 2010 22:02:13 +1100 (EST) Received: from localhost ([127.0.0.1]:38967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVivz-0005b4-46 for incoming@patchwork.ozlabs.org; Thu, 23 Dec 2010 06:02:11 -0500 Received: from [140.186.70.92] (port=48570 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVief-0007Cj-1Y for qemu-devel@nongnu.org; Thu, 23 Dec 2010 05:44:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVied-0003qA-V6 for qemu-devel@nongnu.org; Thu, 23 Dec 2010 05:44:16 -0500 Received: from mail-ww0-f53.google.com ([74.125.82.53]:57423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVied-0003dM-PP for qemu-devel@nongnu.org; Thu, 23 Dec 2010 05:44:15 -0500 Received: by mail-ww0-f53.google.com with SMTP id 18so5886717wwi.10 for ; Thu, 23 Dec 2010 02:44:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject:date :message-id:x-mailer:in-reply-to:references; bh=ve9Sd0P+/MBjnJUpUcdte6eTs7w0gZdoQG7p5hbw1/A=; b=oxirUhCPi4v/b9t91rURqozbJKm+lLSXZFAwx7SAallZ2Kk/JHIwW1cZp1Vpg0UOCI DV3JSV4+3qRHqWiQMXNV7HeHb5f4O13xgkBbTeobJgL+VOVeCjULHbpot26VHsk87WQW LCyXrmVv7x3qeqrDBfjCMAtNiY6HPSQlTq/v0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references; b=fdODVqsMh5iOWHmeSDs4LCEdxswsG5P2wk+A64vcq+CJJSdEP5f3U2wOMTJQbZeaMA GJt1j8InYlyOpCbe4TnMxNXSY2ckSbR5/QLjqwmfrk3jGXYUS0yLcqk3tRMOs5sYKhHz a/voSOKryitP2xWly6wQKjzO6sNeLUXGKXKQk= Received: by 10.227.126.204 with SMTP id d12mr5036608wbs.174.1293101055348; Thu, 23 Dec 2010 02:44:15 -0800 (PST) Received: from localhost.localdomain (93-34-160-115.ip50.fastwebnet.it [93.34.160.115]) by mx.google.com with ESMTPS id m10sm5189008wbc.22.2010.12.23.02.44.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Dec 2010 02:44:14 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 23 Dec 2010 11:44:00 +0100 Message-Id: <1293101042-13121-14-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.3.2 In-Reply-To: <1293101042-13121-1-git-send-email-pbonzini@redhat.com> References: <1293101042-13121-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH v3 13/15] move --srcdir detection earlier X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This will help getting config.guess and config.sub from the srcdir. Signed-off-by: Paolo Bonzini --- configure | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/configure b/configure index b3f771b..d0fbcef 100755 --- a/configure +++ b/configure @@ -75,6 +75,7 @@ path_of() { } # default parameters +source_path=`dirname "$0"` cpu="" interp_prefix="/usr/gnemul/qemu-%M" static="no" @@ -182,6 +183,8 @@ for opt do ;; --cc=*) CC="$optarg" ;; + --source-path=*) source_path="$optarg" + ;; --cpu=*) cpu="$optarg" ;; --extra-cflags=*) QEMU_CFLAGS="$optarg $QEMU_CFLAGS" @@ -228,6 +231,9 @@ QEMU_CFLAGS="-D_FORTIFY_SOURCE=2 $QEMU_CFLAGS" QEMU_INCLUDES="-I. -I\$(SRC_PATH)" LDFLAGS="-g $LDFLAGS" +# make source path absolute +source_path=`cd "$source_path"; pwd` + check_define() { cat > $TMPC <