All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Compilation with external intl library
@ 2009-12-31 16:54 Yves Blusseau
  2009-12-31 16:54 ` [PATCH 1/3] " Yves Blusseau
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yves Blusseau @ 2009-12-31 16:54 UTC (permalink / raw)
  To: grub-devel

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-01-01 12:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-31 16:54 [PATCH] Compilation with external intl library Yves Blusseau
2009-12-31 16:54 ` [PATCH 1/3] " Yves Blusseau
2009-12-31 16:55 ` [PATCH 2/3] " Yves Blusseau
2010-01-01 12:08   ` Robert Millan
2009-12-31 16:55 ` [PATCH 3/3] " Yves Blusseau
2010-01-01 12:09   ` Robert Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.