glib compiled without gettext?



Hi folks,

I was wondering glib was designed to work even without gettext support?
The glib's configure script (tested release: 2.2.0) refused to compile without gettext support.

(note: gettext can not be easily merged when glib must be dynamically linked against other non-(l)gpl libraries -- that's why I don't want to link it, to avoid any gpl violation)

What is strange is that the script is able to detect that there is no gettext support, and can properly define the line in config.h:
/* always defined to indicate that i18n is enabled */
/* #undef ENABLE_NLS */

And, if I remove the section in configure which fails upon lack of gettext, everyting is compiling AND working properly (no missing symbols, no missing links whentesting the library)

Here's the section I hacked to bypass the tests:
(a bit dirty, but it works)

*** configure.orig      Wed Apr  9 15:42:57 2003
--- configure   Wed Apr  9 15:43:04 2003
***************
*** 5809,5815 ****
        < $srcdir/po/POTFILES.in > po/POTFILES


! if test "$gt_cv_have_gettext" != "yes" ; then
    { { echo "$as_me:$LINENO: error:
*** You must have either have gettext support in your C library, or use the *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
--- 5809,5815 ----
        < $srcdir/po/POTFILES.in > po/POTFILES


! if test "$gt_cv_have_gettext" = "XXX" ; then
    { { echo "$as_me:$LINENO: error:
*** You must have either have gettext support in your C library, or use the *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html

Regards,
Xavier






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]