[MPlayer-dev-eng] Fwd: Re: [PATCH] fix direct.h io.h

Stephen Sheldon sfsheldo at gmail.com
Mon Oct 15 22:00:36 CEST 2012


Ping?  I ran into this again trying to compile mplayer for windows on 
fedora with the mingw packages.


-------- Original Message --------
Subject: 	Re: [MPlayer-dev-eng] [PATCH] fix direct.h io.h
Date: 	Wed, 19 Sep 2012 21:28:55 +0000 (UTC)
From: 	Stephen Sheldon <sfsheldo at gmail.com>
Reply-To: 	mplayer-dev-eng at mplayerhq.hu
To: 	mplayer-dev-eng at mplayerhq.hu



Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:

>
> Stephen Sheldon <sfsheldo <at> gmail.com> writes:
>
> > HAVE_W32THREADS 1'
> >  echores "$_w32threads"
>
> >  fi #if win32; then
> > +if win32; then
>
> This looks as if the two ifs can be merged, or is that unwanted?
>
> > +  echocheck "HAVE_DIRECT_H"
>
> echocheck "direct.h" ?
> (I did not check how it is done elsewhere in configure)
>
> Carl Eugen
>
Maybe now I understand Carl Eugen's hints.  Here is a revised patch.

Index: configure
===================================================================
--- configure	(revision 35204)
+++ configure	(working copy)
@@ -3727,6 +3727,24 @@
  fi
  test "$_w32threads" = yes && def_threads='#define HAVE_THREADS 1' &&
def_w32threads='#define HAVE_W32THREADS 1'
  echores "$_w32threads"
+echocheck "direct.h"
+_direct_h=no
+header_check direct.h && _direct_h=yes
+if [ $_direct_h = yes ]; then
+  def_direct_h='#define HAVE_DIRECT_H 1'
+else
+  def_direct_h='#define HAVE_DIRECT_H 0'
+fi
+echores "$_direct_h"
+echocheck "io.h"
+_io_h=no
+header_check io.h && _io_h=yes
+if [ $_io_h = yes ]; then
+  def_io_h='#define HAVE_IO_H 1'
+else
+  def_io_h='#define HAVE_IO_H 0'
+fi
+echores "$_io_h"
  fi #if win32; then
  
  
@@ -8962,6 +8980,8 @@
  $def_mp3lame_lavc
  $def_x264_lavc
  $def_xvid_lavc
+$def_direct_h
+$def_io_h
  
  $(ff_config_enable "$libavdecoders_all"  "$libavdecoders" "#")
  $(ff_config_enable "$libavencoders_all"  "$libavencoders" "#")




_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng at mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng






More information about the MPlayer-dev-eng mailing list