binutils-gdb/sim
Simon Marchi 5798d69f03 sim/bfin: include config/pkg.m4 in configure.ac
When trying to re-generate configure in sim/bfin, I get:

    $ autoreconf -vf
    autoreconf: Entering directory `.'
    autoreconf: configure.ac: not using Gettext
    autoreconf: running: aclocal --force
    autoreconf: configure.ac: tracing
    autoreconf: configure.ac: not running libtoolize: --install not given
    autoreconf: running: /opt/autostuff/bin/autoconf --force
    configure.ac:57: error: possibly undefined macro: AC_CHECK_LIB
          If this token and others are legitimate, please use m4_pattern_allow.
          See the Autoconf documentation.
    autoreconf: /opt/autostuff/bin/autoconf failed with exit status: 1

This happens since commit f693213d12 ("Run `autoreconf -vf` throughout").

The problem (not clear from the error message) is that the
PKG_CHECK_MODULES macro used in configure.ac is undefined.  In the past, I
suppose that it relied on the person running autoconf having pkg.m4 (from
pkg-config) in their include path.  That's not my case.

Since we recently added a local version of PKG_CHECK_MODULES to our tree,
we can just make sim/bfin/configure.ac use it.  This patch makes
configure.ac include config/pkg.m4, and re-generates configure.  With this,
the configure script appears to be generated correctly, I am able to
configure and build the bfin simulator.

Note: using sinclude to include the required m4 files makes no sense to
me.  These files contain macros we need, if they are not defined then
the resulting file is unusable.  And sinclude fails silently if the file
is not found.  So, better use include/m4_include.

sim/bfin/ChangeLog:

	* configure.ac: Include config/pkg.m4.

Change-Id: I7d8012e5ed510cd7746b94e918f0feb1c701cd83
2020-08-21 11:55:08 -04:00
..
aarch64 sim/aarch64: Fix register ordering bug in blr (PR sim/25318) 2020-02-06 22:50:26 +00:00
arm [ARM, sim] Fix build failure with -Werror (PR26365) 2020-08-13 10:32:52 -03:00
avr Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
bfin sim/bfin: include config/pkg.m4 in configure.ac 2020-08-21 11:55:08 -04:00
bpf sim: generated files for the eBPF simulator 2020-08-04 18:11:31 +02:00
common [sim] Fix mbuild build breaker in sim-cpu.c 2020-08-10 17:26:09 +02:00
cr16 Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
cris Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
d10v Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
erc32 Run autoreconf -vf throughout 2020-07-29 16:03:55 -04:00
frv Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
ft32 Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
h8300 Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
igen sim/igen: Fix linker error with -fno-common 2020-07-03 21:03:47 +02:00
iq2000 Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
lm32 Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
m32c Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
m32r Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
m68hc11 Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mcore Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
microblaze Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
mips Run autoreconf -vf throughout 2020-07-29 16:03:55 -04:00
mn10300 Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
moxie Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
msp430 MSP430: sim: Increase main memory region size 2020-08-07 11:01:22 +01:00
or1k Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
ppc sim/ppc: Fix linker error with -fno-common 2020-07-03 18:47:40 +02:00
pru Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
rl78 Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
rx Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
sh Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
sh64 Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
testsuite MSP430: sim: Fix incorrect simulation of unsigned widening multiply 2020-08-05 15:02:30 +01:00
v850 Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
.gitignore sim: drop common/cconfig.h in favor of a single config.h 2016-01-09 03:52:30 -05:00
ChangeLog sim: generated files for the eBPF simulator 2020-08-04 18:11:31 +02:00
configure sim: eBPF simulator 2020-08-04 18:09:16 +02:00
configure.ac Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
configure.tgt sim: eBPF simulator 2020-08-04 18:09:16 +02:00
MAINTAINERS sim: eBPF simulator 2020-08-04 18:09:16 +02:00
Makefile.in Update copyright year range in all GDB files. 2020-01-01 10:20:53 +04:00
README-HACKING sim: punt WITH_DEVICES & tconfig.h support 2015-12-26 20:38:31 -05:00