PKG_PROG_PKG_CONFIG on MacOSX 10.5.8

Jan Stary hans at stare.cz
Thu Feb 21 00:06:23 PST 2013


I am building libsndfile from git on MacOSX 10.5.8.
I know we have a port; I am experimenting with the source.

Building from the source needs ./autogen.sh to be run.
That's when I run into a problem:

> Script started on Wed Feb 20 21:41:40 2013
> hans at mac:libsndfile$ ./autogen.sh
> -n checking for autogen ...
> yes
> -n checking for autoconf ...
> yes
> -n checking for automake ...
> yes
> -n checking for libtool ...
> glibtoolize
> -n checking for pkg-config ...
> yes
> -n checking for python ...
> yes
> Generating configuration files for libsndfile, please wait ...
>   aclocal -I M4
> configure.ac:297: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> M4/extra_pkg.m4:105: PKG_CHECK_MOD_VERSION is expanded from...
> configure.ac:297: the top level
> configure.ac:302: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:302: the top level
> configure.ac:305: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:305: the top level
> configure.ac:314: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:314: the top level
> configure.ac:315: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:315: the top level
> configure.ac:345: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:345: the top level
>   glibtoolize --automake --force
>   autoheader
> configure.ac:297: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> M4/extra_pkg.m4:105: PKG_CHECK_MOD_VERSION is expanded from...
> configure.ac:297: the top level
> configure.ac:302: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:302: the top level
> configure.ac:305: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:305: the top level
> configure.ac:314: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:314: the top level
> configure.ac:315: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:315: the top level
> configure.ac:345: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:345: the top level
>   automake --add-missing
> configure.ac:297: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> M4/extra_pkg.m4:105: PKG_CHECK_MOD_VERSION is expanded from...
> configure.ac:297: the top level
> configure.ac:302: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:302: the top level
> configure.ac:305: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:305: the top level
> configure.ac:314: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:314: the top level
> configure.ac:315: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:315: the top level
> configure.ac:345: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:345: the top level
>   autoconf
> configure.ac:297: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> M4/extra_pkg.m4:105: PKG_CHECK_MOD_VERSION is expanded from...
> configure.ac:297: the top level
> configure.ac:302: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:302: the top level
> configure.ac:305: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:305: the top level
> configure.ac:314: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:314: the top level
> configure.ac:315: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:315: the top level
> configure.ac:345: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
> configure.ac:345: the top level
> 
> 
> I _do_ have pkg-config installed, and is in my PATH:
> 
> hans at mac:libsndfile$ pkg-config --version
> 0.27.1
> 
> 
> ./configure is produced, but is unusable:
> 
> ./configure: line 26359: PKG_PROG_PKG_CONFIG: command not found
> ./configure: line 26374: syntax error near unexpected token `FLAC_CFLAGS,'
> ./configure: line 26374: `_PKG_CONFIG(FLAC_CFLAGS, cflags, flac >= 1.2.1)'

Upstream says this is likely a problem with my pkgconfig:

On Feb 21 11:28:28, erikd at mega-nerd.com wrote:
> > I _do_ have pkg-config installed, and is in my PATH:
> > 
> > hans at mac:libsndfile$ pkg-config --version
> > 0.27.1
> > 
> > 
> > ./configure is produced, but is unusable:
> > 
> > ./configure: line 26359: PKG_PROG_PKG_CONFIG: command not found
> > ./configure: line 26374: syntax error near unexpected token `FLAC_CFLAGS,'
> > ./configure: line 26374: `_PKG_CONFIG(FLAC_CFLAGS, cflags, flac >= 1.2.1)'
> > 
> > 
> > What could be causing this?
> 
> That M4 macro should get installed with pkg-config. Not sure why its
> not on your system.


Could someone who knows the pkg-config internals
please enlighten me on this? Is it really the case
that our pkg-config (as installed by devel/pkgconfig)
does not have the PKG_PROG_PKG_CONFIG macro?

	Jan



More information about the macports-users mailing list