Commit caa99b31 authored by Christophe Massiot's avatar Christophe Massiot

More WIN32 portability fixes.

parent cb700a8d
This diff is collapsed.
...@@ -934,51 +934,33 @@ dnl ...@@ -934,51 +934,33 @@ dnl
dnl Windows DirectX module dnl Windows DirectX module
dnl dnl
AC_ARG_ENABLE(directx, AC_ARG_ENABLE(directx,
[ --disable-directx Windows DirectX support (default enabled on WIN32)], [ --disable-directx Windows DirectX support (default enabled on WIN32)])
[ if test "x$enableval" != "xno" if test "x$enableval" != "xno"
then then
if test "x$enableval" = "xyes" if test $SYS = mingw32
then then
AC_CHECK_HEADERS(directx.h, AC_ARG_WITH(directx-path,
[ PLUGINS="${PLUGINS} directx" [ --with-directx-path=path Windows DirectX headers and libraries])
LIB_DIRECTX="-lgdi32 -ldxguid" ] ) if test "x$with_directx_path" = "x"
else
AC_MSG_CHECKING(for directX headers in ${enableval})
if test -f ${enableval}/include/directx.h
then
PLUGINS="${PLUGINS} directx"
LIB_DIRECTX="-L${enableval}/lib -lgdi32 -ldxguid"
INCLUDE="${INCLUDE} -I${enableval}/include"
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
AC_MSG_ERROR([Cannot find ${enableval}/include/directx.h!])
fi
fi
fi ],
[ if test $SYS = mingw32
then then
AC_ARG_WITH(directx-path, AC_CHECK_HEADERS(directx.h,
[ --with-directx-path=path Windows DirectX headers and libraries]) [ PLUGINS="${PLUGINS} directx"
if test "x$with_directx_path" = "x" LIB_DIRECTX="-lgdi32 -ldxguid" ])
else
AC_MSG_CHECKING(for directX headers in ${withval})
if test -f ${withval}/include/directx.h
then then
AC_CHECK_HEADERS(directx.h, PLUGINS="${PLUGINS} directx"
[ PLUGINS="${PLUGINS} directx" LIB_DIRECTX="-L${withval}/lib -lgdi32 -ldxguid"
LIB_DIRECTX="-lgdi32 -ldxguid" ]) INCLUDE="${INCLUDE} -I${withval}/include"
AC_MSG_RESULT(yes)
else else
AC_MSG_CHECKING(for directX headers in ${withval}) AC_MSG_RESULT(no)
if test -f ${with_directx_path}/include/directx.h AC_MSG_ERROR([Cannot find ${withval}/include/directx.h!])
then
PLUGINS="${PLUGINS} directx"
LIB_DIRECTX="-L${with_directx_path}/lib -lgdi32 -ldxguid"
INCLUDE="${INCLUDE} -I${with_directx_path}/include"
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
AC_MSG_ERROR([Cannot find ${with_directx_path}/include/directx.h!])
fi
fi fi
fi ]) fi
fi
fi
dnl dnl
dnl Glide module dnl Glide module
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment