1 # Check availability of SUPERV module binary distribution
3 # Author : Marc Tajchman (CEA, 2002)
4 #------------------------------------------------------------
6 AC_DEFUN([CHECK_SUPERV],[
8 AC_CHECKING(for Superv)
13 --with-superv=DIR root directory path of SUPERV installation,
14 SUPERV_DIR="$withval",SUPERV_DIR="")
16 if test "x$SUPERV_DIR" = "x" ; then
18 # no --with-gui-dir option used
20 if test "x$SUPERV_ROOT_DIR" != "x" ; then
22 # SUPERV_ROOT_DIR environment variable defined
23 SUPERV_DIR=$SUPERV_ROOT_DIR
27 # search SUPERV binaries in PATH variable
28 AC_PATH_PROG(TEMP, libSUPERV.so)
29 if test "x$TEMP" != "x" ; then
30 SUPERV_BIN_DIR=`dirname $TEMP`
31 SUPERV_DIR=`dirname $SUPERV_BIN_DIR`
38 if test -f ${SUPERV_DIR}/lib/salome/libSUPERV.so ; then
40 AC_MSG_RESULT(Using SUPERV distribution in ${SUPERV_DIR})
42 if test "x$SUPERV_ROOT_DIR" == "x" ; then
43 SUPERV_ROOT_DIR=${SUPERV_DIR}
45 AC_SUBST(SUPERV_ROOT_DIR)
47 AC_MSG_WARN("Cannot find compiled SUPERV distribution")
50 AC_MSG_RESULT(for SUPERV: $Superv_ok)