Improve Android support
This patch remove many Android-specific #ifdefs from the Breakpad
source code. This is achieved by providing "fixed-up" platform
headers (e.g. <signal.h> or <sys/user,h>), in the new directory
src/common/android/include/, which masks differences between
the NDK and GLibc headers.
The old "android_link.h" and "android_ucontext.h" are moved
and renamed.
This also requires putting this directory as the first
include path during Android-hosted builds, hence the
modification of Makefile.am and configure.ac
Review URL: https://breakpad.appspot.com/434002
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1017 4c0a9323-5329-0410-9bdc-e9ce6186880e
diff --git a/configure.ac b/configure.ac
index c2fa749..7c7a158 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,12 +54,20 @@
# Only build Linux client libs when compiling for Linux
case $host in
- *-*-linux* | *-android* )
- LINUX_HOST=true
- ;;
+ *-*-linux* | *-android* )
+ LINUX_HOST=true
+ ;;
esac
AM_CONDITIONAL(LINUX_HOST, test x$LINUX_HOST = xtrue)
+# Only use Android support headers when compiling for Android
+case $host in
+ *-android*)
+ ANDROID_HOST=true
+ ;;
+esac
+AM_CONDITIONAL(ANDROID_HOST, test x$ANDROID_HOST = xtrue)
+
AC_ARG_ENABLE(m32,
AS_HELP_STRING([--enable-m32],
[Compile/build with -m32]