From 145dba778d2e5fbe06a08079f90b748b8f24a9fb Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Mon, 22 Aug 2005 10:41:08 +0000 Subject: [PATCH] Add solaris workaround for tests /bin/sh on solaris isn't POSIX compliant, so we just exec a POSIX shell on Solaris. --- check/check-cflags | 5 +++++ check/check-define-variable | 5 +++++ check/check-libs | 5 +++++ check/check-libs-private | 5 +++++ check/check-requires-private | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/check/check-cflags b/check/check-cflags index 46af744..d561b92 100755 --- a/check/check-cflags +++ b/check/check-cflags @@ -1,5 +1,10 @@ #! /bin/sh +# Do the Solaris Dance: +if [ ! -d ~root ] ; then + exec /usr/xpg4/bin/sh $0 "$@" +fi + set -e . ${srcdir}/common diff --git a/check/check-define-variable b/check/check-define-variable index e0e0880..dd7f323 100755 --- a/check/check-define-variable +++ b/check/check-define-variable @@ -1,5 +1,10 @@ #! /bin/sh +# Do the Solaris Dance: +if [ ! -d ~root ] ; then + exec /usr/xpg4/bin/sh $0 "$@" +fi + set -e . ${srcdir}/common diff --git a/check/check-libs b/check/check-libs index 0572e9a..ce878a6 100755 --- a/check/check-libs +++ b/check/check-libs @@ -1,5 +1,10 @@ #! /bin/sh +# Do the Solaris Dance: +if [ ! -d ~root ] ; then + exec /usr/xpg4/bin/sh $0 "$@" +fi + set -e . ${srcdir}/common diff --git a/check/check-libs-private b/check/check-libs-private index 0678fd7..4e83c85 100755 --- a/check/check-libs-private +++ b/check/check-libs-private @@ -1,5 +1,10 @@ #! /bin/sh +# Do the Solaris Dance: +if [ ! -d ~root ] ; then + exec /usr/xpg4/bin/sh $0 "$@" +fi + set -e . ${srcdir}/common diff --git a/check/check-requires-private b/check/check-requires-private index 744d790..234b8ed 100755 --- a/check/check-requires-private +++ b/check/check-requires-private @@ -1,5 +1,10 @@ #! /bin/sh +# Do the Solaris Dance: +if [ ! -d ~root ] ; then + exec /usr/xpg4/bin/sh $0 "$@" +fi + set -e . ${srcdir}/common -- 2.39.5