[maemo-developers] New developer - lots of questions
From: Alberto Garcia agarcia at igalia.comDate: Fri Nov 16 22:37:34 EET 2007
- Previous message: New developer - lots of questions
- Next message: New developer - lots of questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
O Venres 16/11/2007 ás 15:27, maemo at bitblit.net dicía... > > I don't know what is the "standard" way of detecting which version > > of Maemo you're using, but you can do it using autoconf and > > checking the versions of some basic libraries such as libosso and > > hildon. > > Are there any symbols that simply detect Maemo or not Maemo? That's what I use: if pkg-config --exists libosso; then # Compiling for Maemo else # Otherwise ... fi And to detect the Maemo version: libossovers=`$PKG_CONFIG libosso --modversion | cut -d . -f 1` if test "$libossovers" = "1"; then # This is Maemo 2/3 elif test "$libossovers" = "2"; then # This is Maemo 4 fi -- Alberto García González http://people.igalia.com/berto/
- Previous message: New developer - lots of questions
- Next message: New developer - lots of questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]