copy-file: First step towards more consistent function names.
[gnulib.git] / m4 / sh-filename.m4
blob58c437d30460b304522fbf2c7b1b6a6ddeada640
1 # sh-filename.m4
2 # serial 3
3 dnl Copyright (C) 2018-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 dnl From Bruno Haible.
10 AC_DEFUN([gl_SH_FILENAME],
12   AH_VERBATIM([SH_FILENAME],
13 [/* File name of the Bourne shell.  */
14 #if (defined _WIN32 && !defined __CYGWIN__) || defined __CYGWIN__ || defined __ANDROID__
15 /* Omit the directory part because
16    - For native Windows programs in a Cygwin environment, the Cygwin mounts
17      are not visible.
18    - For 32-bit Cygwin programs in a 64-bit Cygwin environment, the Cygwin
19      mounts are not visible.
20    - On Android, /bin/sh does not exist. It's /system/bin/sh instead.  */
21 # define BOURNE_SHELL "sh"
22 #else
23 # define BOURNE_SHELL "/bin/sh"
24 #endif])