The m4 files and the po Makefiles were from gettext 0.18, whose macros
newer autoconf calls obsolete (AC_TRY_LINK, AC_TRY_RUN, AM_PROG_MKDIR_P).
These are from 0.22.5, with config.rpath and ABOUT-NLS; the others in m4/
are not used with AM_GNU_GETTEXT([external]) and stay. autopoint 0.19.6
and later brings those of the installed gettext (0.20 at least).
Switch from the old GLib gettext macros to GNU gettext infrastructure, keep the gtk20 and gtk20-properties domains, and define GTK_LOCALEDIR without AM_GLIB_DEFINE_LOCALEDIR.