parent
f1731fd672
commit
ce1d317768
30 changed files with 43 additions and 451 deletions
22
configure.ac
22
configure.ac
|
|
@ -3285,7 +3285,7 @@ if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
|
|||
if test "$wxUSE_OSX_COCOA" = 1; then
|
||||
OPENGL_LIBS="-framework OpenGL -framework AGL"
|
||||
elif test "$wxUSE_MSW" = 1; then
|
||||
OPENGL_LIBS="-lopengl32 -lglu32"
|
||||
OPENGL_LIBS="-lopengl32"
|
||||
elif test "$wxUSE_X11" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_QT" = 1; then
|
||||
|
||||
dnl adjust CPPFLAGS to include GL/gl.h location if necessary
|
||||
|
|
@ -3301,7 +3301,6 @@ if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
|
|||
fi
|
||||
|
||||
AC_CHECK_HEADER(GL/gl.h, [
|
||||
AC_CHECK_HEADER(GL/glu.h, [
|
||||
found_gl=0
|
||||
|
||||
WX_FIND_LIB(GL, glBegin, [/opt/graphics/OpenGL/lib])
|
||||
|
|
@ -3313,21 +3312,8 @@ if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
|
|||
fi
|
||||
fi
|
||||
|
||||
dnl don't suppose that libGL and libGLU are always in the
|
||||
dnl same directory -- this is not true for some common
|
||||
dnl distributions
|
||||
WX_FIND_LIB(GLU, gluBeginCurve, [/opt/graphics/OpenGL/lib])
|
||||
if test "$ac_find_libraries" != "" ; then
|
||||
if test "$ac_find_libraries" != "std" ; then
|
||||
WX_LINK_PATH_EXIST([$ac_find_libraries],[$LDFLAGS])
|
||||
if test "$ac_path_to_link" != " -L/usr/lib" -a \
|
||||
"$ac_path_to_link" != "$LDFLAGS_GL" ; then
|
||||
LDFLAGS_GL="$LDFLAGS_GL $ac_path_to_link"
|
||||
fi
|
||||
fi
|
||||
|
||||
found_gl=1
|
||||
OPENGL_LIBS="-lGL -lGLU"
|
||||
OPENGL_LIBS="-lGL"
|
||||
|
||||
if test "$WXGTK3" = 1; then
|
||||
if test "$wxUSE_GLCANVAS_EGL" != "no"; then
|
||||
|
|
@ -3354,7 +3340,6 @@ if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
|
|||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$found_gl" != 1; then
|
||||
|
|
@ -3366,10 +3351,9 @@ if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
|
|||
LDFLAGS_GL="$LDFLAGS_GL $ac_path_to_link"
|
||||
fi
|
||||
fi
|
||||
OPENGL_LIBS="-lMesaGL -lMesaGLU"
|
||||
OPENGL_LIBS="-lMesaGL"
|
||||
fi
|
||||
fi
|
||||
],, [ ])
|
||||
],
|
||||
[],
|
||||
[ ])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue