From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=43630 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHb5e-00035f-1o for qemu-devel@nongnu.org; Sun, 14 Nov 2010 06:49:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHb5c-0004KL-Ff for qemu-devel@nongnu.org; Sun, 14 Nov 2010 06:49:45 -0500 Received: from mail-pv0-f173.google.com ([74.125.83.173]:39811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHb5c-0004EC-AX for qemu-devel@nongnu.org; Sun, 14 Nov 2010 06:49:44 -0500 Received: by mail-pv0-f173.google.com with SMTP id 11so976782pvh.4 for ; Sun, 14 Nov 2010 03:49:43 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Sun, 14 Nov 2010 12:49:01 +0100 Message-Id: <1289735342-8660-14-git-send-email-pbonzini@redhat.com> In-Reply-To: <1289735342-8660-1-git-send-email-pbonzini@redhat.com> References: <1289735342-8660-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 13/14] 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 e667b12..4412234 100755 --- a/configure +++ b/configure @@ -69,6 +69,7 @@ path_of() { } # default parameters +source_path=`dirname "$0"` cpu="" interp_prefix="/usr/gnemul/qemu-%M" static="no" @@ -174,6 +175,8 @@ for opt do ;; --cc=*) CC="$optarg" ;; + --source-path=*) source_path="$optarg" + ;; --cpu=*) cpu="$optarg" ;; --extra-cflags=*) QEMU_CFLAGS="$optarg $QEMU_CFLAGS" @@ -220,6 +223,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 <