android: Link libcutils, liblog into all target modules

These libraries are used pervasively. Several makefiles added them to
LOCAL_SHARED_LIBRARIES.

This patch removes duplication in the makefiles by adding the libraries to
all target (that is, non-host) modules in Android.common.mk.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
mesa: Import Android logging utils and define LOG_TAG

Add a new header, main/log.h, that includes <cutils/log.h> for Android and
defines LOG_TAG = "MESA".

Also, update the Intel driver for this change.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
dri: Read Android system properties for driconf options

On Android, it's difficult to impossible to set environment variables for
activities (that is, Dalvik applications) outside of the initrc. This
difficulty prevents us from easily setting dri options post-boot.  This
patch somewhat fixes the problem by adding a system property for each
driconf option.  This fix doesn't enable us to set driconf options for
individual activities, but at least this enables us to easily set driconf
options system-wide post-boot.

For each driconf option "$name", add the system property "dri.$name".  On
Android, Mesa will now search for driconf options among the system
properties as well the the usual places: environment variables and drirc.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
intel: Read Android system properties for INTEL_DEBUG options

On Android, it's difficult to impossible to set environment variables for
activities (that is, Dalvik applications) outside of the initrc. This
difficulty prevents us from setting INTEL_DEBUG options post-boot.  This
patch somewhat fixes the problem by adding a system property for each
INTEL_DEBUG option.  This fix doesn't enable us to set INTEL_DEBUG options
for individual activities, but at least this enables us to set INTEL_DEBUG
options system-wide post-boot.

For each INTEL_DEBUG option "$name", add the system property
"intel_debug.$name". Also add the property "intel_debug.all", which if set
behaves the same as INTEL_DEBUG=all.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>