emacs-diffs
[Top][All Lists]
Advanced

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

master 1276c8e: Use hard links to Emacs executable in "make install" on


From: Eli Zaretskii
Subject: master 1276c8e: Use hard links to Emacs executable in "make install" on MS-Windows
Date: Sun, 29 Mar 2020 09:44:45 -0400 (EDT)

branch: master
commit 1276c8e10b000b571a12227ebe9216cc6305ef7f
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Use hard links to Emacs executable in "make install" on MS-Windows
    
    * configure.ac (LN_S_FILEONLY): Set to "/bin/ln" for MinGW
    unconditionally.
---
 configure.ac | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/configure.ac b/configure.ac
index a4daf14..9907160 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1246,18 +1246,12 @@ emacs_cv_ln_s_fileonly='cp -p'
 dnl On MinGW, ensure we will call the MSYS /bin/ln.exe, not some
 dnl random program in the current directory.
 if (echo >conf$$.file) 2>/dev/null; then
-  if ln -s conf$$.file conf$$ 2>/dev/null; then
-    if test "$opsys" = "mingw32"; then
-      emacs_cv_ln_s_fileonly='/bin/ln -s'
-    else
-      emacs_cv_ln_s_fileonly='ln -s'
-    fi
+  if test "$opsys" = "mingw32"; then
+    emacs_cv_ln_s_fileonly=/bin/ln
+  elif ln -s conf$$.file conf$$ 2>/dev/null; then
+    emacs_cv_ln_s_fileonly='ln -s'
   elif ln conf$$.file conf$$ 2>/dev/null; then
-    if test "$opsys" = "mingw32"; then
-      emacs_cv_ln_s_fileonly=/bin/ln
-    else
-      emacs_cv_ln_s_fileonly=ln
-    fi
+    emacs_cv_ln_s_fileonly=ln
   fi
 fi
 



reply via email to

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