Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
audiowmark
Commits
9b87c34a
Commit
9b87c34a
authored
Nov 26, 2018
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUILD: use -Wall
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
ddf496fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
0 deletions
+59
-0
configure.ac
configure.ac
+59
-0
No files found.
configure.ac
0 → 100644
View file @
9b87c34a
AC_INIT([audiowmark], [0.0.1])
AC_CONFIG_SRCDIR([src/audiowmark.cc])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([foreign])
AC_PROG_CXX
AC_PROG_LIBTOOL
dnl
dnl sndfile
dnl
AC_DEFUN([AC_SNDFILE_REQUIREMENTS],
[
PKG_CHECK_MODULES(SNDFILE, [sndfile])
AC_SUBST(SNDFILE_CFLAGS)
AC_SUBST(SNDFILE_LIBS)
])
dnl FFTW3
AC_DEFUN([AC_FFTW_CHECK],
[
dnl this used to be optional, but is currently required
PKG_CHECK_MODULES(FFTW, [fftw3f])
SPECTMORPH_HAVE_FFTW=1
if test $SPECTMORPH_HAVE_FFTW -gt 0; then
fftw_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $FFTW_CFLAGS"
AC_MSG_CHECKING([whether FFTW is recent enough])
AC_COMPILE_IFELSE([
AC_LANG_SOURCE([
#include "fftw3.h"
int x = FFTW_WISDOM_ONLY;
])
],[
AC_MSG_RESULT([yes])
],[
AC_MSG_RESULT([no])
SPECTMORPH_HAVE_FFTW=0
])
fi
CFLAGS="$fftw_save_CFLAGS"
AC_DEFINE_UNQUOTED(SPECTMORPH_HAVE_FFTW, $SPECTMORPH_HAVE_FFTW, [Whether libfftw3 is available])
])
AC_SNDFILE_REQUIREMENTS
AC_FFTW_CHECK
# need c++11 mode
AX_CXX_COMPILE_STDCXX_11(ext)
# use -Wall
AC_LANG_PUSH([C++])
AX_CHECK_COMPILE_FLAG([-Wall], [CXXFLAGS="$CXXFLAGS -Wall"])
AC_LANG_POP([C++])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment