1 ###########################################################
2 # File : check_Randomizer.m4
3 # Author : Vadim SANDLER (OCN)
5 # Copyright (C) 2005 Open CASCADE
6 # Check availability of Randomizer binary distribution
7 ###########################################################
9 AC_DEFUN([CHECK_RANDOMIZER],[
11 AC_CHECKING(for Randomizer)
16 [ --with-rnd=DIR root directory path of RANDOMIZER module installation ],
17 RANDOMIZER_DIR="$withval",RANDOMIZER_DIR="")
19 if test "x$RANDOMIZER_DIR" == "x" ; then
20 # no --with-rnd-dir option used
21 if test "x$RANDOMIZER_ROOT_DIR" != "x" ; then
22 # RANDOMIZER_ROOT_DIR environment variable defined
23 RANDOMIZER_DIR=$RANDOMIZER_ROOT_DIR
27 if test -f ${RANDOMIZER_DIR}/idl/salome/Randomizer.idl ; then
29 AC_MSG_RESULT(Using Randomizer module distribution in ${RANDOMIZER_DIR})
31 if test "x$RANDOMIZER_ROOT_DIR" == "x" ; then
32 RANDOMIZER_ROOT_DIR=${RANDOMIZER_DIR}
34 AC_SUBST(RANDOMIZER_ROOT_DIR)
36 AC_MSG_WARN("Cannot find Randomizer module sources")
39 AC_MSG_RESULT(for Randomizer: $Randomizer_ok)