[maemo-developers] Porting to chinook

From: Ian Lawrence vern at riseup.net
Date: Fri Oct 19 15:11:55 EEST 2007
Ola,
>> #include <hildon-1/hildon/hildon-program.h>
> 	That's not the best way. You should check for hildon-1 pkg-config files in
> configure.in, which will add /usr/include/hildon-1 to your include path.
> Then, in the source files, you should include hildon/hildon-program.h.

Yes, I did something like this in configure.ac :

AC_ARG_ENABLE(hildon, AS_HELP_STRING([--enable-hildon],[compile for Hildon environment
@<:@default=no@:>@]),,enable_hildon=no)


dnl ********
dnl Hildon
dnl ********

if test "x$enable_hildon" = "xyes"; then
   dnl AC_MSG_CHECKING([for GtkHTML2 support])
   PKG_CHECK_MODULES([HILDON], hildon-1 >= 1.0.5,enable_hildon=yes,enable_hildon=no)
else
   enable_hildon=no
fi


AM_CONDITIONAL(WITH_HILDON, test "x$enable_hildon" = "xyes")

HTH
[]'s
Ian
-- 
http://ianlawrence.info




More information about the maemo-developers mailing list