2 # Copyright (C) 2007-2010 CEA/DEN, EDF R&D
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 # Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
26 AC_INIT([Salome2 Project BLSURFPLUGIN module], [6.1.0], [webmaster.salome@opencascade.com], [SalomeBLSURFPLUGIN])
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)}'`
35 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
36 MODULE_NAME=blsurfplugin
40 dnl Initialize source and build root directories
44 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
50 AC_SUBST(ROOT_BUILDDIR)
53 echo Source root directory : $ROOT_SRCDIR
54 echo Build root directory : $ROOT_BUILDDIR
58 if test -z "$AR"; then
59 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
63 dnl Export the AR macro so that it will be placed in the libtool file
68 echo ---------------------------------------------
70 echo ---------------------------------------------
77 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
82 echo ---------------------------------------------
84 echo ---------------------------------------------
86 dnl first, we set static to no!
87 dnl if we want it, use --enable-static
93 dnl Fix up the INSTALL macro if it s a relative path. We want the
94 dnl full-path to the binary instead.
97 INSTALL='\${KERNEL_ROOT_DIR}'/adm_local/unix/config_files/install-sh
102 echo ---------------------------------------------
104 echo ---------------------------------------------
108 dnl inutil car libtool
112 # AC_CC_WARNINGS([ansi])
116 echo ---------------------------------------------
118 echo ---------------------------------------------
123 AC_F77_LIBRARY_LDFLAGS
125 AC_FC_LIBRARY_LDFLAGS
126 if test "X$FC" != "X" ; then
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 echo ---------------------------------------------
146 echo ---------------------------------------------
152 dnl ---------------------------------------------
154 dnl ---------------------------------------------
160 echo ---------------------------------------------
161 echo testing LEX \& YACC
162 echo ---------------------------------------------
171 echo ---------------------------------------------
173 echo ---------------------------------------------
181 dnl echo ---------------------------------------------
182 dnl echo testing java
183 dnl echo ---------------------------------------------
189 echo ---------------------------------------------
191 echo ---------------------------------------------
197 echo ---------------------------------------------
199 echo ---------------------------------------------
205 echo ---------------------------------------------
207 echo ---------------------------------------------
213 dnl echo ---------------------------------------------
214 dnl echo testing mico
215 dnl echo ---------------------------------------------
221 echo ---------------------------------------------
222 echo default ORB : omniORB
223 echo ---------------------------------------------
231 CORBA=adm_local/unix/$corba
234 echo ---------------------------------------------
236 echo ---------------------------------------------
242 if test "${SalomeGUI_need}" != "no" -a "${FullGUI_ok}" = "yes" ; then
246 AM_CONDITIONAL(BLSURFPLUGIN_ENABLE_GUI, [test "${gui_ok}" = "yes"])
248 if test "${SalomeGUI_need}" == "yes"; then
249 if test "${FullGUI_ok}" != "yes"; then
250 AC_MSG_WARN(For configure BLSURFPLUGIN module necessary full GUI!)
252 elif test "${SalomeGUI_need}" == "auto"; then
253 if test "${FullGUI_ok}" != "yes"; then
254 AC_MSG_WARN(Full GUI not found. Build will be done without GUI!)
256 elif test "${SalomeGUI_need}" == "no"; then
257 echo Build without GUI option has been chosen
260 if test "${gui_ok}" = "yes"; then
262 echo ---------------------------------------------
264 echo ---------------------------------------------
270 echo ---------------------------------------------
272 echo ---------------------------------------------
278 echo ---------------------------------------------
280 echo ---------------------------------------------
287 echo ---------------------------------------------
289 echo ---------------------------------------------
295 echo ---------------------------------------------
296 echo Testing OpenCascade
297 echo ---------------------------------------------
303 echo ---------------------------------------------
304 echo Testing html generators
305 echo ---------------------------------------------
308 CHECK_HTML_GENERATORS
311 echo ---------------------------------------------
313 echo ---------------------------------------------
319 echo ---------------------------------------------
321 echo ---------------------------------------------
327 echo ---------------------------------------------
329 echo ---------------------------------------------
335 echo ---------------------------------------------
337 echo ---------------------------------------------
343 echo ---------------------------------------------
345 echo ---------------------------------------------
351 echo ---------------------------------------------
353 echo ---------------------------------------------
356 #AM_CONDITIONAL( USE_GFORTRAN, [test "$F77" = "gfortran"])
360 if test "${gui_ok}" = "yes"; then
361 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 doxygen_ok graphviz_ok Kernel_ok Geom_ok Med_ok SMesh_ok gui_ok BLSURF_ok"
362 elif test "${SalomeGUI_need}" != "no"; then
363 variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok Geom_ok Med_ok SMesh_ok gui_ok BLSURF_ok"
365 variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok Geom_ok Med_ok SMesh_ok BLSURF_ok"
368 for var in $variables
370 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
375 echo "Default ORB : $DEFAULT_ORB"
378 dnl We don t need to say when we re entering directories if we re using
379 dnl GNU make becuase make does it for us.
380 if test "X$GMAKE" = "Xyes"; then
381 AC_SUBST(SETX) SETX=":"
383 AC_SUBST(SETX) SETX="set -x"
386 dnl copy shells and utilities contained in the bin directory
387 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
391 echo ---------------------------------------------
392 echo generating Makefiles and configure files
393 echo ---------------------------------------------
396 #AC_OUTPUT_COMMANDS([ \
397 # chmod +x ./bin/*; \
398 # chmod +x ./bin/salome/*;
401 # This list is initiated using autoscan and must be updated manually
402 # when adding a new file <filename>.in to manage. When you execute
403 # autoscan, the Makefile list is generated in the output file configure.scan.
404 # This could be helpfull to update de configuration.
407 adm_local/unix/Makefile \
408 adm_local/unix/config_files/Makefile \
409 adm_local/cmake_files/Makefile \
411 doc/salome/Makefile \
412 doc/salome/gui/Makefile \
413 doc/salome/gui/doxyfile \
414 doc/salome/tui/Makefile \
415 doc/salome/tui/doxyfile \
421 src/BLSURFPlugin/Makefile \
423 BLSURFPLUGIN_version.h \