[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cannot build application with pkg-config using autoconf, automake
From: |
Eric Blake |
Subject: |
Re: Cannot build application with pkg-config using autoconf, automake |
Date: |
Mon, 12 Dec 2011 08:11:17 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 |
On 12/11/2011 05:32 AM, mi16 wrote:
> But I get an error while trying to build this test using GNU autoconf,
> automake tools:
>
> $ autoreconf --verbose --force --install
> $ ./configure
> ./configure: line 2958: syntax error near unexpected token `MGTKMM,'
> ./configure: line 2958: `PKG_CHECK_MODULES(MGTKMM, gtkmm-2.4 >= 2.22.0)'
>
> (If I build test application with GNU autoconf and automake tools, but
> without pkg-config
> everything works fine.)
>
> Can anybody tell me what I am doing wrong?
You aren't including the correct .m4 files from pkgconfig in your
project, and pkgconfig apparently isn't installed on your windows
machine, so autoconf has no idea how to expand the PKG_CHECK_MODULES m4
macro and instead generated invalid shell code. You need to make sure
pkg.m4 is available somewhere that aclocal can pick it up.
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature