hello/run: update library paths
[lttng-ust.git] / configure.ac
CommitLineData
1304f3df
PMF
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4#AC_PREREQ([2.63])
5AC_INIT([ust], [0.0], [pierre-marc dot fournier at polymtl dot ca])
6AC_CONFIG_AUX_DIR(make_scripts)
7AM_INIT_AUTOMAKE([0.0 foreign])
8AC_CONFIG_SRCDIR([ust/localerr.h])
b4512257 9AC_CONFIG_HEADERS([config.h])
1304f3df
PMF
10
11# Checks for programs.
12AC_PROG_CC
13AC_PROG_MAKE_SET
14AC_PROG_LIBTOOL
15
16## Checks for libraries.
17## FIXME: Replace `main' with a function in `-ldl':
18#AC_CHECK_LIB([dl], [main])
19## FIXME: Replace `main' with a function in `-lmarkers':
20#AC_CHECK_LIB([markers], [main])
21## FIXME: Replace `main' with a function in `-lpthread':
22#AC_CHECK_LIB([pthread], [main])
23## FIXME: Replace `main' with a function in `-ltracectl':
24#AC_CHECK_LIB([tracectl], [main])
25## FIXME: Replace `main' with a function in `-ltracing':
26#AC_CHECK_LIB([tracing], [main])
27## FIXME: Replace `main' with a function in `-lurcu':
28#AC_CHECK_LIB([urcu], [main])
29
30# Checks for header files.
31#AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
32
33# Checks for typedefs, structures, and compiler characteristics.
34AC_C_INLINE
35#AC_TYPE_INT16_T
36#AC_TYPE_INT32_T
37#AC_TYPE_INT64_T
38#AC_TYPE_INT8_T
39#AC_TYPE_PID_T
40#AC_TYPE_SIZE_T
41#AC_TYPE_SSIZE_T
42#AC_TYPE_UINT16_T
43#AC_TYPE_UINT32_T
44#AC_TYPE_UINT64_T
45#AC_TYPE_UINT8_T
46#AC_CHECK_TYPES([ptrdiff_t])
47
48# Checks for library functions.
49AC_FUNC_MALLOC
50AC_CHECK_FUNCS([gettimeofday munmap socket strerror strtol])
51
70551b5e 52AC_ARG_WITH(urcu, [ --with-urcu=path Path to userspace RCU library source], URCU_PATH="$withval", AC_MSG_ERROR([Must specify liburcu path.]))
0d31b2da 53AC_CHECK_FILE("$URCU_PATH/urcu.h", , AC_MSG_ERROR([Cannot find urcu.h in liburcu directory]))
70551b5e 54AC_ARG_WITH(kcompat, [ --with-kcompat=path Path to libkcompat source], KCOMPAT_PATH="$withval", AC_MSG_ERROR([Must specify libkcompat path.]))
0d31b2da 55AC_CHECK_FILE("$KCOMPAT_PATH/kcompat.h", , AC_MSG_ERROR([Cannot find kcompat.h in libkcompat directory]))
1304f3df
PMF
56AC_SUBST(URCU_PATH)
57AC_SUBST(KCOMPAT_PATH)
58
59#AC_CONFIG_FILES([Makefile
60# hello/Makefile
61# libmallocwrap/Makefile
62# libmarkers/Makefile
63# libtracectl/Makefile
64# libtracing/Makefile
65# ust/Makefile
66# ustd/Makefile])
67
82b1a169 68AC_CONFIG_FILES([Makefile libust/Makefile hello/Makefile libmallocwrap/Makefile ustd/Makefile ust/Makefile])
1304f3df 69AC_OUTPUT
This page took 0.026259 seconds and 4 git commands to generate.