File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -139,8 +139,10 @@ AC_PREFIX_DEFAULT([/usr/local])
139139
140140AC_PROG_MKDIR_P
141141
142- AX_CHECK_COMPILE_FLAG ( [ -stdlib=libc++] , [
142+ AS_IF ( [ grep android <<< ${host}] , [ ] ,
143+ [ AX_CHECK_COMPILE_FLAG ( [ -stdlib=libc++] , [
143144 CXXFLAGS="$CXXFLAGS -stdlib=libc++"] )
145+ ] )
144146
145147AX_CHECK_COMPILE_FLAG ( [ -std=c++11] , [
146148 CXXFLAGS="$CXXFLAGS -std=c++11"] )
Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ m4_define([_AX_CHECK_GL_PROGRAM],
9797# include <GL/gl.h>
9898# elif defined(HAVE_OPENGL_GL_H)
9999# include <OpenGL/gl.h>
100+ # elif defined(HAVE_GLES_GL_H)
101+ # include <GLES/gl.h>
100102# else
101103# error no gl.h
102104# endif
@@ -274,7 +276,7 @@ AC_DEFUN([AX_CHECK_GL],
274276
275277 dnl this was cache
276278 _AX_CHECK_GL_SAVE_FLAGS([ CFLAGS] )
277- AC_CHECK_HEADERS ( [ GL/gl.h OpenGL/gl.h] ,
279+ AC_CHECK_HEADERS ( [ GL/gl.h OpenGL/gl.h GLES/gl.h ] ,
278280 [ ax_check_gl_have_headers="yes";break] )
279281 _AX_CHECK_GL_RESTORE_FLAGS([ CFLAGS] )
280282
You can’t perform that action at this time.
0 commit comments