From mboxrd@z Thu Jan 1 00:00:00 1970 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) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 23 Dec 2010 11:44:00 +0100 Message-Id: <1293101042-13121-14-git-send-email-pbonzini@redhat.com> In-Reply-To: <1293101042-13121-1-git-send-email-pbonzini@redhat.com> References: <1293101042-13121-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH v3 13/15] move --srcdir detection earlier List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@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 <