Check for glc
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 8 Jul 2007 18:07:51 +0000 (18:07 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 8 Jul 2007 18:07:51 +0000 (18:07 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@284 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/configure.in

index 035add5..70707b4 100644 (file)
@@ -108,15 +108,29 @@ AC_CHECK_HEADER(
                [],
                Define to 1 if you have the <GL/gl.h> header file.
                )
-               OPENGL_LIBS="-lGL -lGLU -lGLC"
+               OPENGL_LIBS="-lGL -lGLU"
                opengl=yes,
        AC_MSG_WARN([*** no GL/gl.h -- opengl and SDL support disabled])
 )
 AC_SUBST(OPENGL_CFLAGS)
 AC_SUBST(OPENGL_LIBS)
 
-AM_CONDITIONAL(GUI_SDL, [test "x$sdl" = "xyes" -a "x$cegui" = "xyes" -a "x$opengl" = "xyes" ])
-AM_CONDITIONAL(GRAPHICS_OPENGL, [test "x$opengl" = "xyes"])
+AC_CHECK_HEADER(
+       GL/glc.h,
+       AC_DEFINE(
+               [HAVE_GLC],
+               [],
+               Define to 1 if you have the <GL/glc.h> header file.
+               )
+               GLC_LIBS="-lGLC"
+               glc=yes,
+       AC_MSG_WARN([*** no GL/glc.h -- opengl and SDL support disabled])
+)
+AC_SUBST(GLC_CFLAGS)
+AC_SUBST(GLC_LIBS)
+
+AM_CONDITIONAL(GUI_SDL, [test "x$sdl" = "xyes" -a "x$cegui" = "xyes" -a "x$opengl" = "xyes" -a "x$glc" = "xyes" ])
+AM_CONDITIONAL(GRAPHICS_OPENGL, [test "x$opengl" = "xyes" -a "x$glc" = "xyes" ])
 
 if test x"${USE_LIBGPS}" = xyes
 then