From dffb41b95349acbe97da69947f5d05f17d06045c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= <mans@mansr.com>
Date: Fri, 29 Jan 2010 03:26:12 +0000
Subject: [PATCH] Check for may_alias gcc attribute support

Originally committed as revision 21522 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 configure | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure b/configure
index d6739b779f6..6a642843efa 100755
--- a/configure
+++ b/configure
@@ -985,6 +985,7 @@ HAVE_LIST="
     alsa_asoundlib_h
     altivec_h
     arpa_inet_h
+    attribute_may_alias
     attribute_packed
     bswap
     closesocket
@@ -2298,6 +2299,10 @@ check_cc <<EOF && enable attribute_packed
 struct { int x; } __attribute__((packed)) x;
 EOF
 
+check_cc <<EOF && enable attribute_may_alias
+union { int x; } __attribute__((may_alias)) x;
+EOF
+
 check_cc <<EOF || die "endian test failed"
 unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
 EOF
-- 
GitLab