2011-06-06 13:23:11 +06:00
|
|
|
dnl Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
|
2009-02-13 17:16:39 +05:00
|
|
|
dnl
|
2011-06-06 13:23:11 +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-13 17:16:39 +05:00
|
|
|
dnl
|
2011-06-06 13:23:11 +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-13 17:16:39 +05:00
|
|
|
dnl
|
2011-06-06 13:23:11 +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-13 17:16:39 +05:00
|
|
|
dnl
|
2011-06-06 13:23:11 +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-13 17:16:39 +05:00
|
|
|
dnl
|
2011-06-06 13:23:11 +06:00
|
|
|
dnl See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2009-02-13 17:16:39 +05:00
|
|
|
dnl
|
2010-05-14 21:15:28 +06:00
|
|
|
|
2006-03-13 20:11:51 +05:00
|
|
|
# Check availability of Geom binary distribution
|
|
|
|
#
|
|
|
|
# Author : Nicolas REJNERI (OPEN CASCADE, 2003)
|
|
|
|
#
|
|
|
|
|
|
|
|
AC_DEFUN([CHECK_GEOM],[
|
|
|
|
|
|
|
|
AC_CHECKING(for Geom)
|
|
|
|
|
|
|
|
Geom_ok=no
|
|
|
|
|
2006-06-01 17:32:40 +06:00
|
|
|
GEOM_LDFLAGS=""
|
|
|
|
GEOM_CXXFLAGS=""
|
|
|
|
|
2006-03-13 20:11:51 +05:00
|
|
|
AC_ARG_WITH(geom,
|
|
|
|
[ --with-geom=DIR root directory path of GEOM installation ],
|
|
|
|
GEOM_DIR="$withval",GEOM_DIR="")
|
|
|
|
|
|
|
|
if test "x$GEOM_DIR" == "x" ; then
|
|
|
|
|
|
|
|
# no --with-geom-dir option used
|
|
|
|
|
|
|
|
if test "x$GEOM_ROOT_DIR" != "x" ; then
|
|
|
|
|
|
|
|
# GEOM_ROOT_DIR environment variable defined
|
|
|
|
GEOM_DIR=$GEOM_ROOT_DIR
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
# search Geom binaries in PATH variable
|
|
|
|
AC_PATH_PROG(TEMP, libGEOM_Swig.py)
|
|
|
|
if test "x$TEMP" != "x" ; then
|
|
|
|
GEOM_BIN_DIR=`dirname $TEMP`
|
|
|
|
GEOM_DIR=`dirname $GEOM_BIN_DIR`
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
#
|
|
|
|
fi
|
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
if test -f ${GEOM_DIR}/bin/salome/geompy.py ; then
|
2006-03-13 20:11:51 +05:00
|
|
|
Geom_ok=yes
|
|
|
|
AC_MSG_RESULT(Using Geom module distribution in ${GEOM_DIR})
|
|
|
|
|
|
|
|
if test "x$GEOM_ROOT_DIR" == "x" ; then
|
|
|
|
GEOM_ROOT_DIR=${GEOM_DIR}
|
|
|
|
fi
|
|
|
|
AC_SUBST(GEOM_ROOT_DIR)
|
|
|
|
|
2006-06-01 17:32:40 +06:00
|
|
|
GEOM_LDFLAGS=-L${GEOM_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
|
|
|
|
GEOM_CXXFLAGS=-I${GEOM_DIR}/include/salome
|
|
|
|
|
|
|
|
AC_SUBST(GEOM_LDFLAGS)
|
|
|
|
AC_SUBST(GEOM_CXXFLAGS)
|
|
|
|
|
2006-03-13 20:11:51 +05:00
|
|
|
else
|
|
|
|
AC_MSG_WARN("Cannot find compiled Geom module distribution")
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_MSG_RESULT(for Geom: $Geom_ok)
|
|
|
|
|
|
|
|
])dnl
|
|
|
|
|