Commit 59eb19a9 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Detect Android in configure

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 6436e122
...@@ -403,6 +403,23 @@ case "${build_os}" in ...@@ -403,6 +403,23 @@ case "${build_os}" in
;; ;;
esac esac
dnl Android is linux, but a bit different
AS_IF([test "$SYS" = linux],[
AC_MSG_CHECKING([for an Android system])
AC_PREPROC_IFELSE([AC_LANG_PROGRAM(
[[#ifndef __ANDROID__
# error Not Android
#endif
]],[[;]])
],[
HAVE_ANDROID="1"
AC_MSG_RESULT([yes])
],[
AC_MSG_RESULT([no])
])
])
AM_CONDITIONAL(HAVE_ANDROID, test "${HAVE_ANDROID}" = "1")
dnl dnl
dnl Libtool dnl Libtool
dnl It's very bad, but our former custom system was worst dnl It's very bad, but our former custom system was worst
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment