copy_autogen tweaks.
[bpt/emacs.git] / autogen / copy_autogen
index 4abdbd8..2096636 100755 (executable)
@@ -8,12 +8,17 @@
 ## regenerate configure and will fail if you do not have the required
 ## tools.  You will have to run this script again.
 
+test -d autogen && cd autogen
+
 if test ! -e config.in; then
-    echo "You must run this script from the autogen/ directory."
+    echo "Cannot find autogen/ directory."
     exit 1
 fi
 
-cp configure aclocal.m4 ../
+## Order implied by top-level Makefile's rules, for time-stamps.
+cp aclocal.m4 ../
+cp configure ../
+touch ../src/stamp-h.in
 cp config.in ../src/
 cp Makefile.in ../lib/