[MPlayer-cvslog] r32298 - trunk/configure

diego subversion at mplayerhq.hu
Sat Sep 18 11:49:12 CEST 2010


Author: diego
Date: Sat Sep 18 11:49:12 2010
New Revision: 32298

Log:
Add function_check_broken convenience function.
It can be used similar to header_check_broken, but it also tests for the
availability of functions along with the needed headers.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Sat Sep 18 11:45:03 2010	(r32297)
+++ trunk/configure	Sat Sep 18 11:49:12 2010	(r32298)
@@ -115,8 +115,9 @@ EOF
   compile_check $TMPC $@
 }
 
-# This is a special check only to be used for broken headers that do not
-# include all dependencies.
+# The following checks are special and should only be used with broken and
+# non-selfsufficient headers that do not include all of their dependencies.
+
 header_check_broken() {
   cat > $TMPC << EOF
 #include <$1>
@@ -128,6 +129,17 @@ EOF
   compile_check $TMPC $@
 }
 
+function_check_broken() {
+  cat > $TMPC << EOF
+#include <$1>
+#include <$2>
+int main(void) { $3; return 0; }
+EOF
+  shift
+  shift
+  compile_check $TMPC $@
+}
+
 yasm_check() {
   echo >> "$TMPLOG"
   cat "$TMPS" >> "$TMPLOG"


More information about the MPlayer-cvslog mailing list