1 # Copyright (C) 2004-2008 CEA/DEN, EDF R&D
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 GHS3DPLUGIN module],[5.1.1], [webmaster.salome@opencascade.com], [SalomeGHS3DPLUGIN])
30 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
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=ghs3dplugin
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 -c"
107 echo ---------------------------------------------
109 echo ---------------------------------------------
113 dnl inutil car libtool
117 AC_CXX_TEMPLATE_OPTIONS
119 # AC_CC_WARNINGS([ansi])
123 AC_CHECK_LIB(dl,dlopen)
125 dnl Library librt : for alpha/osf
126 AC_CHECK_LIB(rt,nanosleep)
128 dnl add library libm :
132 dnl Well we use sstream which is not in gcc pre-2.95.3
133 dnl We must test if it exists. If not, add it in include !
139 dnl ---------------------------------------------
141 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
220 GHS3DPLUGIN_WITH_GUI=yes
222 AM_CONDITIONAL(GHS3DPLUGIN_ENABLE_GUI, [test "${GHS3DPLUGIN_WITH_GUI}" = "yes"])
224 if test "${GHS3DPLUGIN_WITH_GUI}" = "yes"; then
227 echo ---------------------------------------------
229 echo ---------------------------------------------
235 echo ---------------------------------------------
237 echo ---------------------------------------------
243 echo ---------------------------------------------
245 echo ---------------------------------------------
251 echo ---------------------------------------------
253 echo ---------------------------------------------
259 echo ---------------------------------------------
260 echo Testing full GUI
261 echo ---------------------------------------------
265 if test "x${CORBA_IN_GUI}" != "xyes"; then
266 echo "failed : For configure GHS3DPLUGIN module necessary full GUI !"
272 echo ---------------------------------------------
274 echo ---------------------------------------------
280 echo ---------------------------------------------
282 echo ---------------------------------------------
288 echo ---------------------------------------------
289 echo Testing OpenCascade
290 echo ---------------------------------------------
296 echo ---------------------------------------------
297 echo Testing html generators
298 echo ---------------------------------------------
301 CHECK_HTML_GENERATORS
304 echo ---------------------------------------------
306 echo ---------------------------------------------
312 echo ---------------------------------------------
314 echo ---------------------------------------------
320 echo ---------------------------------------------
322 echo ---------------------------------------------
328 echo ---------------------------------------------
330 echo ---------------------------------------------
336 echo ---------------------------------------------
338 echo ---------------------------------------------
344 echo ---------------------------------------------
346 echo ---------------------------------------------
350 if test "${GHS3DPLUGIN_WITH_GUI}" = "yes"; then
351 variables="cc_ok boost_ok threads_ok omniORB_ok occ_ok doxygen_ok Kernel_ok Geom_ok Med_ok SMesh_ok GHS3D_ok OpenGL_ok qt_ok vtk_ok"
353 if test "${GHS3DPLUGIN_WITH_GUI}" = "no"; then
354 variables="cc_ok boost_ok threads_ok omniORB_ok occ_ok doxygen_ok Kernel_ok Geom_ok Med_ok SMesh_ok GHS3D_ok"
356 for var in $variables
358 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
363 echo "Default ORB : $DEFAULT_ORB"
366 dnl We don t need to say when we re entering directories if we re using
367 dnl GNU make becuase make does it for us.
368 if test "X$GMAKE" = "Xyes"; then
369 AC_SUBST(SETX) SETX=":"
371 AC_SUBST(SETX) SETX="set -x"
374 echo ---------------------------------------------
375 echo generating Makefiles and configure files
376 echo ---------------------------------------------
379 AC_OUTPUT_COMMANDS([ \
383 # This list is initiated using autoscan and must be updated manually
384 # when adding a new file <filename>.in to manage. When you execute
385 # autoscan, the Makefile list is generated in the output file configure.scan.
386 # This could be helpfull to update de configuration.
388 ./salome_adm/unix/SALOMEconfig.h \
389 ./adm_local/Makefile \
390 ./adm_local/unix/Makefile \
391 ./adm_local/unix/config_files/Makefile \
394 ./GHS3DPLUGIN_version.h \
397 ./resources/Makefile \