Mercurial > sdl-ios-xcode
view test/configure.in @ 693:6c119628180d
Date: Sat, 16 Aug 2003 16:22:56 +0300
From: "Mike Gorchak"
Subject: Package building for QNX6
I'm just completed the package description file for QNX6 - qpg, it is like a\
.spec files for Linux. Please place SDL.qpg.in file in the root of the proj\
ect, where .spec file is placed. And sdl12qpg.diff - just adding the SDL.qpg\
.in. The same for the SDL_image. I'm planning to add .qpg files creation for\
all SDL* projects.
As for shared library building for QNX6. It is very hard to improve the exis\
ting libtool code to support QNX shared libraries. Much easyiest is to remov\
e libtool.m4 code from the acinclude.m4 for those persons, who building shar\
ed libraries for QNX6. I'm described all what they need to do with .so under\
QNX6 in the README.QNX file. And 90% of people used the precompiled librari\
es, so I think it is not big problem :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 23 Aug 2003 23:25:46 +0000 |
parents | b8679559e432 |
children | dec19b813b04 |
line wrap: on
line source
dnl Process this file with autoconf to produce a configure script. AC_INIT(README) dnl Setup for automake SDL_VERSION=1.2.6 dnl Detect the canonical host and target build environment AC_CANONICAL_HOST AC_CANONICAL_TARGET dnl Setup for automake AM_INIT_AUTOMAKE(SDL_tests, $SDL_VERSION) dnl Check for tools AC_PROG_CC dnl Check for compiler environment AC_C_CONST dnl Figure out which math library to use case "$target" in *-*-cygwin* | *-*-mingw32*) MATHLIB="" SYS_GL_LIBS="-lopengl32" ;; *-*-beos*) MATHLIB="" SYS_GL_LIBS="-lGL" ;; *-*-darwin*) MATHLIB="" SYS_GL_LIBS="" ;; *-*-aix*) if test x$ac_cv_prog_gcc = xyes; then CFLAGS="-mthreads" fi SYS_GL_LIBS="" ;; *) MATHLIB="-lm" AC_PATH_X AC_PATH_XTRA if test x$have_x = xyes; then CFLAGS="$CFLAGS $X_CFLAGS" SYS_GL_LIBS="$X_LIBS -lGL" else SYS_GL_LIBS="-lGL" fi ;; esac AC_SUBST(MATHLIB) dnl Check for SDL AM_PATH_SDL($SDL_VERSION, :, AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) ) CFLAGS="$CFLAGS $SDL_CFLAGS" LIBS="$LIBS $SDL_LIBS" dnl Check for OpenGL AC_MSG_CHECKING(for OpenGL support) have_opengl=no AC_TRY_COMPILE([ #include "SDL_opengl.h" ],[ ],[ have_opengl=yes ]) AC_MSG_RESULT($have_opengl) if test x$have_opengl = xyes; then CFLAGS="$CFLAGS -DHAVE_OPENGL" GL_LIBS="$SYS_GL_LIBS" else GL_LIBS="" fi AC_SUBST(GL_LIBS) # Finally create all the generated files AC_OUTPUT([Makefile])