Do not use AM_PROG_MKDIR_P, which is obsolete. We use the AC_* version now, which requires autoconf>=2.59d. This also mean that we need to use the variable MKDIR_P instead of mkdir_p.