Make CTF metadata parser reentrant
[babeltrace.git] / configure.ac
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_INIT([babeltrace], [0.1], [mathieu dot desnoyers at efficios dot com])
5 AC_CONFIG_AUX_DIR([config])
6 AC_CANONICAL_TARGET
7 AC_CANONICAL_HOST
8 AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip])
9 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
10
11 AC_CONFIG_MACRO_DIR([m4])
12
13 AM_PROG_MKDIR_P
14
15 AC_CONFIG_HEADERS([config.h])
16
17 # Checks for programs.
18 AC_PROG_CC
19 AC_PROG_MAKE_SET
20 AC_PROG_LIBTOOL
21 AC_PROG_YACC
22 AC_PROG_LEX
23
24 AM_PATH_GLIB_2_0(2.4.0, ,AC_MSG_ERROR([glib is required in order to compile BabelTrace - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule)
25
26 # Checks for typedefs, structures, and compiler characteristics.
27 AC_C_INLINE
28 AC_TYPE_PID_T
29 AC_TYPE_SIZE_T
30
31 # Checks for library functions.
32 AC_FUNC_MALLOC
33 AC_FUNC_MMAP
34 AC_CHECK_FUNCS([bzero gettimeofday munmap strtoul])
35
36 pkg_modules="gmodule-2.0 >= 2.0.0"
37 PKG_CHECK_MODULES(GMODULE, [$pkg_modules])
38 AC_SUBST(PACKAGE_LIBS)
39
40 LIBS="$LIBS $GMODULE_LIBS"
41 PACKAGE_CFLAGS="$GMODULE_CFLAGS -Wall -Wformat"
42 AC_SUBST(PACKAGE_CFLAGS)
43
44 AC_CONFIG_FILES([
45 Makefile
46 types/Makefile
47 formats/Makefile
48 formats/ctf/Makefile
49 formats/ctf/types/Makefile
50 formats/ctf/metadata/Makefile
51 converter/Makefile
52 tests/Makefile
53 ])
54 AC_OUTPUT
This page took 0.04891 seconds and 5 git commands to generate.