From 6cfeee53431768f8d8326d6c645d6ccda198bde0 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 28 Jul 2003 14:32:43 +0000 Subject: [haddock @ 2003-07-28 14:32:42 by simonmar] Update to avoid using hslibs with GHC >= 5.04 --- src/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 5064025b..c7685e92 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,7 +3,15 @@ include $(TOP)/mk/boilerplate.mk INSTALLING=1 +ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi) + +# Don't use any hslibs packages in GHC >= 5.04 +ifeq "$(ghc_ge_504)" "YES" +SRC_HC_OPTS += -package network -fglasgow-exts -cpp +else SRC_HC_OPTS += -package data -package text -package util -package net -fglasgow-exts -cpp +endif + HS_PROG = haddock.bin HsParser_HC_OPTS += -Onot -- cgit v1.2.3