Browse Source

wscript: Set HAVE_OPUS=0 if custom headers are missing

As reported by Peter Nelson, waf's check_cfg sets HAVE_OPUS=1 if the
pkg-config check is successful, however, the code requires OPUS custom
headers.

So if a dev package without custom headers is installed, explicitly
reset HAVE_OPUS to 0 to fix the FTBFS.
tags/v1.9.10
Adrian Knoth 12 years ago
parent
commit
44aa9319ea
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      wscript

+ 2
- 0
wscript View File

@@ -179,6 +179,8 @@ def configure(conf):
if conf.check_cc(header_name='opus/opus_custom.h', mandatory=False):
conf.define('HAVE_OPUS', 1)
conf.env['WITH_OPUS'] = True
else:
conf.define('HAVE_OPUS', 0)


conf.env['LIB_PTHREAD'] = ['pthread']


Loading…
Cancel
Save