Detect OpenGL in new /usr/lib/mesa directory

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common@1072815 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
master
tpearson 15 years ago
parent fde5da0551
commit 6dca38e9d5

@ -4054,7 +4054,7 @@ AC_DEFUN([AC_HAVE_GL],
ac_save_cxxflags=$CXXFLAGS
ac_save_libs=$LIBS
LDFLAGS="$LDFLAGS $GL_LDFLAGS $X_LDFLAGS $all_libraries"
LIBS="$LIBS -lGL -lGLU"
LIBS="$LIBS -L/usr/lib/mesa -lGL -lGLU"
test "x$kde_use_qt_mac" != xyes && test "x$kde_use_qt_emb" != xyes && LIBS="$LIBS -lX11"
LIBS="$LIBS $LIB_XEXT -lm $LIBSOCKET"
CXXFLAGS="$CFLAGS $X_INCLUDES"
@ -4077,9 +4077,9 @@ AC_DEFUN([AC_HAVE_GL],
else
AC_DEFINE(HAVE_GL, 1, [Defines if you have GL (Mesa, OpenGL, ...)])
if test "$GL_LDFLAGS" = ""; then
GLLIB='-lGLU -lGL $(LIB_X11)'
GLLIB='-L/usr/lib/mesa -lGLU -lGL $(LIB_X11)'
else
GLLIB="$GL_LDFLAGS -lGLU -lGL "'$(LIB_X11)'
GLLIB="$GL_LDFLAGS -L/usr/lib/mesa -lGLU -lGL "'$(LIB_X11)'
fi
if test "$GL_INCLUDE" = ""; then
GLINC=""

Loading…
Cancel
Save