Received: from eggs.gnu.org ([208.118.235.92]:35737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFSw1-0004X4-Gm for qemu-devel@nongnu.org; Wed, 04 Apr 2012 12:19:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFSvp-00015Z-4u for qemu-devel@nongnu.org; Wed, 04 Apr 2012 12:19:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFSvo-00010l-TL for qemu-devel@nongnu.org; Wed, 04 Apr 2012 12:19:37 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q34GJXvS004033 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 4 Apr 2012 12:19:33 -0400 Date: Wed, 4 Apr 2012 13:19:49 -0300 From: Eduardo Habkost Message-ID: <20120404161949.GA5831@otherpad.lan.raisama.net> References: <1333128782-20589-1-git-send-email-ehabkost@redhat.com> <1333128782-20589-14-git-send-email-ehabkost@redhat.com> <4F7C67DA.8020907@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F7C67DA.8020907@redhat.com> Subject: Re: [Qemu-devel] [PATCH 13/14] configure: change meaning of --datadir to Autoconf convention List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org On Wed, Apr 04, 2012 at 05:25:14PM +0200, Paolo Bonzini wrote: > Il 30/03/2012 19:33, Eduardo Habkost ha scritto: > > Autoconf uses --datadir for the /usr/share directory, not the > > program-specific subdirectory inside /usr/share. This changes configure > > to match autoconf behavior. > > > > Note that this will break compatibility with existing build scripts. > > > > Signed-off-by: Eduardo Habkost > > --- > > configure | 9 +++++---- > > 1 files changed, 5 insertions(+), 4 deletions(-) > > > > diff --git a/configure b/configure > > index 5de58cb..b74efe2 100755 > > --- a/configure > > +++ b/configure > > @@ -155,7 +155,7 @@ mingw32="no" > > EXESUF="" > > prefix="/usr/local" > > mandir="\${prefix}/share/man" > > -qemu_datadir="\${prefix}/share/qemu" > > +datadir="\${prefix}/share" > > qemu_docdir="\${prefix}/share/doc/qemu" > > bindir="\${prefix}/bin" > > libdir="\${prefix}/lib" > > @@ -521,7 +521,7 @@ EOF > > fi > > prefix="c:/Program Files/Qemu" > > mandir="\${prefix}" > > - qemu_datadir="\${prefix}" > > + datadir="\${prefix}" > > qemu_docdir="\${prefix}" > > bindir="\${prefix}" > > sysconfdir="\${prefix}" > > This does not change anything because the next line is > > confsuffix="" > > Nice. :) Yes, in the case of mingw32 it does not change anything. The change above is only necessary because qemu_datadir is now set later, at: [...] > > @@ -2831,6 +2831,7 @@ if test "$mingw32" = "yes" ; then > > fi > > > > qemu_confdir=$sysconfdir$confsuffix > > +qemu_datadir=$datadir$confsuffix > > > > tools= > > if test "$softmmu" = yes ; then -- Eduardo