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], [5.1.4], [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 ---------------------------------------------
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
235 echo ---------------------------------------------
237 echo ---------------------------------------------
243 if test "${SalomeGUI_need}" != "no" -a "${FullGUI_ok}" = "yes" ; then
247 AM_CONDITIONAL(GEOM_ENABLE_GUI, [test "${gui_ok}" = "yes"])
249 if test "${SalomeGUI_need}" == "yes"; then
250 if test "${FullGUI_ok}" != "yes"; then
251 AC_MSG_WARN(For configure GEOM module necessary full GUI!)
253 elif test "${SalomeGUI_need}" == "auto"; then
254 if test "${FullGUI_ok}" != "yes"; then
255 AC_MSG_WARN(Full GUI not found. Build will be done without GUI!)
257 elif test "${SalomeGUI_need}" == "no"; then
258 echo Build without GUI option has been chosen
261 if test "${gui_ok}" = "yes"; then
263 echo ---------------------------------------------
265 echo ---------------------------------------------
271 echo ---------------------------------------------
273 echo ---------------------------------------------
279 echo ---------------------------------------------
281 echo ---------------------------------------------
288 echo ---------------------------------------------
290 echo ---------------------------------------------
296 echo ---------------------------------------------
298 echo ---------------------------------------------
304 echo ---------------------------------------------
305 echo Testing OpenCascade
306 echo ---------------------------------------------
312 echo ---------------------------------------------
313 echo Testing html generators
314 echo ---------------------------------------------
317 CHECK_HTML_GENERATORS
320 echo ---------------------------------------------
322 echo ---------------------------------------------
328 echo ---------------------------------------------
330 echo ---------------------------------------------
335 if test "${gui_ok}" = "yes"; then
336 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"
337 elif test "${SalomeGUI_need}" != "no"; then
338 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"
340 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"
343 for var in $variables
345 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
350 echo "Default ORB : $DEFAULT_ORB"
353 dnl We don t need to say when we re entering directories if we re using
354 dnl GNU make because make does it for us.
355 if test "X$GMAKE" = "Xyes"; then
356 AC_SUBST(SETX) SETX=":"
358 AC_SUBST(SETX) SETX="set -x"
362 echo ---------------------------------------------
363 echo generating Makefiles and configure files
364 echo ---------------------------------------------
367 #AC_OUTPUT_COMMANDS([ \
368 # chmod +x ./bin/*; \
371 # This list is initiated using autoscan and must be updated manually
372 # when adding a new file <filename>.in to manage. When you execute
373 # autoscan, the Makefile list is generated in the output file configure.scan.
374 # This could be helpfull to update de configuration.
377 adm_local/cmake_files/Makefile \
378 adm_local/unix/Makefile \
379 adm_local/unix/config_files/Makefile \
384 doc/salome/Makefile \
385 doc/salome/gui/Makefile \
386 doc/salome/gui/GEOM/Makefile \
387 doc/salome/gui/GEOM/doxyfile \
388 doc/salome/gui/GEOM/doxyfile_py \
389 doc/salome/gui/GEOM/doxyfile_tui \
390 doc/salome/gui/GEOM/static/header.html \
391 doc/salome/tui/Makefile \
392 doc/salome/tui/doxyfile \
393 doc/salome/tui/static/header.html \
395 src/AdvancedGUI/Makefile \
396 src/ARCHIMEDE/Makefile \
397 src/BREPExport/Makefile \
398 src/BREPImport/Makefile \
399 src/BasicGUI/Makefile \
400 src/BlocksGUI/Makefile \
401 src/BooleanGUI/Makefile \
402 src/BuildGUI/Makefile \
403 src/DisplayGUI/Makefile \
404 src/DlgRef/Makefile \
405 src/EntityGUI/Makefile \
407 src/GEOMAlgo/Makefile \
408 src/GEOMBase/Makefile \
409 src/GEOMClient/Makefile \
410 src/GEOMFiltersSelection/Makefile \
411 src/GEOMGUI/Makefile \
412 src/GEOMImpl/Makefile \
413 src/GEOMToolsGUI/Makefile \
414 src/GEOM_I/Makefile \
415 src/GEOM_I_Superv/Makefile \
416 src/GEOM_SWIG/Makefile \
417 src/GEOM_SWIG_WITHIHM/Makefile \
418 src/GenerationGUI/Makefile \
419 src/GroupGUI/Makefile \
420 src/IGESExport/Makefile \
421 src/IGESImport/Makefile \
422 src/MeasureGUI/Makefile \
424 src/NMTTools/Makefile \
425 src/OBJECT/Makefile \
426 src/OperationGUI/Makefile \
427 src/PrimitiveGUI/Makefile \
428 src/RepairGUI/Makefile \
429 src/SKETCHER/Makefile \
430 src/STEPExport/Makefile \
431 src/STEPImport/Makefile \
432 src/STLExport/Makefile \
433 src/ShHealOper/Makefile \
434 src/TransformationGUI/Makefile \
436 resources/GEOMCatalog.xml \