1 dnl Copyright (C) 2006-2023 CEA, EDF
3 dnl This library is free software; you can redistribute it and/or
4 dnl modify it under the terms of the GNU Lesser General Public
5 dnl License as published by the Free Software Foundation; either
6 dnl version 2.1 of the License, or (at your option) any later version.
8 dnl This library is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 dnl Lesser General Public License for more details.
13 dnl You should have received a copy of the GNU Lesser General Public
14 dnl License along with this library; if not, write to the Free Software
15 dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 dnl See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # Check availability of Qt's msg2qm tool binary distribution
22 # Author : Jerome Roy (CEA, 2003)
25 AC_DEFUN([CHECK_MSG2QM],[
27 AC_CHECKING(for msg2qm)
32 [ --with-msg2qm=DIR root directory path of MSG2QM installation],
33 MSG2QM_DIR="$withval",MSG2QM_DIR="")
35 if test "x$MSG2QM_DIR" == "x" ; then
37 # no --with-MSG2QM-dir option used
39 if test "x$MSG2QM_ROOT" != "x" ; then
41 # MSG2QM_ROOT environment variable defined
42 MSG2QM_DIR=$MSG2QM_ROOT
46 # search MSG2QM binaries in PATH variable
47 AC_PATH_PROG(TEMP, msg2qm)
48 if test "x$TEMP" != "x" ; then
49 MSG2QM_DIR=`dirname $TEMP`
56 # look for msg2qm in ${MSG2QM_DIR} directory
57 if test -f ${MSG2QM_DIR}/msg2qm ; then
59 MSG2QM="${MSG2QM_DIR}/msg2qm"
60 AC_MSG_RESULT(Using MSG2QM executable in ${MSG2QM_DIR})
62 # if not found, look for msg2qm in ${MSG2QM_DIR}/bin directory
63 if test -f ${MSG2QM_DIR}/bin/msg2qm ; then
65 MSG2QM="${MSG2QM_DIR}/bin/msg2qm"
66 AC_MSG_RESULT(Using MSG2QM executable in ${MSG2QM_DIR}/bin)
68 AC_MSG_WARN("Cannot find MSG2QM executable")
73 AC_MSG_RESULT(for MSG2QM: $msg2qm_ok)