Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I check for a specified header file in Waf?

Tags:

waf

I'm using waf to build a C program. I'd like to check for the existence of a particular header file during the configuration phase. Is there a way to do that?

like image 567
mipadi Avatar asked Nov 18 '08 03:11

mipadi


Video Answer


1 Answers

Ah, a bit of googling found the answer to my question: You can use the check method on Configuration objects, like so:

def configure(conf):
    conf.check(header_name="stdbool.h")
like image 140
mipadi Avatar answered Jan 01 '23 05:01

mipadi