comparison configure.in @ 780:7da6da0cb7cf

Add to temporary includes path to find src/video/windx5/directx.h if we build SDL in a different directory
author Patrice Mandin <patmandin@gmail.com>
date Wed, 07 Jan 2004 18:24:06 +0000
parents 6f4fe7f2063b
children 275708f2e838
comparison
equal deleted inserted replaced
779:68c8da837fc0 780:7da6da0cb7cf
1421 [ --enable-directx use DirectX for Win32 audio/video [default=yes]], 1421 [ --enable-directx use DirectX for Win32 audio/video [default=yes]],
1422 , enable_directx=yes) 1422 , enable_directx=yes)
1423 if test x$enable_directx = xyes; then 1423 if test x$enable_directx = xyes; then
1424 AC_MSG_CHECKING(for DirectX headers and libraries) 1424 AC_MSG_CHECKING(for DirectX headers and libraries)
1425 use_directx=no 1425 use_directx=no
1426 tmp_cflags=$CFLAGS
1427 CFLAGS="$CFLAGS -I$srcdir"
1426 AC_TRY_COMPILE([ 1428 AC_TRY_COMPILE([
1427 #include "src/video/windx5/directx.h" 1429 #include "src/video/windx5/directx.h"
1428 ],[ 1430 ],[
1429 ],[ 1431 ],[
1430 use_directx=yes 1432 use_directx=yes
1431 ]) 1433 ])
1434 CFLAGS=$tmp_cflags
1432 AC_MSG_RESULT($use_directx) 1435 AC_MSG_RESULT($use_directx)
1433 fi 1436 fi
1434 1437
1435 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/video/wincommon" 1438 CFLAGS="$CFLAGS -I\$(top_srcdir)/src/video/wincommon"
1436 SYSTEM_LIBS="$SYSTEM_LIBS -luser32 -lgdi32 -lwinmm" 1439 SYSTEM_LIBS="$SYSTEM_LIBS -luser32 -lgdi32 -lwinmm"