mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2025-02-02 15:07:45 -05:00
Try harder to link against TagLib.
git-svn-id: https://svn.xiph.org/trunk/ezstream@13670 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
parent
173e2e9539
commit
ce1d2139e5
35
configure.in
35
configure.in
@ -192,22 +192,14 @@ if test x"$use_taglib" != "xno"; then
|
||||
LIBS="${TAGLIB_LIBS}"
|
||||
|
||||
AC_CHECK_HEADERS([taglib/tag_c.h], [
|
||||
AC_MSG_CHECKING([whether TagLib works])
|
||||
AC_MSG_CHECKING([whether libtag_c works])
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM([[#include <taglib/tag_c.h>]],
|
||||
[[ taglib_set_string_management_enabled(0); ]])],
|
||||
[
|
||||
AC_MSG_RESULT([yes])
|
||||
have_taglib=yes
|
||||
], [
|
||||
if test x"$require_taglib" = "xyes"; then
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_ERROR([Cannot link against libtag_c in ${taglib_prefix}/lib])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_WARN([Error while linking against libtag_c in ${taglib_prefix}/lib, disabling support])
|
||||
fi
|
||||
]
|
||||
], [AC_MSG_RESULT([no])]
|
||||
)
|
||||
], [
|
||||
if test x"$require_taglib" = "xyes"; then
|
||||
@ -217,6 +209,29 @@ if test x"$use_taglib" != "xno"; then
|
||||
fi
|
||||
])
|
||||
|
||||
dnl For static-only archs:
|
||||
if test x"$have_taglib" = "xno" -a x"$ac_cv_header_taglib_tag_c_h" = "xyes"; then
|
||||
AC_MSG_CHECKING([whether libtag_c works with -ltag -lstdc++ -lz (static arch)])
|
||||
TAGLIB_LIBS="${TAGLIB_LIBS} -ltag -lstdc++ -lz"
|
||||
LIBS="${TAGLIB_LIBS}"
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM([[#include <taglib/tag_c.h>]],
|
||||
[[ taglib_set_string_management_enabled(0); ]])],
|
||||
[
|
||||
AC_MSG_RESULT([yes])
|
||||
have_taglib=yes
|
||||
], [
|
||||
if test x"$require_taglib" = "xyes"; then
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_ERROR([Cannot link against libtag_c in ${taglib_prefix}/lib])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_WARN([Error while linking against libtag_c in ${taglib_prefix}/lib, disabling support])
|
||||
fi
|
||||
]
|
||||
)
|
||||
fi
|
||||
|
||||
CFLAGS="$ac_taglib_save_CFLAGS"
|
||||
CPPFLAGS="$ac_taglib_save_CPPFLAGS"
|
||||
LIBS="$ac_taglib_save_LIBS"
|
||||
|
Loading…
Reference in New Issue
Block a user