1 # Check availability of Salome's VISU binary distribution
3 # Author : Jerome Roy (CEA, 2003)
6 AC_DEFUN([CHECK_VISU],[
13 [ --with-visu=DIR root directory path of VISU build or installation],
14 VISU_DIR="$withval",VISU_DIR="")
16 if test "x$VISU_DIR" = "x" ; then
18 # no --with-visu-dir option used
20 if test "x$VISU_ROOT_DIR" != "x" ; then
22 # VISU_ROOT_DIR environment variable defined
23 VISU_DIR=$VISU_ROOT_DIR
27 # search Visu binaries in PATH variable
28 AC_PATH_PROG(TEMP, runSalome)
29 if test "x$TEMP" != "x" ; then
30 VISU_BIN_DIR=`dirname $TEMP`
31 VISU_DIR=`dirname $VISU_BIN_DIR`
38 if test -f ${VISU_DIR}/bin/salome/runSalome ; then
40 AC_MSG_RESULT(Using Visu module distribution in ${VISU_DIR})
42 if test "x$VISU_ROOT_DIR" = "x" ; then
43 VISU_ROOT_DIR=${VISU_DIR}
45 if test "x$VISU_SITE_DIR" = "x" ; then
46 VISU_SITE_DIR=${VISU_ROOT_DIR}
48 AC_SUBST(VISU_ROOT_DIR)
49 AC_SUBST(VISU_SITE_DIR)
52 AC_MSG_WARN("Cannot find compiled Visu module distribution")
55 AC_MSG_RESULT(for Visu: $Visu_ok)