-### Setup GNU gettext
-dnl GNU gettext is written in C
-AC_LANG_PUSH(C)
-dnl Dirty trick ahead: disable macro AC_GNU_SOURCE because it triggers a bug with autoconf 2.62.
-dnl this can be removed if gettext is been updated to avoid that.
-m4_undefine([AC_GNU_SOURCE])
-m4_defun([AC_GNU_SOURCE],[])
-AM_GNU_GETTEXT([no-libtool])
-AM_GNU_GETTEXT_VERSION([0.16.1])
-AC_LANG_POP(C)
-AC_CONFIG_COMMANDS([lib/installed_translation], [
- rm -f lib/installed_translations
- echo $CATALOGS | sed 's/\.gmo//g' > lib/installed_translations
-])
+### Setup po directory
+AM_PO_SUBDIRS
+AM_NLS
+if test $USE_NLS = "yes" ; then
+ AC_DEFINE(ENABLE_NLS, 1,
+ [Define to 1 if translation of program messages to the user's native language
+ is requested.])dnl'
+fi