[maemo-developers] [maemo-developers] A set of development questions...

From: Eero Tamminen eero.tamminen at movial.fi
Date: Wed Jan 25 09:21:44 EET 2006
Hi,

>> I use my configure script to check for the presence of the hildon>
>> libraries. Put this in your configure.ac:
>> PKG_CHECK_MODULES(HILDON, hildon-lgpl,
>>   [ AC_DEFINE(HILDON)
>>     AC_SUBST(HILDON_LIBS)
>>     AC_SUBST(HILDON_CFLAGS)],
>>   AC_MSG_RESULT([no]))

> Let's see where this leads me... autoconf is something I don't want to
> touch my hands too deep (but digging info out of there is good (and
> fun) way to do.

The above is how you get autoconf to ask the information from
pkg-config.  If you know how to use GNU Make, you could as well
ask it directly from pkg-config.

(IMHO only good thing in Autotools is that they provide a consistent
API to the users.  If the code is done for Linux (i.e. you have an
ANSI-C compiler, POSIX etc. compliant libraries and headers etc)
and your code is good, Autotools don't really offer that much besides
doubling your package build time and size.)


	- Eero


More information about the maemo-developers mailing list