Added autoconf detection for the xf86 vid mode extentions.
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@151 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
3a3e68b87e
commit
9f3c1dcc82
@ -16,10 +16,19 @@ AC_SUBST(LIBTOOL_DEPS)
|
||||
dnl Checks for libraries.
|
||||
AC_PATH_XTRA
|
||||
|
||||
AC_CHECK_LIB(Xxf86vm,XF86VidModeSwitchToMode,
|
||||
LIBXXF86VM=-lXxf86vm,LIBXXF86VM=,$X_LIBS -lXext -lX11)
|
||||
AC_SUBST(LIBXXF86VM)
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_STDC_HEADERS
|
||||
AC_HAVE_HEADERS( GL/gl.h GL/glu.h GL/glx.h )
|
||||
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $X_CFLAGS"
|
||||
AC_CHECK_HEADERS( X11/extensions/xf86vmode.h )
|
||||
CFLAGS="$save_CFLAGS"
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
|
||||
dnl Checks for library functions.
|
||||
|
@ -35,7 +35,7 @@ libglut_la_SOURCES = freeglut_callbacks.c \
|
||||
#
|
||||
# Additional linker flags
|
||||
#
|
||||
libglut_la_LIBADD = $(LIBM) $(X_LIBS) -lGL -lGLU -lXext -lX11 -lXxf86vm
|
||||
libglut_la_LIBADD = $(LIBM) $(X_LIBS) -lGL -lGLU -lXext -lX11 $(LIBXXF86VM)
|
||||
libglut_la_LDFLAGS = -version-info 11:0:8
|
||||
|
||||
#
|
||||
|
@ -61,16 +61,16 @@ struct freeglutBitmapFont
|
||||
} ;
|
||||
|
||||
|
||||
struct freeglutStrokeFont *glutStrokeRoman ;
|
||||
struct freeglutStrokeFont *glutStrokeMonoRoman ;
|
||||
struct freeglutStrokeFont glutStrokeRoman ;
|
||||
struct freeglutStrokeFont glutStrokeMonoRoman ;
|
||||
|
||||
struct freeglutBitmapFont *glutBitmap9By15 ;
|
||||
struct freeglutBitmapFont *glutBitmap8By13 ;
|
||||
struct freeglutBitmapFont *glutBitmapTimesRoman10 ;
|
||||
struct freeglutBitmapFont *glutBitmapTimesRoman24 ;
|
||||
struct freeglutBitmapFont *glutBitmapHelvetica10 ;
|
||||
struct freeglutBitmapFont *glutBitmapHelvetica12 ;
|
||||
struct freeglutBitmapFont *glutBitmapHelvetica18 ;
|
||||
struct freeglutBitmapFont glutBitmap9By15 ;
|
||||
struct freeglutBitmapFont glutBitmap8By13 ;
|
||||
struct freeglutBitmapFont glutBitmapTimesRoman10 ;
|
||||
struct freeglutBitmapFont glutBitmapTimesRoman24 ;
|
||||
struct freeglutBitmapFont glutBitmapHelvetica10 ;
|
||||
struct freeglutBitmapFont glutBitmapHelvetica12 ;
|
||||
struct freeglutBitmapFont glutBitmapHelvetica18 ;
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -89,12 +89,10 @@
|
||||
#include <X11/Xatom.h>
|
||||
#include <X11/keysym.h>
|
||||
|
||||
#ifndef __sgi
|
||||
#ifndef SOLARIS
|
||||
#if HAVE_X11_EXTENSIONS_XF86VMODE_H
|
||||
#include <X11/extensions/xf86vmode.h>
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Microsoft VisualC++ 5.0's <math.h> does not define the PI
|
||||
|
Reference in New Issue
Block a user