Commit 2840daff authored by Xavier Marchesini's avatar Xavier Marchesini

Please, please, don't forget those who use the --with-directx flag when
./configuring ! :p
Now, to configure directx, use the --enable-directx and --with-directx
if necessary.
parent 7602c536
This diff is collapsed.
......@@ -907,8 +907,16 @@ AC_ARG_ENABLE(directx,
PLUGINS="${PLUGINS} directx"
if test "x$enableval" = "xyes"
then
AC_CHECK_HEADERS(directx.h, [LIB_DIRECTX="-lgdi32 -ldxguid"],
AC_ARG_WITH(directx,
[--with-directx=[name] Windows DirectX support (default enabled)])
if test "x$withval" = "x"
then
AC_CHECK_HEADERS(directx.h, [LIB_DIRECTX="-lgdi32 -ldxguid"],
AC_MSG_ERROR([Cannot find DirectX headers !]))
else
LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid"
INCLUDE="${INCLUDE} -I"$withval"/include"
fi
else
AC_MSG_CHECKING(for directX headers in ${enableval})
if test -f ${enableval}/include/directx.h
......
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