1 # Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 # PLEASE DO NOT MODIFY configure.in FILE
23 # ALL CHANGES WILL BE DISCARDED BY THE NEXT
24 # build_configure COMMAND
25 # CHANGES MUST BE MADE IN configure.in.base FILE
26 # Author : Marc Tajchman (CEA)
28 # Modified by : Patrick GOLDBRONN (CEA)
29 # Modified by : Marc Tajchman (CEA)
30 # Created from configure.in.base
32 AC_INIT([Salome2 Project PYHELLO module], [5.1.2], [webmaster.salome@opencascade.com], [SalomePYHELLO])
33 AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
36 AM_INIT_AUTOMAKE([-Wno-portability])
38 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
41 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
46 dnl Initialize source and build root directories
50 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
56 AC_SUBST(ROOT_BUILDDIR)
59 echo Source root directory : $ROOT_SRCDIR
60 echo Build root directory : $ROOT_BUILDDIR
64 AC_CHECK_PROG(SHELL,sh)
67 if test -z "$AR"; then
68 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
72 dnl Export the AR macro so that it will be placed in the libtool file
77 echo ---------------------------------------------
79 echo ---------------------------------------------
86 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + for shared libraries
91 echo ---------------------------------------------
93 echo ---------------------------------------------
95 dnl first, we set static to no!
96 dnl if we want it, use --enable-static
102 dnl Fix up the INSTALL macro if it s a relative path. We want the
103 dnl full-path to the binary instead.
106 INSTALL='\${KERNEL_ROOT_DIR}'/adm_local/unix/config_files/install-sh
111 echo ---------------------------------------------
113 echo ---------------------------------------------
121 echo ---------------------------------------------
123 echo ---------------------------------------------
129 echo ---------------------------------------------
130 echo default ORB : omniORB
131 echo ---------------------------------------------
139 CORBA=adm_local/unix/$corba
142 echo ---------------------------------------------
144 echo ---------------------------------------------
150 echo ---------------------------------------------
152 echo ---------------------------------------------
158 echo ---------------------------------------------
160 echo ---------------------------------------------
166 echo ---------------------------------------------
167 echo Testing full GUI
168 echo ---------------------------------------------
172 if test "x${CORBA_IN_GUI}" != "xyes"; then
173 echo "failed : For configure PYHELLO1 module necessary full GUI !"
180 echo ---------------------------------------------
182 echo ---------------------------------------------
186 variables="python_ok omniORB_ok qt_ok Kernel_ok"
188 for var in $variables
190 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
195 echo "Default ORB : $DEFAULT_ORB"
198 dnl We don t need to say when we re entering directories if we re using
199 dnl GNU make becuase make does it for us.
200 if test "X$GMAKE" = "Xyes"; then
201 AC_SUBST(SETX) SETX=":"
203 AC_SUBST(SETX) SETX="set -x"
206 echo ---------------------------------------------
207 echo generating Makefiles and configure files
208 echo ---------------------------------------------
211 AC_OUTPUT_COMMANDS([ \
215 # This list is initiated using autoscan and must be updated manually
216 # when adding a new file <filename>.in to manage. When you execute
217 # autoscan, the Makefile list is generated in the output file configure.scan.
218 # This could be helpfull to update de configuration.
221 adm_local/unix/Makefile \
222 adm_local/unix/config_files/Makefile \
228 src/PYHELLO/Makefile \
229 src/PYHELLOGUI/Makefile \
231 resources/PYHELLOCatalog.xml \