1 # Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 # Author : Marc Tajchman (CEA)
24 # Modified by : Patrick GOLDBRONN (CEA)
25 # Modified by : Marc Tajchman (CEA)
26 # Modified by : Alexander BORODIN (OCN) - autotools usage
27 # Created from configure.in.base
29 AC_INIT([Salome2 Project GEOM module], [4.1.5], [webmaster.salome@opencascade.com], [salome])
30 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
35 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
38 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
43 echo ---------------------------------------------
44 echo Initialize source and build root directories
45 echo ---------------------------------------------
49 dnl Initialize source and build root directories
53 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
59 AC_SUBST(ROOT_BUILDDIR)
62 echo Source root directory : $ROOT_SRCDIR
63 echo Build root directory : $ROOT_BUILDDIR
67 if test -z "$AR"; then
68 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
72 dnl Export the AR macro so that it will be placed in the libtool file
77 echo ---------------------------------------------
79 echo ---------------------------------------------
85 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
88 echo ---------------------------------------------
89 echo Coniguring production
90 echo ---------------------------------------------
95 echo ---------------------------------------------
97 echo ---------------------------------------------
99 dnl first, we set static to no!
100 dnl if we want it, use --enable-static
106 dnl Fix up the INSTALL macro if it s a relative path. We want the
107 dnl full-path to the binary instead.
110 INSTALL='\${ROOT_BUILDDIR}'/salome_adm/unix/config_files/install-sh
115 echo ---------------------------------------------
117 echo ---------------------------------------------
121 dnl inutil car libtool
125 AC_CXX_TEMPLATE_OPTIONS
127 # AC_CC_WARNINGS([ansi])
131 AC_CHECK_LIB(dl,dlopen)
133 dnl add library libm :
137 dnl Well we use sstream which is not in gcc pre-2.95.3
138 dnl We must test if it exists. If not, add it in include !
144 dnl ---------------------------------------------
146 dnl ---------------------------------------------
152 echo ---------------------------------------------
153 echo testing LEX \& YACC
154 echo ---------------------------------------------
163 echo ---------------------------------------------
165 echo ---------------------------------------------
171 dnl echo ---------------------------------------------
172 dnl echo testing java
173 dnl echo ---------------------------------------------
179 echo ---------------------------------------------
181 echo ---------------------------------------------
188 echo ---------------------------------------------
190 echo ---------------------------------------------
195 if test "x${GUI_DISABLE_CORBA}" != "xyes" ; then
197 echo ---------------------------------------------
199 echo ---------------------------------------------
205 dnl echo ---------------------------------------------
206 dnl echo testing mico
207 dnl echo ---------------------------------------------
213 echo ---------------------------------------------
214 echo default ORB : omniORB
215 echo ---------------------------------------------
221 echo ---------------------------------------------
223 echo ---------------------------------------------
230 CORBA=adm_local/unix/$corba
236 AM_CONDITIONAL(GEOM_ENABLE_GUI, [test "${GEOM_WITH_GUI}" = "yes"])
238 if test "${GEOM_WITH_GUI}" = "yes"; then
240 echo ---------------------------------------------
242 echo ---------------------------------------------
248 echo ---------------------------------------------
250 echo ---------------------------------------------
256 echo ---------------------------------------------
258 echo ---------------------------------------------
264 echo ---------------------------------------------
266 echo ---------------------------------------------
272 echo ---------------------------------------------
274 echo ---------------------------------------------
280 echo ---------------------------------------------
281 echo Testing full GUI
282 echo ---------------------------------------------
286 if test "x${CORBA_IN_GUI}" != "xyes"; then
287 echo "failed : For configure GEOM module necessary full GUI !"
293 echo ---------------------------------------------
295 echo ---------------------------------------------
301 echo ---------------------------------------------
303 echo ---------------------------------------------
309 echo ---------------------------------------------
310 echo Testing OpenCascade
311 echo ---------------------------------------------
317 echo ---------------------------------------------
318 echo Testing html generators
319 echo ---------------------------------------------
322 CHECK_HTML_GENERATORS
325 echo ---------------------------------------------
327 echo ---------------------------------------------
333 echo ---------------------------------------------
335 echo ---------------------------------------------
340 if test "${GEOM_WITH_GUI}" = "yes"; then
341 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"
343 if test "${GEOM_WITH_GUI}" = "no"; then
344 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"
347 for var in $variables
349 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
354 echo "Default ORB : $DEFAULT_ORB"
357 dnl We don t need to say when we re entering directories if we re using
358 dnl GNU make becuase make does it for us.
359 if test "X$GMAKE" = "Xyes"; then
360 AC_SUBST(SETX) SETX=":"
362 AC_SUBST(SETX) SETX="set -x"
365 dnl copy shells and utilities contained in the bin directory
366 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
371 echo ---------------------------------------------
372 echo generating Makefiles and configure files
373 echo ---------------------------------------------
376 AC_OUTPUT_COMMANDS([ \
380 # This list is initiated using autoscan and must be updated manually
381 # when adding a new file <filename>.in to manage. When you execute
382 # autoscan, the Makefile list is generated in the output file configure.scan.
383 # This could be helpfull to update de configuration.
385 ./salome_adm/unix/SALOMEconfig.h \
386 ./adm_local/Makefile \
387 ./adm_local/unix/Makefile \
388 ./adm_local/unix/config_files/Makefile \
393 ./doc/salome/Makefile \
394 ./doc/salome/gui/Makefile \
395 ./doc/salome/gui/GEOM/doxyfile \
396 ./doc/salome/gui/GEOM/doxyfile_py \
397 ./doc/salome/gui/GEOM/doxyfile_tui \
398 ./doc/salome/tui/Makefile \
399 ./doc/salome/tui/GEOM/doxyfile \
400 ./doc/salome/tui/GEOM/sources/static/tree.js \
402 ./src/ARCHIMEDE/Makefile \
403 ./src/BREPExport/Makefile \
404 ./src/BREPImport/Makefile \
405 ./src/BasicGUI/Makefile \
406 ./src/BlocksGUI/Makefile \
407 ./src/BooleanGUI/Makefile \
408 ./src/BuildGUI/Makefile \
409 ./src/DisplayGUI/Makefile \
410 ./src/DlgRef/Makefile \
411 ./src/EntityGUI/Makefile \
412 ./src/GEOM/Makefile \
413 ./src/GEOMAlgo/Makefile \
414 ./src/GEOMBase/Makefile \
415 ./src/GEOMClient/Makefile \
416 ./src/GEOMFiltersSelection/Makefile \
417 ./src/GEOMGUI/Makefile \
418 ./src/GEOMImpl/Makefile \
419 ./src/GEOMToolsGUI/Makefile \
420 ./src/GEOM_I/Makefile \
421 ./src/GEOM_I_Superv/Makefile \
422 ./src/GEOM_SWIG/Makefile \
423 ./src/GEOM_SWIG_WITHIHM/Makefile \
424 ./src/GenerationGUI/Makefile \
425 ./src/GroupGUI/Makefile \
426 ./src/IGESExport/Makefile \
427 ./src/IGESImport/Makefile \
428 ./src/MeasureGUI/Makefile \
429 ./src/NMTAlgo/Makefile \
430 ./src/NMTDS/Makefile \
431 ./src/NMTTools/Makefile \
432 ./src/OBJECT/Makefile \
433 ./src/OperationGUI/Makefile \
434 ./src/PrimitiveGUI/Makefile \
435 ./src/RepairGUI/Makefile \
436 ./src/SKETCHER/Makefile \
437 ./src/STEPExport/Makefile \
438 ./src/STEPImport/Makefile \
439 ./src/STLExport/Makefile \
440 ./src/ShHealOper/Makefile \
441 ./src/TransformationGUI/Makefile \
442 ./resources/Makefile \
443 ./resources/GEOMCatalog.xml \