Add Shake configuration to configure.ac
authorBen Gamari <bgamari.foss@gmail.com>
Thu, 17 Dec 2015 11:14:17 +0000 (12:14 +0100)
committerBen Gamari <ben@smart-cactus.org>
Thu, 17 Dec 2015 11:54:31 +0000 (12:54 +0100)
The Shake build system requires that this file be generated by autoconf.
Generate it if we find a shake tree.

Reviewers: austin, hvr

Reviewed By: hvr

Subscribers: thomie, erikd

Differential Revision: https://phabricator.haskell.org/D1638

configure.ac

index c8708ae..0f335a4 100644 (file)
@@ -1098,6 +1098,9 @@ if grep ' ' compiler/ghc.cabal.in 2>&1 >/dev/null; then
    AC_MSG_ERROR([compiler/ghc.cabal.in contains tab characters; please remove them])
 fi
 
    AC_MSG_ERROR([compiler/ghc.cabal.in contains tab characters; please remove them])
 fi
 
+if test -e shake/cfg/system.config.in; then
+    AC_CONFIG_FILES([shake/cfg/system.config])
+fi
 AC_CONFIG_FILES([mk/config.mk mk/install.mk mk/project.mk compiler/ghc.cabal ghc/ghc-bin.cabal utils/runghc/runghc.cabal settings docs/users_guide/ghc_config.py docs/index.html libraries/prologue.txt distrib/configure.ac])
 AC_OUTPUT
 
 AC_CONFIG_FILES([mk/config.mk mk/install.mk mk/project.mk compiler/ghc.cabal ghc/ghc-bin.cabal utils/runghc/runghc.cabal settings docs/users_guide/ghc_config.py docs/index.html libraries/prologue.txt distrib/configure.ac])
 AC_OUTPUT