Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MlliO-0002h6-Ay for mharc-grub-devel@gnu.org; Thu, 10 Sep 2009 11:37:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlliM-0002g1-HW for grub-devel@gnu.org; Thu, 10 Sep 2009 11:37:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlliG-0002cD-NS for grub-devel@gnu.org; Thu, 10 Sep 2009 11:37:37 -0400 Received: from [199.232.76.173] (port=55504 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlliG-0002c2-AQ for grub-devel@gnu.org; Thu, 10 Sep 2009 11:37:32 -0400 Received: from smarthost02.mail.zen.net.uk ([212.23.3.141]:43892) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MlliF-0001mt-U0 for grub-devel@gnu.org; Thu, 10 Sep 2009 11:37:32 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost02.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1MlliE-0006Mm-11 for grub-devel@gnu.org; Thu, 10 Sep 2009 15:37:30 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1MlliD-0002El-00; Thu, 10 Sep 2009 16:37:29 +0100 Date: Thu, 10 Sep 2009 16:37:29 +0100 From: Colin Watson To: grub-devel@gnu.org Message-ID: <20090910153729.GA13423@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost02-IP: [82.69.40.219] X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [PATCH] Don't try to use help2man when cross-compiling X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2009 15:37:38 -0000 John Taylor reported that this patch fixes one of his problems in http://savannah.gnu.org/bugs/?27349. It's been a while since I had anything to do with Autoconf's cross-compiling support, so does this look reasonable? The "cross_compiling" variable was added in a considerably older version of Autoconf than we already require. 2009-09-10 Colin Watson * configure.ac: Don't look for help2man when cross-compiling. Fixes part of bug #27349. Index: configure.ac =================================================================== --- configure.ac (revision 2584) +++ configure.ac (working copy) @@ -147,7 +147,9 @@ # These are not a "must". AC_PATH_PROG(RUBY, ruby) -AC_PATH_PROG(HELP2MAN, help2man) +if test "x$cross_compiling" = xno; then + AC_PATH_PROG(HELP2MAN, help2man) +fi # # Checks for host programs. Thanks, -- Colin Watson [cjwatson@ubuntu.com]