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 780 7da6da0cb7cf
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
--- a/configure.in	Wed Jan 07 15:01:51 2004 +0000
+++ b/configure.in	Wed Jan 07 18:24:06 2004 +0000
@@ -1423,12 +1423,15 @@
     if test x$enable_directx = xyes; then
         AC_MSG_CHECKING(for DirectX headers and libraries)
         use_directx=no
+        tmp_cflags=$CFLAGS
+        CFLAGS="$CFLAGS -I$srcdir"
         AC_TRY_COMPILE([
          #include "src/video/windx5/directx.h"
         ],[
         ],[
         use_directx=yes
         ])
+        CFLAGS=$tmp_cflags
         AC_MSG_RESULT($use_directx)
     fi