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 SMESH module], [5.1.0], [webmaster.salome@opencascade.com], [SalomeSMESH])
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 echo ---------------------------------------------
133 echo ---------------------------------------------
138 AC_F77_LIBRARY_LDFLAGS
140 AC_FC_LIBRARY_LDFLAGS
141 if test "X$FC" != "X" ; then
146 dnl AM_CONDITIONAL( USE_GFORTRAN, [test "$F77" = "gfortran"])
151 AC_CHECK_LIB(dl,dlopen)
153 dnl add library libm :
157 dnl Well we use sstream which is not in gcc pre-2.95.3
158 dnl We must test if it exists. If not, add it in include !
164 dnl ---------------------------------------------
166 dnl ---------------------------------------------
172 echo ---------------------------------------------
173 echo testing LEX \& YACC
174 echo ---------------------------------------------
183 echo ---------------------------------------------
185 echo ---------------------------------------------
191 dnl echo ---------------------------------------------
192 dnl echo testing java
193 dnl echo ---------------------------------------------
199 echo ---------------------------------------------
201 echo ---------------------------------------------
208 echo ---------------------------------------------
210 echo ---------------------------------------------
217 AM_CONDITIONAL(SMESH_ENABLE_GUI, [test "${SMESH_WITH_GUI}" = "yes"])
219 if test "x${GUI_DISABLE_CORBA}" != "xyes" ; then
221 echo ---------------------------------------------
223 echo ---------------------------------------------
229 dnl echo ---------------------------------------------
230 dnl echo testing mico
231 dnl echo ---------------------------------------------
237 echo ---------------------------------------------
238 echo default ORB : omniORB
239 echo ---------------------------------------------
245 echo ---------------------------------------------
247 echo ---------------------------------------------
254 CORBA=adm_local/unix/$corba
259 if test "${SMESH_WITH_GUI}" = "yes"; then
261 echo ---------------------------------------------
263 echo ---------------------------------------------
269 echo ---------------------------------------------
271 echo ---------------------------------------------
277 echo ---------------------------------------------
279 echo ---------------------------------------------
285 echo ---------------------------------------------
287 echo ---------------------------------------------
293 echo ---------------------------------------------
294 echo Testing full GUI
295 echo ---------------------------------------------
299 if test "x${CORBA_IN_GUI}" != "xyes"; then
300 echo "failed : For configure SMESH module necessary full GUI !"
306 echo ---------------------------------------------
308 echo ---------------------------------------------
314 echo ---------------------------------------------
316 echo ---------------------------------------------
322 echo ---------------------------------------------
323 echo Testing OpenCascade
324 echo ---------------------------------------------
329 if test "${SMESH_WITH_GUI}" = "yes"; then
332 echo ---------------------------------------------
334 echo ---------------------------------------------
342 echo ---------------------------------------------
343 echo Testing html generators
344 echo ---------------------------------------------
347 CHECK_HTML_GENERATORS
350 echo ---------------------------------------------
352 echo ---------------------------------------------
358 echo ---------------------------------------------
360 echo ---------------------------------------------
366 echo ---------------------------------------------
368 echo ---------------------------------------------
376 echo ---------------------------------------------
378 echo ---------------------------------------------
382 if test "${SMESH_WITH_GUI}" = "yes"; then
383 variables="cc_ok fortran_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok qwt_ok Kernel_ok Geom_ok Med_ok SalomeGUI_ok"
386 if test "${SMESH_WITH_GUI}" = "no"; then
387 variables="cc_ok fortran_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok Geom_ok Med_ok"
390 for var in $variables
392 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
397 echo "Default ORB : $DEFAULT_ORB"
400 dnl We don t need to say when we re entering directories if we re using
401 dnl GNU make becuase make does it for us.
402 if test "X$GMAKE" = "Xyes"; then
403 AC_SUBST(SETX) SETX=":"
405 AC_SUBST(SETX) SETX="set -x"
408 dnl AM_CONDITIONAL(GUI_ENABLE_CORBA, [test "$GUI_DISABLE_CORBA" = no])
409 dnl AM_CONDITIONAL(ENABLE_PYCONSOLE, [test "$DISABLE_PYCONSOLE" = no])
410 dnl AM_CONDITIONAL(ENABLE_GLVIEWER, [test "$DISABLE_GLVIEWER" = no])
411 dnl AM_CONDITIONAL(ENABLE_PLOT2DVIEWER, [test "$DISABLE_PLOT2DVIEWER" = no])
412 dnl AM_CONDITIONAL(ENABLE_SUPERVGRAPHVIEWER, [test "$DISABLE_SUPERVGRAPHVIEWER" = no])
413 dnl AM_CONDITIONAL(ENABLE_OCCVIEWER, [test "$DISABLE_OCCVIEWER" = no])
414 dnl AM_CONDITIONAL(ENABLE_VTKVIEWER, [test "$DISABLE_VTKVIEWER" = no])
415 dnl AM_CONDITIONAL(ENABLE_SALOMEOBJECT, [test "$DISABLE_SALOMEOBJECT" = no])
418 echo ---------------------------------------------
419 echo generating Makefiles and configure files
420 echo ---------------------------------------------
423 #AC_OUTPUT_COMMANDS([ \
424 # chmod +x ./bin/*; \
425 # chmod +x ./bin/salome/*; \
428 # This list is initiated using autoscan and must be updated manually
429 # when adding a new file <filename>.in to manage. When you execute
430 # autoscan, the Makefile list is generated in the output file configure.scan.
431 # This could be helpfull to update de configuration.
433 ./salome_adm/unix/SALOMEconfig.h \
434 ./adm_local/Makefile \
435 ./adm_local/unix/Makefile \
436 ./adm_local/unix/config_files/Makefile \
441 ./doc/salome/Makefile \
442 ./doc/salome/gui/Makefile \
443 ./doc/salome/gui/SMESH/Makefile \
444 ./doc/salome/gui/SMESH/doxyfile \
445 ./doc/salome/gui/SMESH/doxyfile_py \
446 ./doc/salome/tui/Makefile \
447 ./doc/salome/tui/doxyfile \
449 ./src/Controls/Makefile \
450 ./src/Driver/Makefile \
451 ./src/DriverDAT/Makefile \
452 ./src/DriverMED/Makefile \
453 ./src/DriverSTL/Makefile \
454 ./src/DriverUNV/Makefile \
455 ./src/MEFISTO2/Makefile \
456 ./src/OBJECT/Makefile \
457 ./src/SMDS/Makefile \
458 ./src/SMESH/Makefile \
459 ./src/SMESHClient/Makefile \
460 ./src/SMESHDS/Makefile \
461 ./src/SMESHFiltersSelection/Makefile \
462 ./src/SMESHGUI/Makefile \
463 ./src/SMESH_I/Makefile \
464 ./src/SMESH_SWIG/Makefile \
465 ./src/SMESH_SWIG_WITHIHM/Makefile \
466 ./src/StdMeshers/Makefile \
467 ./src/StdMeshersGUI/Makefile \
468 ./src/StdMeshers_I/Makefile \
469 ./resources/Makefile \
470 ./resources/SMESHCatalog.xml \