mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-25 21:41:57 +00:00
Fix X-detection.
This commit is contained in:
parent
131cd2b99d
commit
1d1726fd46
2 changed files with 2 additions and 8 deletions
|
@ -190,17 +190,11 @@ dnl Checks for X11 and XShm
|
|||
AC_PATH_XTRA
|
||||
if test "x$no_x" = x; then
|
||||
HAVE_X=yes
|
||||
X_INCLUDES="-I$x_includes"
|
||||
X_LIBS="-L$x_libraries"
|
||||
AC_CHECK_LIB(Xext, XShmQueryExtension, [X_SHM_LIB=-lXext],
|
||||
[HAVE_X="no"], [ $X_LIBS -lX11 $X_EXTRA_LIBS ]
|
||||
)
|
||||
fi
|
||||
|
||||
AC_SUBST(HAVE_X)
|
||||
AC_SUBST(X_INCLUDES)
|
||||
AC_SUBST(X_LIBS)
|
||||
AC_SUBST(X_PRE_LIBS)
|
||||
AC_SUBST(X_SHM_LIB)
|
||||
|
||||
dnl Checks for OpenGL support
|
||||
|
@ -306,7 +300,7 @@ AC_SUBST(OPENGL_CFLAGS)
|
|||
AC_SUBST(OPENGL_INCLUDES)
|
||||
AC_SUBST(OPENGL_LIBS)
|
||||
|
||||
dnl Set $prefix and $exec_prefix to $ac_default_prefix if they haven't been set
|
||||
dnl Set $prefix and $exec_prefix to $ac_default_prefix if they are not set
|
||||
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
||||
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
INCLUDES= @X_INCLUDES@ @OPENGL_INCLUDES@ -I$(top_srcdir)/include
|
||||
INCLUDES= -I$(top_srcdir)/include @OPENGL_INCLUDES@ $(X_CFLAGS)
|
||||
|
||||
bin_PROGRAMS = @TARGETS@
|
||||
|
||||
|
|
Loading…
Reference in a new issue