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.ac file
27 # Author : Roman NIKOLAEV Open CASCADE S.A.S. (roman.nikolaev@opencascade.com)
31 AC_INIT([Salome2 Project PYLIGHT module], [5.1.1], [webmaster.salome@opencascade.com], [SalomePYLIGHT])
32 AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
37 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
40 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
45 dnl Initialize source and build root directories
49 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
55 AC_SUBST(ROOT_BUILDDIR)
58 echo Source root directory : $ROOT_SRCDIR
59 echo Build root directory : $ROOT_BUILDDIR
63 AC_CHECK_PROG(SHELL,sh)
66 if test -z "$AR"; then
67 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
71 dnl Export the AR macro so that it will be placed in the libtool file
76 echo ---------------------------------------------
78 echo ---------------------------------------------
84 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + for shared libraries
89 echo ---------------------------------------------
91 echo ---------------------------------------------
93 dnl first, we set static to no!
94 dnl if we want it, use --enable-static
100 dnl Fix up the INSTALL macro if it s a relative path. We want the
101 dnl full-path to the binary instead.
104 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
109 echo ---------------------------------------------
111 echo ---------------------------------------------
119 echo ---------------------------------------------
121 echo ---------------------------------------------
127 echo ---------------------------------------------
129 echo ---------------------------------------------
135 echo ---------------------------------------------
137 echo ---------------------------------------------
143 echo ---------------------------------------------
145 echo ---------------------------------------------
150 echo ---------------------------------------------
152 echo ---------------------------------------------
158 echo ---------------------------------------------
160 echo ---------------------------------------------
167 variables="python_ok qt_ok pyqt_ok vtk_ok Kernel_ok"
169 for var in $variables
171 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
175 dnl We don t need to say when we re entering directories if we re using
176 dnl GNU make becuase make does it for us.
177 if test "X$GMAKE" = "Xyes"; then
178 AC_SUBST(SETX) SETX=":"
180 AC_SUBST(SETX) SETX="set -x"
183 echo ---------------------------------------------
184 echo generating Makefiles and configure files
185 echo ---------------------------------------------
188 AC_OUTPUT_COMMANDS([ \
192 # This list is initiated using autoscan and must be updated manually
193 # when adding a new file <filename>.in to manage. When you execute
194 # autoscan, the Makefile list is generated in the output file configure.scan.
195 # This could be helpfull to update de configuration.
197 ./salome_adm/unix/SALOMEconfig.h \
198 ./adm_local/Makefile \
199 ./adm_local/unix/Makefile \
200 ./adm_local/unix/config_files/Makefile \
204 ./src/PYLIGHTGUI/Makefile \
205 ./resources/Makefile \