Support both C and C++ headers

This commit is contained in:
leffmann
2016-01-18 22:35:50 +01:00
parent a2ff468955
commit 99adc64850
2 changed files with 18 additions and 10 deletions
+3 -2
View File
@@ -241,13 +241,14 @@ def build():
path.join('{host}', 'bin'),
environ['PATH']])
setvar(cc = environ['CC'], cxx = environ['CXX'])
"""
When we have a working compiler in our path, we can also check if the
required headers/libraries are present.
"""
require_header('<python2.7/python.h>')
require_header('<ncurses.h>', symbol = 'NCURSES_VERSION_MAJOR', value = 5)
require_header('ncurses.h', 'c', 'libncurses-dev 5.x missing', 'NCURSES_VERSION_MAJOR', 5)
unpack('{m4}')
configure('{m4}', '--prefix={host}')