1 # Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
20 #------------------------------------------------------------
21 # Check availability of Salome binary distribution
23 # Author : Marc Tajchman (CEA, 2002)
24 #------------------------------------------------------------
26 AC_DEFUN([CHECK_SALOME_GUI],[
28 AC_CHECKING(for Salome GUI)
33 --with-salome_gui=DIR root directory path of SALOME GUI installation,
34 SALOME_GUI_DIR="$withval",SALOME_GUI_DIR="")
36 if test "x$SALOME_GUI_DIR" = "x" ; then
37 if test "x$GUI_ROOT_DIR" != "x" ; then
38 SALOME_GUI_DIR=$GUI_ROOT_DIR
40 # search Salome binaries in PATH variable
41 AC_PATH_PROG(TEMP, SUITApp)
42 if test "x$TEMP" != "x" ; then
43 SALOME_GUI_BIN_DIR=`dirname $TEMP`
44 SALOME_GUI_DIR=`dirname $SALOME_GUI_BIN_DIR`
49 if test "x$SALOME_GUI_DIR" != "x" ; then
50 if test -f ${SALOME_GUI_DIR}/bin/salome/SUITApp ; then
52 AC_MSG_RESULT(Using SALOME GUI distribution in ${SALOME_GUI_DIR})
53 GUI_ROOT_DIR=${SALOME_GUI_DIR}
56 if test "x$SalomeGUI_ok" == "xno" ; then
57 AC_MSG_WARN("Cannot find compiled SALOME GUI distribution")
60 AC_SUBST(GUI_ROOT_DIR)
62 AC_MSG_RESULT(for SALOME GUI: $SalomeGUI_ok)