+dnl --------------- HILDON & PLUGIN PKGS -----------
+pluginpkgs=$hildonpkgs
+echo "Plugin Packages $pluginpkgs"
+AC_SUBST(pluginpkgs)
+
+# Plugin packages must not include libcanberra and libprofile
+if test "$have_hildon2" = "true"; then
+ echo "DETECTED HILDON 2 $have_hildon2."
+ detected_toolkit=hildon2
+ hildonpkgs="$hildonpkgs libcanberra profile"
+ echo "HILDON 2 PACKAGES $hildonpkgs"
+ AC_CHECK_HEADER([profiled/keys_nokia.h], [], AC_MSG_ERROR([You have to install package profile-data-dev]))
+fi
+AC_SUBST(hildonpkgs)
+
+dnl --------------- HILDON API ------------