Ignore:
Timestamp:
Apr 10, 2012, 8:39:12 PM (8 years ago)
Author:
sam
Message:

build: allow to build the Direct3D 9 driver with the mingw compiler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1173 r1212  
    110110 [MAKE_FSELF=no])
    111111AM_CONDITIONAL(USE_MAKE_FSELF, test "${MAKE_FSELF}" != "no")
     112
     113
     114dnl Are we on a Direct3D 9 platform?
     115ac_cv_my_have_d3d9="no"
     116AC_CHECK_HEADERS(d3d9.h, [ac_cv_my_have_d3d9="yes"])
     117if test "${ac_cv_my_have_d3d9}" != "no"; then
     118  D3D_LIBS="${D3D_LIBS} -ld3d9 -ld3dx9"
     119  AC_DEFINE(USE_D3D9, 1, Define to 1 to use DirectX 9)
     120fi
     121AM_CONDITIONAL(USE_D3D9, test "${ac_cv_my_have_d3d9}" != "no")
    112122
    113123
     
    332342LOL_CFLAGS="$LOL_CFLAGS -I \$(top_srcdir)/src"
    333343LOL_CFLAGS="$LOL_CFLAGS $SDL_CFLAGS $GL_CFLAGS $EGL_CFLAGS $LIBPNG_CFLAGS"
    334 LOL_LIBS="$LOL_LIBS $SDL_LIBS $GL_LIBS $EGL_LIBS $LIBPNG_LIBS"
     344LOL_LIBS="$LOL_LIBS $SDL_LIBS $GL_LIBS $EGL_LIBS $LIBPNG_LIBS $D3D_LIBS"
    335345
    336346AC_SUBST(MATH_LIBS)
Note: See TracChangeset for help on using the changeset viewer.