Re: Patch "Run `autoreconf -vf` throughout" broke the rtems-bfin build on FreeBSD

Andreas Schwab <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On Aug 20 2020, Simon Marchi wrote:

> Indeed, I see this.  When I run `autoreconf -vf` in this directory, 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
>
> So the command must have failed when I ran it and I didn't notice, my bad.
>
> I searched a bit, and I am a bit clueless as for why AC_CHECK_LIB is not found.  If
> anybody has any idea, help would be appreciated.

That's because aclocal cannot find a definition of PKG_CHECK_MODULES.
You need to run autoreconf with -I ../../config.

Andreas.

-- 
Andreas Schwab, [email protected]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.