-# older autopoint (< 0.12) has a tendency to complain about mkinstalldirs
-if test -e mkinstalldirs; then rm mkinstalldirs; fi
-# first remove patch if necessary, then run autopoint, then reapply
-if test -f po/Makefile.in.in;
-then
- patch -p0 -R < common/gettext.patch
-fi
-tool_run "$autopoint"
-patch -p0 < common/gettext.patch
-
-# autopoint
-# older autopoint (< 0.12) has a tendency to complain about mkinstalldirs
-if test -e mkinstalldirs; then rm mkinstalldirs; fi
-# first remove patch if necessary, then run autopoint, then reapply
-if test -f po/Makefile.in.in;
-then
- patch -p0 -R < common/gettext.patch
+if test -d po && grep ^AM_GNU_GETTEXT_VERSION configure.ac >/dev/null ; then
+ tool_run "autopoint" "--force"