mirror of
https://github.com/xemu-project/xemu.git
synced 2025-02-21 12:53:01 +00:00
Solaris: test for presence of commands with has()
Signed-off-by: Loïc Minier <lool@dooz.org> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
0dba619507
commit
6792aa115e
12
configure
vendored
12
configure
vendored
@ -803,21 +803,23 @@ fi
|
|||||||
# Solaris specific configure tool chain decisions
|
# Solaris specific configure tool chain decisions
|
||||||
#
|
#
|
||||||
if test "$solaris" = "yes" ; then
|
if test "$solaris" = "yes" ; then
|
||||||
solinst=`path_of $install`
|
if has $install; then
|
||||||
if test -z "$solinst" ; then
|
:
|
||||||
|
else
|
||||||
echo "Solaris install program not found. Use --install=/usr/ucb/install or"
|
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 "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)"
|
echo "to get ginstall which is used by default (which lives in /opt/csw/bin)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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 "Error: Solaris /usr/sbin/install is not an appropriate install program."
|
||||||
echo "try ginstall from the GNU fileutils available from www.blastwave.org"
|
echo "try ginstall from the GNU fileutils available from www.blastwave.org"
|
||||||
echo "using pkg-get -i fileutils, or use --install=/usr/ucb/install"
|
echo "using pkg-get -i fileutils, or use --install=/usr/ucb/install"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
sol_ar=`path_of ar`
|
if has ar; then
|
||||||
if test -z "$sol_ar" ; then
|
:
|
||||||
|
else
|
||||||
echo "Error: No path includes ar"
|
echo "Error: No path includes ar"
|
||||||
if test -f /usr/ccs/bin/ar ; then
|
if test -f /usr/ccs/bin/ar ; then
|
||||||
echo "Add /usr/ccs/bin to your path and rerun configure"
|
echo "Add /usr/ccs/bin to your path and rerun configure"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user