-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
73 lines (52 loc) · 1.37 KB
/
configure.ac
File metadata and controls
73 lines (52 loc) · 1.37 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
AC_INIT([arrowheads], 1.0)
AC_CONFIG_MACRO_DIRS([m4])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([subdir-objects])
AM_SILENT_RULES([yes])
AC_PROG_CC
AC_LANG([C++])
AC_PROG_CXX([clang++ g++])
AX_CXX_COMPILE_STDCXX([17], [noext], [mandatory])
LT_INIT
AC_DEFINE([UNIX], [], [Unix/Linux])
AC_HEADER_STDC
dnl
dnl Configure the logger
dnl
CONFIGURE_LOGGING
dnl
dnl Configure veryslim
dnl
CONFIGURE_STRIPLITERALS
dnl
dnl Configure command line parameter parser
dnl
AC_CHECK_HEADER([getopt.h])
AC_CHECK_FUNCS([getopt])
dnl
dnl Check case insensitive comparison functions
dnl
AC_CHECK_HEADER([strings.h])
AC_CHECK_FUNCS([strcasecmp])
dnl
dnl Configure the server
dnl
AC_CHECK_HEADER([unistd.h], [], [AC_MSG_FAILURE([Could not find mandatory unistd.h.])])
AC_CHECK_FUNCS([pipe read write])
AC_CHECK_HEADER([sys/signalfd.h])
AC_CHECK_FUNCS([signalfd])
AC_CHECK_LIB([ssl], [SSL_new], [], [AC_MSG_FAILURE([Could not find ssl])])
AC_CHECK_LIB([crypto], [OPENSSL_config], [], [AC_MSG_FAILURE([Could not find crypto])])
dnl
dnl Configure WebGet
dnl
AC_CHECK_HEADERS([curl/curl.h])
AC_CHECK_LIB([curl], [curl_easy_perform], [], [AC_MSG_FAILURE([Could not find curl])])
#AM_CONDITIONAL([ENABLE_HTTPS],[true])
#WITH_MYSQL()
#MYSQL_NEED_FORK([mariadb])
#MYSQL_NEED_VERSION([5.5.34])
#MYSQL_USE_CLIENT_API()
#MYSQL_SUBST()
AC_CONFIG_FILES([Makefile src/Makefile test/Makefile])
AC_OUTPUT