-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
45 lines (34 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
41
42
43
44
45
32;331;0c# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT(EvServer_PgAnalyzer, 0.0.16, [email protected])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([evs_api.c])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
AC_PROG_MAKE_SET
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h])
AC_CHECK_HEADER(/usr/include/ev.h,
LIBEV_LIB='-lev',
AC_MSG_WARN(*** libev header files not found ***))
AC_SUBST(LIBEV_LIB)
AC_CHECK_HEADER(/usr/include/openssl/ssl.h,
LIBSSL_LIB='-lssl',
AC_MSG_WARN(*** Openssl header files not found ***))
AC_SUBST(LIBSSL_LIB)
AC_CHECK_HEADER(/usr/include/openssl/crypto.h,
LIBCRYPTO_LIB='-lcrypto',
AC_MSG_WARN(*** Openssl/crypto header files not found ***))
AC_SUBST(LIBCRYPTO_LIB)
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_PID_T
AC_TYPE_SSIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([gettimeofday memset socket strchr strerror strncasecmp strstr])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT