[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV configure --with / --without caching
From: |
T.E.Dickey |
Subject: |
Re: LYNX-DEV configure --with / --without caching |
Date: |
Tue, 2 Sep 1997 17:48:17 -0400 (EDT) |
>
> Explicit argument options to configure should override cached values.
> I believe that is how it should work, if cached configure settings
> cannot be overrideen other than by removing the whole config.cache
> file then there isn't a good reason to use caching at all.
perhaps - the criteria I used for deciding if something would be cached
may be too closely coupling the decision to use zlib vs its availability.
(on my list)
> It seems that in the following:
>
> AC_CACHE_VAL(cf_cv_zlib,[
> AC_ARG_WITH(zlib,
> [ --with-zlib use zlib for compression/decompression],
> [cf_cv_zlib=$withval],
> [cf_cv_zlib=no])])
>
> the argument option will never be used if something is already cached.
> (Also, for this specific cache, the default should probably be yes,
> since there is a test for existence of gzopen after it anyway.)
>
> Examples:
>
> $ make distclean
> ...
> $ ./configure --without-zlib
> ...
> checking if you want to use zlib for compression/decompression... no
> ...
> $ ./configure --with-zlib
> ...
> checking if you want to use zlib for compression/decompression... (cached) no
> ...
>
> And also:
>
> $ make distclean
> ...
> $ ./configure --with-zlib
> ...
> checking if you want to use zlib for compression/decompression... yes
> checking for gzopen... no
> checking for gzopen in -lz... yes
> ...
> $ ./configure --without-zlib
> ...
> checking if you want to use zlib for compression/decompression... (cached) yes
> checking for gzopen... (cached) no
> checking for gzopen in -lz... yes
> ...
>
> Similar here:
>
> $ make distclean
> ...
> $ ./configure --without-char-trans
> ...
> checking if character-translation code should be used... no
> ...
> $ ./configure --with-char-trans
> ...
> checking if character-translation code should be used... (cached) no
> ...
>
> And here:
>
> $ make distclean
> ...
> $ ./configure --with-dired
> ...
> checking if directory-editor code should be used... yes
> ...
> $ ./configure --without-dired
> ...
> checking if directory-editor code should be used... (cached) yes
> ...
>
> However (since this is not cached):
>
> $ make distclean
> ...
> $ ./configure --enable-dired-zip
> ...
> checking if you wish to allow "zip" and "unzip" commands from DirEd... yes
> ...
> $ ./configure --disable-dired-zip
> ...
> checking if you wish to allow "zip" and "unzip" commands from DirEd... no
> ...
>
>
> Klaus
>
> ;
> ; To UNSUBSCRIBE: Send a mail message to address@hidden
> ; with "unsubscribe lynx-dev" (without the
> ; quotation marks) on a line by itself.
> ;
>
--
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey
;
; To UNSUBSCRIBE: Send a mail message to address@hidden
; with "unsubscribe lynx-dev" (without the
; quotation marks) on a line by itself.
;