]> git.eshelyaron.com Git - emacs.git/commitdiff
* configure.ac: Provide for invocations where no cache file is set.
authorPo Lu <luangruo@yahoo.com>
Mon, 1 Jul 2024 13:44:40 +0000 (21:44 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 3 Jul 2024 18:45:48 +0000 (20:45 +0200)
(cherry picked from commit 085a813c338ed8cc56301c1ad6d797e2f5dbd683)

configure.ac

index 190d13f58d423e44afa2de1d2817cda4629436ca..402e5fdc752cdbf4ec5f9c6ee5df17d3a52e0b4c 100644 (file)
@@ -200,8 +200,9 @@ AS_IF([test "$XCONFIGURE" = "android"],[
   # Derive a name for a cache file for this configure script from the
   # current, if specified.
   exec_cache_file=
-  AS_IF([test -n "$cache_file"],
-    [exec_cache_file="--cache-file=$cache_file.2"])
+  AS_CASE([$cache_file], [/dev/null | ""], [],
+    [[[\\/]* | ?:[\\/]*]], [exec_cache_file="--cache-file=$cache_file.2"],
+    [*], [exec_cache_file="--cache-file=../$cache_file.2"])
   OLDCWD=`pwd`
   cd exec
   $CONFIG_SHELL $emacs_srcdir/exec/configure           \
@@ -1270,7 +1271,7 @@ packages targeting Android 2.2.])])
 
   # And derive a name for the recursive configure invocation's cache
   # file if one should be specified for this.
-  AS_IF([test -n "$cache_file"],
+  AS_IF([test -n "$cache_file" && test "$cache_file" != "/dev/null"],
     [passthrough="$passthrough --cache-file=$cache_file.1"])
 
   AS_IF([test "x$with_mailutils" = "xyes"], [emacs_use_mailutils=yes])