Fix reconfig
[freeradius.git] / Makefile
index d1eac35..cfcb30c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -119,11 +119,11 @@ distclean: clean
 CONFIGURE_IN_FILES := $(shell find . -name configure.in -print)
 CONFIGURE_FILES           := $(patsubst %.in,%,$(CONFIGURE_IN_FILES))
 
-# Configure files depend on "in" files.
+# Configure files depend on "in" files, and on the top-level macro files
 # If there are headers, run auto-header, too.
-src/%configure: src/%configure.in
+src/%configure: src/%configure.in acinclude.m4 aclocal.m4
        @echo AUTOCONF $@
-       @cd $(dir $@) && $(AUTOCONF) -I $(top_builddir)
+       @cd $(dir $@) && $(AUTOCONF) -I $(top_builddir) -I $(top_builddir)/m4 -I ./m4
        @if grep AC_CONFIG_HEADERS $@ >/dev/null; then\
                echo AUTOHEADER $@ \
                cd $(dir $@) && $(AUTOHEADER); \