forked from CESNET/NEMEA-SIoT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
55 lines (45 loc) · 1.27 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([nemea-siot], [1.0], [[email protected]])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign silent-rules subdir-objects])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP
AC_CHECK_PROG(HAVE_PYTHON, python3, python3, [""])
AM_CONDITIONAL([HAVE_PYTHON], [test x$have_python = xyes])
if test x$have_python = xyes; then
AC_DEFINE([HAVE_PYTHON], [1], [Define to 1 if the python3 is available])
else
AC_DEFINE([HAVE_PYTHON], [0], [Define to 0 if the python3 is not available])
fi
# Checks for libraries.
AX_LIBTRAP_CHECK()
AX_UNIREC_CHECK()
# Checks for header files.
AC_CHECK_HEADERS([sys/ioctl.h sys/socket.h unistd.h time.h sys/time.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_CHECK_FUNCS([memset socket])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_SUBDIRS([hci-collector
ble-pairing
wsn-anomaly
lora-airtime
lora-replay
lora-distance
ble-adv-collector
ble-conn-detector
zwave-sdr-sniffer
zwave-collector
zwave-detector])
AC_OUTPUT