# make sure we use the gettext() that matches the include file.
# First check that it links w/o additional libs, then try with -lintl.
if test "$enable_nls" = "yes"; then
- # List of translations
- LINGUAS="uk zh_CN"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
$as_echo_n "checking for gettext... " >&6; }
if test "${sudo_cv_gettext+set}" = set; then :
LIBINTL="-lintl -liconv"
$as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
+else
+ enable_nls=no
fi
fi
fi
+ if test "$enable_nls" = "yes"; then
+ # List of available translations
+ LINGUAS="uk zh_CN"
+ fi
fi
case ${enable_zlib-"yes"} in
# make sure we use the gettext() that matches the include file.
# First check that it links w/o additional libs, then try with -lintl.
if test "$enable_nls" = "yes"; then
- # List of translations
- LINGUAS="uk zh_CN"
AC_MSG_CHECKING([for gettext])
AC_CACHE_VAL(sudo_cv_gettext, [
AC_LINK_IFELSE(
[AC_DEFINE(HAVE_LIBINTL_H)],
[
AC_CHECK_LIB(intl, gettext, [LIBINTL="-lintl -liconv"]
- AC_DEFINE(HAVE_LIBINTL_H), [], [-liconv])
+ AC_DEFINE(HAVE_LIBINTL_H), [enable_nls=no], [-liconv])
])
fi
+ if test "$enable_nls" = "yes"; then
+ # List of available translations
+ LINGUAS="uk zh_CN"
+ fi
fi
dnl