[maemo-developers] How to detect Maemo in automake?
From: Alberto Garcia agarcia at igalia.comDate: Wed Feb 20 16:10:02 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 ]
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? > > One way is: > > AC_ARG_ENABLE(maemo, [ --enable-maemo Enable > > Maemo-specific build options], > > [enable_maemo=true], > You mean something like this: > > AC_ARG_ENABLE(maemo, > AS_HELP_STRING([--enable-maemo],[enable Maemo-specific features]), > [], > enable_maemo=no) > if test x"$enable_maemo" = xyes; then > ... > fi 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. -- Alberto García González http://people.igalia.com/berto/
- Previous message: How to detect Maemo in automake?
- Next message: How to detect Maemo in automake?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]