when `.' is not in the PATH.
* doc/install.texi (configure Invocation): Adjust.
-2000-07-03 Akim Demaille <akim@epita.fr>
+2000-07-04 Akim Demaille <akim@epita.fr>
- * acgeneral.m4 (_AC_INIT_PARSE_ARGS) <-C>: Use `./config.cache', not
- `config.cache'.
+ * acgeneral.m4 (AC_CACHE_LOAD): Be ready to read the cache even
+ when `.' is not in the PATH.
* doc/install.texi (configure Invocation): Adjust.
2000-06-30 Jim Meyering <meyering@lucent.com>
cache_file=$ac_optarg ;;
--config-cache | -C)
- cache_file=./config.cache ;;
+ cache_file=config.cache ;;
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
ac_prev=datadir ;;
-V, --version display version information and exit
-q, --quiet, --silent do not print \`checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
- -C, --config-cache alias for \`--cache-file=./config.cache'
+ -C, --config-cache alias for \`--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or \`..']
# -------------
define([AC_CACHE_LOAD],
[if test -r "$cache_file"; then
- test "x$cache_file" != "x/dev/null" && echo "loading cache $cache_file"
- dnl Some versions of bash will fail to source /dev/null, so we
- dnl avoid doing that.
- test -f "$cache_file" && . $cache_file
+ # Some versions of bash will fail to source /dev/null (special
+ # files actually), so we avoid doing that.
+ if test -f "$cache_file"; then
+ echo "loading cache $cache_file"
+ case $cache_file in
+ [[\\/]]* | ?:[[\\/]]* ) . $cache_file;;
+ *) . ./$cache_file;;
+ esac
+ fi
else
echo "creating cache $cache_file"
>$cache_file
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
-# By default, configure uses ./config.cache as the cache file,
+# By default, configure uses `config.cache' as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
@item
an optional shell script normally called called @file{config.cache}
-(created when using @samp{configure --cache-file=./config.cache}) that
+(created when using @samp{configure --cache-file=config.cache}) that
saves the results of running many of the tests (@pxref{Cache Files});
@item
accidental use of stale cache files.
To enable caching, @code{configure} accepts
-@option{--cache-file=@var{file}} where @var{file} is the name of the cache
-file to use, traditionally @file{./config.cache}. The cache file is
+@option{--cache-file=@var{file}} where @var{file} is the name of the
+cache file to use, traditionally @file{config.cache}. The cache file is
created if it does not exist already. When @code{configure} calls
@code{configure} scripts in subdirectories, it uses the
@option{--cache-file} argument so that they share the same cache.
output (useful mainly for debugging @code{configure}).
It can also use an optional file (typically called @file{config.cache}
-and enabled with @option{--cache-file=./config.cache} or simply
+and enabled with @option{--cache-file=config.cache} or simply
@option{-C}) that saves the results of its tests to speed up
reconfiguring. (Caching is disabled by default to prevent problems with
accidental use of stale cache files.)
@item --cache-file=@var{file}
@cindex Cache, enabling
Enable the cache: use and save the results of the tests in @var{file},
-traditionally @file{./config.cache}. @var{file} defaults to
+traditionally @file{config.cache}. @var{file} defaults to
@file{/dev/null} to disable caching.
@item --config-cache
@itemx -C
-Alias for @option{--cache-file=./config.cache}.
+Alias for @option{--cache-file=config.cache}.
@item --quiet
@itemx --silent
cache_file=$ac_optarg ;;
--config-cache | -C)
- cache_file=./config.cache ;;
+ cache_file=config.cache ;;
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
ac_prev=datadir ;;
-V, --version display version information and exit
-q, --quiet, --silent do not print \`checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
- -C, --config-cache alias for \`--cache-file=./config.cache'
+ -C, --config-cache alias for \`--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or \`..']
# -------------
define([AC_CACHE_LOAD],
[if test -r "$cache_file"; then
- test "x$cache_file" != "x/dev/null" && echo "loading cache $cache_file"
- dnl Some versions of bash will fail to source /dev/null, so we
- dnl avoid doing that.
- test -f "$cache_file" && . $cache_file
+ # Some versions of bash will fail to source /dev/null (special
+ # files actually), so we avoid doing that.
+ if test -f "$cache_file"; then
+ echo "loading cache $cache_file"
+ case $cache_file in
+ [[\\/]]* | ?:[[\\/]]* ) . $cache_file;;
+ *) . ./$cache_file;;
+ esac
+ fi
else
echo "creating cache $cache_file"
>$cache_file
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
-# By default, configure uses ./config.cache as the cache file,
+# By default, configure uses `config.cache' as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in