Re: [INTERNALS-WIN] Handling missing required files in config.w32

From: Date: Fri, 06 Aug 2010 15:01:34 +0000
Subject: Re: [INTERNALS-WIN] Handling missing required files in config.w32
References: 1  Groups: php.internals.win 
Request: Send a blank email to internals-win+get-710@lists.php.net to get a copy of this message
Hello Richard 2010/8/6 Richard Quadling <rquadling@gmail.com>: > 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 kalle@php.net

« previous php.internals.win (#710) next »