Allow tools to be defined with full path in buildconf
authorKalle Vahlman <zuh@iki.fi>
Thu, 10 Jan 2008 16:46:43 +0000 (18:46 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 26 Apr 2010 13:54:09 +0000 (15:54 +0200)
This is required in Scratchbox where
LIBTOOL=/targets/links/arch_tools/bin/libtool
is set in the environment.

buildconf

index b6d70a6..89d94a8 100755 (executable)
--- a/buildconf
+++ b/buildconf
@@ -33,6 +33,11 @@ die(){
 findtool(){
   file="$1"
 
+  if test -f "$file"; then
+    echo "$file"
+    return
+  fi
+
   old_IFS=$IFS; IFS=':'
   for path in $PATH
   do