dnl Copyright (C) 2007-2016 CEA/DEN, EDF R&D dnl 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, or (at your option) any later version. dnl 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. dnl 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 dnl dnl See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com dnl dnl File : check_BLSURFPLUGIN.m4 dnl Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com) dnl AC_DEFUN([CHECK_BLSURFPLUGIN],[ AC_CHECKING(for BLSURF mesh plugin) BLSURFplugin_ok=no BLSURFPLUGIN_LDFLAGS="" BLSURFPLUGIN_CXXFLAGS="" AC_ARG_WITH(BLSURFplugin, --with-BLSURFplugin=DIR root directory path of BLSURF mesh plugin installation, BLSURFPLUGIN_DIR="$withval",BLSURFPLUGIN_DIR="") if test "x$BLSURFPLUGIN_DIR" = "x" ; then # no --with-BLSURFplugin option used if test "x$BLSURFPLUGIN_ROOT_DIR" != "x" ; then # SALOME_ROOT_DIR environment variable defined BLSURFPLUGIN_DIR=$BLSURFPLUGIN_ROOT_DIR else # search Salome binaries in PATH variable AC_PATH_PROG(TEMP, libBLSURFEngine.so) if test "x$TEMP" != "x" ; then BLSURFPLUGIN_DIR=`dirname $TEMP` fi fi fi if test -f ${BLSURFPLUGIN_DIR}/lib${LIB_LOCATION_SUFFIX}/salome/libBLSURFEngine.so ; then BLSURFplugin_ok=yes AC_MSG_RESULT(Using BLSURF mesh plugin distribution in ${BLSURFPLUGIN_DIR}) if test "x$BLSURFPLUGIN_ROOT_DIR" == "x" ; then BLSURFPLUGIN_ROOT_DIR=${BLSURFPLUGIN_DIR} fi BLSURFPLUGIN_CXXFLAGS=-I${BLSURFPLUGIN_ROOT_DIR}/include/salome BLSURFPLUGIN_LDFLAGS="-L${BLSURFPLUGIN_ROOT_DIR}/lib${LIB_LOCATION_SUFFIX}/salome -lBLSURFEngine" else AC_MSG_WARN("Cannot find compiled BLSURF mesh plugin distribution") fi AC_MSG_RESULT(for BLSURF mesh plugin: $BLSURFplugin_ok) AC_SUBST(BLSURFPLUGIN_ROOT_DIR) AC_SUBST(BLSURFPLUGIN_LDFLAGS) AC_SUBST(BLSURFPLUGIN_CXXFLAGS) ])dnl