[glib] make sure configure fails if AC_CHECK_ALIGNOF cannot detect the alignment
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] make sure configure fails if AC_CHECK_ALIGNOF cannot detect the alignment
- Date: Wed, 25 Apr 2012 13:37:51 +0000 (UTC)
commit 56bcba11dd2d2b679efeebcf78f0f5736ba311e1
Author: Michael Olbrich <m olbrich pengutronix de>
Date: Wed Apr 25 09:46:35 2012 +0200
make sure configure fails if AC_CHECK_ALIGNOF cannot detect the alignment
When cross-compiling with gcc >= 4.5 AC_CHECK_ALIGNOF fails to detect the
correct alignment. Without a previous AC_CHECK_TYPE for the same type, the
alignment is silently set to '0'.
This makes sure that configure fails and reports the problem.
Signed-off-by: Michael Olbrich <m olbrich pengutronix de>
https://bugzilla.gnome.org/show_bug.cgi?id=674483
configure.ac | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 02e653a..a6478c6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3448,10 +3448,13 @@ $ac_cv_sizeof___int64)
;;
esac
+AC_CHECK_TYPE([guint32],,,[typedef unsigned $gint32 guint32;])
AC_CHECK_ALIGNOF([guint32], [AC_INCLUDES_DEFAULT
typedef unsigned $gint32 guint32;])
+AC_CHECK_TYPE([guint64],,,[typedef unsigned $gint64 guint64;])
AC_CHECK_ALIGNOF([guint64], [AC_INCLUDES_DEFAULT
typedef unsigned $gint64 guint64;])
+AC_CHECK_TYPE([unsigned long])
AC_CHECK_ALIGNOF([unsigned long])
# Check for libdbus1 - Optional - is only used in the GDBus test cases
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]