From 2e7176bc558cb03d4e7c27769bab9cd45c703332 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 5 Dec 2014 20:32:14 +0100 Subject: Change check for libzita-resampler to not depend on cpp name mangling. --- configure.ac | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 37e3013..641f2f7 100644 --- a/configure.ac +++ b/configure.ac @@ -351,13 +351,13 @@ if test x$enable_resampler != xno; then CXXFLAGS="" CPPFLAGS="$ZITA_CPPFLAGS" CFLAGS="" - LDFLAGS="$ZITA_LDFLAGS" + LDFLAGS="$ZITA_LDFLAGS -lzita-resampler -lpthread" LIBS="" - AC_CHECK_HEADER(zita-resampler/resampler.h, - AC_CHECK_LIB(zita-resampler, _Z28zita_resampler_major_versionv, has_zita=yes, has_zita=no), - has_zita=no) + AC_LINK_IFELSE( + [AC_LANG_PROGRAM([#include ], + [Resampler r] ) ], has_zita=yes, has_zita=no) ZITA_CPPFLAGS="$CXXFLAGS $CPPFLAGS $CFLAGS" - ZITA_LIBS="$LDFLAGS $LIBS -lzita-resampler" + ZITA_LIBS="$LDFLAGS $LIBS" CXXFLAGS="$tmp_CXXFLAGS" CPPFLAGS="$tmp_CPPFLAGS" CFLAGS="$tmp_CFLAGS" -- cgit v1.2.3