[FFmpeg-cvslog] r21267 - trunk/configure
mru
subversion
Sun Jan 17 20:10:04 CET 2010
Author: mru
Date: Sun Jan 17 20:10:03 2010
New Revision: 21267
Log:
configure: add check_struct function
This adds a check_struct function to test for availability of a
member within a struct.
Modified:
trunk/configure
Modified: trunk/configure
==============================================================================
--- trunk/configure Sun Jan 17 20:05:57 2010 (r21266)
+++ trunk/configure Sun Jan 17 20:10:03 2010 (r21267)
@@ -759,6 +759,24 @@ $type v;
EOF
}
+check_struct(){
+ log check_type "$@"
+ headers=$1
+ struct=$2
+ member=$3
+ shift 3
+ disable_safe "${struct}_${member}"
+ incs=""
+ for hdr in $headers; do
+ incs="$incs
+#include <$hdr>"
+ done
+ check_cc "$@" <<EOF && enable_safe "${struct}_${member}"
+$incs
+const void *p = &(($struct *)0)->$member;
+EOF
+}
+
require(){
name="$1"
header="$2"
More information about the ffmpeg-cvslog
mailing list