1 # Check availability of SMesh binary distribution
3 # Author : Nicolas REJNERI (OPEN CASCADE, 2003)
6 AC_DEFUN([CHECK_SMESH],[
13 [ --with-smesh=DIR root directory path of SMESH installation ],
14 SMESH_DIR="$withval",SMESH_DIR="")
16 if test "x$SMESH_DIR" == "x" ; then
18 # no --with-smesh option used
20 if test "x$SMESH_ROOT_DIR" != "x" ; then
22 # SMESH_ROOT_DIR environment variable defined
23 SMESH_DIR=$SMESH_ROOT_DIR
27 # search SMESH binaries in PATH variable
28 AC_PATH_PROG(TEMP, libSMESH_Swig.py)
29 if test "x$TEMP" != "x" ; then
30 SMESH_BIN_DIR=`dirname $TEMP`
31 SMESH_DIR=`dirname $SMESH_BIN_DIR`
38 if test -f ${SMESH_DIR}/bin/salome/libSMESH_Swig.py ; then
40 AC_MSG_RESULT(Using SMesh module distribution in ${SMESH_DIR})
42 if test "x$SMESH_ROOT_DIR" == "x" ; then
43 SMESH_ROOT_DIR=${SMESH_DIR}
45 AC_SUBST(SMESH_ROOT_DIR)
48 AC_MSG_WARN("Cannot find compiled SMesh module distribution")
51 AC_MSG_RESULT(for SMesh: $SMesh_ok)