From: Gert Doering Date: Wed, 9 Oct 2019 12:00:43 +0000 (+0200) Subject: OpenSolaris/OpenIllumos: use /bin/bash if available for test scripts. X-Git-Tag: v2.5_beta1~264 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c490c26a756dd0f4c08e003a4a94797983e1131;p=thirdparty%2Fopenvpn.git OpenSolaris/OpenIllumos: use /bin/bash if available for test scripts. t_client.sh relies on "echo -e" and "echo -n" to produce nicely looking output, which fails on Solaris /bin/sh - force SHELL=/bin/bash on recent-enough Solaris variants that have it. Signed-off-by: Gert Doering Acked-by: David Sommerseth Message-Id: <20191009120043.22692-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18914.html Signed-off-by: Gert Doering --- diff --git a/configure.ac b/configure.ac index c7fd7a84d..4159e4509 100644 --- a/configure.ac +++ b/configure.ac @@ -306,6 +306,7 @@ case "$host" in AC_DEFINE([TARGET_SOLARIS], [1], [Are we running on Solaris?]) AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["S"], [Target prefix]) CPPFLAGS="$CPPFLAGS -D_XPG4_2" + test -x /bin/bash && SHELL="/bin/bash" ;; *-*-openbsd*) AC_DEFINE([TARGET_OPENBSD], [1], [Are we running on OpenBSD?])