Last part of #3298:

* applied patch by VinDuv that adds a Perl-based implementation of readlink,
  which is needed on Mac OX X, as that doesn't have any of the other fallbacks
  - thanks!
IIRC, other people have managed to configure without this on Mac OS X, but
I suppose no harm can be done by providing this as last resort.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38454 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2010-08-30 16:17:36 +00:00
parent f097f90c70
commit 9a00115643

13
configure vendored
View File

@ -138,6 +138,15 @@ assertparams()
fi
}
# real_path
#
# returns the realpath of a symbolic link.
#
real_path()
{
perl -MCwd=realpath -e'print realpath($ARGV[0]), "\n"' "$1"
}
# standard_gcc_settings
#
# Sets the variables for a GCC platform.
@ -148,8 +157,10 @@ standard_gcc_settings()
readlink="greadlink -e"
elif which realpath > /dev/null 2>&1; then
readlink=realpath
else
elif readlink -e / > /dev/null 2>&1; then
readlink="readlink -e"
else
readlink=real_path
fi
# PLATFORM_LINKLIBS