Fix session list locking
[lttng-tools.git] / configure.ac
CommitLineData
fac6795d
DG
1AC_INIT([lttng-tools], [0.0.1], [david.goulet@polymtl.ca], [http://lttng.org])
2AC_CONFIG_AUX_DIR([config])
3AC_CONFIG_MACRO_DIR([config])
4AM_INIT_AUTOMAKE
5AM_SILENT_RULES([yes])
6
7AC_CHECK_HEADERS([ \
8 sys/types.h unistd.h fcntl.h string.h pthread.h limits.h \
9 signal.h stdlib.h sys/un.h sys/socket.h stdlib.h stdio.h \
10 getopt.h sys/ipc.h sys/shm.h popt.h grp.h \
11])
12
13# Check for pthread
14AC_CHECK_LIB([pthread], [pthread_create], [],
15 [AC_MSG_ERROR([Cannot find libpthread. Use [LDFLAGS]=-Ldir to specify its location.])]
16)
17
18# Check libpopt
19AC_CHECK_LIB([popt], [poptGetContext], [],
20 [AC_MSG_ERROR([Cannot find libpopt. Use [LDFLAGS]=-Ldir to specify its location.])]
21)
22
fac6795d 23# Check liburcu
fac6795d
DG
24AC_CHECK_DECL([cds_list_add], [],
25 [AC_MSG_ERROR([liburcu 0.5.4 or newer is needed])], [[#include <urcu/list.h>]]
26)
27
aaf97519 28CFLAGS="-Wall $CFLAGS -g -fno-strict-aliasing"
fac6795d
DG
29
30AC_PROG_CC
31AC_PROG_LIBTOOL
32
33AC_CONFIG_FILES([
34 Makefile
35 include/Makefile
ee0326c0 36 libkernelctl/Makefile
1ce86c9a 37 liblttkconsumerd/Makefile
fac6795d
DG
38 liblttngctl/Makefile
39 liblttsessiondcomm/Makefile
62d3069f
DG
40 libustctl/Makefile
41 libustcomm/Makefile
2b1173d8 42 ltt-kconsumerd/Makefile
6e0ca3c2 43 ltt-sessiond/Makefile
fac6795d
DG
44 lttng/Makefile
45 tests/Makefile
6e0ca3c2 46 tests/ltt-sessiond/Makefile
fac6795d
DG
47])
48
49AC_OUTPUT
This page took 0.024489 seconds and 4 git commands to generate.