1 # Copyright (C) 2005-2013 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 # PLEASE DO NOT MODIFY configure.in FILE
21 # ALL CHANGES WILL BE DISCARDED BY THE NEXT
22 # build_configure COMMAND
23 # CHANGES MUST BE MADE IN configure.in.base FILE
24 # Author : Marc Tajchman (CEA)
26 # Modified by : Patrick GOLDBRONN (CEA)
27 # Modified by : Marc Tajchman (CEA)
28 # Created from configure.in.base
30 AC_INIT([Salome2 Project SIERPINSKY module],[7.2.0], [webmaster.salome@opencascade.com], [SalomeSIERPINSKY])
31 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
34 AM_INIT_AUTOMAKE([-Wno-portability])
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.)
40 MODULE_NAME=sierpinsky
46 dnl Initialize source and build root directories
50 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
56 AC_SUBST(ROOT_BUILDDIR)
59 echo Source root directory : $ROOT_SRCDIR
60 echo Build root directory : $ROOT_BUILDDIR
64 AC_CHECK_PROG(SHELL,sh)
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 ---------------------------------------------
86 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
91 echo ---------------------------------------------
93 echo ---------------------------------------------
95 dnl first, we set static to no!
96 dnl if we want it, use --enable-static
102 dnl Fix up the INSTALL macro if it s a relative path. We want the
103 dnl full-path to the binary instead.
106 INSTALL='\${KERNEL_ROOT_DIR}'/adm_local/unix/config_files/install-sh
111 echo ---------------------------------------------
113 echo ---------------------------------------------
117 dnl inutil car libtool
121 # AC_CC_WARNINGS([ansi])
125 AC_CHECK_LIB(dl,dlopen)
127 dnl add library libm :
131 dnl Well we use sstream which is not in gcc pre-2.95.3
132 dnl We must test if it exists. If not, add it in include !
138 dnl ---------------------------------------------
140 dnl ---------------------------------------------
147 echo ---------------------------------------------
148 echo testing LEX \& YACC
149 echo ---------------------------------------------
158 echo ---------------------------------------------
160 echo ---------------------------------------------
168 dnl echo ---------------------------------------------
169 dnl echo testing java
170 dnl echo ---------------------------------------------
176 echo ---------------------------------------------
178 echo ---------------------------------------------
184 echo ---------------------------------------------
186 echo ---------------------------------------------
192 echo ---------------------------------------------
194 echo ---------------------------------------------
200 dnl echo ---------------------------------------------
201 dnl echo testing mico
202 dnl echo ---------------------------------------------
208 echo ---------------------------------------------
209 echo default ORB : omniORB
210 echo ---------------------------------------------
218 CORBA=adm_local/unix/$corba
221 echo ---------------------------------------------
223 echo ---------------------------------------------
229 echo ---------------------------------------------
231 echo ---------------------------------------------
237 echo ---------------------------------------------
239 echo ---------------------------------------------
245 echo ---------------------------------------------
247 echo ---------------------------------------------
253 echo ---------------------------------------------
255 echo ---------------------------------------------
261 echo ---------------------------------------------
262 echo Testing OpenCascade
263 echo ---------------------------------------------
269 echo ---------------------------------------------
270 echo Testing html generators
271 echo ---------------------------------------------
274 CHECK_HTML_GENERATORS
277 echo ---------------------------------------------
278 echo Testing gd library
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 COMPONENT module necessary full GUI !"
305 echo ---------------------------------------------
307 echo ---------------------------------------------
313 echo ---------------------------------------------
315 echo ---------------------------------------------
321 echo ---------------------------------------------
323 echo ---------------------------------------------
328 AM_CONDITIONAL(WITH_VISU, [test "${Visu_ok}" = "yes"])
331 echo ---------------------------------------------
332 echo Testing Randomizer
333 echo ---------------------------------------------
339 echo ---------------------------------------------
341 echo ---------------------------------------------
345 variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok
346 OpenGL_ok qt_ok vtk_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok gd_ok Kernel_ok SMesh_ok Visu_ok Randomizer_ok"
348 for var in $variables
350 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
355 echo "Default ORB : $DEFAULT_ORB"
358 dnl We don t need to say when we re entering directories if we re using
359 dnl GNU make becuase make does it for us.
360 if test "X$GMAKE" = "Xyes"; then
361 AC_SUBST(SETX) SETX=":"
363 AC_SUBST(SETX) SETX="set -x"
366 echo ---------------------------------------------
367 echo generating Makefiles and configure files
368 echo ---------------------------------------------
371 AC_OUTPUT_COMMANDS([ \
376 AC_CONFIG_COMMANDS([hack_libtool],[
377 sed -i "s%^CC=\"\(.*\)\"%hack_libtool (){ \n\
378 $(pwd)/hack_libtool \1 \"\$[@]\" \n\
380 CC=\"hack_libtool\"%g" libtool
381 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
382 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
383 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
386 # This list is initiated using autoscan and must be updated manually
387 # when adding a new file <filename>.in to manage. When you execute
388 # autoscan, the Makefile list is generated in the output file configure.scan.
389 # This could be helpfull to update de configuration.
392 adm_local/unix/Makefile \
393 adm_local/unix/config_files/Makefile \
397 src/Sierpinsky/Makefile \
398 src/SierpinskyGUI/Makefile \
400 resources/SIERPINSKYCatalog.xml \
401 resources/SalomeApp.xml \
403 SIERPINSKY_version.h \