Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Oscl4-0004Tz-Tw for mharc-grub-devel@gnu.org; Mon, 06 Sep 2010 10:33:18 -0400 Received: from [140.186.70.92] (port=55721 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oscl0-0004TN-Mz for grub-devel@gnu.org; Mon, 06 Sep 2010 10:33:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oscku-0005S8-SW for grub-devel@gnu.org; Mon, 06 Sep 2010 10:33:10 -0400 Received: from smtpout01s1.x-echo.com ([193.252.149.37]:36865) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oscku-0005Rp-Ns for grub-devel@gnu.org; Mon, 06 Sep 2010 10:33:08 -0400 Received: from colinux.localdomain (localhost.localdomain [127.0.0.1]) by colinux.localdomain (SMTP Server) with ESMTP id 4B2341000E for ; Mon, 6 Sep 2010 16:33:05 +0200 (CEST) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=MIMEBOUNDARY To: grub-devel@gnu.org From: Yves Blusseau Date: Mon, 06 Sep 2010 16:33:05 +0200 Message-ID: <20100906143305.11366.62355.stgit@colinux.localdomain> User-Agent: StGit/0.15-97-g9680 X-AV-Checked: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [PATCH 1/2] Define some useful variables X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2010 14:33:16 -0000 This is a MIME message. --MIMEBOUNDARY Content-Disposition: inline MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit * configure.ac: Define some useful variables. --- ChangeLog.new-variables | 3 +++ configure.ac | 12 ++++++++++++ 2 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 ChangeLog.new-variables --MIMEBOUNDARY Content-Disposition: attachment; filename=new-variables.patch MIME-Version: 1.0 Content-Type: text/plain; name=new-variables.patch; charset="utf-8" Content-Transfer-Encoding: 7bit diff --git a/ChangeLog.new-variables b/ChangeLog.new-variables new file mode 100644 index 0000000..3b94cc2 --- /dev/null +++ b/ChangeLog.new-variables @@ -0,0 +1,3 @@ +Define some useful variables + + * configure.ac: Define some useful variables. diff --git a/configure.ac b/configure.ac index d362f68..49761af 100644 --- a/configure.ac +++ b/configure.ac @@ -176,6 +176,18 @@ AC_SUBST(host_kernel) AC_SUBST(target_cpu) AC_SUBST(platform) +# Define default variables +case "$host_os" in + netbsd* | openbsd*) + # Because /boot is used for the boot block in NetBSD and OpenBSD, + bootdirname='' ;; + *) bootdirname='boot' ;; +esac +AC_SUBST(bootdirname) + +grubdirname="$PACKAGE" +AC_SUBST(grubdirname) + # # Checks for build programs. # --MIMEBOUNDARY--