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

From: Ross Burton ross at burtonini.com
Date: Wed Feb 20 16:29:18 EET 2008
On Wed, 2008-02-20 at 15:10 +0100, Alberto Garcia wrote:
> I think that he meant how to *detect* Maemo (i.e, without having to
> ask the user).
> 
> I used to check for the existence of libosso, but since it's available
> in Debian (http://packages.debian.org/libosso) I'm also checking
> whether we're running inside the scratchbox, so you could use
> something like this:
> 
> if $PKG_CONFIG --exists libosso && readlink /etc|grep -q ^/targets; then
>    DETECTED_PLATFORM=maemo                                                      
> fi

What if I want a "maemo" build on Ubuntu Mobile, or any other system
which has the Maemo stack?  It's best to make it explicit at configure
time because having too much magic means it breaks if your assumptions
fail.

Ross
-- 
Ross Burton                                 mail: ross at burtonini.com
                                          jabber: ross at burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF




More information about the maemo-developers mailing list