changeset 32278:0eef1045262c

Simplify Direct3D check with header_check().
author diego
date Sun, 26 Sep 2010 18:23:04 +0000
parents ba416e78c273
children 6de1c6d3c1cb
files configure
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Sep 26 18:22:06 2010 +0000
+++ b/configure	Sun Sep 26 18:23:04 2010 +0000
@@ -5336,12 +5336,8 @@
 
 echocheck "Direct3D"
 if test "$_direct3d" = auto ; then
-  cat > $TMPC << EOF
-#include <d3d9.h>
-int main(void) { return 0; }
-EOF
   _direct3d=no
-  cc_check && _direct3d=yes
+  header_check d3d9.h && _direct3d=yes
 fi
 if test "$_direct3d" = yes ; then
   def_direct3d='#define CONFIG_DIRECT3D 1'