start working on autotools build system
[ust.git] / configure.in
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])
9#AC_CONFIG_HEADERS([config.h])
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
52AC_ARG_WITH(urcu, [ --with-urcu path Path to userspace RCU source], URCU_PATH="$withval", AC_MSG_ERROR([Must specify urcu path.]))
53AC_ARG_WITH(kcompat, [ --with-kcompat path Path to userspace kcompat source], KCOMPAT_PATH="$withval", AC_MSG_ERROR([Must specify kcompat path.]))
54AC_SUBST(URCU_PATH)
55AC_SUBST(KCOMPAT_PATH)
56
57#AC_CONFIG_FILES([Makefile
58# hello/Makefile
59# libmallocwrap/Makefile
60# libmarkers/Makefile
61# libtracectl/Makefile
62# libtracing/Makefile
63# ust/Makefile
64# ustd/Makefile])
65
66AC_CONFIG_FILES([Makefile libmarkers/Makefile])
67AC_OUTPUT
This page took 0.023665 seconds and 4 git commands to generate.