summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-07-29 19:01:34 +0000
committerYang Tse <yangsita@gmail.com>2008-07-29 19:01:34 +0000
commite93bcbeee119e3a62d5c5a69b4c0ebee1ed56e4c (patch)
treedb7f319a10613d2a05c9ae942f6d3d51c0984784 /buildconf
parentadc032e7d82fb5448d7971477d30743f870588af (diff)
downloadcurl-e93bcbeee119e3a62d5c5a69b4c0ebee1ed56e4c.tar.gz
For debugging purposes, show all sed's available in PATH on SunOS systems.
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf25
1 files changed, 22 insertions, 3 deletions
diff --git a/buildconf b/buildconf
index 8f4a30dd3..ef192513b 100755
--- a/buildconf
+++ b/buildconf
@@ -27,20 +27,24 @@ die(){
exit
}
-# this works as 'which' but we use a different name to make it more obvious we
-# aren't using 'which'! ;-)
+#--------------------------------------------------------------------------
+# findtool works as 'which' but we use a different name to make it more
+# obvious we aren't using 'which'! ;-)
+#
findtool(){
file="$1"
- IFS=":"
+ old_IFS=$IFS; IFS=':'
for path in $PATH
do
+ IFS=$old_IFS
# echo "checks for $file in $path" >&2
if test -f "$path/$file"; then
echo "$path/$file"
return
fi
done
+ IFS=$old_IFS
}
#--------------------------------------------------------------------------
@@ -293,6 +297,21 @@ fi
tmp_host_type=`uname -a | sed '/SunOS/s/.*\(SunOS\).*/\1/'`
if test "x$tmp_host_type" = "xSunOS"; then
ACLOCAL_FLAGS="$ACLOCAL_FLAGS --verbose"
+
+ echo "buildconf: PATH: $PATH"
+
+ # show all available sed's in PATH order
+ old_IFS=$IFS; IFS=':'
+ for path in $PATH
+ do
+ IFS=$old_IFS
+ if test -f "$path/sed"; then
+ echo "buildconf: sed: $path/sed"
+ fi
+ done
+ IFS=$old_IFS
+ echo "buildconf: SED: $SED"
+
fi
echo "buildconf: running libtoolize"