[MPlayer-cvslog] r32235 - trunk/configure

diego subversion at mplayerhq.hu
Tue Sep 14 12:25:12 CEST 2010


Author: diego
Date: Tue Sep 14 12:25:12 2010
New Revision: 32235

Log:
Simplify DirectFB check using function_check().

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Sep 14 12:16:31 2010	(r32234)
+++ trunk/configure	Tue Sep 14 12:25:12 2010	(r32235)
@@ -4339,14 +4339,9 @@ echores "$_bl"
 echocheck "DirectFB"
 if test "$_directfb" = auto ; then
   _directfb=no
-  cat > $TMPC <<EOF
-#include <directfb.h>
-int main(void) { DirectFBInit(0, 0); return 0; }
-EOF
-  for _inc_tmp in "" -I/usr/local/include/directfb \
-      -I/usr/include/directfb -I/usr/local/include; do
-    cc_check $_inc_tmp -ldirectfb && _directfb=yes && \
-      extra_cflags="$extra_cflags $_inc_tmp" && break
+  for _inc_tmp in "" -I/usr/local/include/directfb -I/usr/include/directfb -I/usr/local/include; do
+    function_check directfb.h "DirectFBInit(0, 0)" $_inc_tmp -ldirectfb &&
+      _directfb=yes && extra_cflags="$extra_cflags $_inc_tmp" && break
   done
 fi
 


More information about the MPlayer-cvslog mailing list