CONFIGURE: Detect and use Fink if installed
This commit is contained in:
parent
0e8bf7de56
commit
3de1a9dcaa
1 changed files with 24 additions and 0 deletions
24
configure
vendored
24
configure
vendored
|
@ -2203,6 +2203,30 @@ case $_host_os in
|
||||||
echo "Set staticlib-prefix to ${_staticlibpath}"
|
echo "Set staticlib-prefix to ${_staticlibpath}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Fink
|
||||||
|
# There is no way to get the prefix, so implementing a hack here
|
||||||
|
fink_version=`fink -V 2>/dev/null`
|
||||||
|
if test "$?" -eq 0; then
|
||||||
|
fink_version="`echo "${fink_version}" | sed -ne 's/Package manager version: \([0-9.]*\)/\1/gp'`"
|
||||||
|
echo_n "You seem to be running Fink version ${fink_version}..."
|
||||||
|
|
||||||
|
fink_prefix=`which fink`
|
||||||
|
# strip off /bin/fink from /sw/bin/port
|
||||||
|
fink_prefix=`dirname ${fink_prefix}`
|
||||||
|
fink_prefix=`dirname ${fink_prefix}`
|
||||||
|
|
||||||
|
echo "adding ${fink_prefix} to paths"
|
||||||
|
|
||||||
|
LDFLAGS="-L${fink_prefix}/lib $LDFLAGS"
|
||||||
|
CXXFLAGS="-I${fink_prefix}/include $CXXFLAGS"
|
||||||
|
|
||||||
|
if test -z "$_staticlibpath"; then
|
||||||
|
_staticlibpath=${fink_prefix}
|
||||||
|
echo "Set staticlib-prefix to ${_staticlibpath}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# If _staticlibpath is not set yet try first /sw (fink) then /usr/local
|
# If _staticlibpath is not set yet try first /sw (fink) then /usr/local
|
||||||
# (the macports case is handled above).
|
# (the macports case is handled above).
|
||||||
if test -z "$_staticlibpath"; then
|
if test -z "$_staticlibpath"; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue