I just do this, like any library:
AC_CHECK_LIB(ode, [dBodyCreate], [],
AC_MSG_ERROR([Couldn't find ODE library.]))
Steve
I would recommend to use the pkg-config macro:
PKG_CHECK_MODULES(ODE, ode)
Then use the variables ODE_CFLAGS and ODE_LIBS in your Makefiles. For
automake, it would be like this:
AM_CPPFLAGS = $(ODE_CFLAGS)
LIBS += $(ODE_LIBS)
You can also indicate which version you require, like:
PKG_CHECK_MODULES(ODE, ode >= 0.11)
BUT if your software depends on specific behaviors (say, a game), you
better distribute the specific version you need with your software. You
never know how somebody else might have built and installed ODE
system-wide. This could be done with AC_CONFIG_SUBDIRS(ode-subdir), for
example.
--
Daniel K. O.
"The only way to succeed is to build success yourself"