Add to temporary includes path to find src/video/windx5/directx.h if we build SDL in a different directory
authorPatrice Mandin <patmandin@gmail.com>
Wed, 07 Jan 2004 18:24:06 +0000
changeset 7807da6da0cb7cf
parent 779 68c8da837fc0
child 781 67176351a1b8
Add to temporary includes path to find src/video/windx5/directx.h if we build SDL in a different directory
configure.in
     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