Re: [PECL-DEV] --enable-ext VS --with-ext
[email protected] (Rasmus Lerdorf)
| Newsgroups | php.pecl.dev |
|---|---|
| Message-ID | <[email protected]> |
Things that require a 3rd-party library use --with. Extension like json and exif that include the entire implementations of exif and json handling in them would use --enable, but extension like mysql and oci that need the client libraries to do the actual work use --with. -Rasmus On 8/4/10 10:22 AM, j adams wrote: > I'm reading the comments in the config.m4 generated by ext_skel and trying > to understand under what circumstances one would use --enable-ext and when > one would use --with-ext. > > What constitutes "something external" ? > > > > > dnl If your extension references something external, use with: > > dnl PHP_ARG_WITH(fmog, for fmog support, > dnl Make sure that the comment is aligned: > dnl [ --with-fmog Include fmog support]) > > dnl Otherwise use enable: > > dnl PHP_ARG_ENABLE(fmog, whether to enable fmog support, > dnl Make sure that the comment is aligned: > dnl [ --enable-fmog Enable fmog support]) >