1 AC_INIT([vala], [0.5.3], [j@bitron.ch], [vala])
2 AC_CONFIG_SRCDIR([Makefile.am])
3 AC_CONFIG_HEADERS(config.h)
4 AM_INIT_AUTOMAKE([dist-bzip2])
14 if test "$LEX" = :; then
15 AC_MSG_ERROR([flex not found but required])
18 AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc, :)
19 if test "$YACC" = :; then
20 AC_MSG_ERROR([bison not found but required])
23 AC_PATH_PROG(VALAC, valac, valac)
30 AC_ARG_ENABLE(vapigen, AS_HELP_STRING([--enable-vapigen], [Enable VAPI generator]), enable_vapigen=$enableval, enable_vapigen=no)
31 AM_CONDITIONAL(ENABLE_VAPIGEN, test x$enable_vapigen = xyes)
33 AC_ARG_ENABLE(gen-project, AS_HELP_STRING([--enable-gen-project], [Enable project generator]), enable_gen_project=$enableval, enable_gen_project=no)
34 AM_CONDITIONAL(ENABLE_GEN_PROJECT, test x$enable_gen_project = xyes)
39 PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED)
44 PKG_CHECK_MODULES(GMODULE, gmodule-2.0 >= $GLIB_REQUIRED)
46 AC_SUBST(GMODULE_CFLAGS)
47 AC_SUBST(GMODULE_LIBS)
49 PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= $GLIB_REQUIRED)
51 AC_SUBST(GTHREAD_CFLAGS)
52 AC_SUBST(GTHREAD_LIBS)
54 if test x$enable_gen_project = xyes; then
55 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED)
61 AC_PATH_PROG([XSLTPROC], [xsltproc], :)
62 AM_CONDITIONAL(HAVE_XSLTPROC, test "$XSLTPROC" != :)
64 AC_CONFIG_FILES([Makefile
75 gobject-introspection/Makefile
77 vapigen/vala-gen-introspect/Makefile
78 vapigen/vala-gen-introspect/vala-gen-introspect
80 gen-project/licenses/Makefile])