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], [5.0.0], [webmaster.salome@opencascade.com], [salome])
13 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
18 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
21 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
26 echo ---------------------------------------------
27 echo Initialize source and build root directories
28 echo ---------------------------------------------
32 dnl Initialize source and build root directories
36 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
42 AC_SUBST(ROOT_BUILDDIR)
45 echo Source root directory : $ROOT_SRCDIR
46 echo Build root directory : $ROOT_BUILDDIR
50 if test -z "$AR"; then
51 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
55 dnl Export the AR macro so that it will be placed in the libtool file
60 echo ---------------------------------------------
62 echo ---------------------------------------------
68 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
71 echo ---------------------------------------------
72 echo Configuring production
73 echo ---------------------------------------------
78 echo ---------------------------------------------
80 echo ---------------------------------------------
82 dnl first, we set static to no!
83 dnl if we want it, use --enable-static
89 dnl Fix up the INSTALL macro if it s a relative path. We want the
90 dnl full-path to the binary instead.
93 INSTALL='\${ROOT_BUILDDIR}'/salome_adm/unix/config_files/install-sh
98 echo ---------------------------------------------
100 echo ---------------------------------------------
104 dnl inutil car libtool
108 AC_CXX_TEMPLATE_OPTIONS
110 # AC_CC_WARNINGS([ansi])
114 AC_CHECK_LIB(dl,dlopen)
116 dnl add library libm :
120 dnl Well we use sstream which is not in gcc pre-2.95.3
121 dnl We must test if it exists. If not, add it in include !
127 dnl ---------------------------------------------
129 dnl ---------------------------------------------
135 echo ---------------------------------------------
136 echo testing LEX \& YACC
137 echo ---------------------------------------------
146 echo ---------------------------------------------
148 echo ---------------------------------------------
154 dnl echo ---------------------------------------------
155 dnl echo testing java
156 dnl echo ---------------------------------------------
162 echo ---------------------------------------------
164 echo ---------------------------------------------
171 echo ---------------------------------------------
173 echo ---------------------------------------------
178 if test "x${GUI_DISABLE_CORBA}" != "xyes" ; then
180 echo ---------------------------------------------
182 echo ---------------------------------------------
188 dnl echo ---------------------------------------------
189 dnl echo testing mico
190 dnl echo ---------------------------------------------
196 echo ---------------------------------------------
197 echo default ORB : omniORB
198 echo ---------------------------------------------
204 echo ---------------------------------------------
206 echo ---------------------------------------------
213 CORBA=adm_local/unix/$corba
219 AM_CONDITIONAL(GEOM_ENABLE_GUI, [test "${GEOM_WITH_GUI}" = "yes"])
221 if test "${GEOM_WITH_GUI}" = "yes"; then
223 echo ---------------------------------------------
225 echo ---------------------------------------------
231 echo ---------------------------------------------
233 echo ---------------------------------------------
239 echo ---------------------------------------------
241 echo ---------------------------------------------
247 echo ---------------------------------------------
249 echo ---------------------------------------------
255 echo ---------------------------------------------
256 echo Testing full GUI
257 echo ---------------------------------------------
261 if test "x${CORBA_IN_GUI}" != "xyes"; then
262 echo "failed : For configure GEOM module necessary full GUI !"
268 echo ---------------------------------------------
270 echo ---------------------------------------------
276 echo ---------------------------------------------
278 echo ---------------------------------------------
284 echo ---------------------------------------------
285 echo Testing OpenCascade
286 echo ---------------------------------------------
292 echo ---------------------------------------------
293 echo Testing html generators
294 echo ---------------------------------------------
297 CHECK_HTML_GENERATORS
300 echo ---------------------------------------------
302 echo ---------------------------------------------
308 echo ---------------------------------------------
310 echo ---------------------------------------------
315 if test "${GEOM_WITH_GUI}" = "yes"; then
316 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 SalomeGUI_ok"
318 if test "${GEOM_WITH_GUI}" = "no"; then
319 variables="cc_ok lex_yacc_ok python_ok swig_ok threads_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 because 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/gui/GEOM/doxyfile \
371 ./doc/salome/gui/GEOM/doxyfile_py \
372 ./doc/salome/tui/Makefile \
373 ./doc/salome/tui/GEOM/doxyfile \
374 ./doc/salome/tui/GEOM/sources/static/tree.js \
376 ./src/ARCHIMEDE/Makefile \
377 ./src/BREPExport/Makefile \
378 ./src/BREPImport/Makefile \
379 ./src/BasicGUI/Makefile \
380 ./src/BlocksGUI/Makefile \
381 ./src/BooleanGUI/Makefile \
382 ./src/BuildGUI/Makefile \
383 ./src/DisplayGUI/Makefile \
384 ./src/DlgRef/Makefile \
385 ./src/EntityGUI/Makefile \
386 ./src/GEOM/Makefile \
387 ./src/GEOMAlgo/Makefile \
388 ./src/GEOMBase/Makefile \
389 ./src/GEOMClient/Makefile \
390 ./src/GEOMFiltersSelection/Makefile \
391 ./src/GEOMGUI/Makefile \
392 ./src/GEOMImpl/Makefile \
393 ./src/GEOMToolsGUI/Makefile \
394 ./src/GEOM_I/Makefile \
395 ./src/GEOM_I_Superv/Makefile \
396 ./src/GEOM_SWIG/Makefile \
397 ./src/GEOM_SWIG_WITHIHM/Makefile \
398 ./src/GenerationGUI/Makefile \
399 ./src/GroupGUI/Makefile \
400 ./src/IGESExport/Makefile \
401 ./src/IGESImport/Makefile \
402 ./src/MeasureGUI/Makefile \
403 ./src/NMTAlgo/Makefile \
404 ./src/NMTDS/Makefile \
405 ./src/NMTTools/Makefile \
406 ./src/OBJECT/Makefile \
407 ./src/OperationGUI/Makefile \
408 ./src/PrimitiveGUI/Makefile \
409 ./src/RepairGUI/Makefile \
410 ./src/SKETCHER/Makefile \
411 ./src/STEPExport/Makefile \
412 ./src/STEPImport/Makefile \
413 ./src/STLExport/Makefile \
414 ./src/ShHealOper/Makefile \
415 ./src/TransformationGUI/Makefile \
416 ./resources/Makefile \
417 ./resources/GEOMCatalog.xml \