X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/ccb4e34c0af3a2d318ce9c11ba1e98e1e1163b77..51b2dc6b0c969f9297c8464cb91e93d65819e0ae:/configure.ac diff --git a/configure.ac b/configure.ac index a8ef86b..88e3230 100644 --- a/configure.ac +++ b/configure.ac @@ -93,6 +93,9 @@ AC_DEFUN([CY_TRY], [ AS_IF([test "x$cy_good" = x1], ]$4[, ]$5[) ]) dnl }}} +AC_ARG_VAR([LFLAGS], [flex flags]) +AS_IF([test "x$LFLAGS" = x], [LFLAGS="--full --ecs"]) + AC_DEFUN([CY_TEST_FLAG_], [ AC_LANG_PUSH(]$2[) AC_MSG_CHECKING([for ]]$4[[ ]]$1[) @@ -193,6 +196,10 @@ AC_DEFUN([CY_CHECK_PKG_CONFIG_LIBFFI], [ AM_CONDITIONAL([CY_EXECUTE], [test "x$CY_EXECUTE" = x1]) AS_CASE([$CY_EXECUTE], [1], [ + CY_LT_LIB([LTLIBUV], [AC_CHECK_HEADERS([uv.h], [ + AC_SEARCH_LIBS([uv_loop_init], [uv]) + ])]) + AC_CHECK_HEADERS([ffi.h ffi/ffi.h], [break]) CY_LT_LIB([LTLIBFFI], AS_IF([test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno], [