X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fconfig.mk.in;h=ea61013ad8f1c0dd755f63c38d1c5f26d169eb81;hb=57d15e1c1b85a8ec417e843827e5c8d271f7b1da;hp=1268da342b29f0f881316c2bc352d8e591887dbb;hpb=51cb6efae783acbbd59933a87fd256d26b2f396c;p=ghc-hetmet.git diff --git a/mk/config.mk.in b/mk/config.mk.in index 1268da3..ea61013 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -208,6 +208,9 @@ else GhcWithNativeCodeGen=NO endif +# Include support for generating Java +GhcWithJavaGen=NO + HaveLibDL = @HaveLibDL@ # Include GHCi in the compiler. Default to NO for the time being. @@ -433,15 +436,10 @@ ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" DEFAULT_TMPDIR = C:/TEMP endif -# FPTOOLS_TOP: the top of the fptools hierarchy, absolute path. - -ifeq "$(findstring $(TARGETPLATFORM), i386-unknown-cygwin32 i386-unknown-mingw32)" "" +# FPTOOLS_TOP: the top of the fptools hierarchy, absolute path. (POSIX / unix-style path). FPTOOLS_TOP_ABS = @hardtop@ -else -FPTOOLS_TOP_ABS = $(subst \,/,$(shell cygpath -w @hardtop@)) -endif -# Keep the Unix-style path to use with Unix tools (e.g. in ghc-inplace script) -FPTOOLS_TOP_ABS_UNIX = @hardtop@ +# The platform specific version of 'hardtop'. +FPTOOLS_TOP_ABS_PLATFORM = @hardtop_plat@ # # Installation directories, we don't use half of these, @@ -451,12 +449,16 @@ FPTOOLS_TOP_ABS_UNIX = @hardtop@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ -datadir = @datadir@ +datadir0 = @datadir@ #sysconfdir = @datadir@ #sharedstatedir = @sharedstatedir@ #localstatedir = @localstatedir@ -libdir = @libdir@ +ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32" +libdir0 = @libdir@ +else +libdir0 = @prefix@ +endif includedir = @includedir@ oldincludedir = @oldincludedir@ mandir = @mandir@ @@ -468,8 +470,13 @@ mandir = @mandir@ # override libdir and datadir to put project-specific stuff in # a subdirectory with the version number included. # -libdir := $(if $(ProjectNameShort),$(libdir)/$(ProjectNameShort)-$(ProjectVersion),$(libdir)) -datadir := $(if $(ProjectNameShort),$(datadir)/$(ProjectNameShort)-$(ProjectVersion),$(datadir)) +ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32" +libdir = $(if $(ProjectNameShort),$(libdir0)/$(ProjectNameShort)-$(ProjectVersion),$(libdir0)) +datadir = $(if $(ProjectNameShort),$(datadir0)/$(ProjectNameShort)-$(ProjectVersion),$(datadir0)) +else +libdir = $(libdir0) +datadir = $(datadir0) +endif # # Default values for most of the above are only set if @@ -607,6 +614,8 @@ GhcVersion = @GhcVersion@ GhcMajVersion = @GhcMajVersion@ GhcMinVersion = @GhcMinVersion@ GhcPatchLevel = @GhcPatchLevel@ +# Canonicalised ghc version number, used for easy (integer) version comparisons. +GhcCanonVersion = $(GhcMajVersion)$(GhcMinVersion) HBC = @HBC@ NHC = @NHC@ @@ -700,7 +709,6 @@ INSTALL := $(subst .././install-sh,$(FPTOOLS_TOP_ABS)/install-sh,$(INSTALL)) LATEX = latex HEVEA = hevea HACHA = hacha -LD = ld LN_S = @LN_S@ MANMACROS = -man MSMACROS = -ms @@ -714,6 +722,13 @@ RANLIB = @RANLIB@ RM = rm -f SED = @SedCmd@ SHELL = /bin/sh + +# Some ld's support the -x flag and some don't, so the configure +# script detects which we have and sets LdXFlag to "-x" or "" +# respectively. +LD = @LdCmd@ +LD_X = @LdXFlag@ + # # In emergency situations, REAL_SHELL is used to perform shell commands # from within the ghc driver script, by scribbling the command line to @@ -815,7 +830,7 @@ HAPPY_VERSION = @HappyVersion@ # # Options to pass to Happy when we're going to compile the output with GHC # -GHC_HAPPY_OPTS = $(shell if ( test `echo $(HAPPY_VERSION) | sed -e "s/\(.*\)\..*/\1/g"` "-gt" "1" || test `echo $(HAPPY_VERSION) | sed -e "s/.*\.\(.*\)/\1/g"` "-ge" "9" ); then echo -agc; else echo -g; fi) +GHC_HAPPY_OPTS = @HappyOpts@ # # Stuff from fptools/literate