diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2021-01-05 17:11:20 +0000 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2021-01-05 17:11:20 +0000 |
commit | 70d3120f32281980105169dee74440146e97702e (patch) | |
tree | 0b30270fcc831e78afcfc644360576c349f3adc2 /libctf/Makefile.am | |
parent | b4b6ea46807ec9c01ed4f4f18a50840358d16c28 (diff) | |
download | fsf-binutils-gdb-70d3120f32281980105169dee74440146e97702e.zip fsf-binutils-gdb-70d3120f32281980105169dee74440146e97702e.tar.gz fsf-binutils-gdb-70d3120f32281980105169dee74440146e97702e.tar.bz2 |
libctf, testsuite: don't run without a suitable compiler
We never actually check to see if the compiler supports CTF,
or even if a suitable compiler exists.
libctf/ChangeLog
2021-01-05 Nick Alcock <nick.alcock@oracle.com>
* Makefile.am (BASEDIR): New.
(BFDDIR): Likewise.
(check-DEJAGNU): Add development.exp to prerequisites.
(development.exp): New.
(CONFIG_STATUS_DEPENDENCIES): New.
(EXTRA_DEJAGNU_SITE_CONFIG): Likewise.
(DISTCLEANFILES): Likewise.
* Makefile.in: Regenerated.
* testsuite/lib/ctf-lib.exp (check_ctf_available): Return boolean.
* testsuite/libctf-lookup/lookup.exp: Call check_ctf_available.
* testsuite/libctf-regression/regression.exp: Likewise.
Diffstat (limited to 'libctf/Makefile.am')
-rw-r--r-- | libctf/Makefile.am | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/libctf/Makefile.am b/libctf/Makefile.am index 3fe1994..f454334 100644 --- a/libctf/Makefile.am +++ b/libctf/Makefile.am @@ -27,6 +27,8 @@ AUTOMAKE_OPTIONS = dejagnu foreign no-texinfo.tex ZLIB = @zlibdir@ -lz ZLIBINC = @zlibinc@ +BASEDIR = $(srcdir)/.. +BFDDIR = $(BASEDIR)/bfd INCDIR = $(srcdir)/../include AM_CPPFLAGS = -D_GNU_SOURCE -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../bfd -I../bfd @INCINTL@ AM_CFLAGS = -std=gnu99 @ac_libctf_warn_cflags@ @warn@ @c_warn@ @WARN_PEDANTIC@ @WERROR@ $(ZLIBINC) @@ -75,7 +77,7 @@ CC_FOR_TARGET = ` \ fi; \ fi` -check-DEJAGNU: site.exp +check-DEJAGNU: site.exp development.exp srcroot=`cd $(srcdir) && pwd`; export srcroot; \ r=`pwd`; export r; \ LC_ALL=C; export LC_ALL; \ @@ -87,3 +89,14 @@ check-DEJAGNU: site.exp CC_FOR_HOST="$(CC)" LIBS="$(LIBS)" $(RUNTESTFLAGS); \ else echo "WARNING: could not find \`runtest'" 1>&2; :;\ fi + +development.exp: $(BFDDIR)/development.sh + $(EGREP) "(development|experimental)=" $(BFDDIR)/development.sh \ + | $(AWK) -F= '{ print "set " $$1 " " $$2 }' > $@ + +# development.sh is used to determine -Werror default. +CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh + +EXTRA_DEJAGNU_SITE_CONFIG = development.exp + +DISTCLEANFILES = site.exp development.exp |