]> git.eshelyaron.com Git - emacs.git/commitdiff
* configure.ac: Create a cache file for libexec.
authorPo Lu <luangruo@yahoo.com>
Mon, 1 Jul 2024 13:35:03 +0000 (21:35 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 3 Jul 2024 18:45:47 +0000 (20:45 +0200)
(cherry picked from commit e64286f53c4f5b6c0ed385edfd63a782a8c90b9b)

configure.ac

index 53eeb89df94c00b56ad598e0f1a3501b6e99831f..190d13f58d423e44afa2de1d2817cda4629436ca 100644 (file)
@@ -197,11 +197,16 @@ AS_IF([test "$XCONFIGURE" = "android"],[
 
   AC_MSG_NOTICE([configuring in `exec'])
 
+  # 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"])
   OLDCWD=`pwd`
   cd exec
   $CONFIG_SHELL $emacs_srcdir/exec/configure           \
                --host=$host "CC=$CC" "LD=$CC" "AS=$CC" \
-               "AR=$AR" "CFLAGS=$CFLAGS"
+               "AR=$AR" "CFLAGS=$CFLAGS" $exec_cache_file
   emacs_val=$?
   cd $OLDCWD