summaryrefslogtreecommitdiff
path: root/tests/atlocal.in
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-04-29 18:14:53 +0200
committerAkim Demaille <akim.demaille@gmail.com>2019-04-29 22:27:01 +0200
commit15f9f8c85310577874a000bcb0b1773e4f23b8b3 (patch)
tree9d6bf6c02916675977457119943e6b2d2e39d4af /tests/atlocal.in
parent04676a50853902806c33a413f50cb8704f668fbd (diff)
downloadbison-15f9f8c85310577874a000bcb0b1773e4f23b8b3.tar.gz
tests: don't require a D compiler
Reported by Kiyoshi Kanazawa. http://lists.gnu.org/archive/html/bug-bison/2019-04/msg00018.html * tests/atlocal.in (BISON_DC_WORKS): New. * tests/local.at (AT_COMPILE_D): Use it.
Diffstat (limited to 'tests/atlocal.in')
-rw-r--r--tests/atlocal.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in
index f7db41e9..d8141cb9 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -118,8 +118,14 @@ fi
## Other. ##
## ------- ##
+# Empty if no D compiler was found.
: ${DC='@DC@'}
: ${DCFLAGS='@DCFLAGS@'}
+if test x"$DC" = x; then
+ BISON_DC_WORKS=false
+else
+ BISON_DC_WORKS=true
+fi
# Empty if no javac was found
: ${CONF_JAVAC='@CONF_JAVAC@'}