Use greadlink when found, as the BSD readlink has no clue about the -e option.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36361 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2010-04-19 23:41:59 +00:00
parent 1c1d16b344
commit ff3c7b9645

9
configure vendored
View File

@ -144,6 +144,7 @@ assertparams()
#
standard_gcc_settings()
{
greadlink --help >/dev/null 2>&1 && readlink=greadlink || readlink=readlink
# PLATFORM_LINKLIBS
gcclib=`$HAIKU_CC -print-libgcc-file-name`
gccdir=`dirname ${gcclib}`
@ -192,25 +193,25 @@ standard_gcc_settings()
if [ $HAIKU_STATIC_LIBSTDCXX = libstdc++.a ]; then
HAIKU_STATIC_LIBSTDCXX=
else
HAIKU_STATIC_LIBSTDCXX=`readlink -e $HAIKU_STATIC_LIBSTDCXX`
HAIKU_STATIC_LIBSTDCXX=`$readlink -e $HAIKU_STATIC_LIBSTDCXX`
fi
if [ $HAIKU_SHARED_LIBSTDCXX = libstdc++.so ]; then
HAIKU_SHARED_LIBSTDCXX=
else
HAIKU_SHARED_LIBSTDCXX=`readlink -e $HAIKU_SHARED_LIBSTDCXX`
HAIKU_SHARED_LIBSTDCXX=`$readlink -e $HAIKU_SHARED_LIBSTDCXX`
fi
if [ $HAIKU_STATIC_LIBSUPCXX = libsupc++.a ]; then
HAIKU_STATIC_LIBSUPCXX=
else
HAIKU_STATIC_LIBSUPCXX=`readlink -e $HAIKU_STATIC_LIBSUPCXX`
HAIKU_STATIC_LIBSUPCXX=`$readlink -e $HAIKU_STATIC_LIBSUPCXX`
fi
if [ $HAIKU_SHARED_LIBSUPCXX = libsupc++.so ]; then
HAIKU_SHARED_LIBSUPCXX=
else
HAIKU_SHARED_LIBSUPCXX=`readlink -e $HAIKU_SHARED_LIBSUPCXX`
HAIKU_SHARED_LIBSUPCXX=`$readlink -e $HAIKU_SHARED_LIBSUPCXX`
fi
;;
2.9*)