binutils-gdb/sim/bfin
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
..
bfroms
aclocal.m4
arch.h
bfin-sim.c
bfin-sim.h
ChangeLog sim/bfin: include config/pkg.m4 in configure.ac 2020-08-21 11:55:08 -04:00
config.in
configure sim/bfin: include config/pkg.m4 in configure.ac 2020-08-21 11:55:08 -04:00
configure.ac sim/bfin: include config/pkg.m4 in configure.ac 2020-08-21 11:55:08 -04:00
devices.c
devices.h
dv-bfin_cec.c
dv-bfin_cec.h
dv-bfin_ctimer.c
dv-bfin_ctimer.h
dv-bfin_dma.c
dv-bfin_dma.h
dv-bfin_dmac.c
dv-bfin_dmac.h
dv-bfin_ebiu_amc.c
dv-bfin_ebiu_amc.h
dv-bfin_ebiu_ddrc.c
dv-bfin_ebiu_ddrc.h
dv-bfin_ebiu_sdc.c
dv-bfin_ebiu_sdc.h
dv-bfin_emac.c
dv-bfin_emac.h
dv-bfin_eppi.c
dv-bfin_eppi.h
dv-bfin_evt.c
dv-bfin_evt.h
dv-bfin_gpio2.c
dv-bfin_gpio2.h
dv-bfin_gpio.c
dv-bfin_gpio.h
dv-bfin_gptimer.c
dv-bfin_gptimer.h
dv-bfin_jtag.c
dv-bfin_jtag.h
dv-bfin_mmu.c
dv-bfin_mmu.h
dv-bfin_nfc.c
dv-bfin_nfc.h
dv-bfin_otp.c
dv-bfin_otp.h
dv-bfin_pfmon.c
dv-bfin_pfmon.h
dv-bfin_pint.c
dv-bfin_pint.h
dv-bfin_pll.c
dv-bfin_pll.h
dv-bfin_ppi.c
dv-bfin_ppi.h
dv-bfin_rtc.c
dv-bfin_rtc.h
dv-bfin_sic.c
dv-bfin_sic.h
dv-bfin_spi.c
dv-bfin_spi.h
dv-bfin_trace.c
dv-bfin_trace.h
dv-bfin_twi.c
dv-bfin_twi.h
dv-bfin_uart2.c
dv-bfin_uart2.h
dv-bfin_uart.c
dv-bfin_uart.h
dv-bfin_wdog.c
dv-bfin_wdog.h
dv-bfin_wp.c
dv-bfin_wp.h
dv-eth_phy.c
gui.c
gui.h
insn_list.def
interp.c
linux-fixed-code.h
linux-fixed-code.s
linux-targ-map.h
machs.c
machs.h
Makefile.in
proc_list.def
sim-main.h