From: simonmar Date: Wed, 13 Feb 2002 11:51:40 +0000 (+0000) Subject: [project @ 2002-02-13 11:51:40 by simonmar] X-Git-Tag: nhc98-1-18-release~1126 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=0b26bbe1ee1ffccacbb81c8e85dfa0047f99cee4;p=haskell-directory.git [project @ 2002-02-13 11:51:40 by simonmar] - Detect presence of a POSIX-compatible regex interface in configure, and omit Text.Regex.Posix (and hence Text.Regex) if it is missing. ToDo: pull in a suitably-licensed implementation of POSIX regex to be used in the event that the system doesn't supply one. - Rename old HaveRegex to HaveGNURegex. --- diff --git a/Makefile b/Makefile index 6d91aa4..47276f3 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.15 2002/02/12 15:17:34 simonmar Exp $ +# $Id: Makefile,v 1.16 2002/02/13 11:51:40 simonmar Exp $ TOP=.. include $(TOP)/mk/boilerplate.mk @@ -39,6 +39,10 @@ ALL_DIRS = \ PACKAGE = base +ifneq "$(HavePosixRegex)" "YES" +EXCLUDED_SRCS += Text/Regex/Posix.hsc Text/Regex.hs +endif + SRC_HC_OPTS += -fglasgow-exts -cpp -Iinclude SRC_HSC2HS_OPTS += -Iinclude