fix autotools/autoconf see also
http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=8300&p=28416#p28416
This commit is contained in:
88
configure.ac
88
configure.ac
@@ -30,6 +30,7 @@ case "$host" in
|
|||||||
PLATFORM_STRING="Linux"
|
PLATFORM_STRING="Linux"
|
||||||
;;
|
;;
|
||||||
*-*-darwin*)
|
*-*-darwin*)
|
||||||
|
AC_MSG_WARN([Hello])
|
||||||
AC_DEFINE(PLATFORM_APPLE, 1, [Platform is Apple])
|
AC_DEFINE(PLATFORM_APPLE, 1, [Platform is Apple])
|
||||||
opengl_LIBS="-framework AGL -framework OpenGL -framework GLUT"
|
opengl_LIBS="-framework AGL -framework OpenGL -framework GLUT"
|
||||||
PLATFORM_STRING="Apple"
|
PLATFORM_STRING="Apple"
|
||||||
@@ -52,6 +53,7 @@ case "$host" in
|
|||||||
ARCH_STRING="X86-64"
|
ARCH_STRING="X86-64"
|
||||||
;;
|
;;
|
||||||
ppc-* | powerpc-*)
|
ppc-* | powerpc-*)
|
||||||
|
AC_MSG_WARN([HI THERE!])
|
||||||
AC_DEFINE(ARCH_PPC, 1, [Architecture is PowerPC])
|
AC_DEFINE(ARCH_PPC, 1, [Architecture is PowerPC])
|
||||||
ARCH_SPECIFIC_CFLAGS=""
|
ARCH_SPECIFIC_CFLAGS=""
|
||||||
ARCH_STRING="PowerPC"
|
ARCH_STRING="PowerPC"
|
||||||
@@ -87,44 +89,54 @@ AC_ARG_ENABLE([demos],
|
|||||||
AM_CONDITIONAL([CONDITIONAL_BUILD_DEMOS], [false])
|
AM_CONDITIONAL([CONDITIONAL_BUILD_DEMOS], [false])
|
||||||
|
|
||||||
dnl Check for OpenGL and GLUT
|
dnl Check for OpenGL and GLUT
|
||||||
if test "x$drawstuff" = "xOSX"; then
|
|
||||||
AC_DEFINE([HAVE_APPLE_OPENGL_FRAMEWORK], [1],
|
|
||||||
[Use the Apple OpenGL framework.])
|
case "$host" in
|
||||||
GL_LIBS="-framework GLUT -framework OpenGL -framework Carbon -framework AGL"
|
*-*-darwin*)
|
||||||
have_glut=yes
|
AC_DEFINE([HAVE_APPLE_OPENGL_FRAMEWORK], [1],
|
||||||
else
|
[Use the Apple OpenGL framework.])
|
||||||
have_gl_headers=yes
|
GL_LIBS="-framework GLUT -framework OpenGL -framework Carbon -framework AGL"
|
||||||
AC_CHECK_HEADERS(GL/gl.h GL/glu.h GL/glext.h GL/glut.h, ,
|
have_glut=yes
|
||||||
[have_gl_headers=no],
|
have_glu=yes
|
||||||
[[#ifdef WIN32
|
have_gl=yes
|
||||||
#include <windows.h>
|
;;
|
||||||
#endif
|
*)
|
||||||
#if HAVE_GL_GL_H
|
have_gl_headers=yes
|
||||||
#include <GL/gl.h>
|
AC_CHECK_HEADERS(GL/gl.h GL/glu.h GL/glext.h GL/glut.h, ,
|
||||||
#endif
|
[have_gl_headers=no],
|
||||||
#if HAVE_GL_GLU_H
|
[[#ifdef WIN32
|
||||||
#include <GL/glu.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
]])
|
#if HAVE_GL_GL_H
|
||||||
have_gl=no
|
#include <GL/gl.h>
|
||||||
have_glu=no
|
#endif
|
||||||
have_glut=no
|
#if HAVE_GL_GLU_H
|
||||||
TEMP_LDFLAGS="$LDFLAGS"
|
#include <GL/glu.h>
|
||||||
AC_CHECK_LIB(GL, main, [GL_LIBS="-lGL"; have_gl=yes])
|
#endif
|
||||||
AC_CHECK_LIB(GLU, main, [GL_LIBS="-lGLU $GL_LIBS"; have_glu=yes], , -lGL)
|
]])
|
||||||
AC_CHECK_LIB(GLUT, main, [GL_LIBS="-lGLUT -LGLU $GL_LIBS"; have_glut=yes], ,-lGLUT)
|
have_gl=no
|
||||||
AC_CHECK_LIB(opengl32, main, [GL_LIBS="-lopengl32"; have_gl=yes])
|
have_glu=no
|
||||||
AC_CHECK_LIB(glu32, main, [GL_LIBS="-lglu32 $GL_LIBS"; have_glu=yes], , -lopengl32)
|
have_glut=no
|
||||||
LDFLAGS="$TEMP_LDFLAGS"
|
TEMP_LDFLAGS="$LDFLAGS"
|
||||||
if test $have_gl = no -o $have_glu = no -o $have_gl_headers = no; then
|
AC_CHECK_LIB(GL, main, [GL_LIBS="-lGL"; have_gl=yes])
|
||||||
if test x$enable_demos = xyes; then
|
AC_CHECK_LIB(GLU, main, [GL_LIBS="-lGLU $GL_LIBS"; have_glu=yes], , -lGL)
|
||||||
AC_MSG_WARN([Demos and Extras will not be built because OpenGL and GLUT doesn't seem to work. See `config.log' for details.])
|
AC_CHECK_LIB(GLUT, main, [GL_LIBS="-lGLUT -LGLU $GL_LIBS"; have_glut=yes], ,-lGLUT)
|
||||||
fi
|
AC_CHECK_LIB(opengl32, main, [GL_LIBS="-lopengl32"; have_gl=yes])
|
||||||
enable_demos=no
|
AC_CHECK_LIB(glu32, main, [GL_LIBS="-lglu32 $GL_LIBS"; have_glu=yes], , -lopengl32)
|
||||||
else
|
LDFLAGS="$TEMP_LDFLAGS"
|
||||||
AC_MSG_NOTICE([Found OpenGL])
|
if test $have_gl = no -o $have_glu = no -o $have_gl_headers = no; then
|
||||||
fi
|
if test x$enable_demos = xyes; then
|
||||||
fi
|
AC_MSG_WARN([Demos and Extras will not be built because OpenGL and GLUT doesn't seem to work. See `config.log' for details.])
|
||||||
|
fi
|
||||||
|
enable_demos=no
|
||||||
|
else
|
||||||
|
AC_MSG_NOTICE([Found OpenGL])
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AC_SUBST(GL_LIBS)
|
AC_SUBST(GL_LIBS)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ libLinearMath_la_SOURCES = \
|
|||||||
LinearMath/btAlignedAllocator.cpp \
|
LinearMath/btAlignedAllocator.cpp \
|
||||||
LinearMath/btSerializer.cpp \
|
LinearMath/btSerializer.cpp \
|
||||||
LinearMath/btConvexHull.cpp \
|
LinearMath/btConvexHull.cpp \
|
||||||
|
LinearMath/btVector3.cpp \
|
||||||
LinearMath/btConvexHullComputer.cpp \
|
LinearMath/btConvexHullComputer.cpp \
|
||||||
LinearMath/btHashMap.h \
|
LinearMath/btHashMap.h \
|
||||||
LinearMath/btConvexHull.h \
|
LinearMath/btConvexHull.h \
|
||||||
@@ -220,6 +221,7 @@ libBulletCollision_la_SOURCES = \
|
|||||||
BulletCollision/NarrowPhaseCollision/btManifoldPoint.h \
|
BulletCollision/NarrowPhaseCollision/btManifoldPoint.h \
|
||||||
BulletCollision/NarrowPhaseCollision/btDiscreteCollisionDetectorInterface.h \
|
BulletCollision/NarrowPhaseCollision/btDiscreteCollisionDetectorInterface.h \
|
||||||
BulletCollision/CollisionDispatch/btCollisionObject.h \
|
BulletCollision/CollisionDispatch/btCollisionObject.h \
|
||||||
|
BulletCollision/CollisionDispatch/btCollisionObjectWrapper.h \
|
||||||
BulletCollision/CollisionDispatch/btGhostObject.h \
|
BulletCollision/CollisionDispatch/btGhostObject.h \
|
||||||
BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.h \
|
BulletCollision/CollisionDispatch/btSphereTriangleCollisionAlgorithm.h \
|
||||||
BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.h \
|
BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.h \
|
||||||
@@ -488,6 +490,7 @@ nobase_bullet_include_HEADERS += \
|
|||||||
BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.h \
|
BulletCollision/CollisionDispatch/btConvexConvexAlgorithm.h \
|
||||||
BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.h \
|
BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.h \
|
||||||
BulletCollision/CollisionDispatch/btCollisionObject.h \
|
BulletCollision/CollisionDispatch/btCollisionObject.h \
|
||||||
|
BulletCollision/CollisionDispatch/btCollisionObjectWrapper.h \
|
||||||
BulletCollision/CollisionDispatch/btConvexPlaneCollisionAlgorithm.h \
|
BulletCollision/CollisionDispatch/btConvexPlaneCollisionAlgorithm.h \
|
||||||
BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.h \
|
BulletCollision/CollisionDispatch/btBoxBoxCollisionAlgorithm.h \
|
||||||
BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.h \
|
BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.h \
|
||||||
|
|||||||
Reference in New Issue
Block a user