mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 07:52:57 -05:00
Add to temporary includes path to find src/video/windx5/directx.h if we build SDL in a different directory
This commit is contained in:
parent
cc5d6cbff3
commit
217b8da114
|
|
@ -1423,12 +1423,15 @@ CheckDIRECTX()
|
|||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user