3 # Copyright (C) 2007-2008 OPEN CASCADE, CEA/DEN, EDF R&D
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License.
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 # Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
28 AC_INIT([Salome2 Project GHS3DPRLPLUGIN module], [5.1.0], [webmaster.salome@opencascade.com], [SalomeGHS3DPRLPLUGIN])
29 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
34 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.)
38 MODULE_NAME=ghs3dprlplugin
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 ---------------------------------------------
78 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
83 echo ---------------------------------------------
85 echo ---------------------------------------------
87 dnl first, we set static to no!
88 dnl if we want it, use --enable-static
94 dnl Fix up the INSTALL macro if it s a relative path. We want the
95 dnl full-path to the binary instead.
98 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
103 echo ---------------------------------------------
105 echo ---------------------------------------------
109 dnl inutil car libtool
113 # AC_CC_WARNINGS([ansi])
117 echo ---------------------------------------------
119 echo ---------------------------------------------
124 AC_F77_LIBRARY_LDFLAGS
126 AC_FC_LIBRARY_LDFLAGS
127 if test "X$FC" != "X" ; then
132 AC_CHECK_LIB(dl,dlopen)
134 dnl add library libm :
138 dnl Well we use sstream which is not in gcc pre-2.95.3
139 dnl We must test if it exists. If not, add it in include !
145 echo ---------------------------------------------
147 echo ---------------------------------------------
153 dnl ---------------------------------------------
155 dnl ---------------------------------------------
161 echo ---------------------------------------------
162 echo testing LEX \& YACC
163 echo ---------------------------------------------
172 echo ---------------------------------------------
174 echo ---------------------------------------------
182 dnl echo ---------------------------------------------
183 dnl echo testing java
184 dnl echo ---------------------------------------------
190 echo ---------------------------------------------
192 echo ---------------------------------------------
198 echo ---------------------------------------------
200 echo ---------------------------------------------
206 echo ---------------------------------------------
208 echo ---------------------------------------------
214 dnl echo ---------------------------------------------
215 dnl echo testing mico
216 dnl echo ---------------------------------------------
222 echo ---------------------------------------------
223 echo default ORB : omniORB
224 echo ---------------------------------------------
232 CORBA=adm_local/unix/$corba
234 GHS3DPRLPLUGIN_WITH_GUI=yes
236 AM_CONDITIONAL(GHS3DPRLPLUGIN_ENABLE_GUI, [test "${GHS3DPRLPLUGIN_WITH_GUI}" = "yes"])
238 if test "${GHS3DPRLPLUGIN_WITH_GUI}" = "yes"; then
240 echo ---------------------------------------------
242 echo ---------------------------------------------
248 echo ---------------------------------------------
250 echo ---------------------------------------------
256 echo ---------------------------------------------
258 echo ---------------------------------------------
264 echo ---------------------------------------------
266 echo ---------------------------------------------
272 echo ---------------------------------------------
273 echo Testing full GUI
274 echo ---------------------------------------------
278 if test "x${CORBA_IN_GUI}" != "xyes"; then
279 echo "failed : For configure GHS3DPRLPLUGIN module necessary full GUI !"
285 echo ---------------------------------------------
287 echo ---------------------------------------------
293 echo ---------------------------------------------
294 echo Testing OpenCascade
295 echo ---------------------------------------------
301 echo ---------------------------------------------
302 echo Testing html generators
303 echo ---------------------------------------------
306 CHECK_HTML_GENERATORS
309 echo ---------------------------------------------
310 echo Testing GHS3DPRL
311 echo ---------------------------------------------
317 echo ---------------------------------------------
319 echo ---------------------------------------------
325 echo ---------------------------------------------
327 echo ---------------------------------------------
333 echo ---------------------------------------------
335 echo ---------------------------------------------
341 echo ---------------------------------------------
343 echo ---------------------------------------------
350 echo ---------------------------------------------
352 echo ---------------------------------------------
355 dnl libxml_ok is set to yes by CHECK_LIBXML
358 echo ---------------------------------------------
360 echo ---------------------------------------------
363 #AM_CONDITIONAL( USE_GFORTRAN, [test "$F77" = "gfortran"])
365 if test "${GHS3DPRLPLUGIN_WITH_GUI}" = "yes"; then
366 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 SalomeGUI_ok libxml_ok"
367 opt_variables="GHS3DPRL_ok"
369 if test "${GHS3DPRLPLUGIN_WITH_GUI}" = "no"; then
370 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 libxml_ok"
371 opt_variables="GHS3DPRL_ok"
375 echo --- Mandatory products :
378 for var in $variables
380 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
385 echo --- Optional products :
388 for var in $opt_variables
390 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
396 echo "Default ORB : $DEFAULT_ORB"
399 dnl We don t need to say when we re entering directories if we re using
400 dnl GNU make becuase make does it for us.
401 if test "X$GMAKE" = "Xyes"; then
402 AC_SUBST(SETX) SETX=":"
404 AC_SUBST(SETX) SETX="set -x"
407 dnl copy shells and utilities contained in the bin directory
408 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
412 echo ---------------------------------------------
413 echo generating Makefiles and configure files
414 echo ---------------------------------------------
417 #AC_OUTPUT_COMMANDS([ \
418 # chmod +x ./bin/*; \
419 # chmod +x ./bin/salome/*;
422 # This list is initiated using autoscan and must be updated manually
423 # when adding a new file <filename>.in to manage. When you execute
424 # autoscan, the Makefile list is generated in the output file configure.scan.
425 # This could be helpfull to update de configuration.
427 ./salome_adm/unix/SALOMEconfig.h \
428 ./adm_local/Makefile \
429 ./adm_local/unix/Makefile \
430 ./adm_local/unix/config_files/Makefile \
434 ./resources/Makefile \
436 ./src/GHS3DPRLPlugin/Makefile \
438 ./src/tepal2med/Makefile \
439 ./GHS3DPRLPLUGIN_version.h \