2008-03-23 Tollef Fog Heen <tfheen@err.no>
+ * check/check-cflags, check/check-define-variable,
+ check/check-includedir, check/check-libs,
+ check/check-libs-private, check/check-requires-private: Replace
+ the crazy -d ~root check with a more proper way to just make sure
+ we are running under a POSIX shell. Thanks to Kjetil Torgrim
+ Homme for the tip about using getconf PATH.
+
* main.c (main): Add logging support from NetBSD. Thanks to Julio
M. Merino Vidal for forwarding the patch from ages ago.
#! /bin/sh
-# Do the Solaris Dance:
-if [ ! -d ~root ] ; then
- exec /usr/xpg4/bin/sh $0 "$@"
+# Make sure we're POSIX
+if [ "$PKG_CONFIG_SHELL_IS_POSIX" != "1" ]; then
+ PKG_CONFIG_SHELL_IS_POSIX=1 PATH=`getconf PATH` exec sh $0 "$@"
fi
set -e
#! /bin/sh
-# Do the Solaris Dance:
-if [ ! -d ~root ] ; then
- exec /usr/xpg4/bin/sh $0 "$@"
+# Make sure we're POSIX
+if [ "$PKG_CONFIG_SHELL_IS_POSIX" != "1" ]; then
+ PKG_CONFIG_SHELL_IS_POSIX=1 PATH=`getconf PATH` exec sh $0 "$@"
fi
set -e
#! /bin/sh
-# Do the Solaris Dance:
-if [ ! -d ~root ] ; then
- exec /usr/xpg4/bin/sh $0 "$@"
+# Make sure we're POSIX
+if [ "$PKG_CONFIG_SHELL_IS_POSIX" != "1" ]; then
+ PKG_CONFIG_SHELL_IS_POSIX=1 PATH=`getconf PATH` exec sh $0 "$@"
fi
set -e
#! /bin/sh
-# Do the Solaris Dance:
-if [ ! -d ~root ] ; then
- exec /usr/xpg4/bin/sh $0 "$@"
+# Make sure we're POSIX
+if [ "$PKG_CONFIG_SHELL_IS_POSIX" != "1" ]; then
+ PKG_CONFIG_SHELL_IS_POSIX=1 PATH=`getconf PATH` exec sh $0 "$@"
fi
set -e
#! /bin/sh
-# Do the Solaris Dance:
-if [ ! -d ~root ] ; then
- exec /usr/xpg4/bin/sh $0 "$@"
+# Make sure we're POSIX
+if [ "$PKG_CONFIG_SHELL_IS_POSIX" != "1" ]; then
+ PKG_CONFIG_SHELL_IS_POSIX=1 PATH=`getconf PATH` exec sh $0 "$@"
fi
set -e
#! /bin/sh
-# Do the Solaris Dance:
-if [ ! -d ~root ] ; then
- exec /usr/xpg4/bin/sh $0 "$@"
+# Make sure we're POSIX
+if [ "$PKG_CONFIG_SHELL_IS_POSIX" != "1" ]; then
+ PKG_CONFIG_SHELL_IS_POSIX=1 PATH=`getconf PATH` exec sh $0 "$@"
fi
-
set -e
. ${srcdir}/common