fixed handling of --with-opengl=auto (default value) for Mac/MSW (it behaved as --without-opengl before)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
6
configure
vendored
6
configure
vendored
@@ -33400,8 +33400,6 @@ echo "$as_me: WARNING: OpenGL libraries not available, disabling support for Ope
|
||||
wxUSE_OPENGL=no
|
||||
USE_OPENGL=0
|
||||
fi
|
||||
else
|
||||
wxUSE_OPENGL=yes
|
||||
fi
|
||||
else
|
||||
{ echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
|
||||
@@ -33409,6 +33407,10 @@ echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be
|
||||
wxUSE_OPENGL="no"
|
||||
fi
|
||||
|
||||
if test "$wxUSE_OPENGL" = "auto"; then
|
||||
wxUSE_OPENGL=yes
|
||||
fi
|
||||
|
||||
if test "$wxUSE_OPENGL" = "yes"; then
|
||||
USE_OPENGL=1
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
|
10
configure.in
10
configure.in
@@ -3671,15 +3671,19 @@ if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then
|
||||
wxUSE_OPENGL=no
|
||||
USE_OPENGL=0
|
||||
fi
|
||||
else
|
||||
dnl libraries are available... change 'auto' in 'yes'
|
||||
wxUSE_OPENGL=yes
|
||||
fi
|
||||
else
|
||||
AC_MSG_WARN([wxGLCanvas not implemented for this port, library will be compiled without it.])
|
||||
wxUSE_OPENGL="no"
|
||||
fi
|
||||
|
||||
if test "$wxUSE_OPENGL" = "auto"; then
|
||||
dnl if the OpenGL libraries were unavailable, this would have been
|
||||
dnl changed to "no" above, if it wasn't, change it to "yes" as we've
|
||||
dnl verified that we can indeed use OpenGL
|
||||
wxUSE_OPENGL=yes
|
||||
fi
|
||||
|
||||
if test "$wxUSE_OPENGL" = "yes"; then
|
||||
USE_OPENGL=1
|
||||
AC_DEFINE(wxUSE_OPENGL)
|
||||
|
Reference in New Issue
Block a user