-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
51 lines (42 loc) · 1.12 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
AC_PREREQ(2.61)
AC_INIT([avmon], [0.4.3], [[email protected]])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([avmon/avmon.c])
AM_INIT_AUTOMAKE([1.10 foreign])
AM_MAINTAINER_MODE
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_STDC
AC_PROG_LIBTOOL
# Checks for libraries.
AC_CHECK_LIB(m, floor)
AC_CHECK_LIB(pthread, pthread_create)
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.6] [gthread-2.0])
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
PKG_CHECK_MODULES([OPENSSL], [openssl])
AC_SUBST(OPENSSL_CFLAGS)
AC_SUBST(OPENSSL_LIBS)
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h errno.h math.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_HEADER_TIME
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_SELECT_ARGTYPES
AC_TYPE_SIGNAL
AC_FUNC_STRERROR_R
AC_CHECK_FUNCS([gethostname gettimeofday memset mkfifo pow select socket strerror strstr])
AC_OUTPUT([
Makefile
avmon/Makefile
mini/Makefile
])