15
15
dnl initialize autoconf, this should be the first thing in configure.ac
16
16
dnl arguments: full package name, version, email address for bug reports,
17
17
dnl tarball name, homepage
18
AC_INIT([SoundScape Renderer (SSR)],
18
AC_INIT([SSR (SoundScape Renderer)],
19
19
[m4_esyscmd_s([git describe || date +$USER%Y%m%d%H%M])],
20
20
[ssr@spatialaudio.net],
22
[http://spatialaudio.net/ssr])
22
[http://spatialaudio.net/ssr/])
24
SSR_COPYRIGHT="Copyright © 2014 Institut für Nachrichtentechnik, Universität Rostock\nCopyright © 2012 Quality & Usability Lab, Telekom Innovation Labs, TU Berlin\n\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
26
AC_DEFINE_UNQUOTED([SSR_COPYRIGHT], ["$SSR_COPYRIGHT"], [SSR copyright notice])
24
28
dnl read AUTHORS file and save (reformatted by sed) to SSR_AUTHORS(_QT)
25
SSR_AUTHORS=esyscmd([cat AUTHORS | sed -e :a -e '$!N;s/\n/\\n/;ta' -e 's/.*/"&"/'])
29
SSR_AUTHORS=esyscmd([cat AUTHORS | sed -e :a -e '$!N;s/\n\n/\\n/;ta' -e '$!N;s/\n/\\n/;ta' -e 's/.*/"&"/'])
26
30
SSR_AUTHORS_QT=esyscmd([cat AUTHORS | sed -e 's|^.*:|<EM>&</EM>|' -e 's/ /\ /g' -e 's/é/\é/g' -e 's/ö/\ö/g' | sed -e :a -e '$!N;s/\n/<BR>/;ta' -e 's/.*/"&"/'])
28
32
dnl reformat AUTHORS and write to authors.tex for the user manual:
130
134
dnl AC_DEFINE_UNQUOTED performs additional shell expansions, e.g. substitution
131
135
dnl of variable with value.
133
dnl TODO: option(s) for selecting a subset of renderers!
134
dnl Note: For full list of possible executables see src/Makefile.am
135
SSR_executables="ssr-binaural ssr-wfs ssr-generic ssr-brs ssr-nfc-hoa ssr-vbap ssr-aap"
137
AM_MISSING_PROG(HELP2MAN, help2man)
140
[all renderers (use --enable-xyz to re-enable certain renderers)],
142
AS_IF([test x$enable_all = xno], [have_all=no])
145
ENABLE_AUTO([binaural], [binaural renderer (using HRIRs)],
147
AS_IF([test x$enable_binaural = xyes -o x$have_all = xyes],
148
[SSR_executables="$SSR_executables ssr-binaural"])
151
ENABLE_AUTO([brs], [Binaural Room Synthesis renderer (using BRIRs)],
153
AS_IF([test x$enable_brs = xyes -o x$have_all = xyes],
154
[SSR_executables="$SSR_executables ssr-brs"])
157
ENABLE_AUTO([wfs], [Wave Field Synthesis renderer],
159
AS_IF([test x$enable_wfs = xyes -o x$have_all = xyes],
160
[SSR_executables="$SSR_executables ssr-wfs"])
163
ENABLE_AUTO([vbap], [Vector Base Amplitude Panning renderer],
165
AS_IF([test x$enable_vbap = xyes -o x$have_all = xyes],
166
[SSR_executables="$SSR_executables ssr-vbap"])
169
ENABLE_AUTO([aap], [Ambisonics Amplitude Panning renderer],
171
AS_IF([test x$enable_aap = xyes -o x$have_all = xyes],
172
[SSR_executables="$SSR_executables ssr-aap"])
175
ENABLE_AUTO([generic], [generic renderer],
177
AS_IF([test x$enable_generic = xyes -o x$have_all = xyes],
178
[SSR_executables="$SSR_executables ssr-generic"])
181
ENABLE_AUTO([nfc-hoa],[Near-Field-Compensated Higher-Order-Ambisonics renderer],
183
AS_IF([test x$enable_nfc_hoa = xyes -o x$have_all = xyes],
184
[SSR_executables="$SSR_executables ssr-nfc-hoa"])
187
dnl Note: For what happens with SSR_executables see src/Makefile.am
136
188
AC_SUBST(SSR_executables)
138
190
dnl Checking for sndfile
742
ENABLE_AUTO([isatty], [support for isatty()],
744
AC_CHECK_HEADER([unistd.h], , [have_isatty=no])
745
AC_SEARCH_LIBS([isatty], , , [have_isatty=no])
690
748
dnl trying to mimic the default setting
691
749
pkgdatadir="\$(datadir)/$PACKAGE"
723
781
AC_SUBST(DEBUGGING_FLAGS)
725
783
dnl List of output files generated by AC_OUTPUT from their respective *.in files
726
AC_CONFIG_FILES([Makefile src/Makefile data/Makefile data/MacOSX/Makefile])
784
AC_CONFIG_FILES([Makefile src/Makefile man/Makefile])
785
AC_CONFIG_FILES([data/Makefile data/MacOSX/Makefile])
727
786
AC_CONFIG_FILES([data/MacOSX/Info.plist data/MacOSX/DMG-Layout.applescript])
729
788
dnl AC_OUTPUT should be the last command (except maybe some status messages)