1 dnl Copyright (C) 2005-2019 OPEN CASCADE
3 dnl This library is free software; you can redistribute it and/or
4 dnl modify it under the terms of the GNU Lesser General Public
5 dnl License as published by the Free Software Foundation; either
6 dnl version 2.1 of the License, or (at your option) any later version.
8 dnl This library is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 dnl Lesser General Public License for more details.
13 dnl You should have received a copy of the GNU Lesser General Public
14 dnl License along with this library; if not, write to the Free Software
15 dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 dnl See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 ###########################################################
21 # File : check_Randomizer.m4
22 # Author : Vadim SANDLER (OCN)
24 # Check availability of Randomizer binary distribution
25 ###########################################################
27 AC_DEFUN([CHECK_RANDOMIZER],[
29 AC_CHECKING(for Randomizer)
33 RANDOMIZER_CXXFLAGS=""
37 [ --with-rnd=DIR root directory path of RANDOMIZER module installation ],
38 RANDOMIZER_DIR="$withval",RANDOMIZER_DIR="")
40 if test "x$RANDOMIZER_DIR" == "x" ; then
41 # no --with-rnd-dir option used
42 if test "x$RANDOMIZER_ROOT_DIR" != "x" ; then
43 # RANDOMIZER_ROOT_DIR environment variable defined
44 RANDOMIZER_DIR=$RANDOMIZER_ROOT_DIR
48 if test -f ${RANDOMIZER_DIR}/idl/salome/Randomizer.idl ; then
50 AC_MSG_RESULT(Using Randomizer module distribution in ${RANDOMIZER_DIR})
52 if test "x$RANDOMIZER_ROOT_DIR" == "x" ; then
53 RANDOMIZER_ROOT_DIR=${RANDOMIZER_DIR}
56 RANDOMIZER_LDFLAGS=-L${RANDOMIZER_ROOT_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
57 RANDOMIZER_CXXFLAGS=-I${RANDOMIZER_ROOT_DIR}/include/salome
59 AC_SUBST(RANDOMIZER_ROOT_DIR)
60 AC_SUBST(RANDOMIZER_LDFLAGS)
61 AC_SUBST(RANDOMIZER_CXXFLAGS)
63 AC_MSG_WARN("Cannot find Randomizer module sources")
66 AC_MSG_RESULT(for Randomizer: $Randomizer_ok)