[ODE] Old makefile build system

Peter Kyme pk at dneg.com
Thu Apr 6 08:38:25 MST 2006


I was using the old makefile system, but I've switched to the autotools 
setup this week since the old system seemed to be falling out of 
maintenance.

I have however experienced a couple of problems, which I suspect are 
related to my system (I'm running Redhat 9, automake-1.9.6), but I'll 
detail them here anyway.

For reasons which I didn't fully get to the bottom of, the libGLU check 
fails. I hacked around this by adding the following line to configure.in

GL_LIBS="$GL_LIBS -L/usr/X11R6/lib/ -lGLU -lXmu -lXi"

I also found that the configure options for --enable-release and 
--enable-double-precision weren't working correctly. Finally, the 
#define dNODEBUG wasn't being set even when release mode was enabled.

Following is a diff that fixes these problems on my system.

Index: libsrc/ode/configure.in
===================================================================
--- libsrc/ode/configure.in (revision 682)
+++ libsrc/ode/configure.in (revision 684)
@@ -68,7 +68,8 @@
  dnl Check Precision, define the dInfinity 
constant--------------------------/
  AC_MSG_CHECKING(if double precision is requested)
+precision=no
AC_ARG_ENABLE(double-precision,AC_HELP_STRING([--enable-double-precision],
  [Configure ODE to work with double precision, if not specified, single 
precision is used]),
-precision=$withval,precision=no)
+precision=yes)
  if test "$precision" != no
  then
@@ -223,7 +224,8 @@

  AC_MSG_CHECKING(if building a release library)
+release=no
  AC_ARG_ENABLE(release,AC_HELP_STRING([--enable-release],
  [build a release library with -fomit-frame-pointer and -ffast-math]),
-release=$withval,release=no)
+release=yes)
  if test "x$release" == xyes
  then
@@ -231,4 +233,5 @@
      CPPFLAGS="-fomit-frame-pointer -ffast-math"
      CXXFLAGS="-fomit-frame-pointer -ffast-math"
+	AC_DEFINE(dNODEBUG,,[Disable debug output])
  else
      CFLAGS="-g"


J. Perkins wrote:
> I just want to check one more time: is everyone okay with removing the
> old makefile/configurator build system? Any objections, please speak
> up!
> 
> I have removed the old Visual Studio project files that were scattered
> around the source tree; use the ones in ode/build instead.
> 
> Jason
> 
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
> 


More information about the ODE mailing list