Skip to content

pkg-config macros not included in upgraded autotools-1.16 aclocal directory #731

@brenns10

Description

@brenns10

Hello,

While using the manylinux images, I started getting errors like this during autoreconf -fiv:

configure.ac:1: error: possibly undefined macro: dnl
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:76: error: possibly undefined macro: AC_SEARCH_LIBS
configure:14375: error: *** pkg.m4 missing, please install pkg-config
configure:14376: error: possibly undefined macro: AS_VAR_SET

It appears that the pkgconfig package includes the following macro file for autotools:

# repoquery --list pkgconfig | grep m4
/usr/share/aclocal/pkg.m4

But the upgraded version of autotools stores its macros at /usr/local/share/aclocal-1.16/. The autoreconf will succeed if you first copy the pkg.m4 file into the proper directory:

# cp /usr/share/aclocal/pkg.m4 /usr/local/share/aclocal-1.16/

Maybe this should be done while building the image so that autotools works transparently with pkg-config?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions