-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfigure.ac
48 lines (43 loc) · 1.17 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
AC_INIT([alexaagent], [201609])
AM_INIT_AUTOMAKE([foreign nostdinc dist-bzip2 no-dist-gzip])
AC_CONFIG_SRCDIR([main.cc])
PKG_CHECK_MODULES([OPENAL], [openal >= 1.1])
PKG_CHECK_MODULES([LIBAVCODEC], [libavcodec])
PKG_CHECK_MODULES([LIBAVFORMAT], [libavformat])
PKG_CHECK_MODULES([LIBAVUTIL], [libavutil])
PKG_CHECK_MODULES([OPENSSL], [openssl >= 1.0])
PKG_CHECK_MODULES([LIBNGHTTP2_ASIO], [libnghttp2_asio >= 1.10])
if test "${CXXFLAGS+set}" != set; then
CXXFLAGS=
fi
AC_PROG_CXX
AC_C_INLINE
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_ARG_ENABLE(
[debug],
AS_HELP_STRING([--enable-debug], [turn on debugging]),
[case "${enableval}" in
yes) debug=true ;;
no) debug=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
esac],
[debug=false]
)
AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])
AC_ARG_ENABLE(
[profile],
AS_HELP_STRING([--enable-profile], [turn on profiling]),
[case "${enableval}" in
yes) profile=true ;;
no) profile=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-profile]) ;;
esac],
[profile=false]
)
AM_CONDITIONAL([PROFILE], [test x$profile = xtrue])
AM_CONFIG_HEADER([configure.h])
AC_CONFIG_FILES([
Makefile
])
AC_OUTPUT