pkgsrc/audio/bmpx/patches/patch-af
wiz ab36193bbd Update to 0.40.14, integrating a patch from
http://bugs.backtrace.info/view.php?id=505 for libsoup>=2.4 support.

Changes:
* gcc 4.3 support thanks to Siavash and Alexander Kahl
* spectrum analyser fixed (nenolog)
* many bug fixes
2008-10-28 22:23:40 +00:00

39 lines
866 B
Text

$NetBSD: patch-af,v 1.1 2008/10/28 22:23:40 wiz Exp $
--- m4/soup.m4.orig 2008-03-05 21:31:03.000000000 +0000
+++ m4/soup.m4
@@ -1,4 +1,34 @@
dnl -*- Mode: Autoconf; -*-
+dnl -*- Mode: Autoconf; -*-
+
+AC_DEFUN([BMP_CHECK_SOUP_EXTERN_C],
+[
+ CPPFLAGS_SAVED="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $SOUP_CFLAGS"
+ export CPPFLAGS
+
+ LDFLAGS_SAVED="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $SOUP_LDFLAGS"
+ export LDFLAGS
+
+ AC_MSG_CHECKING(for extern in libsoup headers)
+
+ AC_LANG_PUSH(C++)
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ @%:@include <libsoup/soup.h>
+ ]], [[
+ SoupSession * session = soup_session_sync_new ();
+ ]])],[
+ AC_MSG_RESULT(no)
+ ],[
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(LIBSOUP_HAS_EXTERN_C,,[define if libsoup has extern c])
+ ])
+ AC_LANG_POP([C++])
+
+ CPPFLAGS="$CPPFLAGS_SAVED"
+ LDFLAGS="$LDFLAGS_SAVED"
+])
AC_DEFUN([BMP_CHECK_SOUP_EXTERN_C],
[