1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2025-02-02 15:07:45 -05:00

Give it a chance to link statically.

git-svn-id: https://svn.xiph.org/trunk/ezstream@16380 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
moritz 2009-08-01 16:08:45 +00:00
parent 64a40fa305
commit 899cc1d393

View File

@ -155,7 +155,8 @@ if test -n "$1" -a x"${ax_check_libshout_shout_pc}" = "xyes"; then
fi
libshout_libs_autodetect=no
if test -z "${LIBSHOUT_LIBS}"; then
if test -z "${LIBSHOUT_LIBS}" \
-a x"${ax_check_libshout_shout_pc}" = "xyes"; then
LIBSHOUT_LIBS="`${PKG_CONFIG} --libs-only-l shout`"
libshout_libs_autodetect=yes
fi
@ -195,6 +196,27 @@ AC_CHECK_HEADER([shout/shout.h],
],
[
AC_MSG_RESULT([no])
if test x"${libshout_libs_autodetect}" = "xyes"; then
LIBSHOUT_LIBS="`${PKG_CONFIG} --static --libs-only-l shout`"
LIBS="${LIBSHOUT_LIBS} ${ax_check_libshout_save_LIBS}"
AC_MSG_CHECKING([if libshout works with explicit dependencies])
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[
#include <shout/shout.h>
]],
[[
shout_new();
]])],
[
AC_MSG_RESULT([yes])
local_cv_have_lib_libshout=yes
],
[
AC_MSG_RESULT([no])
]
)
fi
]
)
])