]> git.saurik.com Git - cycript.git/blame - configure.ac
Actually committing the file that fixed the int to size_t for the lexer warning.
[cycript.git] / configure.ac
CommitLineData
35fa52c0 1#AC_PREREQ([2.65])
c7aa54aa 2AC_INIT([Cycript], [0.9], [saurik@saurik.com], [cycript], [http://www.cycript.org/])
35fa52c0
DWT
3AC_CONFIG_SRCDIR([Console.cpp])
4AX_PROG_BISON([
5 BISON=`echo $YACC | $SED -e 's/ -y//'`
6 BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'`
7], [AC_MSG_ERROR([You need bison 2.4 or greater])])
8AC_PROG_AWK
9AC_MSG_CHECKING([if bison is >= 2.4])
10AX_COMPARE_VERSION([$BISON_VERSION], [ge], [2.4], [AC_MSG_RESULT([yes])], [
11 AC_MSG_RESULT([no])
12 AC_MSG_ERROR([You need bison 2.4 or greater])
13])
14AC_SUBST([BISON])
15AC_PROG_LEX
16AC_MSG_CHECKING([for flex])
17AS_IF([test "`echo \"$LEX\" | $SED 's/^.*\(flex\).*$/\1/'`" = "flex"], [
18 AC_MSG_RESULT([yes])
309b0535 19 AC_SUBST([FLEX], [$LEX])
35fa52c0
DWT
20], [
21 AC_MSG_RESULT([no])
22 AC_MSG_ERROR([You need flex])
23])
309b0535
DWT
24APR_FIND_APR([], [], [1], [1])
25AS_CASE([$apr_found], [yes], [
26 AC_LIB_APPENDTOVAR([CPPFLAGS], [`$apr_config --includes`])
27 AC_SUBST([APR], [`$apr_config --link-ld`])
28], [AC_MSG_ERROR([You need apr])])
29AC_PROG_CXX
35fa52c0
DWT
30AC_PROG_INSTALL
31AM_ICONV
32AS_CASE([$am_cv_func_iconv], [yes], [], [AC_MSG_ERROR([You need iconv])])
33PKG_CHECK_MODULES([WEBKIT], [webkit-1.0], [WEBKIT=yes], [
34 PKG_CHECK_MODULES([WEBKIT], [WebKitGtk], [WEBKIT=yes], [WEBKIT=no])
35])
36AS_CASE([$WEBKIT], [yes], [
37 PKG_CHECK_MODULES([LIBFFI], [libffi])
38], [AC_MSG_WARN(No JavaScript engine!)])
309b0535
DWT
39CHECK_GNU_MAKE
40AS_IF([test x$_cv_gnu_make_command = x], [AC_MSG_ERROR([You need GNU make])])
35fa52c0 41# XXX: gnustep
309b0535 42#AC_PROG_OBJCXX