CONFIGURE: Try -lsonivox-static fallback when there's no pkg-config too

Upstream creates a libsonivox-static.a lib by default, and not all ports
have pkg-config set up.
This commit is contained in:
Donovan Watteau 2024-06-14 20:35:40 +02:00 committed by Le Philousophe
parent e0915f53e7
commit 7803535c97

13
configure vendored
View File

@ -6011,9 +6011,16 @@ EOF
SONIVOX_LIBS="`$_pkgconfig --static --libs sonivox`"
cc_check_no_clean $SONIVOX_CFLAGS $SONIVOX_LIBS && _sonivox=yes
fi
if test "$_sonivox" != yes && test "$_pkg_config" = "yes" && $_pkgconfig --exists sonivox-static; then
SONIVOX_LIBS="`$_pkgconfig --static --libs sonivox-static`"
cc_check_no_clean $SONIVOX_CFLAGS $SONIVOX_LIBS && _sonivox=yes
if test "$_sonivox" != yes ; then
if test "$_pkg_config" = "yes" && $_pkgconfig --exists sonivox-static; then
SONIVOX_LIBS="`$_pkgconfig --static --libs sonivox-static`"
cc_check_no_clean $SONIVOX_CFLAGS $SONIVOX_LIBS && _sonivox=yes
fi
if test "$_sonivox" != yes ; then
SONIVOX_LIBS="-lsonivox-static"
cc_check_no_clean $SONIVOX_CFLAGS $SONIVOX_LIBS && _sonivox=yes
fi
fi
cc_check_clean
fi