https://bugs.gentoo.org/show_bug.cgi?id=486906

diff --git a/configure.ac b/configure.ac
index ce2bc5f..21cc450 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,6 +6,7 @@ AC_CONFIG_SRCDIR([svg2png.sh.in])
 
 AM_INIT_AUTOMAKE([1.9 tar-ustar])
 
+AC_PROG_MKDIR_P
 PKG_PROG_PKG_CONFIG([0.19])
 
 # Workaround to make aclocal get the right flags
