summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/atk/files/core_acinclude_m4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/atk/files/core_acinclude_m4.patch')
-rw-r--r--meta/recipes-support/atk/files/core_acinclude_m4.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-support/atk/files/core_acinclude_m4.patch b/meta/recipes-support/atk/files/core_acinclude_m4.patch
new file mode 100644
index 0000000000..29c538e2c3
--- /dev/null
+++ b/meta/recipes-support/atk/files/core_acinclude_m4.patch
@@ -0,0 +1,40 @@
1at-spi2-core: fix alignof m4 macro
2
3DBIND_CHECK_ALIGNOF does not work when cross-compiling, so we modify
4it to use AC_CHECK_ALIGNOF.
5
6Upstream-Status: Pending
7
8Signed-off-by: joe.slater@windriver.com
9
10
11--- a/acinclude.m4
12+++ b/acinclude.m4
13@@ -2,7 +2,26 @@
14 # type alignment test #
15 #######################
16
17-AC_DEFUN([DBIND_CHECK_ALIGNOF],
18+AC_DEFUN([DBIND_CHECK_ALIGNOF],[
19+AC_CHECK_ALIGNOF($1,[
20+#include <stdio.h>
21+#include <stdlib.h>
22+#define DBUS_API_SUBJECT_TO_CHANGE
23+#include <dbus/dbus.h>
24+typedef struct {char s1;} dbind_struct;
25+typedef void *dbind_pointer;
26+])
27+
28+dnl Note that we substitute for names like @DBIND_ALIGNOF_DBIND_STRUCT@, but
29+dnl we #define names like ALIGNOF_DBIND_STRUCT in config.h!
30+dnl
31+AC_SUBST(translit(dbind_alignof_$1, [a-z *], [A-Z_P]),[$ac_cv_alignof_$1])
32+
33+])
34+
35+dnl The following does not work for cross-compilation.
36+dnl
37+AC_DEFUN([xDBIND_CHECK_ALIGNOF],
38 [changequote(<<, >>)dnl
39 dnl The name to #define.
40 define(<<AC_TYPE_NAME>>,