-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
58 lines (49 loc) · 1.8 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
49
50
51
52
53
54
55
56
57
58
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(sineshaper, 0.4.2)
AC_CONFIG_AUX_DIR(.)
AM_INIT_AUTOMAKE
AC_PROG_LIBTOOL
AC_CONFIG_SRCDIR([src/common/dssi_shm.c])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# Checks for libraries.
PKG_CHECK_MODULES(LIBGLADEMM, [libglademm-2.4 >= 2.4.1 \
gtkmm-2.4 >= 2.6.0 \
gthread-2.0 >= 2.4.5])
PKG_CHECK_MODULES(DSSI, dssi >= 0.9)
PKG_CHECK_MODULES(LIBLO, liblo >= 0.18)
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset pow strdup])
# Check for LADSPA and DSSI directories
AC_MSG_CHECKING([where to install DSSI plugins])
AC_ARG_WITH(dssi-dir, AS_HELP_STRING([--with-dssi-dir=DIR], [the directory that DSSI plugins should be installed in]), [dssidir=$withval], [dssidir=$libdir/dssi])
AC_MSG_RESULT($dssidir)
AC_SUBST(dssidir)
# Checking whether to build with optimisation flags or debug flags
debug_cflags="-g -O2 -Wall"
opt_cflags="-O3 -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -DNDEBUG -Wall"
AC_MSG_CHECKING([whether to build with debugging info])
AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [build with debugging information (may slow down execution)]))
if test x$enable_debug == xyes; then
CXXFLAGS=$debug_cflags
CFLAGS=$debug_cflags
AC_MSG_RESULT(yes)
else
CFLAGS=$opt_cflags
CXXFLAGS=$opt_cflags
AC_MSG_RESULT(no)
fi
AC_CONFIG_FILES([Makefile src/Makefile src/common/Makefile src/components/Makefile src/sineshaper/Makefile])
AC_OUTPUT