+# We put non-existant paths in when configuring, as we require that
+# builds don't depend on these paths when making bindists.
+
+# We rely on all the CONFIGURE_ARGS being quoted with '...', and there
+# being no 's inside the values.
+FLAGGED_CONFIGURE_ARGS = $(subst $(space)',\
+ $(space)--configure-option=',\
+ $(space)$(CONFIGURE_ARGS))
+
+ifeq "$(Windows)" "YES"
+NONEXISTENT=c:/NONEXISTENT
+else
+NONEXISTENT=/NONEXISTENT
+endif
+
+ALL_CONFIGURE_FLAGS = \
+ $(CONFIGURE_OPTS) \
+ --prefix=$(NONEXISTENT) \
+ --bindir=$(NONEXISTENT) \
+ --libdir=$(NONEXISTENT) \
+ --libsubdir='$$pkgid' \
+ --libexecdir=$(NONEXISTENT) \
+ --datadir=$(NONEXISTENT) \
+ --docdir=$(NONEXISTENT) \
+ --haddockdir=$(NONEXISTENT) \
+ --htmldir=$(NONEXISTENT) \
+ --with-compiler=$(FPTOOLS_TOP_ABS)/compiler/stage1/ghc-inplace \
+ --with-hc-pkg=$(FPTOOLS_TOP_ABS)/utils/ghc-pkg/ghc-pkg-inplace \
+ --with-hsc2hs=$(FPTOOLS_TOP_ABS)/utils/hsc2hs/hsc2hs-inplace \
+ --with-ld=$(LD) \
+ --haddock-options="--use-contents=../index.html \
+ --use-index=../doc-index.html" \
+ $(FLAGGED_CONFIGURE_ARGS) \
+ --configure-option=--with-cc=$(CC)
+