Ignore:
Timestamp:
Aug 2, 2011, 2:27:12 AM (8 years ago)
Author:
sam
Message:

gl: use Glew if available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r795 r796  
    105105fi
    106106
     107dnl Use Glew?
     108ac_cv_my_have_glew="no"
     109PKG_CHECK_MODULES(GLEW, glew, [ac_cv_my_have_glew="yes"], [:])
     110if test "${ac_cv_my_have_glew}" != "no"; then
     111  AC_DEFINE(HAVE_GLES_2X, 1, Define to 1 if GLES 2.x is available)
     112  AC_DEFINE(USE_GLEW, 1, Define to 1 to use libglew)
     113fi
     114AM_CONDITIONAL(USE_GLEW, test "${ac_cv_my_have_glew}" != "no")
     115
    107116dnl Poor man's GL feature detection.
    108117save_LIBS="${LIBS}"
     
    195204
    196205dnl How to use the Lol Engine inside this tree
    197 LOL_CFLAGS="$LOL_CFLAGS -I \$(top_srcdir)/src $SDL_CFLAGS $EGL_CFLAGS $LIBPNG_CFLAGS"
    198 LOL_LIBS="$LOL_LIBS $SDL_LIBS $EGL_LIBS $LIBPNG_LIBS"
     206LOL_CFLAGS="$LOL_CFLAGS -I \$(top_srcdir)/src"
     207LOL_CFLAGS="$LOL_CFLAGS $SDL_CFLAGS $EGL_CFLAGS $GLEW_CFLAGS $LIBPNG_CFLAGS"
     208LOL_LIBS="$LOL_LIBS $SDL_LIBS $EGL_LIBS $GLEW_LIBS $LIBPNG_LIBS"
    199209
    200210AC_SUBST(MATH_LIBS)
Note: See TracChangeset for help on using the changeset viewer.