blob: a4904ce27bea41f076175bf75531976477622c26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#######################
# type alignment test #
#######################
AC_DEFUN([DBIND_CHECK_ALIGNOF],[
AC_CHECK_ALIGNOF($1,[
#include <stdio.h>
#include <stdlib.h>
#define DBUS_API_SUBJECT_TO_CHANGE
#include <dbus/dbus.h>
typedef struct {char s1;} dbind_struct;
typedef void *dbind_pointer;
])
dnl Note that we substitute for names like @DBIND_ALIGNOF_DBIND_STRUCT@, but
dnl we #define names like ALIGNOF_DBIND_STRUCT in config.h!
dnl
AC_SUBST(translit(dbind_alignof_$1, [a-z *], [A-Z_P]),[$ac_cv_alignof_$1])
])
|