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)
15 # Created from configure.in.base
20 AC_CONFIG_AUX_DIR(${KERNEL_ROOT_DIR}/salome_adm/unix/config_files)
30 dnl Initialize source and build root directories
34 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
40 AC_SUBST(ROOT_BUILDDIR)
43 echo Source root directory : $ROOT_SRCDIR
44 echo Build root directory : $ROOT_BUILDDIR
48 if test -z "$AR"; then
49 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
53 dnl Export the AR macro so that it will be placed in the libtool file
58 echo ---------------------------------------------
60 echo ---------------------------------------------
66 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
71 echo ---------------------------------------------
73 echo ---------------------------------------------
75 dnl first, we set static to no!
76 dnl if we want it, use --enable-static
82 dnl Fix up the INSTALL macro if it s a relative path. We want the
83 dnl full-path to the binary instead.
86 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
91 echo ---------------------------------------------
93 echo ---------------------------------------------
97 dnl inutil car libtool
101 AC_CXX_TEMPLATE_OPTIONS
103 # AC_CC_WARNINGS([ansi])
107 AC_CHECK_LIB(dl,dlopen)
109 dnl add library libm :
113 dnl Well we use sstream which is not in gcc pre-2.95.3
114 dnl We must test if it exists. If not, add it in include !
120 dnl ---------------------------------------------
122 dnl ---------------------------------------------
128 echo ---------------------------------------------
129 echo testing LEX \& YACC
130 echo ---------------------------------------------
139 echo ---------------------------------------------
141 echo ---------------------------------------------
147 dnl echo ---------------------------------------------
148 dnl echo testing java
149 dnl echo ---------------------------------------------
155 echo ---------------------------------------------
157 echo ---------------------------------------------
163 echo ---------------------------------------------
165 echo ---------------------------------------------
171 echo ---------------------------------------------
173 echo ---------------------------------------------
179 dnl echo ---------------------------------------------
180 dnl echo testing mico
181 dnl echo ---------------------------------------------
187 echo ---------------------------------------------
188 echo default ORB : omniORB
189 echo ---------------------------------------------
197 CORBA=adm_local/unix/$corba
200 echo ---------------------------------------------
202 echo ---------------------------------------------
208 echo ---------------------------------------------
210 echo ---------------------------------------------
216 echo ---------------------------------------------
218 echo ---------------------------------------------
224 echo ---------------------------------------------
226 echo ---------------------------------------------
232 echo ---------------------------------------------
234 echo ---------------------------------------------
240 echo ---------------------------------------------
242 echo ---------------------------------------------
248 echo ---------------------------------------------
249 echo Testing OpenCascade
250 echo ---------------------------------------------
256 echo ---------------------------------------------
258 echo ---------------------------------------------
264 echo ---------------------------------------------
266 echo ---------------------------------------------
272 echo ---------------------------------------------
274 echo ---------------------------------------------
280 echo ---------------------------------------------
281 echo Testing html generators
282 echo ---------------------------------------------
285 CHECK_HTML_GENERATORS
288 echo ---------------------------------------------
290 echo ---------------------------------------------
296 echo ---------------------------------------------
298 echo ---------------------------------------------
302 variables="cc_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok msg2qm_ok vtk_ok hdf5_ok omniORB_ok boost_ok occ_ok sip_ok pyqt_ok qwt_ok doxygen_ok graphviz_ok Kernel_ok"
304 for var in $variables
306 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
311 echo "Default ORB : $DEFAULT_ORB"
314 dnl generals files which could be included in every makefile
316 AC_SUBST_FILE(COMMENCE) COMMENCE=adm_local/unix/make_commence
317 AC_SUBST_FILE(CONCLUDE) CONCLUDE=salome_adm/unix/make_conclude
318 AC_SUBST_FILE(MODULE) MODULE=salome_adm/unix/make_module
321 AC_SUBST_FILE(DEPEND) DEPEND=salome_adm/unix/depend
323 dnl We don t need to say when we re entering directories if we re using
324 dnl GNU make becuase make does it for us.
325 if test "X$GMAKE" = "Xyes"; then
326 AC_SUBST(SETX) SETX=":"
328 AC_SUBST(SETX) SETX="set -x"
331 # make other build directories
332 for rep in salome_adm adm_local doc bin/salome include/salome lib/salome share/salome/resources idl
334 # if test ! -d $rep ; then
341 echo ---------------------------------------------
342 echo copying resource files, shell scripts, and
344 echo ---------------------------------------------
348 dnl copy resources directories
350 #for i in `find $ROOT_SRCDIR -name 'resources' -print`
352 # local_res=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
353 # local_res_dir=`echo $local_res | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
354 # mkdir -p $local_res_dir
361 dnl copy shells and utilities contained in the bin directory
362 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
368 for i in $ROOT_SRCDIR/bin/*
370 local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
373 ./bin/CVS | ./bin/salome) ;;
374 *) $INSTALL $i . ; echo $local_bin ;;
379 AC_SUBST_FILE(ENVSCRIPT) ENVSCRIPT=salome_adm/unix/envScript
381 dnl copy xml files to the build tree (lib directory)
385 #for i in `find $ROOT_SRCDIR -name "*.xml" -print`
388 # echo `echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
394 echo ---------------------------------------------
395 echo generating Makefiles and configure files
396 echo ---------------------------------------------
399 AC_OUTPUT_COMMANDS([ \
403 ## do not delete this line