if test -z ${BOOSTDIR}; then
AC_MSG_WARN(You must provide BOOSTDIR variable)
+ dnl E.A. : If BOOSTDIR is not defined, trying in system
+ AC_CHECK_HEADER(boost/shared_ptr.hpp,boost_ok=yes,boost_ok=no)
+ if test boost_ok = no ; then
+ AC_MSG_WARN(You must provide BOOSTDIR variable)
+ fi
else
AC_MSG_RESULT(\$BOOSTDIR = ${BOOSTDIR})
AC_CHECKING(for boost/shared_ptr.hpp header file)
if test -z $MED2HOME
then
AC_MSG_WARN(undefined MED2HOME variable which specify med2 installation directory)
-else
+ AC_PATH_PROG(MDUMP, mdump)
+ if test "xMDUMP" != "x" ; then
+ MED2HOME=$MDUMP
+ MED2HOME=`echo ${MED2HOME} | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
+ MED2HOME=`echo ${MED2HOME} | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
+ fi
+fi
+if test ! -z $MED2HOME
+then
LOCAL_INCLUDES="$HDF5_INCLUDES -I$MED2HOME/include"
if test "x$MED2HOME" = "x/usr"
then
if test "x$exits_ok" = "xyes"; then
if test -z $QWT_INCLUDES; then
QWT_INCLUDES=$QWTHOME"/include/qwt"
+ if test ! -d $QWTHOME"/include/qwt" ; then
+ QWT_INCLUDES=$QWTHOME"/include"
+ fi
fi
fi
else
if test -z $VTKHOME
then
AC_MSG_WARN(undefined VTKHOME variable which specify where vtk was compiled)
-else
+ if test -f /usr/include/vtk/vtkPlane.h ; then
+ AC_MSG_RESULT(trying /usr)
+ VTKHOME="/usr"
+ fi
+fi
+
+if test ! -z $VTKHOME
+then
LOCAL_INCLUDES="-I$VTKHOME/include/vtk $LOCAL_INCLUDES"
LOCAL_LIBS="-L$VTKHOME/lib/vtk $LOCAL_LIBS"
+ dnl E.A. : On mandrake 10.2 with vtk4.4, the libvtk*Python.so
+ dnl E.A. : are separated ...
+ if test -d $VTKHOME/lib/vtk/python ; then
+ LOCAL_LIBS="-L$VTKHOME/lib/vtk/python $LOCAL_LIBS"
+ fi
TRY_LINK_LIBS="-L$VTKHOME/lib/vtk $TRY_LINK_LIBS"
fi