Make ghc.cabal's editline flag manual, to simplify the Makefile
authorIan Lynagh <igloo@earth.li>
Sun, 31 Aug 2008 15:21:03 +0000 (15:21 +0000)
committerIan Lynagh <igloo@earth.li>
Sun, 31 Aug 2008 15:21:03 +0000 (15:21 +0000)
compiler/Makefile
compiler/ghc.cabal

index 3b184ee..275de62 100644 (file)
@@ -122,15 +122,9 @@ endif
 # But we don't enable editline on Windows, as Windows terminals have
 # editline-like support builtin.
 #
-ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
-CONFIGURE_FLAGS_STAGE1 += --flags=-editline
-CONFIGURE_FLAGS_STAGE2 += --flags=-editline
-else
-CONFIGURE_FLAGS_STAGE1 += --flags=-editline
+ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
 ifeq "$(wildcard $(FPTOOLS_TOP_ABS)/libraries/editline/unbuildable)" ""
 CONFIGURE_FLAGS_STAGE2 += --flags=editline
-else
-CONFIGURE_FLAGS_STAGE2 += --flags=-editline
 endif
 endif
 
index 3c49019..6b54eeb 100644 (file)
@@ -25,6 +25,8 @@ Flag dynlibs
 
 Flag editline
     Description: Use editline
+    Default: False
+    Manual: True
 
 Flag ghci
     Description: Build GHCi support.