Ignore:
Timestamp:
Jun 21, 2005, 3:28:51 PM (15 years ago)
Author:
Jean-Yves Lamoureux
Message:

OpenGL support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r475 r483  
    3636AC_ARG_ENABLE(x11,
    3737  [  --enable-x11            X11 support (autodetected)])
     38AC_ARG_ENABLE(gl,
     39  [  --enable-gl             OpenGL support (autodetected)])
    3840
    3941dnl example programs features
     
    124126fi
    125127
     128if test "${enable_gl}" != "no"; then
     129  ac_cv_my_have_gl="no"
     130  AC_CHECK_HEADERS(GL/gl.h GL/glut.h,
     131   [AC_CHECK_LIB(glut, glutMainLoopEvent,
     132     [ac_cv_my_have_gl="yes"
     133      AC_DEFINE(USE_GL, 1, Define to activate the OpenGL backend driver)
     134      CACA_LIBS="${CACA_LIBS} -lGL -lglut"
     135      CACA_DRIVERS="${CACA_DRIVERS} gl"])])
     136  if test "${ac_cv_my_have_gl}" = "no" -a "${enable_gl}" = "yes"; then
     137    AC_MSG_ERROR([cannot find OpenGL+FreeGLUT development files])
     138  fi
     139fi
     140
    126141if test "${enable_ncurses}" != "no"; then
    127142  ac_cv_my_have_ncurses="no"
     
    156171CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
    157172# Code qui fait des warnings == code de porc == deux baffes dans ta gueule
    158 CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
     173# [Jylam] Removed -Wshadow in order to avoid ncurses/gl conflict
     174# (Comme quoi on est pas les seuls porcs)
     175CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
    159176
    160177# Build the PIC library?
Note: See TracChangeset for help on using the changeset viewer.