2013-04-01 19:05:47 +06:00
|
|
|
dnl Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
|
2009-02-17 10:27:49 +05:00
|
|
|
dnl
|
2012-08-09 16:03:55 +06:00
|
|
|
dnl Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
|
|
|
dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
2009-02-17 10:27:49 +05:00
|
|
|
dnl
|
2012-08-09 16:03:55 +06:00
|
|
|
dnl This library is free software; you can redistribute it and/or
|
|
|
|
dnl modify it under the terms of the GNU Lesser General Public
|
|
|
|
dnl License as published by the Free Software Foundation; either
|
|
|
|
dnl version 2.1 of the License.
|
2009-02-17 10:27:49 +05:00
|
|
|
dnl
|
2012-08-09 16:03:55 +06:00
|
|
|
dnl This library is distributed in the hope that it will be useful,
|
|
|
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
dnl Lesser General Public License for more details.
|
2009-02-17 10:27:49 +05:00
|
|
|
dnl
|
2012-08-09 16:03:55 +06:00
|
|
|
dnl You should have received a copy of the GNU Lesser General Public
|
|
|
|
dnl License along with this library; if not, write to the Free Software
|
|
|
|
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2009-02-17 10:27:49 +05:00
|
|
|
dnl
|
2012-08-09 16:03:55 +06:00
|
|
|
dnl See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2009-02-17 10:27:49 +05:00
|
|
|
dnl
|
2012-08-09 16:03:55 +06:00
|
|
|
|
2006-03-13 20:29:49 +05:00
|
|
|
# Check availability of SMesh binary distribution
|
|
|
|
#
|
|
|
|
# Author : Nicolas REJNERI (OPEN CASCADE, 2003)
|
|
|
|
#
|
|
|
|
|
|
|
|
AC_DEFUN([CHECK_SMESH],[
|
|
|
|
|
|
|
|
AC_CHECKING(for SMesh)
|
|
|
|
|
|
|
|
SMesh_ok=no
|
|
|
|
|
2006-06-01 17:39:17 +06:00
|
|
|
SMESH_LDFLAGS=""
|
|
|
|
SMESH_CXXFLAGS=""
|
|
|
|
|
2006-03-13 20:29:49 +05:00
|
|
|
AC_ARG_WITH(smesh,
|
|
|
|
[ --with-smesh=DIR root directory path of SMESH installation ],
|
|
|
|
SMESH_DIR="$withval",SMESH_DIR="")
|
|
|
|
|
|
|
|
if test "x$SMESH_DIR" == "x" ; then
|
|
|
|
|
|
|
|
# no --with-smesh option used
|
|
|
|
|
|
|
|
if test "x$SMESH_ROOT_DIR" != "x" ; then
|
|
|
|
|
|
|
|
# SMESH_ROOT_DIR environment variable defined
|
|
|
|
SMESH_DIR=$SMESH_ROOT_DIR
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
# search SMESH binaries in PATH variable
|
2008-03-07 12:47:05 +05:00
|
|
|
#CCRTAC_PATH_PROG(TEMP, libSMESH_Swig.py)
|
|
|
|
#AC_PATH_PROG(TEMP, MED_Test)
|
|
|
|
AC_PATH_PROG(TEMP, smesh.py)
|
2006-03-13 20:29:49 +05:00
|
|
|
if test "x$TEMP" != "x" ; then
|
|
|
|
SMESH_BIN_DIR=`dirname $TEMP`
|
|
|
|
SMESH_DIR=`dirname $SMESH_BIN_DIR`
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
#
|
|
|
|
fi
|
|
|
|
|
2008-03-07 12:47:05 +05:00
|
|
|
#CCRTif test -f ${SMESH_DIR}/bin/salome/libSMESH_Swig.py ; then
|
|
|
|
#if test -f ${SMESH_DIR}/bin/salome/MED_Test ; then
|
2013-04-04 13:08:19 +06:00
|
|
|
if test -f ${SMESH_DIR}/bin/salome/SMESH_test.py ; then
|
2006-03-13 20:29:49 +05:00
|
|
|
SMesh_ok=yes
|
|
|
|
AC_MSG_RESULT(Using SMesh module distribution in ${SMESH_DIR})
|
|
|
|
|
|
|
|
if test "x$SMESH_ROOT_DIR" == "x" ; then
|
|
|
|
SMESH_ROOT_DIR=${SMESH_DIR}
|
|
|
|
fi
|
|
|
|
AC_SUBST(SMESH_ROOT_DIR)
|
|
|
|
|
2006-06-01 17:39:17 +06:00
|
|
|
SMESH_LDFLAGS=-L${SMESH_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
|
|
|
|
SMESH_CXXFLAGS=-I${SMESH_DIR}/include/salome
|
|
|
|
|
|
|
|
AC_SUBST(SMESH_LDFLAGS)
|
|
|
|
AC_SUBST(SMESH_CXXFLAGS)
|
|
|
|
|
2006-03-13 20:29:49 +05:00
|
|
|
else
|
|
|
|
AC_MSG_WARN("Cannot find compiled SMesh module distribution")
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_MSG_RESULT(for SMesh: $SMesh_ok)
|
|
|
|
|
|
|
|
])dnl
|
|
|
|
|