[Libreoffice-commits] .: Branch 'libreoffice-3-3' - configure.in

Robert Nagy rnagy at kemper.freedesktop.org
Thu Nov 18 11:21:34 PST 2010


 configure.in |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 871f1ad0227ad9e5673c85a3ff42eea698308dcc
Author: Robert Nagy <robert at openbsd.org>
Date:   Thu Nov 18 20:20:30 2010 +0100

    libGLU needs libm so make sure it gets linked

diff --git a/configure.in b/configure.in
index f03ca25..b8d4502 100644
--- a/configure.in
+++ b/configure.in
@@ -6219,6 +6219,8 @@ AC_MSG_CHECKING([whether to build the OpenGL Transitions component])
 ENABLE_OPENGL=
 
 if test "x$enable_opengl" != "xno" ; then
+   save_LDFLAGS=$LDFLAGS
+   LDFLAGS="$LDFLAGS -lm"
    AC_MSG_RESULT([yes])
    AC_CHECK_HEADER(GL/gl.h, [],
                    [AC_MSG_ERROR([OpenGL headers not found])], [])
@@ -6227,6 +6229,7 @@ if test "x$enable_opengl" != "xno" ; then
    AC_CHECK_LIB(GLU, main, [],
      [AC_MSG_ERROR(libGLU not installed or functional)], [])
    ENABLE_OPENGL=TRUE
+   LDFLAGS=$save_LDFLAGS
 else
    AC_MSG_RESULT([no])
 fi


More information about the Libreoffice-commits mailing list