1 # Copyright (C) 2006-2008 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
19 # PLEASE DO NOT MODIFY configure.in FILE
20 # ALL CHANGES WILL BE DISCARDED BY THE NEXT
21 # build_configure COMMAND
22 # CHANGES MUST BE MADE IN configure.in.base FILE
23 # Author : Marc Tajchman (CEA)
25 # Modified by : Patrick GOLDBRONN (CEA)
26 # Modified by : Marc Tajchman (CEA)
27 # Created from configure.in.base
30 AC_CONFIG_AUX_DIR(${KERNEL_ROOT_DIR}/salome_adm/unix/config_files)
40 dnl Initialize source and build root directories
44 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
50 AC_SUBST(ROOT_BUILDDIR)
53 echo Source root directory : $ROOT_SRCDIR
54 echo Build root directory : $ROOT_BUILDDIR
58 if test -z "$AR"; then
59 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
63 dnl Export the AR macro so that it will be placed in the libtool file
68 echo ---------------------------------------------
70 echo ---------------------------------------------
76 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + for shared libraries
81 echo ---------------------------------------------
83 echo ---------------------------------------------
85 dnl first, we set static to no!
86 dnl if we want it, use --enable-static
92 dnl Fix up the INSTALL macro if it s a relative path. We want the
93 dnl full-path to the binary instead.
96 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
101 echo ---------------------------------------------
103 echo ---------------------------------------------
107 dnl inutil car libtool
111 AC_CXX_TEMPLATE_OPTIONS
114 # AC_CC_WARNINGS([ansi])
118 AC_CHECK_LIB(dl,dlopen)
120 dnl Library librt : for alpha/osf
121 AC_CHECK_LIB(rt,nanosleep)
123 dnl add library libm :
126 AC_CXX_USE_STD_IOSTREAM
130 dnl ---------------------------------------------
132 dnl ---------------------------------------------
138 echo ---------------------------------------------
140 echo ---------------------------------------------
146 echo ---------------------------------------------
148 echo ---------------------------------------------
154 echo ---------------------------------------------
156 echo ---------------------------------------------
162 echo ---------------------------------------------
164 echo ---------------------------------------------
170 echo ---------------------------------------------
172 echo ---------------------------------------------
178 echo ---------------------------------------------
179 echo Testing OpenCascade
180 echo ---------------------------------------------
186 echo ---------------------------------------------
188 echo ---------------------------------------------
194 echo ---------------------------------------------
195 echo default ORB : omniORB
196 echo ---------------------------------------------
204 CORBA=adm_local/unix/$corba
207 echo ---------------------------------------------
209 echo ---------------------------------------------
215 echo ---------------------------------------------
217 echo ---------------------------------------------
223 echo ---------------------------------------------
225 echo ---------------------------------------------
231 echo ---------------------------------------------
232 echo testing MED AND MED2
233 echo ---------------------------------------------
240 echo ---------------------------------------------
241 echo testing Component Evironment
242 echo ---------------------------------------------
248 echo ---------------------------------------------
250 echo ---------------------------------------------
254 variables="cc_ok threads_ok boost_ok python_ok omniORB_ok qt_ok msg2qm_ok Kernel_ok SalomeGUI_ok Med_ok med2_ok hdf5_ok Comp_Env_ok"
256 for var in $variables
258 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
263 echo "Default ORB : $DEFAULT_ORB"
266 dnl generals files which could be included in every makefile
268 AC_SUBST_FILE(COMMENCE) COMMENCE=adm_local/unix/make_commence
269 AC_SUBST_FILE(CONCLUDE) CONCLUDE=salome_adm/unix/make_conclude
270 AC_SUBST_FILE(MODULE) MODULE=salome_adm/unix/make_module
273 AC_SUBST_FILE(DEPEND) DEPEND=salome_adm/unix/depend
275 dnl We don t need to say when we re entering directories if we re using
276 dnl GNU make becuase make does it for us.
277 if test "X$GMAKE" = "Xyes"; then
278 AC_SUBST(SETX) SETX=":"
280 AC_SUBST(SETX) SETX="set -x"
283 # make other build directories
284 for rep in salome_adm adm_local doc bin/salome include/salome lib/salome share/salome/resources share/salome/doc idl
290 echo ---------------------------------------------
291 echo copying resource files, shell scripts, and
293 echo ---------------------------------------------
296 dnl copy shells and utilities contained in the bin directory
297 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
301 for i in $ROOT_SRCDIR/bin/*
303 local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
307 *) ln -fs $i; echo $local_bin ;;
312 AC_SUBST_FILE(ENVSCRIPT) ENVSCRIPT=salome_adm/unix/envScript
315 echo ---------------------------------------------
316 echo generating Makefiles and configure files
317 echo ---------------------------------------------
320 AC_OUTPUT_COMMANDS([ \
324 ## do not delete this line