diff options
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index 7381bc32342..91e1e2cea23 100755 --- a/autogen.sh +++ b/autogen.sh @@ -220,8 +220,13 @@ Please report any problems with this script to bug-gnu-emacs@gnu.org .' fi echo 'Your system has the required tools.' - echo "Running 'autoreconf -fi -I m4' ..." + ## Create nt/gnulib.mk if it doesn't exist, as autoreconf will need it. + if test ! -f nt/gnulib.mk; then + sed '/^[^#]/s|^.*$|/^## begin *gnulib module &/,/^## end *gnulib module &/c ## gnulib module & removed|' nt/gnulib-modules-to-delete.cfg | sed -f- lib/gnulib.mk > nt/gnulib.mk + fi + + echo "Running 'autoreconf -fi -I m4' ..." ## Let autoreconf figure out what, if anything, needs doing. ## Use autoreconf's -f option in case autoreconf itself has changed. |