do FLAC lib check against main function

Original commit message from CVS:
do FLAC lib check against main function
This commit is contained in:
Thomas Vander Stichele 2001-08-07 16:08:14 +00:00
parent 03ea0fce97
commit 0c26ada9f5

View file

@ -574,9 +574,12 @@ AC_CHECK_HEADER(mpeg2dec/mpeg2.h, :, HAVE_MPEG2DEC=no)
dnl Check for sidplay
AC_PATH_LIBSIDPLAY
dnl Check for FLAC
dnl thomas : checking for compile with main instead of actual function,
dnl since that made autoconf break (for version 2.13)
AC_MSG_CHECKING(FLAC library)
AC_CHECK_LIB(FLAC, main, HAVE_FLAC=yes, HAVE_FLAC=no, -lm)
AC_CHECK_HEADER(FLAC/all.h, :, HAVE_FLAC=no)
AC_CHECK_LIB(FLAC, main, HAVE_FLACLIB=yes, HAVE_FLACLIB=no, -lm)
AC_CHECK_HEADER(FLAC/all.h, :, HAVE_FLACLIB=no)
dnl Check for librtp
AC_MSG_CHECKING(rtp library)