Commit | Line | Data |
---|---|---|
1304f3df PMF |
1 | # -*- Autoconf -*- |
2 | # Process this file with autoconf to produce a configure script. | |
3 | ||
4 | #AC_PREREQ([2.63]) | |
5 | AC_INIT([ust], [0.0], [pierre-marc dot fournier at polymtl dot ca]) | |
6 | AC_CONFIG_AUX_DIR(make_scripts) | |
7 | AM_INIT_AUTOMAKE([0.0 foreign]) | |
8 | AC_CONFIG_SRCDIR([ust/localerr.h]) | |
b4512257 | 9 | AC_CONFIG_HEADERS([config.h]) |
1304f3df PMF |
10 | |
11 | # Checks for programs. | |
12 | AC_PROG_CC | |
13 | AC_PROG_MAKE_SET | |
14 | AC_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. | |
34 | AC_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. | |
49 | AC_FUNC_MALLOC | |
50 | AC_CHECK_FUNCS([gettimeofday munmap socket strerror strtol]) | |
51 | ||
70551b5e | 52 | AC_ARG_WITH(urcu, [ --with-urcu=path Path to userspace RCU library source], URCU_PATH="$withval", AC_MSG_ERROR([Must specify liburcu path.])) |
0d31b2da | 53 | AC_CHECK_FILE("$URCU_PATH/urcu.h", , AC_MSG_ERROR([Cannot find urcu.h in liburcu directory])) |
70551b5e | 54 | AC_ARG_WITH(kcompat, [ --with-kcompat=path Path to libkcompat source], KCOMPAT_PATH="$withval", AC_MSG_ERROR([Must specify libkcompat path.])) |
0d31b2da | 55 | AC_CHECK_FILE("$KCOMPAT_PATH/kcompat.h", , AC_MSG_ERROR([Cannot find kcompat.h in libkcompat directory])) |
1304f3df PMF |
56 | AC_SUBST(URCU_PATH) |
57 | AC_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 | 68 | AC_CONFIG_FILES([Makefile libust/Makefile hello/Makefile libmallocwrap/Makefile ustd/Makefile ust/Makefile]) |
1304f3df | 69 | AC_OUTPUT |