pike.git / src / post_modules / GL / configure.in

version» Context lines:

pike.git/src/post_modules/GL/configure.in:1:   AC_INIT(top.c)   AC_CONFIG_HEADER(config.h)      PIKE_FEATURE_WITHOUT(GL) + PIKE_FEATURE_WITHOUT(GL.GLSL)    - AC_MODULE_INIT() + # Rename the dynamic module from GL.so to GL.pmod/module.so + # to avoid shadowing stuff in GL.pmod/. + AC_MODULE_INIT(GL.module)      AC_ARG_WITH(GL, [ --without-GL no support for GL],[],[with_GL=yes])      AUTO_OBJS=""      if test x$with_GL = xno; then    :   else       AC_PATH_XTRA()       AC_ARG_WITH(lib-GL, [ --with-lib-GL use '-lGL'])    AC_ARG_WITH(lib-MesaGL, [ --with-lib-MesaGL use '-lMesaGL'])    -  +  PIKE_FEATURE_NODEP(GL) +  PIKE_FEATURE_NODEP(GL.GLSL) +     old_CPPFLAGS="$CPPFLAGS"    CPPFLAGS="$X_CFLAGS $CPPFLAGS"    AC_CHECK_HEADERS(windef.h GL/gl.h GL/glx.h)       # MacOS X.    # FIXME: Should really have a separate test for -framework.    CPPFLAGS="-framework OpenGL $old_CPPFLAGS"    AC_CHECK_HEADERS(OpenGL/gl.h)    if test "x$ac_cv_header_OpenGL_gl_h" = "xno"; then    CPPFLAGS="$old_CPPFLAGS"
pike.git/src/post_modules/GL/configure.in:85:    # MacOS X    AC_MSG_CHECKING(for glOrtho in OpenGL.framework)    AC_CACHE_VAL(pike_cv_framework_OpenGL, [    LIBS="$oldLIBS -framework OpenGL"    AC_TRY_LINK([   #include <OpenGL/gl.h>    ], [glOrtho(0.0,0.0,0.0,0.0,0.0,0.0); ], [ pike_cv_framework_OpenGL=yes ], [ pike_cv_framework_OpenGL=no ])    ])    if test x"$pike_cv_framework_OpenGL" = xyes; then    AC_DEFINE(HAVE_GL) -  PIKE_FEATURE_OK(GL) +     AC_MSG_RESULT(yes)    else    AC_MSG_RESULT(no)    fi    LIBS="$oldLIBS"       tmp_gl_fail=no    if test x"$pike_cv_framework_OpenGL" = xyes; then    LIBS="-framework OpenGL $LIBS"    elif test x"$with_lib_GL" = "xyes" -a x"$ac_cv_lib_GL_glOrtho" = xyes; then
pike.git/src/post_modules/GL/configure.in:113:    elif test x"$ac_cv_lib_GL_glOrtho" = xyes; then    LIBS="-lGL $LIBS"    elif test x"$pike_cv_lib_OpenGL" = xyes; then    LIBS="-lOpenGL $LIBS"    elif test x"$pike_cv_lib_OpenGL32" = xyes; then    LIBS="-lOpenGL32 $LIBS"    elif test x"$ac_cv_lib_MesaGL_glOrtho" = xyes; then    LIBS="-lMesaGL $LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS"    else    AC_MSG_WARN([No GL or MesaGL libraries, disabling GL support.]) -  PIKE_FEATURE_NODEP(GL) +     tmp_gl_fail=yes    fi       if test x"$tmp_gl_fail" = xno; then    AC_DEFINE(HAVE_GL)    PIKE_FEATURE_OK(GL)    AUTO_OBJS="auto.o" -  +  +  if test "x$ac_cv_header_GL_gl_h"; then +  AC_CHECK_HEADER([GL/glext.h], [], [], [#include <GL/gl.h>]) +  else +  AC_CHECK_HEADER([OpenGL/glext.h], [], [], [#include <OpenGL/gl.h])    fi    -  +  AC_CHECK_LIB(GL, glCompileShader) +  # GL_GLEXT_PROTOTYPES needed to get the prototypes tested below. +  AC_DEFINE(GL_GLEXT_PROTOTYPES, [1], [Needed to get prototypes]) +  AC_CHECK_FUNCS([glGenFramebuffersEXT glGenRenderbuffersEXT glGenerateMipmapEXT glGenBuffers]) +  +  AC_MSG_CHECKING(whether to enable GLSL) +  if test "x$ac_cv_header_GL_glext_h$ac_cv_lib_GL_glCompileShader" = "xyesyes"; then +  AC_MSG_RESULT(yes) +  AC_DEFINE(HAVE_GLSL, [1], [Define to enable GLSL,]) +  PIKE_FEATURE_OK(GL.GLSL) +  AUTO_OBJS="$AUTO_OBJS GLSL.o" +  else +  AC_MSG_RESULT(no)    fi -  +  fi       fi    -  + fi +    AC_SUBST(AUTO_OBJS)   AC_OUTPUT(Makefile,echo FOO >stamp-h )