1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
AC_INIT([libgee], [0.20.1], [https://bugzilla.gnome.org/enter_bug.cgi?product=libgee], [libgee])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.11 foreign check-news dist-xz no-dist-gzip tar-ustar])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
LT_PREREQ([2.2.6])
LT_INIT([disable-static])
LIBGEE_LT_VERSION="8:1:6"
AC_SUBST(LIBGEE_LT_VERSION)
GLIB_REQUIRED=2.36
VALA_ADD_CHECKFILE([gee/libgee_0_8_la_vala.stamp])
VALA_ADD_CHECKFILE([tests/tests_vala.stamp])
VALA_ADD_VALAFLAGS(--target-glib=$GLIB_REQUIRED)
VALA_ADD_VALAFLAGS(--hide-internal)
AC_ARG_ENABLE(doc, AS_HELP_STRING([--enable-doc], [Enable documentation generation]), enable_doc=$enableval, enable_doc=no)
AM_CONDITIONAL(ENABLE_DOC, test x$enable_doc = xyes)
AS_IF([test "x$enable_doc" != xno],
[AC_PATH_PROG(VALADOC, valadoc, :)
AC_SUBST(VALADOC)
AS_IF([test "$VALADOC" = :],
[AC_MSG_ERROR([valadoc not found])])])
AC_ARG_ENABLE(coverage,
AS_HELP_STRING([--enable-coverage],
[compile with coverage profiling and debug (gcc only)]),
enable_coverage=$enableval,enable_coverage=no)
AM_CONDITIONAL(ENABLE_COVERAGE, test x$enable_coverage != xno)
AS_IF([test "x$enable_coverage" != xno],
[COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage"
COVERAGE_VALAFLAGS="-g"
COVERAGE_LIBS="-lgcov"
AC_SUBST(COVERAGE_CFLAGS)
AC_SUBST(COVERAGE_VALAFLAGS)
AC_SUBST(COVERAGE_LIBS)
AC_PATH_PROG(LCOV, lcov, :)
AC_SUBST(LCOV)
AS_IF([test "$LCOV" = :],
[AC_MSG_ERROR([lcov is necessary for testing code coverage (http://ltp.sourceforge.net/coverage/lcov.php)])])])
AC_ARG_ENABLE(benchmark, AS_HELP_STRING([--enable-benchmark], [Enable benchmark]), enable_benchmark=$enableval, enable_benchmark=no)
AM_CONDITIONAL(ENABLE_BENCHMARK, test x$enable_benchmark = xyes)
AS_IF([test x$enable_benchmark = xyes],
[VALA_ADD_CHECKFILE([benchmark/benchmarks_vala.stamp])])
PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
AC_ARG_ENABLE(internal-asserts, [AS_HELP_STRING([--disable-internal-asserts], [Disables the internal asserts]))],
enable_internal_asserts=$enableval, enable_internal_asserts=yes)
AS_IF([test "x$enable_internal_asserts" = xno], [VALA_ADD_VALAFLAGS(-D DISABLE_INTERNAL_ASSERTS)])
AC_ARG_ENABLE(consistency-check, [AS_HELP_STRING([--enable-consistency-check], [Enables (very) expensive consistency checks. It might affect the asymptotic performance.])],
enable_consistency_check=$enableval, enable_consistency_check=no)
AS_IF([test "x$enable_consistency_check" != xno], [VALA_ADD_VALAFLAGS(-D CONSISTENCY_CHECKS)])
AX_REQUIRE_DEFINED([GOBJECT_INTROSPECTION_CHECK])
GOBJECT_INTROSPECTION_CHECK([0.9.0])
VALA_CHECK([0.25.1])
AC_OUTPUT([Makefile
gee-0.8.pc
benchmark/Makefile
doc/Makefile
gee/Makefile
tests/Makefile])
|