[maemo-developers] How to detect Maemo in automake?

From: Alberto Garcia agarcia at igalia.com
Date: Thu Feb 21 12:51:24 EET 2008
On Thu, Feb 21, 2008 at 11:15:31AM +0100, Marcin Juszkiewicz wrote:

> I wonder why this is really needed... If application is for Maemo   
> then it use its libraries (libosso, libhildon) and should check for 
> those libraries not for scratchbox.                                 

Yeah, but if your desktop PC happens to have libosso installed (it's
included in Debian) then autoconf will detect that you're compiling
for Maemo.

In my case compiling for Maemo means compiling using the Maemo SDK
(and probably for the Nokia 770/N800/N810). And scratchbox seems to be
the official way to use the Maemo SDK.

Anyway that was only an example that I think is probably good enough
for most cases. If not, just pass the --enable-maemo switch to
override autodetection and that's it :)

-- 
Alberto García González
http://people.igalia.com/berto/

More information about the maemo-developers mailing list