forked from GitHub/gf-core
Allow setting GHCFLAGS with configure.
This commit is contained in:
@@ -3,7 +3,7 @@ include config.mk
|
|||||||
|
|
||||||
GHMAKE=$(GHC) --make
|
GHMAKE=$(GHC) --make
|
||||||
GHCXMAKE=ghcxmake
|
GHCXMAKE=ghcxmake
|
||||||
GHCFLAGS= -fglasgow-exts -package util
|
GHCFLAGS+= -fglasgow-exts -package util
|
||||||
GHCOPTFLAGS=-O2
|
GHCOPTFLAGS=-O2
|
||||||
GHCFUDFLAG=
|
GHCFUDFLAG=
|
||||||
JAVAFLAGS=-target 1.4 -source 1.4
|
JAVAFLAGS=-target 1.4 -source 1.4
|
||||||
@@ -21,8 +21,8 @@ GRAMMAR_DIST_DIR=GF-grammars-$(PACKAGE_VERSION)
|
|||||||
|
|
||||||
SNAPSHOT_DIR=GF-$(shell date +%Y%m%d)
|
SNAPSHOT_DIR=GF-$(shell date +%Y%m%d)
|
||||||
|
|
||||||
# use the temporary binary file name 'gf-bin' name to not clash with directory 'GF'
|
# use the temporary binary file name 'gf-bin' to not clash with directory 'GF'
|
||||||
# on case insensitive file systems (such as MacOSX)
|
# on case insensitive file systems (such as FAT)
|
||||||
GF_EXE=gf$(EXEEXT)
|
GF_EXE=gf$(EXEEXT)
|
||||||
GF_EXE_TMP=gf-bin$(EXEEXT)
|
GF_EXE_TMP=gf-bin$(EXEEXT)
|
||||||
GF_DOC_EXE=gfdoc$(EXEEXT)
|
GF_DOC_EXE=gfdoc$(EXEEXT)
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ datadir = @datadir@
|
|||||||
|
|
||||||
host = @host@
|
host = @host@
|
||||||
|
|
||||||
|
GHCFLAGS = @GHCFLAGS@
|
||||||
CPPFLAGS = @CPPFLAGS@
|
CPPFLAGS = @CPPFLAGS@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ AC_INIT([GF],[2.2],[aarne@cs.chalmers.se],[GF])
|
|||||||
|
|
||||||
AC_PREREQ(2.53)
|
AC_PREREQ(2.53)
|
||||||
|
|
||||||
AC_REVISION($Revision: 1.18 $)
|
AC_REVISION($Revision: 1.19 $)
|
||||||
|
|
||||||
AC_CONFIG_FILES([config.mk jgf])
|
AC_CONFIG_FILES([config.mk jgf])
|
||||||
|
|
||||||
@@ -130,6 +130,7 @@ dnl ***********************************************
|
|||||||
dnl Program flags
|
dnl Program flags
|
||||||
dnl ***********************************************
|
dnl ***********************************************
|
||||||
|
|
||||||
|
AC_SUBST(GHCFLAGS)
|
||||||
AC_SUBST(CPPFLAGS)
|
AC_SUBST(CPPFLAGS)
|
||||||
AC_SUBST(LDFLAGS)
|
AC_SUBST(LDFLAGS)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user