[project @ 2004-08-18 13:14:21 by simonmar]
[ghc-hetmet.git] / Makefile.config
index 90c5ab4..f40e0ac 100644 (file)
@@ -2,21 +2,21 @@
 
 all: configure
 
-configure: configure.in
+configure: configure.ac aclocal.m4
        rm -f configure.new
-       autoconf configure.in > configure.new \
+       autoconf configure.ac > configure.new \
                || ( rm -f configure.new; exit 1 )
        rm -f configure
        mv configure.new configure
        chmod +x configure
-       chmod -w configure
+       if test -f config.status; then ./config.status --recheck; fi
        rm -f configure.new
 
 CONFIG_H_IN = ghc/includes/config.h.in
 
-config.h.in: configure.in
+config.h.in: configure.ac
        rm -f $(CONFIG_H_IN)
-       autoheader configure.in > $(CONFIG_H_IN) \
+       autoheader configure.ac > $(CONFIG_H_IN) \
                || ( rm -f $(CONFIG_H_IN); exit 1 )
 
 # do something about autoheader