libcycript_sys_la_SOURCES += Cycript.tab.cc
libcycript_sys_la_SOURCES += lex.cy.cpp
+if CY_CONSOLE
bin_PROGRAMS = cycript
cycript_SOURCES = Console.cpp Display.cpp
cycript_LDADD = libcycript.la libcycript-sys.la $(LTLIBAPR) $(LTLIBREADLINE) $(LTLIBTERMCAP) -ldl
entitle = $(ldid) -Scycript.xml
filters = $(CY_FILTERS)
+endif
if CY_EXECUTE
libcycript_sys_la_SOURCES += sig/ffi_type.cpp sig/parse.cpp sig/copy.cpp
if CY_MACH
libcycript_sys_la_SOURCES += Handler.mm
+
+if CY_CONSOLE
cycript_SOURCES += Mach/Inject.cpp
AM_CPPFLAGS += -DCY_ATTACH
$(srcdir)/trampoline.sh $@ .libs/libTrampoline.t.dylib Trampoline $(SED) $(LIPO) $(NM) $(OTOOL)
! grep '## symbol stub for:' $@
endif
+endif
libcycript_sim_la_SHORTNAME = sim
if CY_IOS_SIMULATOR
], [CY_CHECK_JAVASCRIPT])
dnl }}}
+AC_ARG_ENABLE([console], AS_HELP_STRING([--disable-console], [disable console]))
+AM_CONDITIONAL([CY_CONSOLE], [test "x$enable_console" != "xno"])
+
+AM_COND_IF([CY_CONSOLE], [
dnl APR_FIND_APR {{{
AS_IF([test "x$LTLIBAPR" != x], [
AC_SUBST([LTLIBAPR])
AC_MSG_ERROR([missing "libapr"])
])])
dnl }}}
+])
AC_DEFUN([CY_CHECK_PKG_CONFIG_LIBFFI], [
PKG_CHECK_MODULES([LIBFFI], [libffi], [