test/configure.in
changeset 2138 9af6717e676a
parent 1895 c121d94672cb
child 3087 0b6f51c29267
     1.1 --- a/test/configure.in	Fri Jun 29 11:08:53 2007 +0000
     1.2 +++ b/test/configure.in	Sat Jun 30 08:11:02 2007 +0000
     1.3 @@ -68,6 +68,21 @@
     1.4  CFLAGS="$CFLAGS $SDL_CFLAGS"
     1.5  LIBS="$LIBS $SDL_LIBS"
     1.6  
     1.7 +dnl Check for X11 path, needed for OpenGL on some systems
     1.8 +AC_PATH_X
     1.9 +if test x$have_x = xyes; then
    1.10 +    if test x$ac_x_includes = xno || test x$ac_x_includes = x; then
    1.11 +        :
    1.12 +    else
    1.13 +        CFLAGS="$CFLAGS -I$ac_x_includes"
    1.14 +    fi
    1.15 +    if test x$ac_x_libraries = xno || test x$ac_x_libraries = x; then
    1.16 +        :
    1.17 +    else
    1.18 +        XPATH="-L$ac_x_libraries"
    1.19 +    fi
    1.20 +fi
    1.21 +
    1.22  dnl Check for OpenGL
    1.23  AC_MSG_CHECKING(for OpenGL support)
    1.24  have_opengl=no
    1.25 @@ -80,7 +95,7 @@
    1.26  AC_MSG_RESULT($have_opengl)
    1.27  if test x$have_opengl = xyes; then
    1.28      CFLAGS="$CFLAGS -DHAVE_OPENGL"
    1.29 -    GLLIB="$SYS_GL_LIBS"
    1.30 +    GLLIB="$XPATH $SYS_GL_LIBS"
    1.31  else
    1.32      GLLIB=""
    1.33  fi