1 # Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # Author : Marc Tajchman (CEA)
22 # Modified by : Patrick GOLDBRONN (CEA)
23 # Modified by : Marc Tajchman (CEA)
24 # Modified by : Alexander BORODIN (OCN) - autotools usage
25 # Created from configure.in.base
27 AC_INIT([Salome2 Project GEOM module], [6.1.0], [webmaster.salome@opencascade.com], [SalomeGEOM])
28 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
31 AM_INIT_AUTOMAKE([tar-pax -Wno-portability])
34 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
37 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
42 echo ---------------------------------------------
43 echo Initialize source and build root directories
44 echo ---------------------------------------------
48 dnl Initialize source and build root directories
52 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
58 AC_SUBST(ROOT_BUILDDIR)
61 echo Source root directory : $ROOT_SRCDIR
62 echo Build root directory : $ROOT_BUILDDIR
66 if test -z "$AR"; then
67 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
71 dnl Export the AR macro so that it will be placed in the libtool file
76 echo ---------------------------------------------
78 echo ---------------------------------------------
85 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
88 echo ---------------------------------------------
89 echo Configuring 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}'/adm_local/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 ---------------------------------------------
154 echo ---------------------------------------------
160 echo ---------------------------------------------
161 echo testing LEX \& YACC
162 echo ---------------------------------------------
171 echo ---------------------------------------------
173 echo ---------------------------------------------
179 dnl echo ---------------------------------------------
180 dnl echo testing java
181 dnl echo ---------------------------------------------
187 echo ---------------------------------------------
189 echo ---------------------------------------------
196 echo ---------------------------------------------
198 echo ---------------------------------------------
203 if test "x${GUI_DISABLE_CORBA}" != "xyes" ; then
205 echo ---------------------------------------------
207 echo ---------------------------------------------
213 dnl echo ---------------------------------------------
214 dnl echo testing mico
215 dnl echo ---------------------------------------------
221 echo ---------------------------------------------
222 echo default ORB : omniORB
223 echo ---------------------------------------------
229 echo ---------------------------------------------
231 echo ---------------------------------------------
238 CORBA=adm_local/unix/$corba
243 echo ---------------------------------------------
245 echo ---------------------------------------------
251 if test "${SalomeGUI_need}" != "no" -a "${FullGUI_ok}" = "yes" ; then
255 AM_CONDITIONAL(GEOM_ENABLE_GUI, [test "${gui_ok}" = "yes"])
257 if test "${SalomeGUI_need}" == "yes"; then
258 if test "${FullGUI_ok}" != "yes"; then
259 AC_MSG_WARN(For configure GEOM module necessary full GUI!)
261 elif test "${SalomeGUI_need}" == "auto"; then
262 if test "${FullGUI_ok}" != "yes"; then
263 AC_MSG_WARN(Full GUI not found. Build will be done without GUI!)
265 elif test "${SalomeGUI_need}" == "no"; then
266 echo Build without GUI option has been chosen
269 if test "${gui_ok}" = "yes"; then
271 echo ---------------------------------------------
273 echo ---------------------------------------------
279 echo ---------------------------------------------
281 echo ---------------------------------------------
287 echo ---------------------------------------------
289 echo ---------------------------------------------
296 echo ---------------------------------------------
298 echo ---------------------------------------------
304 echo ---------------------------------------------
306 echo ---------------------------------------------
312 echo ---------------------------------------------
313 echo Testing OpenCascade
314 echo ---------------------------------------------
320 echo ---------------------------------------------
321 echo Testing html generators
322 echo ---------------------------------------------
325 CHECK_HTML_GENERATORS
328 echo ---------------------------------------------
330 echo ---------------------------------------------
336 echo ---------------------------------------------
338 echo ---------------------------------------------
343 if test "${gui_ok}" = "yes"; then
344 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 gui_ok"
345 elif test "${SalomeGUI_need}" != "no"; then
346 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 gui_ok"
348 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"
351 for var in $variables
353 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
358 echo "Default ORB : $DEFAULT_ORB"
361 dnl We don t need to say when we re entering directories if we re using
362 dnl GNU make because make does it for us.
363 if test "X$GMAKE" = "Xyes"; then
364 AC_SUBST(SETX) SETX=":"
366 AC_SUBST(SETX) SETX="set -x"
370 echo ---------------------------------------------
371 echo generating Makefiles and configure files
372 echo ---------------------------------------------
375 #AC_OUTPUT_COMMANDS([ \
376 # chmod +x ./bin/*; \
379 # This list is initiated using autoscan and must be updated manually
380 # when adding a new file <filename>.in to manage. When you execute
381 # autoscan, the Makefile list is generated in the output file configure.scan.
382 # This could be helpfull to update de configuration.
385 adm_local/cmake_files/Makefile \
386 adm_local/unix/Makefile \
387 adm_local/unix/config_files/Makefile \
392 doc/salome/Makefile \
393 doc/salome/gui/Makefile \
394 doc/salome/gui/GEOM/Makefile \
395 doc/salome/gui/GEOM/doxyfile \
396 doc/salome/gui/GEOM/doxyfile_py \
397 doc/salome/gui/GEOM/doxyfile_tui \
398 doc/salome/gui/GEOM/static/header.html \
399 doc/salome/tui/Makefile \
400 doc/salome/tui/doxyfile \
401 doc/salome/tui/static/header.html \
403 src/AdvancedGUI/Makefile \
404 src/ARCHIMEDE/Makefile \
405 src/BREPExport/Makefile \
406 src/BREPImport/Makefile \
407 src/BasicGUI/Makefile \
408 src/BlocksGUI/Makefile \
409 src/BooleanGUI/Makefile \
410 src/BuildGUI/Makefile \
411 src/DisplayGUI/Makefile \
412 src/DlgRef/Makefile \
413 src/EntityGUI/Makefile \
415 src/GEOMAlgo/Makefile \
416 src/GEOMBase/Makefile \
417 src/GEOMClient/Makefile \
418 src/GEOMFiltersSelection/Makefile \
419 src/GEOMGUI/Makefile \
420 src/GEOMImpl/Makefile \
421 src/GEOMToolsGUI/Makefile \
422 src/GEOM_I/Makefile \
423 src/GEOM_I_Superv/Makefile \
424 src/GEOM_SWIG/Makefile \
425 src/GEOM_SWIG_WITHIHM/Makefile \
426 src/GenerationGUI/Makefile \
427 src/GroupGUI/Makefile \
428 src/IGESExport/Makefile \
429 src/IGESImport/Makefile \
430 src/MeasureGUI/Makefile \
432 src/NMTTools/Makefile \
433 src/OBJECT/Makefile \
434 src/OperationGUI/Makefile \
435 src/PrimitiveGUI/Makefile \
436 src/RepairGUI/Makefile \
437 src/SKETCHER/Makefile \
438 src/STEPExport/Makefile \
439 src/STEPImport/Makefile \
440 src/STLExport/Makefile \
441 src/ShHealOper/Makefile \
442 src/TransformationGUI/Makefile \
444 resources/GEOMCatalog.xml \