1 # Check availability of Salome binary distribution
3 # Author : Marc Tajchman (CEA, 2002)
6 AC_DEFUN([CHECK_SALOME],[
8 AC_CHECKING(for Salome)
13 --with-salome=DIR root directory path of SALOME installation,
14 SALOME_DIR="$withval",SALOME_DIR="")
16 if test "x$SALOME_DIR" == "x" ; then
18 # no --with-salome-dir option used
20 if test "x$SALOME_ROOT_DIR" != "x" ; then
22 # SALOME_ROOT_DIR environment variable defined
23 SALOME_DIR=$SALOME_ROOT_DIR
27 # search Salome binaries in PATH variable
28 AC_PATH_PROG(TEMP, libMEDMEM_Swig.py)
29 if test "x$TEMP" != "x" ; then
30 SALOME_BIN_DIR=`dirname $TEMP`
31 SALOME_DIR=`dirname $SALOME_BIN_DIR`
38 if test -f ${SALOME_DIR}/bin/libMEDMEM_Swig.py ; then
40 AC_MSG_RESULT(Using Salome distribution in ${SALOME_DIR})
42 if test "x$SALOME_ROOT_DIR" == "x" ; then
43 SALOME_ROOT_DIR=${SALOME_DIR}
45 if test "x$SALOME_SITE_DIR" == "x" ; then
46 SALOME_SITE_DIR=${SALOME_ROOT_DIR}
48 AC_SUBST(SALOME_ROOT_DIR)
49 AC_SUBST(SALOME_SITE_DIR)
52 AC_MSG_WARN("Cannot find compiled Salome distribution")
55 AC_MSG_RESULT(for Salome: $Salome_ok)