[petsc-dev] Why is configure checking the same thing multiple times?

Matthew Knepley knepley at gmail.com
Sun Mar 17 21:17:26 CDT 2013


On Sun, Mar 17, 2013 at 9:01 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> Surely it would be sufficient to check and set these only once?
>

I think that would just introduce fragility. We can call the test multiple
times with
different configurations if we want without worrying about caching. Caching
is
always the thing that breaks when you have impossible errors.

   Matt


> $ grep GETPAGESIZE mpich/conf/configure.log
>
>           Defined "HAVE_GETPAGESIZE" to "1"
>           Defined "HAVE_GETPAGESIZE" to "1"
>           Defined "HAVE_GETPAGESIZE" to "1"
>           Defined "HAVE_GETPAGESIZE" to "1"
> #ifndef PETSC_HAVE_GETPAGESIZE
> #define PETSC_HAVE_GETPAGESIZE 1
>
> $ grep USLEEP mpich/conf/configure.log
>
>           Defined "HAVE_USLEEP" to "1"
>           Defined "HAVE_USLEEP" to "1"
> #ifndef PETSC_HAVE_USLEEP
> #define PETSC_HAVE_USLEEP 1
>
> $ grep STRCASECMP mpich/conf/configure.log
>
>           Defined "HAVE_STRCASECMP" to "1"
>           Defined "HAVE_STRCASECMP" to "1"
> #ifndef PETSC_HAVE_STRCASECMP
> #define PETSC_HAVE_STRCASECMP 1
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130317/e0ad68dd/attachment.html>


More information about the petsc-dev mailing list