From patchwork Wed May 26 14:08:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 53622 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 192BFB7D19 for ; Thu, 27 May 2010 00:53:25 +1000 (EST) Received: from localhost ([127.0.0.1]:39751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHHyz-0007Ao-UX for incoming@patchwork.ozlabs.org; Wed, 26 May 2010 10:53:22 -0400 Received: from [140.186.70.92] (port=45304 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHHNH-0003KG-OD for qemu-devel@nongnu.org; Wed, 26 May 2010 10:14:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHHHs-0003te-3k for qemu-devel@nongnu.org; Wed, 26 May 2010 10:08:49 -0400 Received: from mail-ww0-f45.google.com ([74.125.82.45]:47342) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHHHr-0003s2-Tp for qemu-devel@nongnu.org; Wed, 26 May 2010 10:08:48 -0400 Received: by mail-ww0-f45.google.com with SMTP id 39so859075wwb.4 for ; Wed, 26 May 2010 07:08:47 -0700 (PDT) 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=L1IsTY7CbwNRtZSJoaraWs5XncKXNja7KW6lvZnAv/g=; b=vjDhg8MgNEz5P8dId+wtPoRwCgkY7pWslhtc93p2EQRx6AWIw/5NnliXSZaDd7zJls DZ8Ox5luiBuZpoLMSiVB9rQUnuQK7r9HoGcJVq4qSpT167wmmnDf37JQdr0jS6SK1aYM uqUVLKvNjTSgaYfZunacgezmeuJppSbS25LYo= 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=kW1a7TtvlRCtajzy4gsM2vLiuEc5JDt37brD3TgM72dNGeUlKVqICeRgLHshABQfaN RCdRceuCqqDZm32dWdx2woAYQ7ksVXTZIHsWs6pPO3eIki97ZFnmLN0VtI++GeJhMRqK x4+p21Z66IPUG2pMnWvZcxiwtMQXB49dqyhyM= Received: by 10.227.146.3 with SMTP id f3mr8566666wbv.211.1274882927515; Wed, 26 May 2010 07:08:47 -0700 (PDT) Received: from localhost.localdomain (nat-pool-brq-t.redhat.com [209.132.186.34]) by mx.google.com with ESMTPS id z33sm890140wbd.1.2010.05.26.07.08.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 26 May 2010 07:08:46 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 26 May 2010 16:08:20 +0200 Message-Id: <1274882909-9800-6-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.6.6.1 In-Reply-To: <1274882909-9800-1-git-send-email-pbonzini@redhat.com> References: <1274882909-9800-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 05/14] introduce sysconfsuffix 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 Signed-off-by: Paolo Bonzini --- configure | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/configure b/configure index f96cccc..cf19ebf 100755 --- a/configure +++ b/configure @@ -1972,9 +1972,7 @@ if test "$mingw32" = "yes" ; then confsuffix="" docsuffix="" binsuffix="" - if test -z "$sysconfdir" ; then - sysconfdir="${prefix}" - fi + sysconfsuffix="" else if test -z "$prefix" ; then prefix="/usr/local" @@ -1983,11 +1981,11 @@ else datasuffix="/share/qemu" docsuffix="/share/doc/qemu" binsuffix="/bin" - if test -z "$sysconfdir" ; then - sysconfdir="${prefix}/etc" - fi + sysconfsuffix="/etc" fi +: ${sysconfdir:="${prefix}$sysconfsuffix"} + echo "Install prefix $prefix" echo "BIOS directory $prefix$datasuffix" echo "binary directory $prefix$binsuffix"