-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
40 lines (33 loc) · 1.25 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
AC_INIT([avalanche], [0.6.0])
AM_INIT_AUTOMAKE
AC_PROG_CXX
AC_PROG_CC
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SUBDIRS([valgrind stp-ver-0.1-11-18-2008])
AC_CONFIG_FILES([Makefile driver/Makefile agent/Makefile
driver/src/Makefile driver/include/Makefile
samples/Makefile samples/simple/Makefile])
AC_CONFIG_HEADER([av_config.h])
#----------------------------------------------------------------------------
# Needed in driver (as well as in valgrind)
#----------------------------------------------------------------------------
AC_ARG_WITH(tmpdir,
[ --with-tmpdir=PATH Specify path for temporary files],
tmpdir="$withval",
tmpdir="/tmp")
AC_DEFINE_UNQUOTED(TMPDIR, "$tmpdir", [Temporary files directory])
#----------------------------------------------------------------------------
# Check is bionic
#----------------------------------------------------------------------------
# This variable will collect the suppression files to be used.
AC_SUBST(DEFAULT_SUPP)
AC_CHECK_HEADER([features.h])
# not really a version check
AC_EGREP_CPP([BIONIC_LIBC], [
#if defined(__ANDROID__)
BIONIC_LIBC
#endif
],
GLIBC_VERSION="bionic")
AM_CONDITIONAL(BIONIC, test "$GLIBC_VERSION" = bionic)
AC_OUTPUT