Do not use Autoconf internals. * tests/dirname.test: Don't use AC_PLAIN_SCRIPT. * m4/header.m4 (_AM_DIRNAME): Use regexp and patsubst, not m4_regexp and m4_patsubst, since the latter are reserved for ERE macro in GNU M4 1.5.