If system doesn't have OpenGL, don't refer to libopengl32.so.
This commit is contained in:
parent
32c8934d8a
commit
4615e29c58
|
@ -86,7 +86,7 @@ LINTS = $(C_SRCS:.c=.ln)
|
||||||
|
|
||||||
X_DLLS = \
|
X_DLLS = \
|
||||||
ddraw \
|
ddraw \
|
||||||
opengl32 \
|
@OPENGL32_DLL@ \
|
||||||
x11drv
|
x11drv
|
||||||
|
|
||||||
DLLS = \
|
DLLS = \
|
||||||
|
|
|
@ -128,6 +128,8 @@ AC_SUBST(XFILES)
|
||||||
XFILES=""
|
XFILES=""
|
||||||
AC_SUBST(OPENGLFILES)
|
AC_SUBST(OPENGLFILES)
|
||||||
OPENGLFILES=""
|
OPENGLFILES=""
|
||||||
|
AC_SUBST(OPENGL32_DLL)
|
||||||
|
OPENGL32_DLL=""
|
||||||
AC_SUBST(DGA_SRCS)
|
AC_SUBST(DGA_SRCS)
|
||||||
DGA_SRCS=""
|
DGA_SRCS=""
|
||||||
AC_SUBST(DGA2_SRCS)
|
AC_SUBST(DGA2_SRCS)
|
||||||
|
@ -270,6 +272,7 @@ then
|
||||||
if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
|
if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
|
||||||
then
|
then
|
||||||
AC_DEFINE(HAVE_OPENGL)
|
AC_DEFINE(HAVE_OPENGL)
|
||||||
|
OPENGL32_DLL=opengl32
|
||||||
OPENGLFILES='$(OPENGLFILES)'
|
OPENGLFILES='$(OPENGLFILES)'
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue