]> git.saurik.com Git - cycript.git/blobdiff - configure.ac
Instance's toPointer() should return as CFTypeRef.
[cycript.git] / configure.ac
index 5ae7a7685cbe2430bc3d297eda1f25e91ec575d7..84756bcd2cb06dda88791cae6e0b070f80d50153 100644 (file)
@@ -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])
 
 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"], [
 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"], [