From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NQOIo-0008I6-Gw for mharc-grub-devel@gnu.org; Thu, 31 Dec 2009 11:55:10 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQOIm-0008Gx-8U for grub-devel@gnu.org; Thu, 31 Dec 2009 11:55:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQOIh-0008CZ-5H for grub-devel@gnu.org; Thu, 31 Dec 2009 11:55:07 -0500 Received: from [199.232.76.173] (port=33352 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQOIh-0008CW-12 for grub-devel@gnu.org; Thu, 31 Dec 2009 11:55:03 -0500 Received: from smtp4-g21.free.fr ([212.27.42.4]:49816) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NQOIg-0007Jy-4f for grub-devel@gnu.org; Thu, 31 Dec 2009 11:55:02 -0500 Received: from smtp4-g21.free.fr (localhost [127.0.0.1]) by smtp4-g21.free.fr (Postfix) with ESMTP id 877B04C803D for ; Thu, 31 Dec 2009 17:54:56 +0100 (CET) Received: from yves.private.network (mar06-2-88-175-100-234.fbx.proxad.net [88.175.100.234]) by smtp4-g21.free.fr (Postfix) with ESMTP id 871854C8069 for ; Thu, 31 Dec 2009 17:54:54 +0100 (CET) Received: from yves.private.network (localhost [127.0.0.1]) by yves.private.network (Postfix) with ESMTP id 27945265FA7 for ; Thu, 31 Dec 2009 17:54:54 +0100 (CET) To: grub-devel@gnu.org From: Yves Blusseau Date: Thu, 31 Dec 2009 17:54:54 +0100 Message-ID: <20091231165323.28764.29229.stgit@yves.private.network> User-Agent: StGit/0.15-rc4-1-g9ba6 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [PATCH] Compilation with external intl library 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: Thu, 31 Dec 2009 16:55:09 -0000 Hi, this is the NEW patch to "fix" compilation with external intl library. It fix the #28356 bug (http://savannah.gnu.org/bugs/?28356). I follow strictly the guideline of gettext, and now we can compile grub with external intl library. Some enhancements; - We can disable NLS (Native Language Support) with the --disable-nls configure flag. - We can choose where the external intl library is with the --with-libintl-prefix configure flag. Under linux the gettext macro detect that the gettext function is in libc and so don't add any flags (like before). On other platform like Mac OSX, the macro add the proper compile and link flags (ex: -lintl -liconv -lc -Wl,-framework -Wl,CoreFoundation in OSX) Best Regards, Yves Blusseau PS: if it ok i'll commit this patch and will add another one to make on error if the intl library can't be use and show alternative to compile grub. --- ChangeLog.bad-cast | 6 ChangeLog.config.rpath | 5 ChangeLog.intl | 27 + Makefile.in | 7 conf/common.rmk | 2 config.rpath | 666 +++++++++++++++++++++++++++++++ configure.ac | 2 include/grub/i18n.h | 36 +- include/grub/util/misc.h | 2 util/grub-editenv.c | 5 util/grub-emu.c | 5 util/grub-fstest.c | 5 util/grub-probe.c | 5 util/i386/pc/grub-setup.c | 5 util/misc.c | 11 + util/mkisofs/mkisofs.c | 7 util/mkisofs/mkisofs.h | 5 util/sparc64/ieee1275/grub-ofpathname.c | 5 util/sparc64/ieee1275/grub-setup.c | 5 19 files changed, 773 insertions(+), 38 deletions(-) create mode 100644 ChangeLog.bad-cast create mode 100644 ChangeLog.config.rpath create mode 100644 ChangeLog.intl create mode 100644 config.rpath -- Yves Blusseau