[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Fix buildcheck.sh on Solaris

From: Justin Erenkrantz <jerenkrantz_at_ebuilt.com>
Date: 2001-12-15 09:01:45 CET

The /bin/sh on Solaris does not seem to support the
$(which glibtool...) semantics. Furthermore, converting it to
`which glibtool libtool...` on Solaris does not work either as
which does not send "not found" errors to stderr but to stdout.
This results in $libtool set to "glibtool not found" even when
libtool is in the path.

So, the following must be applied to get buildcheck.sh to
work on Solaris. -- justin

----
buildcheck.sh: Make libtool detection work with Solaris and /bin/sh.
Index: buildcheck.sh
===================================================================
--- .svn/text-base/buildcheck.sh.svn-base	Fri Dec 14 23:43:07 2001
+++ buildcheck.sh	Fri Dec 14 23:51:41 2001
@@ -20,7 +20,10 @@
 echo "buildcheck: autoconf version $ac_version (ok)"
 
 # libtool 1.4 or newer
-libtool=$(which glibtool libtool 2>/dev/null | head -1)
+libtool=`which glibtool`
+if test ! -x "$libtool"; then
+  libtool=`which libtool`
+fi
 lt_pversion=`$libtool --version 2>/dev/null|sed -e 's/^[^0-9]*//' -e 's/[- ].*//'`
 if test -z "$lt_pversion"; then
   echo "buildcheck: libtool not found."
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:53 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.