On 7/4/06, Gwynne <[EMAIL PROTECTED]> wrote:
On Jul 3, 2006, at 6:09 PM, Pierre wrote:
>> I'm working on a patch to bring in this functionality, out of sheer
>> "I need to learn more about autoconf and I want to contribute to
>> PHP"-
>> ness :). Does anyone have any thoughts on what might go into such a
>> summary?
> Something like:
>
> GD Support Yes
>  Bundled
>  PNG Yes
>  JPEG No
>  GIF R/W Yes
>
> PDO Support Yes
> PDO Mysql Yes
> PDO Sqlite Bundled Yes
> ...
>
> Maybe with the version found and used, but it could make the summary
> unreadable :)

The problem I have with this is that all of that information is
already findable from the configure output. Yes, you have to look for
it, but the idea of a summary is to summarize, not give extensive
details and basically duplicate all the AC_MSG_CHECKING output.

The output of configure is useless unless you redirect it to a file
and check everything you are looking for. A summary of this form is
used is many project. There is no need to be very verbose, only saying
what is enabled is already enough.

Maybe this is something that would only be provided by my --with-
summary=extended switch?

It should be on by default. I don't count how many times I have had to
run configure again and again because I mis read the output or log :)

I had this thought, but I wasn't really looking to do something
that'd require changing every config.m4 file in the PHP hierarchy.
Obviously this would be optional for any given extension, but still,
it's a larger job than I'm fully confident I can do.

We already do it anyway with the configure line itself (--with-myext
or --enable-myext, or any other configure option), adding such thing
is a one shot job.

Well in that case, perhaps someone can tell me whether I should be
displaying this information from configure itself (configure.in
AC_MSG_RESULT macros) or from config.status (init_cmds in
AC_OUTPUT) :). If it's available from config.status, maybe that'd be
another reason to provide the very detailed output you suggested above?

I have to check again these macros, but the summary is not very
detailed, it is really only a summary of the enabled features :)

--Pierre

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to