mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
fix --with-qf
This commit is contained in:
parent
325303b037
commit
83db5c0194
1 changed files with 11 additions and 3 deletions
|
@ -67,13 +67,21 @@ AC_TRY_COMPILE(
|
|||
AC_ARG_WITH(qf,
|
||||
[ --with-qf=DIR location of QF libs and headers (prefix)],
|
||||
if test "x$withval" != xyes ; then
|
||||
LIBS="$LIBS -L${withval}/lib"
|
||||
INCLUDES="$INCLUDES -I${withval}/include"
|
||||
LDFLAGS="$LDFLAGS -L${withval}/lib"
|
||||
CFLAGS="$CFLAGS -I${withval}/include"
|
||||
fi
|
||||
,
|
||||
HAVE_QF=auto
|
||||
)
|
||||
AC_CHECK_HEADER(QF/qtypes.h, :, HAVE_QF=no)
|
||||
AC_MSG_CHECKING(for QF/qtypes.h)
|
||||
AC_TRY_COMPILE(
|
||||
[#include "QF/qtypes.h"],
|
||||
[qboolean foo = false;
|
||||
foo = true;],
|
||||
AC_MSG_RESULT(yes),
|
||||
AC_MSG_RESULT(no)
|
||||
HAVE_QF=no
|
||||
)
|
||||
if test "x$HAVE_QF" != xno; then
|
||||
AC_CHECK_LIB(QFutil, Hash_NewTable,
|
||||
:, HAVE_QF=no,
|
||||
|
|
Loading…
Reference in a new issue