[Gmsh] Patch for configure.in
Mark van Doesburg
mark.van.doesburg at technolution.nl
Mon Jun 8 10:25:40 CEST 2009
Hi,
Here's a patch for configure.in. This fixes the missing libdl problem
when trying to link with OCC on some linux systems.
Mark.
-------------- next part --------------
--- orig//gmsh-2.3.1-cvs-20090608/configure.in 2009-06-05 00:03:08.000000000 +0200
+++ gmsh-2.3.1-cvs-20090608/configure.in 2009-06-08 10:21:04.000000000 +0200
@@ -535,7 +535,8 @@
if test "x${OCC_PREFIX}" != "x"; then
LDFLAGS="-L${OCC_PREFIX}/lib ${LDFLAGS}"
fi
- AC_CHECK_LIB(TKernel,main,OCC="yes")
+ AC_CHECK_LIB(TKernel,sin,OCC="yes",
+ AC_CHECK_LIB(TKernel,cos,OCC=yes,,"-ldl"))
if test "x${OCC}" = "xyes"; then
# DataExchange (subset; see occ/ros/adm/make/Makefile for more info)
OCC_LIBS="-lTKSTEP -lTKSTEP209 -lTKSTEPAttr -lTKSTEPBase -lTKIGES -lTKXSBase"