[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grub-devel
Subject:    [PATCH] Compilation with external intl library
From:       Yves Blusseau <blusseau () zetam ! org>
Date:       2009-12-31 16:54:54
Message-ID: 20091231165323.28764.29229.stgit () yves ! private ! network
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic