1 # Copyright (C) 2007-2012 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 : Mikhail Ponikarov (OCN)
26 AC_INIT([Salome2 Project VISU module], [7.0.0], [webmaster.salome@opencascade.com], [SalomeVISU])
27 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
30 AM_INIT_AUTOMAKE([-Wno-portability])
32 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 dnl Initialize source and build root directories
46 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
52 AC_SUBST(ROOT_BUILDDIR)
55 echo Source root directory : $ROOT_SRCDIR
56 echo Build root directory : $ROOT_BUILDDIR
60 if test -z "$AR"; then
61 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
65 dnl Export the AR macro so that it will be placed in the libtool file
70 echo ---------------------------------------------
72 echo ---------------------------------------------
79 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
84 echo ---------------------------------------------
86 echo ---------------------------------------------
88 dnl first, we set static to no!
89 dnl if we want it, use --enable-static
95 dnl Fix up the INSTALL macro if it s a relative path. We want the
96 dnl full-path to the binary instead.
99 INSTALL='\${KERNEL_ROOT_DIR}'/adm_local/unix/config_files/install-sh
104 echo ---------------------------------------------
106 echo ---------------------------------------------
110 dnl inutil car libtool
114 # AC_CC_WARNINGS([ansi])
118 AC_CHECK_LIB(dl,dlopen)
120 dnl add library libm :
124 dnl Well we use sstream which is not in gcc pre-2.95.3
125 dnl We must test if it exists. If not, add it in include !
128 AC_CXX_USE_STD_IOSTREAM
134 dnl ---------------------------------------------
136 dnl ---------------------------------------------
142 echo ---------------------------------------------
144 echo ---------------------------------------------
150 echo ---------------------------------------------
151 echo testing LEX \& YACC
152 echo ---------------------------------------------
161 echo ---------------------------------------------
163 echo ---------------------------------------------
169 dnl echo ---------------------------------------------
170 dnl echo testing java
171 dnl echo ---------------------------------------------
177 echo ---------------------------------------------
179 echo ---------------------------------------------
186 echo ---------------------------------------------
188 echo ---------------------------------------------
194 echo ---------------------------------------------
196 echo ---------------------------------------------
202 dnl echo ---------------------------------------------
203 dnl echo testing mico
204 dnl echo ---------------------------------------------
210 echo ---------------------------------------------
211 echo default ORB : omniORB
212 echo ---------------------------------------------
220 CORBA=adm_local/unix/$corba
223 echo ---------------------------------------------
225 echo ---------------------------------------------
231 echo ---------------------------------------------
233 echo ---------------------------------------------
239 dnl echo ---------------------------------------------
240 dnl echo testing msg2qm
241 dnl echo ---------------------------------------------
247 echo ---------------------------------------------
249 echo ---------------------------------------------
255 echo ---------------------------------------------
257 echo ---------------------------------------------
263 echo ---------------------------------------------
265 echo ---------------------------------------------
271 echo ---------------------------------------------
272 echo Testing OpenCascade
273 echo ---------------------------------------------
279 echo ---------------------------------------------
281 echo ---------------------------------------------
287 echo ---------------------------------------------
288 echo Testing html generators
289 echo ---------------------------------------------
292 CHECK_HTML_GENERATORS
295 echo ---------------------------------------------
297 echo ---------------------------------------------
303 echo ---------------------------------------------
304 echo Testing full GUI
305 echo ---------------------------------------------
309 if test "x${CORBA_IN_GUI}" != "xyes"; then
310 echo "failed : For configure VISU module necessary full GUI !"
315 echo ---------------------------------------------
317 echo ---------------------------------------------
323 echo ---------------------------------------------
325 echo ---------------------------------------------
330 AM_CONDITIONAL(MED_ENABLE_MULTIPR, [test "$ENABLE_MULTIPR" = yes])
333 echo ---------------------------------------------
335 echo ---------------------------------------------
339 variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok omniORB_ok occ_ok qwt_ok doxygen_ok graphviz_ok Kernel_ok Med_ok SalomeGUI_ok"
341 for var in $variables
343 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
348 echo "Default ORB : $DEFAULT_ORB"
351 dnl We don t need to say when we re entering directories if we re using
352 dnl GNU make becuase make does it for us.
353 if test "X$GMAKE" = "Xyes"; then
354 AC_SUBST(SETX) SETX=":"
356 AC_SUBST(SETX) SETX="set -x"
360 echo ---------------------------------------------
361 echo generating Makefiles and configure files
362 echo ---------------------------------------------
365 AC_OUTPUT_COMMANDS([ \
370 AC_CONFIG_COMMANDS([hack_libtool],[
371 sed -i "s%^CC=\"\(.*\)\"%hack_libtool (){ \n\
372 $(pwd)/hack_libtool \1 \"\$[@]\" \n\
374 CC=\"hack_libtool\"%g" libtool
375 sed -i "s%\(\s*\)for searchdir in \$newlib_search_path \$lib_search_path \$sys_lib_search_path \$shlib_search_path; do%\1searchdirs=\"\$newlib_search_path \$lib_search_path \$sys_lib_search_path \$shlib_search_path\"\n\1for searchdir in \$searchdirs; do%g" libtool
376 sed -i "s%\(\s*\)searchdirs=\"\$newlib_search_path \$lib_search_path \(.*\)\"%\1searchdirs=\"\$newlib_search_path \$lib_search_path\"\n\1sss_beg=\"\"\n\1sss_end=\"\2\"%g" libtool
377 sed -i "s%\(\s*\)\(for searchdir in \$searchdirs; do\)%\1for sss in \$searchdirs; do\n\1 if ! test -d \$sss; then continue; fi\n\1 ssss=\$(cd \$sss; pwd)\n\1 if test \"\$ssss\" != \"\" \&\& test -d \$ssss; then\n\1 case \$ssss in\n\1 /usr/lib | /usr/lib64 ) ;;\n\1 * ) sss_beg=\"\$sss_beg \$ssss\" ;;\n\1 esac\n\1 fi\n\1done\n\1searchdirs=\"\$sss_beg \$sss_end\"\n\1\2%g" libtool
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.
388 adm_local/cmake_files/Makefile \
389 adm_local/unix/Makefile \
390 adm_local/unix/config_files/Makefile \
394 doc/salome/Makefile \
395 doc/salome/gui/Makefile \
396 doc/salome/gui/VISU/Makefile \
397 doc/salome/gui/VISU/doxyfile \
398 doc/salome/gui/VISU/doxyfile_idl \
399 doc/salome/gui/VISU/static/header.html \
400 doc/salome/gui/VISU/static/header_py.html \
401 doc/salome/tui/Makefile \
402 doc/salome/tui/doxyfile \
403 doc/salome/tui/static/header.html \
405 resources/VISUCatalog.xml \
406 resources/SalomeApp.xml \
409 src/CONVERTOR/Makefile \
410 src/PIPELINE/Makefile \
411 src/OBJECT/Makefile \
412 src/VISU_I/Makefile \
413 src/VISUGUI/Makefile \
414 src/VISU_SWIG/Makefile \