Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merged change from 1.2 to add X11 path for OpenGL detection
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 30, 2007
1 parent 1d491c4 commit 034d8c6
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion test/configure.in
Expand Up @@ -68,6 +68,21 @@ AM_PATH_SDL($SDL_VERSION,
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"

dnl Check for X11 path, needed for OpenGL on some systems
AC_PATH_X
if test x$have_x = xyes; then
if test x$ac_x_includes = xno || test x$ac_x_includes = x; then
:
else
CFLAGS="$CFLAGS -I$ac_x_includes"
fi
if test x$ac_x_libraries = xno || test x$ac_x_libraries = x; then
:
else
XPATH="-L$ac_x_libraries"
fi
fi

dnl Check for OpenGL
AC_MSG_CHECKING(for OpenGL support)
have_opengl=no
Expand All @@ -80,7 +95,7 @@ have_opengl=yes
AC_MSG_RESULT($have_opengl)
if test x$have_opengl = xyes; then
CFLAGS="$CFLAGS -DHAVE_OPENGL"
GLLIB="$SYS_GL_LIBS"
GLLIB="$XPATH $SYS_GL_LIBS"
else
GLLIB=""
fi
Expand Down

0 comments on commit 034d8c6

Please sign in to comment.