[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why my AC_CHECK_LIB can not work?
From: |
Wang Sen |
Subject: |
Why my AC_CHECK_LIB can not work? |
Date: |
Wed, 20 Feb 2013 13:09:31 +0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi autoconf developers,
I'm trying to build our project by autotools. When I was checking whether glib
exists or not by the macro AC_CHECK_LIB, it always said no even if I have inst-
alled glib-2.0 in my computer, which has Linux Mint 13 installed.
The macro AC_CHECK_LIB in configure.ac:
AC_CHECK_LIB([glib-2.0])
Here's information of glib-2.0 in my system:
$ pkg-config --libs --cflags glib-2.0
-I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -lglib-2.0
Can anybody tell me how to fix this and modify CFLAGS in the Makefile accordin-
gly?
Thanks in advance.
- Why my AC_CHECK_LIB can not work?,
Wang Sen <=