Tomi Ollila ([EMAIL PROTECTED]) wrote:
> 3 Is there a compiler define that can be used in code to conditionally
> compile code when targeting for 770 (and some other code when not for 770).
> Currently I use the following kludgy hack:
>
> test -f /etc/init.d/maemo-launcher && XD=-DM4EM0 || XD=
>
> and then use $XD in gcc command line.
I use my configure script to check for the presence of the hildon
libraries. Put this in your configure.ac:
PKG_CHECK_MODULES(HILDON, hildon-lgpl,
[ AC_DEFINE(HILDON)
AC_SUBST(HILDON_LIBS)
AC_SUBST(HILDON_CFLAGS)],
AC_MSG_RESULT([no]))
Then you can #ifdef HILDON your C-code.
Hope this helps,
Simon
--
[EMAIL PROTECTED] http://simon.budig.de/
_______________________________________________
maemo-developers mailing list
[email protected]
https://maemo.org/mailman/listinfo/maemo-developers