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