From: Loïc Minier Date: Wed, 20 Jan 2010 10:35:54 +0000 (+0100) Subject: Solaris: test for presence of commands with has() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6792aa115e05d59419dd167c772496f41fc451cc;p=qemu.git Solaris: test for presence of commands with has() Signed-off-by: Loïc Minier Signed-off-by: Blue Swirl --- diff --git a/configure b/configure index 6bdd2b743e..42ef6287a2 100755 --- a/configure +++ b/configure @@ -803,21 +803,23 @@ fi # Solaris specific configure tool chain decisions # if test "$solaris" = "yes" ; then - solinst=`path_of $install` - if test -z "$solinst" ; then + if has $install; then + : + else echo "Solaris install program not found. Use --install=/usr/ucb/install or" echo "install fileutils from www.blastwave.org using pkg-get -i fileutils" echo "to get ginstall which is used by default (which lives in /opt/csw/bin)" exit 1 fi - if test "$solinst" = "/usr/sbin/install" ; then + if test "`path_of $install`" = "/usr/sbin/install" ; then echo "Error: Solaris /usr/sbin/install is not an appropriate install program." echo "try ginstall from the GNU fileutils available from www.blastwave.org" echo "using pkg-get -i fileutils, or use --install=/usr/ucb/install" exit 1 fi - sol_ar=`path_of ar` - if test -z "$sol_ar" ; then + if has ar; then + : + else echo "Error: No path includes ar" if test -f /usr/ccs/bin/ar ; then echo "Add /usr/ccs/bin to your path and rerun configure"