2 # PLEASE DO NOT MODIFY configure.in FILE
4 # ALL CHANGES WILL BE DISCARDED BY THE NEXT
5 # build_configure COMMAND
7 # CHANGES MUST BE MADE IN configure.in.base FILE
10 # Author : Marc Tajchman (CEA)
12 # Modified by : Patrick GOLDBRONN (CEA)
13 # Modified by : Marc Tajchman (CEA)
15 # Created from configure.in.base
19 AC_CONFIG_AUX_DIR(${KERNEL_ROOT_DIR}/salome_adm/unix/config_files/DEPRECATED)
30 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
35 dnl Initialize source and build root directories
39 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
45 AC_SUBST(ROOT_BUILDDIR)
48 echo Source root directory : $ROOT_SRCDIR
49 echo Build root directory : $ROOT_BUILDDIR
53 if test -z "$AR"; then
54 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
58 dnl Export the AR macro so that it will be placed in the libtool file
63 echo ---------------------------------------------
65 echo ---------------------------------------------
72 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
77 echo ---------------------------------------------
79 echo ---------------------------------------------
81 dnl first, we set static to no!
82 dnl if we want it, use --enable-static
88 dnl Fix up the INSTALL macro if it s a relative path. We want the
89 dnl full-path to the binary instead.
92 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/DEPRECATED/install-sh
97 echo ---------------------------------------------
99 echo ---------------------------------------------
103 dnl inutil car libtool
107 # AC_CC_WARNINGS([ansi])
111 AC_CHECK_LIB(dl,dlopen)
113 dnl add library libm :
117 dnl Well we use sstream which is not in gcc pre-2.95.3
118 dnl We must test if it exists. If not, add it in include !
121 AC_CXX_USE_STD_IOSTREAM
127 dnl ---------------------------------------------
129 dnl ---------------------------------------------
135 echo ---------------------------------------------
137 echo ---------------------------------------------
143 echo ---------------------------------------------
145 echo ---------------------------------------------
151 echo ---------------------------------------------
153 echo ---------------------------------------------
159 echo ---------------------------------------------
161 echo ---------------------------------------------
167 echo ---------------------------------------------
168 echo default ORB : omniORB
169 echo ---------------------------------------------
177 CORBA=adm_local/unix/$corba
180 echo ---------------------------------------------
182 echo ---------------------------------------------
188 echo ---------------------------------------------
190 echo ---------------------------------------------
196 echo ---------------------------------------------
198 echo ---------------------------------------------
204 echo ---------------------------------------------
206 echo ---------------------------------------------
212 echo ---------------------------------------------
214 echo ---------------------------------------------
220 echo ---------------------------------------------
222 echo ---------------------------------------------
228 echo ---------------------------------------------
229 echo Testing OpenCascade
230 echo ---------------------------------------------
236 echo ---------------------------------------------
238 echo ---------------------------------------------
244 echo ---------------------------------------------
245 echo Testing html generators
246 echo ---------------------------------------------
249 CHECK_HTML_GENERATORS
252 echo ---------------------------------------------
254 echo ---------------------------------------------
260 echo ---------------------------------------------
261 echo Testing full GUI
262 echo ---------------------------------------------
266 if test "x${CORBA_IN_GUI}" != "xyes"; then
267 echo "failed : For configure FILTER module necessary full GUI !"
272 echo ---------------------------------------------
274 echo ---------------------------------------------
280 echo ---------------------------------------------
282 echo ---------------------------------------------
288 echo ---------------------------------------------
290 echo ---------------------------------------------
296 echo ---------------------------------------------
298 echo ---------------------------------------------
302 variables="cc_ok boost_ok python_ok swig_ok threads_ok qt_ok vtk_ok hdf5_ok med2_ok omniORB_ok occ_ok qwt_ok doxygen_ok graphviz_ok Kernel_ok Med_ok filtoo_ok"
304 for var in $variables
306 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
311 echo "Default ORB : $DEFAULT_ORB"
314 dnl generals files which could be included in every makefile
316 AC_SUBST_FILE(COMMENCE) COMMENCE=adm_local/unix/make_commence
317 AC_SUBST_FILE(CONCLUDE) CONCLUDE=salome_adm/unix/make_conclude
318 AC_SUBST_FILE(MODULE) MODULE=salome_adm/unix/make_module
321 AC_SUBST_FILE(DEPEND) DEPEND=salome_adm/unix/depend
323 dnl We don t need to say when we re entering directories if we re using
324 dnl GNU make becuase make does it for us.
325 if test "X$GMAKE" = "Xyes"; then
326 AC_SUBST(SETX) SETX=":"
328 AC_SUBST(SETX) SETX="set -x"
331 # make other build directories
332 for rep in salome_adm adm_local doc bin/salome include/salome lib${LIB_LOCATION_SUFFIX}/salome share/salome/resources/${MODULE_NAME} idl
334 # if test ! -d $rep ; then
341 echo ---------------------------------------------
342 echo copying resource files, shell scripts, and
344 echo ---------------------------------------------
348 dnl copy resources directories
350 #for i in `find $ROOT_SRCDIR -name 'resources' -print`
352 # local_res=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
353 # local_res_dir=`echo $local_res | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
354 # mkdir -p $local_res_dir
361 dnl copy shells and utilities contained in the bin directory
362 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
367 for i in $ROOT_SRCDIR/bin/*
369 local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
372 ./bin/CVS | ./bin/salome) ;;
373 *) /usr/bin/install $i .; echo $local_bin ;;
378 AC_SUBST_FILE(ENVSCRIPT) ENVSCRIPT=salome_adm/unix/envScript
380 dnl copy xml files to the build tree (lib directory)
384 #for i in `find $ROOT_SRCDIR -name "*.xml" -print`
387 # echo `echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
393 echo ---------------------------------------------
394 echo generating Makefiles and configure files
395 echo ---------------------------------------------
398 AC_OUTPUT_COMMANDS([ \
402 ## do not delete this line