1 # Copyright (C) 2009-2010 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
20 AC_INIT([Salome Project GENERICSOLVER module], [5.1.4], [webmaster.salome@opencascade.com], [SalomeGENERICSOLVER])
21 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
26 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
29 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
30 MODULE_NAME=genericsolver
34 dnl Initialize source and build root directories
38 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
44 AC_SUBST(ROOT_BUILDDIR)
47 echo Source root directory : $ROOT_SRCDIR
48 echo Build root directory : $ROOT_BUILDDIR
52 AC_CHECK_PROG(SHELL,sh)
55 if test -z "$AR"; then
56 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
60 dnl Export the AR macro so that it will be placed in the libtool file
65 echo ---------------------------------------------
67 echo ---------------------------------------------
73 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + for shared libraries
78 echo ---------------------------------------------
80 echo ---------------------------------------------
82 dnl first, we set static to no!
83 dnl if we want it, use --enable-static
89 dnl Fix up the INSTALL macro if it s a relative path. We want the
90 dnl full-path to the binary instead.
93 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
98 echo ---------------------------------------------
100 echo ---------------------------------------------
108 echo ---------------------------------------------
110 echo ---------------------------------------------
116 echo ---------------------------------------------
117 echo default ORB : omniORB
118 echo ---------------------------------------------
126 CORBA=adm_local/unix/$corba
129 echo ---------------------------------------------
131 echo ---------------------------------------------
137 echo ---------------------------------------------
139 echo ---------------------------------------------
145 echo ---------------------------------------------
147 echo ---------------------------------------------
153 echo ---------------------------------------------
154 echo Testing full GUI
155 echo ---------------------------------------------
159 if test "x${CORBA_IN_GUI}" != "xyes"; then
160 echo "failed : For configure GENERICSOLVER module necessary full GUI !"
167 echo ---------------------------------------------
169 echo ---------------------------------------------
173 variables="python_ok omniORB_ok qt_ok Kernel_ok"
175 for var in $variables
177 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
182 echo "Default ORB : $DEFAULT_ORB"
185 dnl We don t need to say when we re entering directories if we re using
186 dnl GNU make becuase make does it for us.
187 if test "X$GMAKE" = "Xyes"; then
188 AC_SUBST(SETX) SETX=":"
190 AC_SUBST(SETX) SETX="set -x"
193 echo ---------------------------------------------
194 echo generating Makefiles and configure files
195 echo ---------------------------------------------
198 AC_OUTPUT_COMMANDS([ \
202 # This list is initiated using autoscan and must be updated manually
203 # when adding a new file <filename>.in to manage. When you execute
204 # autoscan, the Makefile list is generated in the output file configure.scan.
205 # This could be helpfull to update de configuration.
207 salome_adm/unix/SALOMEconfig.h \
209 adm_local/unix/Makefile \
210 adm_local/unix/config_files/Makefile \
213 src/GENERICSOLVER/Makefile \
214 src/GENERICSOLVERGUI/Makefile \
216 resources/GENERICSOLVERCatalog.xml \