Salome HOME
Increment version number (prepare SALOME version 7.0.0)
[modules/jobmanager.git] / configure.ac
1 # Copyright (C) 2009-2012  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 # --
21 # Author : AndrĂ© RIBES (EDF)
22 # --
23 # -----------------------------------------------------------------------------
24 #
25 AC_INIT([JOBMANAGER project], [7.0.0], [andre.ribes@edf.fr], [JobManager-Module])
26 AM_INIT_AUTOMAKE([tar-pax])
27 AC_CONFIG_HEADER(jobmanager_config.h)
28
29 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
30 MODULE_NAME=jobmanager
31 AC_SUBST(MODULE_NAME)
32
33 SHORT_VERSION=`echo $VERSION | awk -F. '{printf("%d.%d",$1,$2)}'`
34 AC_SUBST(SHORT_VERSION)
35 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
36 AC_SUBST(XVERSION)
37
38 RELEASE=$VERSION
39 AC_SUBST(RELEASE)
40
41 # This function return on stdout the absolute path of the filename in
42 # argument. Exemple:
43 # $ filename="../KERNEL_SRC/configure
44 # $ absfilename=`absolute_path $filename`
45 function absolute_path {
46     filename=$1
47     here=`pwd`
48     apath=`dirname $filename`
49     cd $apath
50     apath=`pwd`
51     cd $here
52     echo $apath
53 }
54
55 # Build directory, where the configure script is executed.
56 ROOT_BUILDDIR=`pwd`
57 # Source directory, where the configure script is located.
58 ROOT_SRCDIR=`absolute_path $0`
59
60 AC_SUBST(ROOT_SRCDIR)
61 AC_SUBST(ROOT_BUILDDIR)
62
63 echo
64 echo Source root directory : $ROOT_SRCDIR
65 echo Build  root directory : $ROOT_BUILDDIR
66
67 # -----------------------------------------------------------------------------
68
69 AC_ENABLE_DEBUG(yes)
70 AC_DISABLE_PRODUCTION
71
72 #Linker options
73 AC_CANONICAL_BUILD
74 AC_LINKER_OPTIONS
75
76 #Mandatory products
77 AC_PROG_CXX
78 AM_PROG_LIBTOOL
79 AC_CHECK_LIB(dl,dlopen)
80 I2_CHECK_QT4
81 AC_CHECK_OMNIORB
82 CHECK_BOOST
83
84 # Optional products
85 CHECK_SPHINX
86
87 AC_CHECK_KERNEL
88 CHECK_GUI(SALOME_Session_Server,SALOME_Session_Server)
89
90 AM_CONDITIONAL([SALOME_KERNEL], [test "x$KERNEL_ROOT_DIR" != "x"])
91 AM_CONDITIONAL([HAS_GUI], [test "x$GUI_ROOT_DIR" != "x"])
92
93 echo
94 echo
95 echo
96 echo "------------------------------------------------------------------------"
97 echo "$PACKAGE $VERSION"
98 echo "------------------------------------------------------------------------"
99 echo
100 echo "Configuration Options Summary:"
101 echo
102 echo "Mandatory products:"
103 echo "  Qt4 (graphic interface)  : $qt_ok"
104 echo "  OmniOrb (CORBA) ........ : $omniORB_ok"
105 echo "  Boost           ........ : $boost_ok"
106 echo "  SALOME KERNEL .......... : $Kernel_ok"
107 echo "  SALOME GUI ............. : $SalomeGUI_ok"
108 echo
109 echo "Optional products:"
110 echo "  Sphinx (user doc) ...... : $sphinx_ok"
111 echo
112 echo "------------------------------------------------------------------------"
113 echo
114
115 if test "x$omniORB_ok" = "xno"; then
116   AC_MSG_ERROR([OmniOrb is required],1)
117 fi
118 if test "x$qt_ok" = "xno"; then
119   AC_MSG_ERROR([Qt4 is required],1)
120 fi
121 if test "x$Kernel_ok" = "xno"; then
122   AC_MSG_ERROR([SALOME KERNEL is required],1)
123 fi
124 if test "x$SalomeGui_ok" = "xno"; then
125   AC_MSG_ERROR([SALOME GUI is required],1)
126 fi
127
128 AC_OUTPUT([ \
129   Makefile \
130   idl/Makefile \
131   src/Makefile \
132   src/bases/Makefile \
133   src/engine/Makefile \
134   src/genericgui/Makefile \
135   src/wrappers/Makefile \
136   src/standalone/Makefile \
137   src/standalone/start_jobmanager.sh \
138   src/salomegui/Makefile \
139   src/salomegui/JOBMANAGER_version.h \
140   src/salomegui/resources/SalomeApp.xml \
141   doc/Makefile \
142   doc/conf.py \
143 ])