From: John F. Fay Date: Mon, 21 Jul 2008 15:00:51 +0000 (+0000) Subject: Implementing a patch from Jocelyn Frechot (thank you, Jocelyn) that "should enable... X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=72699d0d18477767db086a5eb9963d89391a754e;p=freeglut Implementing a patch from Jocelyn Frechot (thank you, Jocelyn) that "should enable the XInput extension management with the autotools." See e-mail of Sun 7/20/2008 12:01 PM. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@742 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/configure.ac b/configure.ac index 5daea87..ea77a1a 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ # Process this file with autoconf to produce a configure script. -AC_INIT([freeglut library], [2.4.0], [freeglut-bugs@lists.sourceforge.net], [freeglut]) +AC_INIT([freeglut library], [2.6.0], [freeglut-bugs@lists.sourceforge.net], [freeglut]) AM_INIT_AUTOMAKE AC_PREREQ([2.56]) AC_CONFIG_SRCDIR([AUTHORS]) @@ -23,6 +23,7 @@ AC_PATH_XTRA if test x"$no_x" = xyes; then GL_LIBS="-lopengl32 -lglu32 -lgdi32" LIBXXF86VM= + LIBXI= VERSION_INFO= EXPORT_FLAGS="-DFREEGLUT_EXPORTS" else @@ -30,11 +31,13 @@ else AC_CHECK_LIB([Xxf86vm], [XF86VidModeSwitchToMode], [LIBXXF86VM=-lXxf86vm], [LIBXXF86VM=], [$X_LIBS -lXext -lX11]) + LIBXI=-lXi VERSION_INFO="-version-info 11:0:8" EXPORT_FLAGS= fi AC_SUBST([GL_LIBS]) AC_SUBST([LIBXXF86VM]) +AC_SUBST([LIBXI]) AC_SUBST([VERSION_INFO]) AC_SUBST([EXPORT_FLAGS]) @@ -45,6 +48,7 @@ CPPFLAGS="$CPPFLAGS $X_CFLAGS" AC_CHECK_HEADERS([GL/gl.h GL/glu.h GL/glx.h fcntl.h limits.h sys/ioctl.h sys/param.h sys/time.h]) AC_HEADER_TIME AC_CHECK_HEADERS([X11/extensions/xf86vmode.h], [], [], [#include ]) +AC_CHECK_HEADERS([X11/extensions/XI.h X11/extensions/XInput.h]) CPPFLAGS="$save_CPPFLAGS" # Checks for library functions. diff --git a/src/Makefile.am b/src/Makefile.am index 0f55c10..98fae4b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -42,7 +42,7 @@ lib@LIBRARY@_la_SOURCES = freeglut_callbacks.c \ # # Additional linker flags # -lib@LIBRARY@_la_LIBADD = $(LIBM) $(X_LIBS) $(GL_LIBS) $(LIBXXF86VM) +lib@LIBRARY@_la_LIBADD = $(LIBM) $(X_LIBS) $(GL_LIBS) $(LIBXXF86VM) $(LIBXI) lib@LIBRARY@_la_LDFLAGS = $(VERSION_INFO) lib@LIBRARY@_la_CFLAGS = $(X_CFLAGS) $(EXPORT_FLAGS) lib@LIBRARY@_la_CPPFLAGS= -I$(top_srcdir)/include