1 # Copyright (C) 2007-2010 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # PLEASE DO NOT MODIFY configure.in FILE
21 # ALL CHANGES WILL BE DISCARDED BY THE NEXT
22 # build_configure COMMAND
23 # CHANGES MUST BE MADE IN configure.in.base FILE
24 # Author : Marc Tajchman (CEA)
26 # Modified by : Patrick GOLDBRONN (CEA)
27 # Modified by : Marc Tajchman (CEA)
28 # Created from configure.in.base
30 AC_INIT([Salome2 Project MULTIPR module],[5.1.4], [webmaster.salome@opencascade.com], [SalomeMULTIPR])
31 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
34 AM_INIT_AUTOMAKE([-Wno-portability])
36 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
39 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
44 dnl Initialize source and build root directories
48 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
54 AC_SUBST(ROOT_BUILDDIR)
57 echo Source root directory : $ROOT_SRCDIR
58 echo Build root directory : $ROOT_BUILDDIR
62 AC_CHECK_PROG(SHELL,sh)
65 if test -z "$AR"; then
66 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
70 dnl Export the AR macro so that it will be placed in the libtool file
75 echo ---------------------------------------------
77 echo ---------------------------------------------
84 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + for shared libraries
89 echo ---------------------------------------------
91 echo ---------------------------------------------
93 dnl first, we set static to no!
94 dnl if we want it, use --enable-static
100 dnl Fix up the INSTALL macro if it s a relative path. We want the
101 dnl full-path to the binary instead.
104 INSTALL='\${KERNEL_ROOT_DIR}'/adm_local/unix/config_files/install-sh
109 echo ---------------------------------------------
111 echo ---------------------------------------------
115 dnl inutil car libtool
119 AC_CXX_TEMPLATE_OPTIONS
121 # AC_CC_WARNINGS([ansi])
125 AC_CHECK_LIB(dl,dlopen)
127 dnl Library librt : for alpha/osf
128 AC_CHECK_LIB(rt,nanosleep)
130 dnl add library libm :
133 AC_CXX_USE_STD_IOSTREAM
137 dnl ---------------------------------------------
139 dnl ---------------------------------------------
145 echo ---------------------------------------------
147 echo ---------------------------------------------
153 echo ---------------------------------------------
155 echo ---------------------------------------------
163 echo ---------------------------------------------
165 echo ---------------------------------------------
171 if test "${SalomeGUI_need}" != "no" -a "${FullGUI_ok}" = "yes" ; then
175 AM_CONDITIONAL(MULTIPR_ENABLE_GUI, [test "${gui_ok}" = "yes"])
177 if test "${SalomeGUI_need}" == "yes"; then
178 if test "${FullGUI_ok}" != "yes"; then
179 AC_MSG_WARN(For configure MULTIPR module necessary full GUI!)
181 elif test "${SalomeGUI_need}" == "auto"; then
182 if test "${FullGUI_ok}" != "yes"; then
183 AC_MSG_WARN(Full GUI not found. Build will be done without GUI!)
185 elif test "${SalomeGUI_need}" == "no"; then
186 echo Build without GUI option has been chosen
189 if test "${gui_ok}" = "yes"; then
191 echo ---------------------------------------------
193 echo ---------------------------------------------
201 echo ---------------------------------------------
203 echo ---------------------------------------------
209 echo ---------------------------------------------
210 echo Testing OpenCascade
211 echo ---------------------------------------------
217 echo ---------------------------------------------
219 echo ---------------------------------------------
225 echo ---------------------------------------------
226 echo default ORB : omniORB
227 echo ---------------------------------------------
235 CORBA=adm_local/unix/$corba
238 echo ---------------------------------------------
240 echo ---------------------------------------------
246 echo ---------------------------------------------
248 echo ---------------------------------------------
254 echo ---------------------------------------------
256 echo ---------------------------------------------
262 echo ---------------------------------------------
264 echo ---------------------------------------------
270 echo ---------------------------------------------
272 echo ---------------------------------------------
276 if test "${gui_ok}" = "yes"; then
277 variables="cc_ok threads_ok boost_ok python_ok omniORB_ok qt_ok Kernel_ok Med_ok hdf5_ok med2_ok gui_ok"
278 elif test "${SalomeGUI_need}" != "no"; then
279 variables="cc_ok threads_ok boost_ok python_ok omniORB_ok Kernel_ok Med_ok hdf5_ok med2_ok gui_ok"
281 variables="cc_ok threads_ok boost_ok python_ok omniORB_ok Kernel_ok Med_ok hdf5_ok med2_ok"
284 for var in $variables
286 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
291 echo "Default ORB : $DEFAULT_ORB"
294 dnl We don t need to say when we re entering directories if we re using
295 dnl GNU make becuase make does it for us.
296 if test "X$GMAKE" = "Xyes"; then
297 AC_SUBST(SETX) SETX=":"
299 AC_SUBST(SETX) SETX="set -x"
302 echo ---------------------------------------------
303 echo generating Makefiles and configure files
304 echo ---------------------------------------------
307 AC_OUTPUT_COMMANDS([ \
311 # This list is initiated using autoscan and must be updated manually
312 # when adding a new file <filename>.in to manage. When you execute
313 # autoscan, the Makefile list is generated in the output file configure.scan.
314 # This could be helpfull to update de configuration.
317 adm_local/unix/Makefile \
318 adm_local/unix/config_files/Makefile \
324 resources/MULTIPRCatalog.xml \
326 src/MULTIPR/Makefile \
327 src/MULTIPRGUI/Makefile \