configure.in
changeset 780 7da6da0cb7cf
parent 777 6f4fe7f2063b
child 795 275708f2e838
     1.1 --- a/configure.in	Wed Jan 07 15:01:51 2004 +0000
     1.2 +++ b/configure.in	Wed Jan 07 18:24:06 2004 +0000
     1.3 @@ -1423,12 +1423,15 @@
     1.4      if test x$enable_directx = xyes; then
     1.5          AC_MSG_CHECKING(for DirectX headers and libraries)
     1.6          use_directx=no
     1.7 +        tmp_cflags=$CFLAGS
     1.8 +        CFLAGS="$CFLAGS -I$srcdir"
     1.9          AC_TRY_COMPILE([
    1.10           #include "src/video/windx5/directx.h"
    1.11          ],[
    1.12          ],[
    1.13          use_directx=yes
    1.14          ])
    1.15 +        CFLAGS=$tmp_cflags
    1.16          AC_MSG_RESULT($use_directx)
    1.17      fi
    1.18