Re: [INTERNALS-WIN] Handling missing required files in config.w32
[email protected] (Kalle Sommer Nielsen)
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
Hello Richard 2010/8/6 Richard Quadling <[email protected]>: > Hi. > > Is it possible to have something like a ... > > CHECK_HEADER_ADD_INCLUDE('required.h', 'CFLAGS_MYEXT'); > > such that if required.h cannot be found then the extension isn't added > to the list of extensions to build. > CHECK_HEADER_ADD_INCLUDE() returns a boolean value, so you can use it in a conditional like so: if(!CHECK_HEADER_ADD_INCLUDE('required.h', 'CFLAGS_MYEXT')) { WARNING('Unable to enable myext, headers/libraries not found'); } else { EXTENSION(...); } -- regards, Kalle Sommer Nielsen [email protected]