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], [5.1.0], [webmaster.salome@opencascade.com], [SalomeGEOM])
30 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
33 AM_INIT_AUTOMAKE([tar-pax])
36 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
39 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
44 echo ---------------------------------------------
45 echo Initialize source and build root directories
46 echo ---------------------------------------------
50 dnl Initialize source and build root directories
54 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
60 AC_SUBST(ROOT_BUILDDIR)
63 echo Source root directory : $ROOT_SRCDIR
64 echo Build root directory : $ROOT_BUILDDIR
68 if test -z "$AR"; then
69 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
73 dnl Export the AR macro so that it will be placed in the libtool file
78 echo ---------------------------------------------
80 echo ---------------------------------------------
86 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
89 echo ---------------------------------------------
90 echo Configuring production
91 echo ---------------------------------------------
96 echo ---------------------------------------------
98 echo ---------------------------------------------
100 dnl first, we set static to no!
101 dnl if we want it, use --enable-static
107 dnl Fix up the INSTALL macro if it s a relative path. We want the
108 dnl full-path to the binary instead.
111 INSTALL='\${ROOT_BUILDDIR}'/salome_adm/unix/config_files/install-sh
116 echo ---------------------------------------------
118 echo ---------------------------------------------
122 dnl inutil car libtool
126 AC_CXX_TEMPLATE_OPTIONS
128 # AC_CC_WARNINGS([ansi])
132 AC_CHECK_LIB(dl,dlopen)
134 dnl add library libm :
138 dnl Well we use sstream which is not in gcc pre-2.95.3
139 dnl We must test if it exists. If not, add it in include !
145 dnl ---------------------------------------------
147 dnl ---------------------------------------------
153 echo ---------------------------------------------
154 echo testing LEX \& YACC
155 echo ---------------------------------------------
164 echo ---------------------------------------------
166 echo ---------------------------------------------
172 dnl echo ---------------------------------------------
173 dnl echo testing java
174 dnl echo ---------------------------------------------
180 echo ---------------------------------------------
182 echo ---------------------------------------------
189 echo ---------------------------------------------
191 echo ---------------------------------------------
196 if test "x${GUI_DISABLE_CORBA}" != "xyes" ; then
198 echo ---------------------------------------------
200 echo ---------------------------------------------
206 dnl echo ---------------------------------------------
207 dnl echo testing mico
208 dnl echo ---------------------------------------------
214 echo ---------------------------------------------
215 echo default ORB : omniORB
216 echo ---------------------------------------------
222 echo ---------------------------------------------
224 echo ---------------------------------------------
231 CORBA=adm_local/unix/$corba
237 AM_CONDITIONAL(GEOM_ENABLE_GUI, [test "${GEOM_WITH_GUI}" = "yes"])
239 if test "${GEOM_WITH_GUI}" = "yes"; then
241 echo ---------------------------------------------
243 echo ---------------------------------------------
249 echo ---------------------------------------------
251 echo ---------------------------------------------
257 echo ---------------------------------------------
259 echo ---------------------------------------------
265 echo ---------------------------------------------
267 echo ---------------------------------------------
273 echo ---------------------------------------------
274 echo Testing full GUI
275 echo ---------------------------------------------
279 if test "x${CORBA_IN_GUI}" != "xyes"; then
280 echo "failed : For configure GEOM module necessary full GUI !"
286 echo ---------------------------------------------
288 echo ---------------------------------------------
294 echo ---------------------------------------------
296 echo ---------------------------------------------
302 echo ---------------------------------------------
303 echo Testing OpenCascade
304 echo ---------------------------------------------
310 echo ---------------------------------------------
311 echo Testing html generators
312 echo ---------------------------------------------
315 CHECK_HTML_GENERATORS
318 echo ---------------------------------------------
320 echo ---------------------------------------------
326 echo ---------------------------------------------
328 echo ---------------------------------------------
333 if test "${GEOM_WITH_GUI}" = "yes"; then
334 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"
336 if test "${GEOM_WITH_GUI}" = "no"; then
337 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"
340 for var in $variables
342 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
347 echo "Default ORB : $DEFAULT_ORB"
350 dnl We don t need to say when we re entering directories if we re using
351 dnl GNU make because make does it for us.
352 if test "X$GMAKE" = "Xyes"; then
353 AC_SUBST(SETX) SETX=":"
355 AC_SUBST(SETX) SETX="set -x"
359 echo ---------------------------------------------
360 echo generating Makefiles and configure files
361 echo ---------------------------------------------
364 #AC_OUTPUT_COMMANDS([ \
365 # chmod +x ./bin/*; \
368 # This list is initiated using autoscan and must be updated manually
369 # when adding a new file <filename>.in to manage. When you execute
370 # autoscan, the Makefile list is generated in the output file configure.scan.
371 # This could be helpfull to update de configuration.
373 ./salome_adm/unix/SALOMEconfig.h \
374 ./adm_local/Makefile \
375 ./adm_local/unix/Makefile \
376 ./adm_local/unix/config_files/Makefile \
381 ./doc/salome/Makefile \
382 ./doc/salome/gui/Makefile \
383 ./doc/salome/gui/GEOM/Makefile \
384 ./doc/salome/gui/GEOM/doxyfile \
385 ./doc/salome/gui/GEOM/doxyfile_py \
386 ./doc/salome/gui/GEOM/doxyfile_tui \
387 ./doc/salome/tui/Makefile \
388 ./doc/salome/tui/doxyfile \
390 ./src/ARCHIMEDE/Makefile \
391 ./src/BREPExport/Makefile \
392 ./src/BREPImport/Makefile \
393 ./src/BasicGUI/Makefile \
394 ./src/BlocksGUI/Makefile \
395 ./src/BooleanGUI/Makefile \
396 ./src/BuildGUI/Makefile \
397 ./src/DisplayGUI/Makefile \
398 ./src/DlgRef/Makefile \
399 ./src/EntityGUI/Makefile \
400 ./src/GEOM/Makefile \
401 ./src/GEOMAlgo/Makefile \
402 ./src/GEOMBase/Makefile \
403 ./src/GEOMClient/Makefile \
404 ./src/GEOMFiltersSelection/Makefile \
405 ./src/GEOMGUI/Makefile \
406 ./src/GEOMImpl/Makefile \
407 ./src/GEOMToolsGUI/Makefile \
408 ./src/GEOM_I/Makefile \
409 ./src/GEOM_I_Superv/Makefile \
410 ./src/GEOM_SWIG/Makefile \
411 ./src/GEOM_SWIG_WITHIHM/Makefile \
412 ./src/GenerationGUI/Makefile \
413 ./src/GroupGUI/Makefile \
414 ./src/IGESExport/Makefile \
415 ./src/IGESImport/Makefile \
416 ./src/MeasureGUI/Makefile \
417 ./src/NMTDS/Makefile \
418 ./src/NMTTools/Makefile \
419 ./src/OBJECT/Makefile \
420 ./src/OperationGUI/Makefile \
421 ./src/PrimitiveGUI/Makefile \
422 ./src/RepairGUI/Makefile \
423 ./src/SKETCHER/Makefile \
424 ./src/STEPExport/Makefile \
425 ./src/STEPImport/Makefile \
426 ./src/STLExport/Makefile \
427 ./src/ShHealOper/Makefile \
428 ./src/TransformationGUI/Makefile \
429 ./resources/Makefile \
430 ./resources/GEOMCatalog.xml \