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