summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-10-23 10:21:52 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-10-23 10:21:52 +0200
commit12857d9cf93f8599e25ad75ef805b597c2c0134e (patch)
treec3f7505454f95ebd10ca1090bd4882bdae627035
parenta56380f2ad431e711ee114f766275770da415507 (diff)
downloadgst-libav-12857d9cf93f8599e25ad75ef805b597c2c0134e.tar.gz
configure: fix os type configure option for android
-rw-r--r--configure.ac10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 3725597..1166b9c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -306,7 +306,15 @@ else
fi
# if we are cross-compiling, tell libav so
- target_os=`echo $host_os | sed 's/-gnu//'`
+ case $host in
+ *android*)
+ target_os=linux
+ ;;
+ *)
+ target_os=`echo $host_os | sed 's/-gnu//'`
+ ;;
+ esac
+
if test "x$cross_compiling" = xyes; then
emblibav_configure_args="$emblibav_configure_args --enable-cross-compile \
--target-os=$target_os --arch=$host_cpu --cross-prefix=$host_alias-"