diff --git a/Makefile.am b/Makefile.am
index a6e8ebc02236b8a482c19840304e488c8c0bd26a..f2a34e5a316036073aa61ced746a2e62a8b6606d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
 # This file will be processed with automake-1.7 to create Makefile.in
 
 AUTOMAKE_OPTIONS = 1.7
-ACLOCAL_AMFLAGS = -I m4
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 
 NULL =