blob: 8a157beb78ca8404ad7f020c2a119347bb9044ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
$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],
[
|