# HG changeset patch # User cehoyos # Date 1350338654 0 # Node ID 101333b48b4e586476943866723baa5eb9621cf5 # Parent 303bf4bab9829f202585d5ced8bb16823cebbc22 Detect direct.h and io.h on Windows. Patch by Stephen Sheldon, sfsheldo gmail diff -r 303bf4bab982 -r 101333b48b4e configure --- a/configure Mon Oct 15 19:43:15 2012 +0000 +++ b/configure Mon Oct 15 22:04:14 2012 +0000 @@ -3720,6 +3720,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 @@ -8948,6 +8966,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" "#")