blob: 66c8678501b2999fe305bfa5aabd41547849f385 (
plain)
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([libaudioio], 1.0.1)
AC_CONFIG_SRCDIR([src/audioio.cc])
AM_INIT_AUTOMAKE
dnl ======================
dnl Init pkg-config
dnl ======================
PKG_PROG_PKG_CONFIG(0.23)
dnl ======================
dnl Compile with debug options
dnl ======================
AC_ARG_WITH(debug,
[ --with-debug build with debug support (default=no)],
[],
[with_debug=no])
if test x$with_debug == xyes; then
AC_MSG_WARN([*** Building with debug support!])
AC_DEFINE_UNQUOTED(WITH_DEBUG, , [The project is configured to use debug output])
CXXFLAGS="$CXXFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Werror -g -O0"
fi
dnl ======================
dnl Check for alsa library
dnl ======================
PKG_CHECK_MODULES(ALSA, alsa >= 1.0.23)
AC_PROG_CXX
AC_PROG_LIBTOOL
AM_PROG_LIBTOOL
AM_CONFIG_HEADER(config.h)
AC_STDC_HEADERS
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(CXXFLAGS)
AC_SUBST(LDFLAGS)
AC_OUTPUT(
Makefile
src/Makefile
tools/Makefile
audioio.pc)
|