2 # Author : Marc Tajchman (CEA)
4 # Modified by : Patrick GOLDBRONN (CEA)
5 # Modified by : Marc Tajchman (CEA)
6 # Modified by : Alexander BORODIN (OCN) - autotools usage
8 # Created from configure.in.base
12 AC_INIT([Salome2 Project GEOM module], [4.0.0], [gboulant@CS], [salome])
13 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
26 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
31 echo ---------------------------------------------
32 echo Initialize source and build root directories
33 echo ---------------------------------------------
37 dnl Initialize source and build root directories
41 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
47 AC_SUBST(ROOT_BUILDDIR)
50 echo Source root directory : $ROOT_SRCDIR
51 echo Build root directory : $ROOT_BUILDDIR
55 if test -z "$AR"; then
56 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
60 dnl Export the AR macro so that it will be placed in the libtool file
65 echo ---------------------------------------------
67 echo ---------------------------------------------
73 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
76 echo ---------------------------------------------
77 echo Coniguring production
78 echo ---------------------------------------------
83 echo ---------------------------------------------
85 echo ---------------------------------------------
87 dnl first, we set static to no!
88 dnl if we want it, use --enable-static
94 dnl Fix up the INSTALL macro if it s a relative path. We want the
95 dnl full-path to the binary instead.
98 INSTALL='\${ROOT_BUILDDIR}'/salome_adm/unix/config_files/install-sh
103 echo ---------------------------------------------
105 echo ---------------------------------------------
109 dnl inutil car libtool
113 AC_CXX_TEMPLATE_OPTIONS
115 # AC_CC_WARNINGS([ansi])
119 AC_CHECK_LIB(dl,dlopen)
121 dnl add library libm :
125 dnl Well we use sstream which is not in gcc pre-2.95.3
126 dnl We must test if it exists. If not, add it in include !
132 dnl ---------------------------------------------
134 dnl ---------------------------------------------
140 echo ---------------------------------------------
141 echo testing LEX \& YACC
142 echo ---------------------------------------------
151 echo ---------------------------------------------
153 echo ---------------------------------------------
159 dnl echo ---------------------------------------------
160 dnl echo testing java
161 dnl echo ---------------------------------------------
167 echo ---------------------------------------------
169 echo ---------------------------------------------
176 echo ---------------------------------------------
178 echo ---------------------------------------------
183 if test "x${GUI_DISABLE_CORBA}" != "xyes" ; then
185 echo ---------------------------------------------
187 echo ---------------------------------------------
193 dnl echo ---------------------------------------------
194 dnl echo testing mico
195 dnl echo ---------------------------------------------
201 echo ---------------------------------------------
202 echo default ORB : omniORB
203 echo ---------------------------------------------
209 echo ---------------------------------------------
211 echo ---------------------------------------------
218 CORBA=adm_local/unix/$corba
222 echo ---------------------------------------------
224 echo ---------------------------------------------
230 echo ---------------------------------------------
232 echo ---------------------------------------------
238 echo ---------------------------------------------
240 echo ---------------------------------------------
246 echo ---------------------------------------------
248 echo ---------------------------------------------
254 echo ---------------------------------------------
256 echo ---------------------------------------------
262 echo ---------------------------------------------
264 echo ---------------------------------------------
270 echo ---------------------------------------------
271 echo Testing OpenCascade
272 echo ---------------------------------------------
278 echo ---------------------------------------------
279 echo Testing html generators
280 echo ---------------------------------------------
283 CHECK_HTML_GENERATORS
286 echo ---------------------------------------------
288 echo ---------------------------------------------
294 echo ---------------------------------------------
295 echo Testing full GUI
296 echo ---------------------------------------------
300 if test "x${CORBA_IN_GUI}" != "xyes"; then
301 echo "failed : For configure GEOM module necessary full GUI !"
306 echo ---------------------------------------------
308 echo ---------------------------------------------
314 echo ---------------------------------------------
316 echo ---------------------------------------------
320 variables="cc_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok omniORB_ok boost_ok occ_ok doxygen_ok graphviz_ok Kernel_ok"
322 for var in $variables
324 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
329 echo "Default ORB : $DEFAULT_ORB"
332 dnl We don t need to say when we re entering directories if we re using
333 dnl GNU make becuase make does it for us.
334 if test "X$GMAKE" = "Xyes"; then
335 AC_SUBST(SETX) SETX=":"
337 AC_SUBST(SETX) SETX="set -x"
340 dnl copy shells and utilities contained in the bin directory
341 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
346 echo ---------------------------------------------
347 echo generating Makefiles and configure files
348 echo ---------------------------------------------
351 AC_OUTPUT_COMMANDS([ \
355 # This list is initiated using autoscan and must be updated manually
356 # when adding a new file <filename>.in to manage. When you execute
357 # autoscan, the Makefile list is generated in the output file configure.scan.
358 # This could be helpfull to update de configuration.
360 ./salome_adm/unix/SALOMEconfig.h \
361 ./adm_local/Makefile \
362 ./adm_local/unix/Makefile \
363 ./adm_local/unix/config_files/Makefile \
368 ./doc/salome/Makefile \
369 ./doc/salome/gui/Makefile \
370 ./doc/salome/tui/Makefile \
371 ./doc/salome/tui/GEOM/doxyfile \
372 ./doc/salome/tui/GEOM/sources/static/tree.js \
374 ./src/ARCHIMEDE/Makefile \
375 ./src/BREPExport/Makefile \
376 ./src/BREPImport/Makefile \
377 ./src/BasicGUI/Makefile \
378 ./src/BlocksGUI/Makefile \
379 ./src/BooleanGUI/Makefile \
380 ./src/BuildGUI/Makefile \
381 ./src/DisplayGUI/Makefile \
382 ./src/DlgRef/Makefile \
383 ./src/EntityGUI/Makefile \
384 ./src/GEOM/Makefile \
385 ./src/GEOMAlgo/Makefile \
386 ./src/GEOMBase/Makefile \
387 ./src/GEOMClient/Makefile \
388 ./src/GEOMFiltersSelection/Makefile \
389 ./src/GEOMGUI/Makefile \
390 ./src/GEOMImpl/Makefile \
391 ./src/GEOMToolsGUI/Makefile \
392 ./src/GEOM_I/Makefile \
393 ./src/GEOM_I_Superv/Makefile \
394 ./src/GEOM_SWIG/Makefile \
395 ./src/GenerationGUI/Makefile \
396 ./src/GroupGUI/Makefile \
397 ./src/IGESExport/Makefile \
398 ./src/IGESImport/Makefile \
399 ./src/MeasureGUI/Makefile \
400 ./src/NMTAlgo/Makefile \
401 ./src/NMTDS/Makefile \
402 ./src/NMTTools/Makefile \
403 ./src/OBJECT/Makefile \
404 ./src/OperationGUI/Makefile \
405 ./src/PrimitiveGUI/Makefile \
406 ./src/RepairGUI/Makefile \
407 ./src/SKETCHER/Makefile \
408 ./src/STEPExport/Makefile \
409 ./src/STEPImport/Makefile \
410 ./src/STLExport/Makefile \
411 ./src/ShHealOper/Makefile \
412 ./src/TransformationGUI/Makefile \
413 ./resources/Makefile \
414 ./resources/GEOMCatalog.xml \