CONFIGURE: Better default for static lib prefix on OSX
Instead of always assuming /sw (i.e. fink) it should now also pick up the macports prefix or /usr/local depending on which one exists. Of course this can still be overwritten with --with-staticlib-prefix
This commit is contained in:
parent
eeac2c0c4f
commit
4132a3b9c1
1 changed files with 19 additions and 1 deletions
20
configure
vendored
20
configure
vendored
|
@ -167,7 +167,7 @@ _windres=windres
|
|||
_stagingpath="staging"
|
||||
_win32path="c:/scummvm"
|
||||
_aos4path="Games:ScummVM"
|
||||
_staticlibpath=/sw
|
||||
_staticlibpath=
|
||||
_sdlconfig=sdl-config
|
||||
_freetypeconfig=freetype-config
|
||||
_sdlpath="$PATH"
|
||||
|
@ -2115,6 +2115,24 @@ case $_host_os in
|
|||
|
||||
LDFLAGS="-L${macport_prefix}/lib $LDFLAGS"
|
||||
CXXFLAGS="-I${macport_prefix}/include $CXXFLAGS"
|
||||
|
||||
if test -z "$_staticlibpath"; then
|
||||
_staticlibpath=${macport_prefix}
|
||||
echo "Set staticlib-prefix to ${_staticlibpath}"
|
||||
fi
|
||||
fi
|
||||
# If _staticlibpath is not set yet try first /sw (fink) then /usr/local
|
||||
# (the macports case is handled above).
|
||||
if test -z "$_staticlibpath"; then
|
||||
if test -d "/sw"; then
|
||||
_staticlibpath=/sw
|
||||
echo "Set staticlib-prefix to ${_staticlibpath}"
|
||||
elif test -d "/usr/local"; then
|
||||
_staticlibpath=/usr/local
|
||||
echo "Set staticlib-prefix to ${_staticlibpath}"
|
||||
else
|
||||
echo "Could not determine prefix for static libraries"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
dreamcast)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue