From 8c9d2d3266d5ccbe6159df0b6436982e6a29b928 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Mon, 10 Sep 2012 18:00:36 +0200 Subject: [PATCH] configure: fix build with the Android NDK toolchain --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b3ea8f2..972e92b 100644 --- a/configure.ac +++ b/configure.ac @@ -118,7 +118,11 @@ AC_CHECK_SIZEOF(wchar_t) # Checks for compiler characteristics. changequote(,)dnl if test "x$GCC" = "xyes"; then - CFLAGS="$CFLAGS -Wall -ansi " + CFLAGS="$CFLAGS -Wall " + case $host in + *android*) ;; + *) CFLAGS="$CFLAGS -ansi " ;; + esac fi changequote([,])dnl -- 1.7.9.5