xref: /OK3568_Linux_fs/buildroot/package/ntp/0003-override-shell.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1sntp/libopts/m4/libopts.m4: allow override shell with POSIX_SHELL
2
3Pull in fix from upstream AutoGen [1] to accept POSIX_SHELL from the
4environment during the configure step.
5
6[1] http://git.savannah.gnu.org/cgit/autogen.git/commit/?id=db064b9a252f3ef3d8db25411ea0edb0ff8ea758
7
8Signed-off-by: James Byrne <james.byrne@origamienergy.com>
9
10diff --git a/sntp/libopts/m4/libopts.m4 b/sntp/libopts/m4/libopts.m4
11--- a/sntp/libopts/m4/libopts.m4
12+++ b/sntp/libopts/m4/libopts.m4
13@@ -114,6 +114,7 @@
14   AC_PROG_SED
15   [while :
16   do
17+      test -x "$POSIX_SHELL" && break
18       POSIX_SHELL=`which bash`
19       test -x "$POSIX_SHELL" && break
20       POSIX_SHELL=`which dash`
21