linker_flags.append('--stdlib=libstdc++')
# Prevents visibility issues in standard headers
conf.define("_DARWIN_C_SOURCE", 1)
+ else:
+ cxx_flags.append('-DBOOST_NO_AUTO_PTR')
if (is_clang and platform == "darwin") or conf.env['build_host'] in ['mavericks', 'yosemite']:
# Silence warnings about the non-existing osx clang compiler flags
autowaf.configure(conf)
autowaf.display_header('Ardour Configuration')
- gcc_versions = fetch_gcc_version(str(conf.env['CC']))
- if not Options.options.debug and gcc_versions[0] == '4' and gcc_versions[1] > '4':
- print('Version 4.5 of gcc is not ready for use when compiling Ardour with optimization.')
- print('Please use a different version or re-configure with --debug')
- exit (1)
-
# systems with glibc have libintl builtin. systems without require explicit
# linkage against libintl.
#
if Options.options.lv2dir:
conf.env['LV2DIR'] = Options.options.lv2dir
else:
- conf.env['LV2DIR'] = os.path.join(conf.env['LIBDIR'], 'ardour' + str(conf.env['MAJOR']), 'lv2')
+ conf.env['LV2DIR'] = os.path.join(conf.env['LIBDIR'], 'ardour' + str(conf.env['MAJOR']), 'LV2')
conf.env['LV2DIR'] = os.path.normpath(conf.env['LV2DIR'])
autowaf.check_pkg(conf, 'vamp-hostsdk', uselib_store='VAMPHOSTSDK', atleast_version='2.1', mandatory=True)
autowaf.check_pkg(conf, 'rubberband', uselib_store='RUBBERBAND', mandatory=True)
+ have_rf64_riff_support = conf.check_cc(fragment = '''
+#include <sndfile.h>
+int main () { int x = SFC_AUTO_DOWNGRADE_RF64; return 0; }
+''',
+ features = 'c',
+ mandatory = False,
+ execute = False,
+ use = 'SNDFILE',
+ msg = 'Checking for sndfile RF64=>RIFF support',
+ okmsg = 'Found',
+ errmsg = 'Not found, no RF64-to-WAV support')
+
+ if have_rf64_riff_support:
+ conf.env.append_value('CXXFLAGS', "-DHAVE_RF64_RIFF")
+ conf.env.append_value('CFLAGS', "-DHAVE_RF64_RIFF")
+
if Options.options.dist_target == 'mingw':
Options.options.fpu_optimization = True
conf.env.append_value('CFLAGS', '-DPLATFORM_WINDOWS')
sub_config_and_use(conf, 'libs/appleutility')
elif Options.options.dist_target != 'mingw':
sub_config_and_use(conf, 'tools/sanity_check')
+ sub_config_and_use(conf, 'tools/gccabicheck')
sub_config_and_use(conf, 'libs/clearlooks-newer')
bld.recurse('libs/appleutility')
elif bld.env['build_target'] != 'mingw':
bld.recurse('tools/sanity_check')
+ bld.recurse('tools/gccabicheck')
bld.recurse('libs/clearlooks-newer')