summaryrefslogtreecommitdiff
path: root/tests/atlocal.in
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2018-09-11 08:32:12 +0200
committerAkim Demaille <akim.demaille@gmail.com>2018-09-13 19:01:42 +0200
commit84744e5f63e9c8e448daffc229b660e635589269 (patch)
treefce92319608133c999e35dbd35d8104ba51bcca5 /tests/atlocal.in
parent09bc1b99c9a1c6fb4539610ecf5a63f7a3680c31 (diff)
downloadbison-84744e5f63e9c8e448daffc229b660e635589269.tar.gz
tests: allow to override variables with envvars
* tests/atlocal.in: Allow the user to change interesting variables (CFLAGS, CXXFLAGS, etc.).
Diffstat (limited to 'tests/atlocal.in')
-rw-r--r--tests/atlocal.in26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in
index c26ed0b5..e706d3a2 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -36,26 +36,26 @@ fi
: ${CXX='@CXX@'}
# Is the compiler GCC?
-GCC='@GCC@'
+: ${GCC='@GCC@'}
# Sometimes a test group needs to ignore gcc warnings, so it locally
# sets CFLAGS to this.
- NO_WERROR_CFLAGS='@CFLAGS@ @WARN_CFLAGS@ @WARN_CFLAGS_TEST@'
-NO_WERROR_CXXFLAGS='@CXXFLAGS@ @WARN_CXXFLAGS@ @WARN_CXXFLAGS_TEST@'
-WNO_DEPRECATED_CXXFLAGS='@WNO_DEPRECATED_CXXFLAGS@'
+: ${NO_WERROR_CFLAGS='@CFLAGS@ @WARN_CFLAGS@ @WARN_CFLAGS_TEST@'}
+: ${NO_WERROR_CXXFLAGS='@CXXFLAGS@ @WARN_CXXFLAGS@ @WARN_CXXFLAGS_TEST@'}
+: ${WNO_DEPRECATED_CXXFLAGS='@WNO_DEPRECATED_CXXFLAGS@'}
# But most of the time, we want -Werror.
- CFLAGS="$NO_WERROR_CFLAGS @WERROR_CFLAGS@"
-CXXFLAGS="$NO_WERROR_CXXFLAGS @WERROR_CXXFLAGS@"
+: ${CFLAGS="$NO_WERROR_CFLAGS @WERROR_CFLAGS@"}
+: ${CXXFLAGS="$NO_WERROR_CXXFLAGS @WERROR_CXXFLAGS@"}
# If 'exit 77'; skip all C++ tests; otherwise ':'.
-BISON_CXX_WORKS='@BISON_CXX_WORKS@'
+: ${BISON_CXX_WORKS='@BISON_CXX_WORKS@'}
# Compiler flags to disable exception support.
-NO_EXCEPTIONS_CXXFLAGS='@NO_EXCEPTIONS_CXXFLAGS@'
+: ${NO_EXCEPTIONS_CXXFLAGS='@NO_EXCEPTIONS_CXXFLAGS@'}
# Requiring a specific C++ standard.
-CXX11_CXXFLAGS='@CXX11_CXXFLAGS@'
+: ${CXX11_CXXFLAGS='@CXX11_CXXFLAGS@'}
# Be sure that the C++ compiler is not broken because of gnulib. This
# cannot be checked in configure (gnulib is not parameterized yet),
@@ -115,10 +115,10 @@ fi
## ------- ##
# Empty if no javac was found
-CONF_JAVAC='@CONF_JAVAC@'
+: ${CONF_JAVAC='@CONF_JAVAC@'}
# Empty if no Java VM was found
-CONF_JAVA='@CONF_JAVA@'
+: ${CONF_JAVA='@CONF_JAVA@'}
# We need egrep and perl.
: ${EGREP='@EGREP@'}
@@ -129,10 +129,10 @@ LC_CTYPE=C
export LC_CTYPE
# Are special link options needed?
-LDFLAGS='@LDFLAGS@'
+: ${LDFLAGS='@LDFLAGS@'}
# Are special libraries needed?
-LIBS="$abs_top_builddir/lib/libbison.a @LIBS@ @INTLLIBS@"
+: ${LIBS="$abs_top_builddir/lib/libbison.a @LIBS@ @INTLLIBS@"}
# Empty if no xsltproc was found
: ${XSLTPROC='@XSLTPROC@'}