configure.in
changeset 3087 0b6f51c29267
parent 3085 4800979de337
child 3097 0d12e8f1de3c
     1.1 --- a/configure.in	Wed Mar 04 09:35:32 2009 +0000
     1.2 +++ b/configure.in	Wed Mar 04 15:10:47 2009 +0000
     1.3 @@ -1705,12 +1705,12 @@
     1.4          AC_MSG_RESULT($video_opengl)
     1.5          if test x$video_opengl = xyes; then
     1.6              AC_DEFINE(SDL_VIDEO_OPENGL_ES)
     1.7 -            AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES)
     1.8              EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGLES_CM"
     1.9          else
    1.10              AC_MSG_CHECKING(for QNX OpenGL ES (CL) support)
    1.11              video_opengl=no
    1.12              AC_TRY_COMPILE([
    1.13 +             #define COMMON_LITE
    1.14               #include <GLES/egl.h>
    1.15              ],[
    1.16              ],[
    1.17 @@ -1719,7 +1719,6 @@
    1.18              AC_MSG_RESULT($video_opengl)
    1.19              if test x$video_opengl = xyes; then
    1.20                  AC_DEFINE(SDL_VIDEO_OPENGL_ES)
    1.21 -                AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES)
    1.22                  EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGLES_CL"
    1.23              fi
    1.24          fi
    1.25 @@ -2295,6 +2294,12 @@
    1.26          if test x$have_clock_gettime = xyes; then
    1.27              AC_DEFINE(HAVE_CLOCK_GETTIME)
    1.28              EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
    1.29 +        else
    1.30 +            AC_CHECK_LIB(c, clock_gettime, have_clock_gettime=yes)
    1.31 +            if test x$have_clock_gettime = xyes; then
    1.32 +               AC_DEFINE(HAVE_CLOCK_GETTIME)
    1.33 +               EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
    1.34 +            fi
    1.35          fi
    1.36      fi
    1.37  }