Re: Cannot build application with pkg-config using autoconf, automake

2011-12-12 Thread Eric Blake
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   ebl...@redhat.com+1-919-301-3266
Libvirt virtualization library http://libvirt.org



signature.asc
Description: OpenPGP digital signature
___
Autoconf mailing list
Autoconf@gnu.org
https://lists.gnu.org/mailman/listinfo/autoconf


Re: Cannot build application with pkg-config using autoconf, automake

2011-12-11 Thread Vincent Torri
On Sun, Dec 11, 2011 at 1:32 PM, mi16 mikh...@mi16.ru wrote:

 ./configure: line 2958: syntax error near unexpected token `MGTKMM,'
 ./configure: line 2958: `PKG_CHECK_MODULES(MGTKMM, gtkmm-2.4 = 2.22.0)'

missing pkg.m4 file ?

Vincent Torri

___
Autoconf mailing list
Autoconf@gnu.org
https://lists.gnu.org/mailman/listinfo/autoconf


Re: Cannot build application with pkg-config using autoconf, automake

2011-12-11 Thread Mike Frysinger
On Sunday 11 December 2011 07:32:38 mi16 wrote:
 ./configure: line 2958: syntax error near unexpected token `MGTKMM,'
 ./configure: line 2958: `PKG_CHECK_MODULES(MGTKMM, gtkmm-2.4 = 2.22.0)'

you're missing the m4 from the pkg-config package.  install the relevant dev 
packages from your distro to get it.
-mike


signature.asc
Description: This is a digitally signed message part.
___
Autoconf mailing list
Autoconf@gnu.org
https://lists.gnu.org/mailman/listinfo/autoconf


Re: Cannot build application with pkg-config using autoconf, automake

2011-12-11 Thread mi16

you're missing the m4 from the pkg-config package.  install the relevant dev 
packages from your distro to get it.
-mike

Many thanks Mike and Vincent.

After adding to configure.ac a string -
AC_CONFIG_MACRO_DIR([/c/Tools/gtkmm/share/aclocal])
and changing in Makefile.am the string -
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
to a string -
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I /c/Tools/gtkmm/share/aclocal
everything begin working fine.

I am not sure I do it in a right way, but it works.

Mikhail.
 
___
Autoconf mailing list
Autoconf@gnu.org
https://lists.gnu.org/mailman/listinfo/autoconf



-- 
View this message in context: 
http://old.nabble.com/Cannot-build-application-with-pkg-config-using-autoconf%2C-automake-tp32953972p32957880.html
Sent from the Gnu - Autoconf - General mailing list archive at Nabble.com.


___
Autoconf mailing list
Autoconf@gnu.org
https://lists.gnu.org/mailman/listinfo/autoconf