2 # Copyright (C) 2007-2008 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
22 # Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
25 AC_INIT([Salome2 Project BLSURFPLUGIN module], [5.1.2], [webmaster.salome@opencascade.com], [SalomeBLSURFPLUGIN])
26 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
29 AM_INIT_AUTOMAKE([-Wno-portability])
31 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
34 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
35 MODULE_NAME=blsurfplugin
39 dnl Initialize source and build root directories
43 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
49 AC_SUBST(ROOT_BUILDDIR)
52 echo Source root directory : $ROOT_SRCDIR
53 echo Build root directory : $ROOT_BUILDDIR
57 if test -z "$AR"; then
58 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
62 dnl Export the AR macro so that it will be placed in the libtool file
67 echo ---------------------------------------------
69 echo ---------------------------------------------
76 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
81 echo ---------------------------------------------
83 echo ---------------------------------------------
85 dnl first, we set static to no!
86 dnl if we want it, use --enable-static
92 dnl Fix up the INSTALL macro if it s a relative path. We want the
93 dnl full-path to the binary instead.
96 INSTALL='\${KERNEL_ROOT_DIR}'/adm_local/unix/config_files/install-sh
101 echo ---------------------------------------------
103 echo ---------------------------------------------
107 dnl inutil car libtool
111 # AC_CC_WARNINGS([ansi])
115 echo ---------------------------------------------
117 echo ---------------------------------------------
122 AC_F77_LIBRARY_LDFLAGS
124 AC_FC_LIBRARY_LDFLAGS
125 if test "X$FC" != "X" ; then
130 AC_CHECK_LIB(dl,dlopen)
132 dnl add library libm :
136 dnl Well we use sstream which is not in gcc pre-2.95.3
137 dnl We must test if it exists. If not, add it in include !
143 echo ---------------------------------------------
145 echo ---------------------------------------------
151 dnl ---------------------------------------------
153 dnl ---------------------------------------------
159 echo ---------------------------------------------
160 echo testing LEX \& YACC
161 echo ---------------------------------------------
170 echo ---------------------------------------------
172 echo ---------------------------------------------
180 dnl echo ---------------------------------------------
181 dnl echo testing java
182 dnl echo ---------------------------------------------
188 echo ---------------------------------------------
190 echo ---------------------------------------------
196 echo ---------------------------------------------
198 echo ---------------------------------------------
204 echo ---------------------------------------------
206 echo ---------------------------------------------
212 dnl echo ---------------------------------------------
213 dnl echo testing mico
214 dnl echo ---------------------------------------------
220 echo ---------------------------------------------
221 echo default ORB : omniORB
222 echo ---------------------------------------------
230 CORBA=adm_local/unix/$corba
233 echo ---------------------------------------------
235 echo ---------------------------------------------
241 if test "${SalomeGUI_need}" != "no" -a "${FullGUI_ok}" = "yes" ; then
245 AM_CONDITIONAL(BLSURFPLUGIN_ENABLE_GUI, [test "${gui_ok}" = "yes"])
247 if test "${SalomeGUI_need}" == "yes"; then
248 if test "${FullGUI_ok}" != "yes"; then
249 AC_MSG_WARN(For configure BLSURFPLUGIN module necessary full GUI!)
251 elif test "${SalomeGUI_need}" == "auto"; then
252 if test "${FullGUI_ok}" != "yes"; then
253 AC_MSG_WARN(Full GUI not found. Build will be done without GUI!)
255 elif test "${SalomeGUI_need}" == "no"; then
256 echo Build without GUI option has been chosen
259 if test "${gui_ok}" = "yes"; then
261 echo ---------------------------------------------
263 echo ---------------------------------------------
269 echo ---------------------------------------------
271 echo ---------------------------------------------
277 echo ---------------------------------------------
279 echo ---------------------------------------------
286 echo ---------------------------------------------
288 echo ---------------------------------------------
294 echo ---------------------------------------------
295 echo Testing OpenCascade
296 echo ---------------------------------------------
302 echo ---------------------------------------------
303 echo Testing html generators
304 echo ---------------------------------------------
307 CHECK_HTML_GENERATORS
310 echo ---------------------------------------------
312 echo ---------------------------------------------
318 echo ---------------------------------------------
320 echo ---------------------------------------------
326 echo ---------------------------------------------
328 echo ---------------------------------------------
334 echo ---------------------------------------------
336 echo ---------------------------------------------
342 echo ---------------------------------------------
344 echo ---------------------------------------------
350 echo ---------------------------------------------
352 echo ---------------------------------------------
355 #AM_CONDITIONAL( USE_GFORTRAN, [test "$F77" = "gfortran"])
359 if test "${gui_ok}" = "yes"; then
360 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"
361 elif test "${SalomeGUI_need}" != "no"; then
362 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"
364 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"
367 for var in $variables
369 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
374 echo "Default ORB : $DEFAULT_ORB"
377 dnl We don t need to say when we re entering directories if we re using
378 dnl GNU make becuase make does it for us.
379 if test "X$GMAKE" = "Xyes"; then
380 AC_SUBST(SETX) SETX=":"
382 AC_SUBST(SETX) SETX="set -x"
385 dnl copy shells and utilities contained in the bin directory
386 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
390 echo ---------------------------------------------
391 echo generating Makefiles and configure files
392 echo ---------------------------------------------
395 #AC_OUTPUT_COMMANDS([ \
396 # chmod +x ./bin/*; \
397 # chmod +x ./bin/salome/*;
400 # This list is initiated using autoscan and must be updated manually
401 # when adding a new file <filename>.in to manage. When you execute
402 # autoscan, the Makefile list is generated in the output file configure.scan.
403 # This could be helpfull to update de configuration.
406 adm_local/unix/Makefile \
407 adm_local/unix/config_files/Makefile \
408 adm_local/cmake_files/Makefile \
410 doc/salome/Makefile \
411 doc/salome/gui/Makefile \
412 doc/salome/gui/doxyfile \
413 doc/salome/tui/Makefile \
414 doc/salome/tui/doxyfile \
420 src/PluginUtils/Makefile \
421 src/BLSURFPlugin/Makefile \
423 BLSURFPLUGIN_version.h \