From: Yann E. MORIN" Date: Mon, 28 May 2012 20:47:22 +0000 (+0200) Subject: configure: add option to disable l10n X-Git-Tag: v3.5.0-0~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=311fe748b155bc889a91370018a5882d93b0bb47;p=kconfig-frontends configure: add option to disable l10n Signed-off-by: "Yann E. MORIN" --- diff --git a/configure.ac b/configure.ac index c062cb7..731d36b 100644 --- a/configure.ac +++ b/configure.ac @@ -99,6 +99,13 @@ AC_ARG_ENABLE( [install utilities to manage .config files (default=no)])]) AC_SUBST([enable_utils], [${enable_utils:-yes}]) +AC_ARG_ENABLE( + [L10n], + [AS_HELP_STRING( + [--disable-L10n], + [enable localisation (L10n) (default=auto)])]) +AC_SUBST([enable_L10n], [${enable_L10n:-yes}]) + #---------------------------------------- # Options to selectively enable/disable frontends # All are selected by default @@ -215,11 +222,13 @@ AC_CHECK_FUNCS([ gettimeofday mkdir regcomp setlocale uname ]) #---------------------------------------- # Check for gettext, for the kconfig frontends -[has_gettext=yes] -AC_CHECK_HEADERS( - [libintl.h], - [ac_ct_gettext_hdr=$ac_header; break], - [has_gettext=no]) +[has_gettext="$enable_L10n"] +AS_IF( + [test "$has_gettext" = "yes"], + [AC_CHECK_HEADERS( + [libintl.h], + [ac_ct_gettext_hdr=$ac_header; break], + [has_gettext=no])]) AS_IF( [test "$has_gettext" = "yes"], [AC_CHECK_DECL(