Kaydet (Commit) 661b074b authored tarafından Robert Nagy's avatar Robert Nagy

libGLU needs libm so make sure it gets linked

üst 25734322
...@@ -6531,6 +6531,8 @@ AC_MSG_CHECKING([whether to build the OpenGL Transitions component]) ...@@ -6531,6 +6531,8 @@ AC_MSG_CHECKING([whether to build the OpenGL Transitions component])
ENABLE_OPENGL= ENABLE_OPENGL=
if test "x$enable_opengl" != "xno" ; then if test "x$enable_opengl" != "xno" ; then
save_LDFLAGS=$LDFLAGS
LDFLAGS="$LDFLAGS -lm"
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
AC_CHECK_HEADER(GL/gl.h, [], AC_CHECK_HEADER(GL/gl.h, [],
[AC_MSG_ERROR([OpenGL headers not found])], []) [AC_MSG_ERROR([OpenGL headers not found])], [])
...@@ -6539,6 +6541,7 @@ if test "x$enable_opengl" != "xno" ; then ...@@ -6539,6 +6541,7 @@ if test "x$enable_opengl" != "xno" ; then
AC_CHECK_LIB(GLU, main, [], AC_CHECK_LIB(GLU, main, [],
[AC_MSG_ERROR(libGLU not installed or functional)], []) [AC_MSG_ERROR(libGLU not installed or functional)], [])
ENABLE_OPENGL=TRUE ENABLE_OPENGL=TRUE
LDFLAGS=$save_LDFLAGS
else else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment