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)
11 # Created : 28/06/2001
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)
29 dnl Initialize source and build root directories
33 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
39 AC_SUBST(ROOT_BUILDDIR)
42 echo Source root directory : $ROOT_SRCDIR
43 echo Build root directory : $ROOT_BUILDDIR
47 if test -z "$AR"; then
48 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
52 dnl Export the AR macro so that it will be placed in the libtool file
57 echo ---------------------------------------------
59 echo ---------------------------------------------
65 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
70 echo ---------------------------------------------
72 echo ---------------------------------------------
74 dnl first, we set static to no!
75 dnl if we want it, use --enable-static
81 dnl Fix up the INSTALL macro if it s a relative path. We want the
82 dnl full-path to the binary instead.
85 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
90 echo ---------------------------------------------
92 echo ---------------------------------------------
96 dnl inutil car libtool
100 # AC_CC_WARNINGS([ansi])
104 AC_CHECK_LIB(dl,dlopen)
106 dnl add library libm :
110 dnl Well we use sstream which is not in gcc pre-2.95.3
111 dnl We must test if it exists. If not, add it in include !
117 echo ---------------------------------------------
119 echo ---------------------------------------------
125 dnl ---------------------------------------------
127 dnl ---------------------------------------------
133 echo ---------------------------------------------
134 echo testing LEX \& YACC
135 echo ---------------------------------------------
144 echo ---------------------------------------------
146 echo ---------------------------------------------
152 dnl echo ---------------------------------------------
153 dnl echo testing java
154 dnl echo ---------------------------------------------
160 echo ---------------------------------------------
162 echo ---------------------------------------------
168 echo ---------------------------------------------
170 echo ---------------------------------------------
176 echo ---------------------------------------------
178 echo ---------------------------------------------
184 dnl echo ---------------------------------------------
185 dnl echo testing mico
186 dnl echo ---------------------------------------------
192 echo ---------------------------------------------
193 echo default ORB : omniORB
194 echo ---------------------------------------------
202 CORBA=adm_local/unix/$corba
205 echo ---------------------------------------------
207 echo ---------------------------------------------
213 echo ---------------------------------------------
215 echo ---------------------------------------------
221 echo ---------------------------------------------
223 echo ---------------------------------------------
229 echo ---------------------------------------------
231 echo ---------------------------------------------
237 echo ---------------------------------------------
239 echo ---------------------------------------------
245 echo ---------------------------------------------
247 echo ---------------------------------------------
253 echo ---------------------------------------------
254 echo Testing OpenCascade
255 echo ---------------------------------------------
261 echo ---------------------------------------------
262 echo Testing html generators
263 echo ---------------------------------------------
266 CHECK_HTML_GENERATORS
269 echo ---------------------------------------------
270 echo Testing gd library
271 echo ---------------------------------------------
277 echo ---------------------------------------------
279 echo ---------------------------------------------
285 echo ---------------------------------------------
286 echo Testing full GUI
287 echo ---------------------------------------------
291 if test "x${CORBA_IN_GUI}" != "xyes"; then
292 echo "failed : For configure COMPONENT module necessary full GUI !"
297 echo ---------------------------------------------
299 echo ---------------------------------------------
305 echo ---------------------------------------------
307 echo ---------------------------------------------
313 echo ---------------------------------------------
315 echo ---------------------------------------------
321 echo ---------------------------------------------
323 echo ---------------------------------------------
329 echo ---------------------------------------------
330 echo Testing Randomizer
331 echo ---------------------------------------------
337 echo ---------------------------------------------
339 echo ---------------------------------------------
343 variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok
344 OpenGL_ok qt_ok msg2qm_ok vtk_ok hdf5_ok med2_ok omniORB_ok occ_ok doxygen_ok graphviz_ok gd_ok Kernel_ok Med_ok Visu_ok Randomizer_ok"
346 for var in $variables
348 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
353 echo "Default ORB : $DEFAULT_ORB"
356 dnl generals files which could be included in every makefile
358 AC_SUBST_FILE(COMMENCE) COMMENCE=adm_local/unix/make_commence
359 AC_SUBST_FILE(CONCLUDE) CONCLUDE=salome_adm/unix/make_conclude
360 AC_SUBST_FILE(MODULE) MODULE=salome_adm/unix/make_module
363 AC_SUBST_FILE(DEPEND) DEPEND=salome_adm/unix/depend
365 dnl We don t need to say when we re entering directories if we re using
366 dnl GNU make becuase make does it for us.
367 if test "X$GMAKE" = "Xyes"; then
368 AC_SUBST(SETX) SETX=":"
370 AC_SUBST(SETX) SETX="set -x"
373 # make other build directories
374 for rep in salome_adm adm_local doc bin/salome include/salome lib/salome share/salome/resources share/salome/doc idl
376 # if test ! -d $rep ; then
383 echo ---------------------------------------------
384 echo copying resource files, shell scripts, and
386 echo ---------------------------------------------
390 dnl copy resources directories
392 #for i in `find $ROOT_SRCDIR -name 'resources' -print`
394 # local_res=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
395 # local_res_dir=`echo $local_res | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
396 # mkdir -p $local_res_dir
403 dnl copy shells and utilities contained in the bin directory
404 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
409 for i in $ROOT_SRCDIR/bin/*
411 local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
414 ./bin/CVS | ./bin/salome) ;;
415 *) /usr/bin/install -c $i .; echo $local_bin ;;
420 AC_SUBST_FILE(ENVSCRIPT) ENVSCRIPT=salome_adm/unix/envScript
422 dnl copy xml files to the build tree (lib directory)
426 #for i in `find $ROOT_SRCDIR -name "*.xml" -print`
429 # echo `echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
435 echo ---------------------------------------------
436 echo generating Makefiles and configure files
437 echo ---------------------------------------------
440 AC_OUTPUT_COMMANDS([ \
444 ## do not delete this line