X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/f2c357f9fb922258dac9f808df0143e548c4bfdc..a6cb961a4121bd8ff929a9e468dac35f2e4e9c42:/configure.ac diff --git a/configure.ac b/configure.ac index 5ae7a76..84756bc 100644 --- a/configure.ac +++ b/configure.ac @@ -298,6 +298,18 @@ AM_CONDITIONAL([CY_RUBY], [test "x$CY_RUBY" = x1]) AM_CONDITIONAL([CY_PYTHON], [test "x$CY_PYTHON" = x1]) AM_CONDITIONAL([CY_OBJECTIVEC], [test "x$CY_OBJECTIVEC" = x1]) +AC_COMPILE_IFELSE([AC_LANG_SOURCE([ +#ifndef __ANDROID__ +#error +#endif +])], [ + AC_SUBST([CY_ANDROID], [1]) +], [ + AC_SUBST([CY_ANDROID], [0]) +]) + +AM_CONDITIONAL([CY_ANDROID], [test "x$CY_ANDROID" = x1]) + AC_ARG_WITH([libclang], AS_HELP_STRING([--with-libclang], [build bridge definitions using this libclang]), [], [with_libclang=no]) AS_IF([test "x$with_libclang" != "xno"], [