]> Savannah Git Hosting - gnulib.git/commitdiff
sh-filename: Add support for native Windows.
authorBruno Haible <bruno@clisp.org>
Thu, 24 Dec 2020 21:13:49 +0000 (22:13 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 24 Dec 2020 21:14:20 +0000 (22:14 +0100)
* m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin.

ChangeLog
m4/sh-filename.m4

index 5b05bb31090735b303d5fbacca9cbd198eda4bd9..d93aa474aab96a994d36abb3ff22c9573aa274a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-12-24  Bruno Haible  <bruno@clisp.org>
+
+       sh-filename: Add support for native Windows.
+       * m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin.
+
 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        careadlinkat: improve warning line number
index f7b31548e0d591e046bb1b60f46db807b286053a..63bbd6737fe2505415d6ffdeb152bd7d03ca9564 100644 (file)
@@ -1,4 +1,4 @@
-# sh-filename.m4 serial 2
+# sh-filename.m4 serial 3
 dnl Copyright (C) 2018-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -10,8 +10,10 @@ AC_DEFUN([gl_SH_FILENAME],
 [
   AH_VERBATIM([SH_FILENAME],
 [/* File name of the Bourne shell.  */
-#if defined __CYGWIN__ || defined __ANDROID__
+#if (defined _WIN32 && !defined __CYGWIN__) || defined __CYGWIN__ || defined __ANDROID__
 /* Omit the directory part because
+   - For native Windows programs in a Cygwin environment, the Cygwin mounts
+     are not visible.
    - For 32-bit Cygwin programs in a 64-bit Cygwin environment, the Cygwin
      mounts are not visible.
    - On Android, /bin/sh does not exist. It's /system/bin/sh instead.  */