AC_DEFINE([USE_GPM], 1, [Define to 1 if GPM support is enabled])
fi
+AC_ARG_ENABLE([nls], [ --disable-nls compile without NLS support])
+
+if test "x$enable_nls" != "xno"; then
+ AC_DEFINE([ENABLE_NLS], 1, [Define to 1 if NLS support is enabled])
+fi
+
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
%changelog
- enable slang utf8 mode (#425992)
+- support --disable-nls option (patch by Natanael Copa)
- redraw screen when using entry in euc encodings
- add back support for list of Entries in EntryWindow prompts in snack
- fix segfault in whiptail when no entry is selected in radiolist
# include <locale.h>
+#ifdef ENABLE_NLS
# include <libintl.h>
# define _(Text) gettext (Text)
+#else
+# define _(Text) (Text)
+# define dgettext(Package, String) (String)
+#endif
+
# ifdef gettext_noop
# define N_(String) gettext_noop (String)
# else
{ 0, 0, 0, 0, 0 }
};
+#ifdef ENABLE_NLS
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+#endif
optCon = poptGetContext("whiptail", argc, argv, optionsTable, 0);