test/configure.in
changeset 6390 3047baa4a5e0
parent 6272 f3dbef2cc0f2
child 6598 81d643a61b54
     1.1 --- a/test/configure.in	Thu Aug 09 14:14:41 2012 -0400
     1.2 +++ b/test/configure.in	Thu Aug 09 14:28:45 2012 -0400
     1.3 @@ -13,9 +13,17 @@
     1.4  
     1.5  AC_C_CONST
     1.6  
     1.7 +dnl We only care about this for building testnative at the moment, so these
     1.8 +dnl  values shouldn't be considered absolute truth.
     1.9 +dnl  (BeOS, for example, sets none of these.)
    1.10 +ISUNIX="false"
    1.11 +ISWINDOWS="false"
    1.12 +ISMACOSX="false"
    1.13 +
    1.14  dnl Figure out which math library to use
    1.15  case "$host" in
    1.16      *-*-cygwin* | *-*-mingw32*)
    1.17 +        ISWINDOWS="true"
    1.18          EXE=".exe"
    1.19          MATHLIB=""
    1.20          SYS_GL_LIBS="-lopengl32"
    1.21 @@ -26,11 +34,13 @@
    1.22          SYS_GL_LIBS="-lGL"
    1.23          ;;
    1.24      *-*-darwin* )
    1.25 +        ISMACOSX="true"
    1.26          EXE=""
    1.27          MATHLIB=""
    1.28          SYS_GL_LIBS="-Wl,-framework,OpenGL"
    1.29          ;;
    1.30      *-*-aix*)
    1.31 +        ISUNIX="true"
    1.32          EXE=""
    1.33          if test x$ac_cv_prog_gcc = xyes; then
    1.34              CFLAGS="-mthreads"
    1.35 @@ -56,6 +66,8 @@
    1.36          SYS_GL_LIBS="-lGLES_CM"
    1.37          ;;
    1.38      *)
    1.39 +        dnl Oh well, call it Unix...
    1.40 +        ISUNIX="true"
    1.41          EXE=""
    1.42          MATHLIB="-lm"
    1.43          SYS_GL_LIBS="-lGL"
    1.44 @@ -63,6 +75,9 @@
    1.45  esac
    1.46  AC_SUBST(EXE)
    1.47  AC_SUBST(MATHLIB)
    1.48 +AC_SUBST(ISMACOSX)
    1.49 +AC_SUBST(ISWINDOWS)
    1.50 +AC_SUBST(ISUNIX)
    1.51  
    1.52  dnl Check for SDL
    1.53  SDL_VERSION=2.0.0