[maemo-developers] How to detect Maemo in automake?
From: Marcin Juszkiewicz openembedded at haerwu.bizDate: Thu Feb 21 12:15:31 EET 2008
- Previous message: How to detect Maemo in automake?
- Next message: How to detect Maemo in automake?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Dnia Wednesday, 20 of February 2008, Alberto Garcia napisał: > On Wed, Feb 20, 2008 at 02:00:50PM +0000, Ross Burton wrote: > > > > Now for my next question: How do i detect maemo correctly in > > > > autoconf? > 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 > > If there's an "official" way (or just a better one) to detect if we're > compiling for Maemo I'd like to know. 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. Or "--enable-maemo" switch should be used - if someone wants to build software for Maemo then adding one parametr to "./configure" call should be enough. Think about people who use normal cross-compilation (for example OpenEmbedded) instead of scarybox. -- JID: hrw-jabber.org OpenEmbedded developer/consultant You can close your eyes to reality, but not to memories.
- Previous message: How to detect Maemo in automake?
- Next message: How to detect Maemo in automake?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]