diff --git a/Makefile.am b/Makefile.am
index 921a20245be17be820e98954af9832ef74454560..e07c26d52110322e621c46d1c854c6b93969d270 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,7 @@
 ## $Id$
 AUTOMAKE_OPTIONS = gnu no-dependencies
+M4DIR = $(srcdir)/m4
+ACLOCAL_AMFLAGS = -I $(M4DIR)
 
 DEFS= -DSYSCONFDIR=\"$(sysconfdir)\"