1 # Check availability of RANDOMIZER binary distribution
3 # Author : Marc Tajchman (CEA, 2002)
4 #------------------------------------------------------------
6 AC_DEFUN([CHECK_RANDOMIZER],[
8 AC_CHECKING(for Randomizer)
13 --with-randomizer=DIR root directory path of RANDOMIZER build or installation,
14 RANDOMIZER_DIR="$withval",RANDOMIZER_DIR="")
16 if test "x$RANDOMIZER_DIR" = "x" ; then
18 # no --with-gui-dir option used
20 if test "x$RANDOMIZER_ROOT_DIR" != "x" ; then
22 # SALOME_ROOT_DIR environment variable defined
23 RANDOMIZER_DIR=$RANDOMIZER_ROOT_DIR
27 # search Salome binaries in PATH variable
28 AC_PATH_PROG(TEMP, RANDOMIZER.py)
29 if test "x$TEMP" != "x" ; then
30 RANDOMIZER_DIR=`dirname $TEMP`
37 if test -f ${RANDOMIZER_DIR}/lib/salome/RANDOMIZER.py ; then
39 AC_MSG_RESULT(Using RANDOMIZER module distribution in ${RANDOMIZER_DIR})
41 if test "x$RANDOMIZER_ROOT_DIR" == "x" ; then
42 RANDOMIZER_ROOT_DIR=${RANDOMIZER_DIR}
44 AC_SUBST(RANDOMIZER_ROOT_DIR)
46 AC_MSG_WARN("Cannot find compiled RANDOMIZER module distribution")
49 AC_MSG_RESULT(for RANDOMIZER: $Randomizer_ok)