From abdb2b160ddf9f603eefda16d1a7e20dfd3ee418 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 4 Jan 2006 18:59:45 +0000 Subject: [PATCH] fix broken autoconf test --- stepmania/autoconf/m4/opengl.m4 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/stepmania/autoconf/m4/opengl.m4 b/stepmania/autoconf/m4/opengl.m4 index 53da89aaa1..dba3359e3c 100644 --- a/stepmania/autoconf/m4/opengl.m4 +++ b/stepmania/autoconf/m4/opengl.m4 @@ -35,8 +35,11 @@ AC_DEFUN([SM_X_WITH_OPENGL], # Check for Xrandr # Can someone fix this for me? This is producing bizarre warnings from # configure... I have no clue what I'm doing -Ben - AC_CHECK_LIB(Xrandr, XRRSizes, have_xrandr=yes, have_xrandr=no) - AC_CHECK_HEADER(X11/extensions/Xrandr.h, have_xrandr_header=yes, have_xrandr_header=no) + AC_CHECK_LIB(Xrandr, XRRSizes, + have_xrandr=yes, + have_xrandr=no, + [$XLIBS]) + AC_CHECK_HEADER(X11/extensions/Xrandr.h, have_xrandr_header=yes, have_xrandr_header=no, [#include ]) if test "$have_xrandr_header" = "no"; then have_xrandr=no @@ -47,7 +50,7 @@ AC_DEFUN([SM_X_WITH_OPENGL], echo "*** Couldn't find needed headers. Continuing without X11 backend." $no_x = yes else - LIBS="$LIBS -lXrandr" + XLIBS="$XLIBS -lXrandr" fi AM_CONDITIONAL(HAVE_X11, test "$no_x" != "yes")