1 # Copyright (C) 2005-2008 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
19 # PLEASE DO NOT MODIFY configure.in FILE
20 # ALL CHANGES WILL BE DISCARDED BY THE NEXT
21 # build_configure COMMAND
22 # CHANGES MUST BE MADE IN configure.in.base FILE
23 # Author : Marc Tajchman (CEA)
25 # Modified by : Patrick GOLDBRONN (CEA)
26 # Modified by : Marc Tajchman (CEA)
27 # Created from configure.in.base
29 AC_INIT([Salome2 Project SIERPINSKY module],[5.1.2], [webmaster.salome@opencascade.com], [SalomeSIERPINSKY])
30 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
33 AM_INIT_AUTOMAKE([-Wno-portability])
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.)
39 MODULE_NAME=sierpinsky
43 dnl Initialize source and build root directories
47 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
53 AC_SUBST(ROOT_BUILDDIR)
56 echo Source root directory : $ROOT_SRCDIR
57 echo Build root directory : $ROOT_BUILDDIR
61 AC_CHECK_PROG(SHELL,sh)
64 if test -z "$AR"; then
65 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
69 dnl Export the AR macro so that it will be placed in the libtool file
74 echo ---------------------------------------------
76 echo ---------------------------------------------
82 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
87 echo ---------------------------------------------
89 echo ---------------------------------------------
91 dnl first, we set static to no!
92 dnl if we want it, use --enable-static
98 dnl Fix up the INSTALL macro if it s a relative path. We want the
99 dnl full-path to the binary instead.
102 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
107 echo ---------------------------------------------
109 echo ---------------------------------------------
113 dnl inutil car libtool
117 # AC_CC_WARNINGS([ansi])
121 AC_CHECK_LIB(dl,dlopen)
123 dnl add library libm :
127 dnl Well we use sstream which is not in gcc pre-2.95.3
128 dnl We must test if it exists. If not, add it in include !
134 dnl ---------------------------------------------
136 dnl ---------------------------------------------
142 echo ---------------------------------------------
143 echo testing LEX \& YACC
144 echo ---------------------------------------------
153 echo ---------------------------------------------
155 echo ---------------------------------------------
163 dnl echo ---------------------------------------------
164 dnl echo testing java
165 dnl echo ---------------------------------------------
171 echo ---------------------------------------------
173 echo ---------------------------------------------
179 echo ---------------------------------------------
181 echo ---------------------------------------------
187 echo ---------------------------------------------
189 echo ---------------------------------------------
195 dnl echo ---------------------------------------------
196 dnl echo testing mico
197 dnl echo ---------------------------------------------
203 echo ---------------------------------------------
204 echo default ORB : omniORB
205 echo ---------------------------------------------
213 CORBA=adm_local/unix/$corba
216 echo ---------------------------------------------
218 echo ---------------------------------------------
224 echo ---------------------------------------------
226 echo ---------------------------------------------
232 echo ---------------------------------------------
234 echo ---------------------------------------------
240 echo ---------------------------------------------
242 echo ---------------------------------------------
248 echo ---------------------------------------------
250 echo ---------------------------------------------
256 echo ---------------------------------------------
258 echo ---------------------------------------------
264 echo ---------------------------------------------
265 echo Testing OpenCascade
266 echo ---------------------------------------------
272 echo ---------------------------------------------
273 echo Testing html generators
274 echo ---------------------------------------------
277 CHECK_HTML_GENERATORS
280 echo ---------------------------------------------
281 echo Testing gd library
282 echo ---------------------------------------------
288 echo ---------------------------------------------
290 echo ---------------------------------------------
296 echo ---------------------------------------------
297 echo Testing full GUI
298 echo ---------------------------------------------
302 if test "x${CORBA_IN_GUI}" != "xyes"; then
303 echo "failed : For configure COMPONENT module necessary full GUI !"
308 echo ---------------------------------------------
310 echo ---------------------------------------------
316 echo ---------------------------------------------
318 echo ---------------------------------------------
324 echo ---------------------------------------------
326 echo ---------------------------------------------
332 echo ---------------------------------------------
334 echo ---------------------------------------------
340 echo ---------------------------------------------
341 echo Testing Randomizer
342 echo ---------------------------------------------
348 echo ---------------------------------------------
350 echo ---------------------------------------------
354 variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok
355 OpenGL_ok qt_ok vtk_ok hdf5_ok med2_ok omniORB_ok occ_ok doxygen_ok graphviz_ok gd_ok Kernel_ok Med_ok Visu_ok Randomizer_ok"
357 for var in $variables
359 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
364 echo "Default ORB : $DEFAULT_ORB"
367 dnl We don t need to say when we re entering directories if we re using
368 dnl GNU make becuase make does it for us.
369 if test "X$GMAKE" = "Xyes"; then
370 AC_SUBST(SETX) SETX=":"
372 AC_SUBST(SETX) SETX="set -x"
375 echo ---------------------------------------------
376 echo generating Makefiles and configure files
377 echo ---------------------------------------------
380 AC_OUTPUT_COMMANDS([ \
384 # This list is initiated using autoscan and must be updated manually
385 # when adding a new file <filename>.in to manage. When you execute
386 # autoscan, the Makefile list is generated in the output file configure.scan.
387 # This could be helpfull to update de configuration.
389 salome_adm/unix/SALOMEconfig.h \
391 adm_local/unix/Makefile \
392 adm_local/unix/config_files/Makefile \
396 src/Sierpinsky/Makefile \
397 src/SierpinskyGUI/Makefile \
399 resources/SIERPINSKYCatalog.xml \
401 SIERPINSKY_version.h \