Debian Codegraph @

m4/sh-filename.m4

raw
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.
7 dnl This file is offered as-is, without any warranty.
8
9 dnl From Bruno Haible.
10
11 AC_DEFUN([gl_SH_FILENAME],
12 [
13 AH_VERBATIM([SH_FILENAME],
14 [/* File name of the Bourne shell. */
15 #if (defined _WIN32 && !defined __CYGWIN__) || defined __CYGWIN__ || defined __ANDROID__
16 /* Omit the directory part because
17 - For native Windows programs in a Cygwin environment, the Cygwin mounts
18 are not visible.
19 - For 32-bit Cygwin programs in a 64-bit Cygwin environment, the Cygwin
20 mounts are not visible.
21 - On Android, /bin/sh does not exist. It's /system/bin/sh instead. */
22 # define BOURNE_SHELL "sh"
23 #else
24 # define BOURNE_SHELL "/bin/sh"
25 #endif])
26 ])