Received: from eggs.gnu.org ([208.118.235.92]:54722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDMOv-00050m-Nc for qemu-devel@nongnu.org; Wed, 06 Mar 2013 17:01:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDMOu-0004k9-I1 for qemu-devel@nongnu.org; Wed, 06 Mar 2013 17:01:29 -0500 Received: from ssl.serverraum.org ([88.198.40.39]:47200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDMOu-0004jr-CP for qemu-devel@nongnu.org; Wed, 06 Mar 2013 17:01:28 -0500 From: Michael Walle Date: Wed, 6 Mar 2013 23:00:08 +0100 Message-Id: <1362607209-12232-12-git-send-email-michael@walle.cc> In-Reply-To: <1362607209-12232-1-git-send-email-michael@walle.cc> References: <1362607209-12232-1-git-send-email-michael@walle.cc> Subject: [Qemu-devel] [PATCH 11/12] configure: proper OpenGL/GLX probe List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Michael Walle Probe for GL and GLX symbols and X11 library. This fixes a build error where the header files are available but the libraries are not. Signed-off-by: Michael Walle --- configure | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 2f98c5a..4f0d011 100755 --- a/configure +++ b/configure @@ -2437,9 +2437,9 @@ if test "$opengl" != "no" ; then #include #include #include -int main(void) { return GL_VERSION != 0; } +int main(void) { glBegin(0); glXQueryVersion(0,0,0); return 0; } EOF - if compile_prog "" "-lGL" ; then + if compile_prog "" "-lGL -lX11" ; then opengl=yes else if test "$opengl" = "yes" ; then -- 1.7.2.5