]> SALOME platform Git repositories - modules/yacs.git/blob - configure.in.base
Salome HOME
mergefrom branch BR_V511_PR tag mergeto_trunk_03feb09
[modules/yacs.git] / configure.in.base
1 #  Copyright (C) 2006-2008  CEA/DEN, EDF R&D
2 #
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.
7 #
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.
12 #
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
16 #
17 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19 # --
20 # Author : Anthony Geay (CEA)
21 # --
22 # -----------------------------------------------------------------------------
23 #
24 AC_INIT([Salome2 Project], [5.1.0], [paul.rascle@edf.fr], [SalomeYacs])
25 AM_INIT_AUTOMAKE([tar-pax])
26 AC_CONFIG_HEADER(yacs_config.h)
27
28 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
29 MODULE_NAME=yacs
30 AC_SUBST(MODULE_NAME)
31
32 XVERSION=0x050100
33 AC_SUBST(XVERSION)
34
35 RELEASE=$VERSION
36 AC_SUBST(RELEASE)
37
38 # This function return on stdout the absolute path of the filename in
39 # argument. Exemple:
40 # $ filename="../KERNEL_SRC/configure
41 # $ absfilename=`absolute_path $filename`
42 function absolute_path {
43     filename=$1
44     here=`pwd`
45     apath=`dirname $filename`
46     cd $apath
47     apath=`pwd`
48     cd $here
49     echo $apath
50 }
51
52 # Build directory, where the configure script is executed.
53 ROOT_BUILDDIR=`pwd`
54 # Source directory, where the configure script is located.
55 ROOT_SRCDIR=`absolute_path $0`
56
57 AC_SUBST(ROOT_SRCDIR)
58 AC_SUBST(ROOT_BUILDDIR)
59
60 echo
61 echo Source root directory : $ROOT_SRCDIR
62 echo Build  root directory : $ROOT_BUILDDIR
63
64 # -----------------------------------------------------------------------------
65
66 AC_ENABLE_DEBUG(yes)
67 AC_DISABLE_PRODUCTION
68
69 #Linker options
70 AC_CANONICAL_BUILD
71 AC_LINKER_OPTIONS
72
73 #Mandatory products
74 AC_PROG_CXX
75 AM_PROG_LIBTOOL
76
77 AC_CHECK_LIB(dl,dlopen)
78
79 ENABLE_PTHREADS
80
81 AM_PATH_PYTHON(2.3)
82 AC_PYTHON_DEVEL
83 python_ok=yes
84 CHECK_THREAD
85 AC_CHECK_OMNIORB
86 AC_CHECK_EXPAT
87 AC_CHECK_LIBXML
88 CHECK_BOOST
89
90 #Optional products
91 AC_PROG_SWIG(1.3.17)
92 SWIG_ENABLE_CXX
93 SWIG_PYTHON
94 CHECK_CPPUNIT
95 AC_CHECK_KERNEL
96 #CHECK_MSG2QM
97 CHECK_HTML_GENERATORS
98 CHECK_SPHINX
99
100 I2_CHECK_QT4
101 I2_CHECK_QSCINTILLA
102
103 AM_CONDITIONAL([PYTHON_API], [test "x$swig_ok" == "xyes"])
104 AM_CONDITIONAL([SALOME_KERNEL], [test "x$KERNEL_ROOT_DIR" != "x"])
105 AM_CONDITIONAL([DSC_PORTS], [test -f $KERNEL_ROOT_DIR/idl/salome/DSC_Engines.idl])
106
107 CHECK_GUI(SALOME_Session_Server,SALOME_Session_Server)
108
109 AM_CONDITIONAL([HAS_GUI], [test "x$GUI_ROOT_DIR" != "x"])
110
111 echo
112 echo
113 echo
114 echo "------------------------------------------------------------------------"
115 echo "$PACKAGE $VERSION"
116 echo "------------------------------------------------------------------------"
117 echo
118 echo "Configuration Options Summary:"
119 echo
120 echo "Mandatory products:"
121 echo "  Threads ................ : $thread_ok"
122 echo "  Boost .................. : $boost_ok"
123 echo "  OmniOrb (CORBA) ........ : $omniORB_ok"
124 echo "  OmniOrbpy (CORBA) ...... : $omniORBpy_ok"
125 echo "  Python ................. : $python_ok"
126 echo "  Expat .................. : $expat_ok"
127 echo "  libxml ................. : $libxml_ok"
128 echo
129 echo "Optional products:"
130 echo "  swig (python wrapper)... : $swig_ok"
131 echo "  SALOME KERNEL .......... : $Kernel_ok"
132 echo "  DSC extension .......... : $dsc_ok"
133 echo "  Cppunit (make check).... : $cppunit_ok"
134 echo "  Qt4 (graphic interface)  : $qt_ok"
135 echo "  QScintilla ............. : $qscintilla_ok"
136 #echo "  msq2qm ................. : $msg2qm_ok"
137 echo "  SALOME GUI ............. : $SalomeGUI_ok"
138 echo "  Sphinx (user doc) ...... : $sphinx_ok"
139 echo
140 echo "------------------------------------------------------------------------"
141 echo
142
143 if test "x$thread_ok" = "xno"; then
144   AC_MSG_ERROR([Thread is required],1)
145 fi
146 if test "x$omniORB_ok" = "xno"; then
147   AC_MSG_ERROR([OmniOrb is required],1)
148 fi
149 if test "x$python_ok" = "xno"; then
150   AC_MSG_ERROR([Python is required],1)
151 fi
152 if test "x$omniORBpy_ok" = "xno"; then
153   AC_MSG_ERROR([OmniOrbpy is required],1)
154 fi
155 if test "x$expat_ok" = "xno"; then
156   AC_MSG_ERROR([Expat is required],1)
157 fi
158 if test "x$libxml_ok" = "xno"; then
159   AC_MSG_ERROR([Libxml is required],1)
160 fi
161
162
163 AC_OUTPUT([ \
164   Makefile \
165   Demo/Makefile \
166   doc/Makefile \
167   idl/Makefile \
168   src/Makefile \
169   src/bases/Makefile \
170   src/bases/Test/Makefile \
171   src/engine/Makefile \
172   src/engine/Plugin/Makefile \
173   src/engine/Test/Makefile \
174   src/hmi/Makefile \
175   src/pyqt/Makefile \
176   src/runtime/Makefile \
177   src/runtime/Test/Makefile \
178   src/genericgui/Makefile \
179   src/salomewrap/Makefile \
180   src/salomegui/Makefile \
181   src/salomeloader/Makefile \
182   src/wrappergen/Makefile \
183   src/wrappergen/src/Makefile \
184   src/yacsloader/Makefile \
185   src/yacsloader/Test/Makefile \
186   src/yacsorb/Makefile \
187   src/yacsloader/Test/YacsLoaderTest.sh \
188   src/yacsloader/Test/YacsLoaderInSessionTest.sh \
189   src/yacsloader/Test/YacsLoaderInSessionTest2.sh \
190   src/yacsloader/Test/display.sh \
191   src/yacsloader/Test/config_appli.xml \
192   src/salomegui/resources/YACSCatalog.xml \
193   doc/Doxyfile \
194 ])
195