lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV configure --with / --without caching


From: Klaus Weide
Subject: LYNX-DEV configure --with / --without caching
Date: Tue, 2 Sep 1997 14:22:52 -0500 (CDT)

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.

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.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]