-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
48 lines (39 loc) · 1.1 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
# -*- Autoconf -*-
# Process this file with `autogen.sh` to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([mush], [0.1], [[email protected]])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_HEADERS([config.h])
# Add picky CXXFLAGS
CXXFLAGS="-O2"
CXX17_FLAGS="-std=c++17 -pthread"
PICKY_CXXFLAGS="-Wpedantic -Wall -Wextra -Weffc++ -Werror"
AC_SUBST([CXXFLAGS])
AC_SUBST([CXX17_FLAGS])
AC_SUBST([PICKY_CXXFLAGS])
# Checks for programs.
AC_PROG_CXX
AC_PROG_RANLIB
AC_PATH_PROG([CLANG_FORMAT], [clang-format], [])
AS_IF([test x"$CLANG_FORMAT" = x],
[AC_MSG_ERROR([cannot find clang-format])])
# Checks for libraries.
PKG_CHECK_MODULES([SSL],[libssl libcrypto])
# Checks for header files.
AC_LANG_PUSH(C++)
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CXX17_FLAGS"
CPPFLAGS="$save_CPPFLAGS"
AC_LANG_POP(C++)
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([
Makefile
src/Makefile
src/util/Makefile
src/http/Makefile
src/aws/Makefile
src/examples/Makefile
src/tests/Makefile
])
AC_OUTPUT