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.
#
# 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
#
} ;
-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