--disable-nls

Jeremy Huddleston jeremyhu at apple.com
Fri Feb 4 10:25:30 PST 2011


Hey Gaetan,

It looks like libXpm (and probably others, I just noticed now because of a toolchain change) does not honor --disable-nls.  Do you know how wide spread this is throughout the modules?  This seems like something we should move into util-macros.

--Jeremy

./configure  --prefix=/opt/X11 --disable-static --disable-dependency-tracking --disable-nls --cache-file=/tmp/X11libs.roots/X11libs~obj/configure.cache 

...

checking for library containing gettext... -lintl
checking where to install localized messages... /opt/X11/share/locale

We're just using it if we find it:

# Internationalization & localization support
AC_SEARCH_LIBS([gettext], [intl], [USE_GETTEXT="yes"], [USE_GETTEXT="no"])
AC_MSG_CHECKING([where to install localized messages])
AC_ARG_WITH([localedir], AS_HELP_STRING([--with-localedir=<path>],
        [Path to install message files in (default: datadir/locale)]),
        [LOCALEDIR=${withval}], [LOCALEDIR=${datadir}/locale])
AX_DEFINE_DIR([LOCALEDIR], [LOCALEDIR], [Location of translated messages])
if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
        AC_MSG_RESULT([nowhere])
        USE_GETTEXT="no"
else
        AC_MSG_RESULT([$LOCALEDIR])
fi

if test "x$USE_GETTEXT" = "xyes" ; then
        AC_DEFINE([USE_GETTEXT], 1, 
                  [Define to 1 if you want to use the gettext() function.])
fi
AM_CONDITIONAL(USE_GETTEXT, test "x$USE_GETTEXT" = "xyes")




More information about the xorg-devel mailing list