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

Re: [PATCH] Fix buildcheck.sh on Solaris

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2001-12-17 19:08:37 CET

Justin Erenkrantz <jerenkrantz@ebuilt.com> writes:
> 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

Applied, thanks Justin.

Slight tweak: in the first attempt, I made it redirect error to
/dev/null, since on those platforms that use stderr and don't have
glibtool, there's no point in the user seeing that the attempt
failed.

-K

> 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

---------------------------------------------------------------------
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.