aboutsummaryrefslogtreecommitdiff
path: root/libctf/Makefile.am
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2021-02-03 14:02:30 +0000
committerNick Alcock <nick.alcock@oracle.com>2021-02-10 15:26:57 +0000
commitcbd8f5bbcc81ffe6c84bd6439c9a22976867e4ad (patch)
tree69084a263c2db6ce7cfe73dc4610c0143fcb7b48 /libctf/Makefile.am
parent95148614026da7353721411dd020d024667e3482 (diff)
downloadgdb-cbd8f5bbcc81ffe6c84bd6439c9a22976867e4ad.zip
gdb-cbd8f5bbcc81ffe6c84bd6439c9a22976867e4ad.tar.gz
gdb-cbd8f5bbcc81ffe6c84bd6439c9a22976867e4ad.tar.bz2
libctf: require a Tcl capable of try/catch to run tests
The run_native_host_cmd implementation in testsuite/lib/ctf-lib.exp uses try/catch, which are new in Tcl 8.6. Require a Tcl that knows that try exists, as suggested by Jan Beulich. libctf/ChangeLog 2021-02-03 Nick Alcock <nick.alcock@oracle.com> * configure.ac (EXPECT): Check for, in order to define... (TCL_TRY): ... this, if Tcl supports try/catch. * Makefile.am (TCL_TRY): Run the testsuite only if set. * configure: Regenerated. * Makefile.in: Likewise.
Diffstat (limited to 'libctf/Makefile.am')
-rw-r--r--libctf/Makefile.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/libctf/Makefile.am b/libctf/Makefile.am
index 908564c..03fd6cc 100644
--- a/libctf/Makefile.am
+++ b/libctf/Makefile.am
@@ -62,6 +62,7 @@ EXPECT = expect
RUNTEST = runtest
RUNTESTFLAGS =
+if TCL_TRY
CC_FOR_TARGET = ` \
if [ -f $$r/../gcc/xgcc ] ; then \
if [ -f $$r/../newlib/Makefile ] ; then \
@@ -100,3 +101,4 @@ CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh
EXTRA_DEJAGNU_SITE_CONFIG = development.exp
DISTCLEANFILES = site.exp development.exp
+endif