2 # PLEASE DO NOT MODIFY configure.in FILE
4 # ALL CHANGES WILL BE DISCARDED BY THE NEXT
5 # build_configure COMMAND
7 # CHANGES MUST BE MADE IN configure.in.base FILE
10 # Author : Marc Tajchman (CEA)
12 # Modified by : Patrick GOLDBRONN (CEA)
13 # Modified by : Marc Tajchman (CEA)
14 # 13/03/2007: Alexander BORODIN - OCN
15 # Reorganization for usage of autotools
17 # Created from configure.in.base
20 AC_INIT([Salome2 Project NETGENPLUGIN module], [4.0.0], [gboulant@CS], [salome])
21 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
34 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
35 MODULE_NAME=netgenplugin
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 ---------------------------------------------
75 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
80 echo ---------------------------------------------
82 echo ---------------------------------------------
84 dnl first, we set static to no!
85 dnl if we want it, use --enable-static
91 dnl Fix up the INSTALL macro if it s a relative path. We want the
92 dnl full-path to the binary instead.
95 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
100 echo ---------------------------------------------
102 echo ---------------------------------------------
106 dnl inutil car libtool
110 # AC_CC_WARNINGS([ansi])
114 echo ---------------------------------------------
116 echo ---------------------------------------------
121 AC_F77_LIBRARY_LDFLAGS
123 AC_FC_LIBRARY_LDFLAGS
124 if test "X$FC" != "X" ; then
129 AC_CHECK_LIB(dl,dlopen)
131 dnl add library libm :
135 dnl Well we use sstream which is not in gcc pre-2.95.3
136 dnl We must test if it exists. If not, add it in include !
142 echo ---------------------------------------------
144 echo ---------------------------------------------
150 dnl ---------------------------------------------
152 dnl ---------------------------------------------
158 echo ---------------------------------------------
159 echo testing LEX \& YACC
160 echo ---------------------------------------------
169 echo ---------------------------------------------
171 echo ---------------------------------------------
179 dnl echo ---------------------------------------------
180 dnl echo testing java
181 dnl echo ---------------------------------------------
187 echo ---------------------------------------------
189 echo ---------------------------------------------
195 echo ---------------------------------------------
197 echo ---------------------------------------------
203 echo ---------------------------------------------
205 echo ---------------------------------------------
211 dnl echo ---------------------------------------------
212 dnl echo testing mico
213 dnl echo ---------------------------------------------
219 echo ---------------------------------------------
220 echo default ORB : omniORB
221 echo ---------------------------------------------
229 CORBA=adm_local/unix/$corba
232 echo ---------------------------------------------
234 echo ---------------------------------------------
240 echo ---------------------------------------------
242 echo ---------------------------------------------
248 echo ---------------------------------------------
250 echo ---------------------------------------------
256 echo ---------------------------------------------
258 echo ---------------------------------------------
264 echo ---------------------------------------------
266 echo ---------------------------------------------
272 echo ---------------------------------------------
273 echo Testing OpenCascade
274 echo ---------------------------------------------
280 echo ---------------------------------------------
281 echo Testing html generators
282 echo ---------------------------------------------
285 CHECK_HTML_GENERATORS
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 NETGENPLUGIN module necessary full GUI !"
308 echo ---------------------------------------------
310 echo ---------------------------------------------
316 echo ---------------------------------------------
318 echo ---------------------------------------------
324 echo ---------------------------------------------
326 echo ---------------------------------------------
332 echo ---------------------------------------------
334 echo ---------------------------------------------
340 echo ---------------------------------------------
342 echo ---------------------------------------------
348 echo ---------------------------------------------
350 echo ---------------------------------------------
353 #AM_CONDITIONAL( USE_GFORTRAN, [test "$F77" = "gfortran"])
356 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 SMesh_ok Netgen_ok"
358 for var in $variables
360 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
365 echo "Default ORB : $DEFAULT_ORB"
368 dnl We don t need to say when we re entering directories if we re using
369 dnl GNU make becuase make does it for us.
370 if test "X$GMAKE" = "Xyes"; then
371 AC_SUBST(SETX) SETX=":"
373 AC_SUBST(SETX) SETX="set -x"
376 dnl copy shells and utilities contained in the bin directory
377 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
381 echo ---------------------------------------------
382 echo generating Makefiles and configure files
383 echo ---------------------------------------------
386 #AC_OUTPUT_COMMANDS([ \
387 # chmod +x ./bin/*; \
388 # chmod +x ./bin/salome/*;
391 # This list is initiated using autoscan and must be updated manually
392 # when adding a new file <filename>.in to manage. When you execute
393 # autoscan, the Makefile list is generated in the output file configure.scan.
394 # This could be helpfull to update de configuration.
396 ./salome_adm/unix/SALOMEconfig.h \
397 ./adm_local/Makefile \
398 ./adm_local/unix/Makefile \
399 ./adm_local/unix/config_files/Makefile \
402 ./NETGENPLUGIN_version.h \
405 ./src/NETGEN/Makefile \
406 ./src/NETGENPlugin/Makefile \
407 ./resources/Makefile \