Salome HOME
Moving doc files
[modules/adao.git] / configure.ac
1 dnl  Copyright (C) 2010-2011  EDF R&D
2 dnl
3 dnl  This library is free software; you can redistribute it and/or
4 dnl  modify it under the terms of the GNU Lesser General Public
5 dnl  License as published by the Free Software Foundation; either
6 dnl  version 2.1 of the License.
7 dnl
8 dnl  This library is distributed in the hope that it will be useful,
9 dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 dnl  Lesser General Public License for more details.
12 dnl
13 dnl  You should have received a copy of the GNU Lesser General Public
14 dnl  License along with this library; if not, write to the Free Software
15 dnl  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 dnl
17 dnl  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 dnl
19 dnl  Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
20
21 AC_INIT(ADAO_SRC, [7.2.0])
22 AC_CONFIG_AUX_DIR(adm_local)
23 AM_INIT_AUTOMAKE
24 AM_CONFIG_HEADER(adao_config.h)
25 MODULE_NAME=adao
26 AC_SUBST(MODULE_NAME)
27
28 AC_ENABLE_DEBUG(yes)
29 AC_DISABLE_PRODUCTION
30
31 AC_PROG_LIBTOOL
32 AC_PROG_CC
33 AC_PROG_CXX
34
35 CHECK_KERNEL
36 CHECK_OMNIORB
37 CHECK_EFICAS
38 CHECK_MODULE_EFICAS
39 CHECK_SCIPY
40 CHECK_SPHINX
41
42 echo
43 echo
44 echo
45 echo "------------------------------------------------------------------------"
46 echo "$PACKAGE $VERSION"
47 echo "------------------------------------------------------------------------"
48 echo
49 echo "Configuration Options Summary:"
50 echo
51 echo "Mandatory products:"
52 echo "  Threads ................ : $threads_ok"
53 echo "  Python ................. : $python_ok"
54 echo "  Scipy .................. : $scipy_ok"
55 echo
56 echo "SALOME Integration mandatory products:"
57 echo "  OmniOrb (CORBA) ........ : $omniORB_ok"
58 echo "  OmniOrbpy (CORBA) ...... : $omniORBpy_ok"
59 echo "  SALOME KERNEL .......... : $Kernel_ok"
60 echo "  Eficas ................. : $eficas_ok"
61 echo "  Module Eficas .......... : $module_eficas_ok"
62 echo
63 echo "Optional products:"
64 echo "  Sphinx (for doc)........ : $threads_ok"
65 echo "------------------------------------------------------------------------"
66 echo
67
68 if test "x$threads_ok" = "xno"; then
69   AC_MSG_ERROR([Thread is required],1)
70 fi
71 if test "x$python_ok" = "xno"; then
72   AC_MSG_ERROR([Python is required],1)
73 fi
74 if test "x$scipy_ok" = "xno"; then
75   AC_MSG_ERROR([Scipy is required],1)
76 fi
77
78 salome_module_ok=yes
79
80 if test "x$omniORB_ok" = "xno"; then
81   AC_MSG_WARN([OmniOrb is required for SALOME Module part])
82   salome_module_ok=no
83 fi
84 if test "x$omniORBpy_ok" = "xno"; then
85   AC_MSG_WARN([OmniOrbpy is required for SALOME Module part])
86   salome_module_ok=no
87 fi
88 if test "x$Kernel_ok" = "xno"; then
89   AC_MSG_WARN([SALOME KERNEL is required for SALOME Module part - 
90                You could define a correct KERNEL_ROOT_DIR or use the --with-kernel= configure option])
91   salome_module_ok=no
92 fi
93 if test "x$eficas_ok" = "xno"; then
94   AC_MSG_WARN([Eficas is required for SALOME Module part])
95   salome_module_ok=no
96 fi
97 if test "x$module_eficas_ok" = "xno"; then
98   AC_MSG_WARN([Module Eficas is required for SALOME Module part])
99   salome_module_ok=no
100 fi
101
102 AM_CONDITIONAL(SALOME_MODULE, test x$salome_module_ok = xyes)
103
104 if test "x$sphinx_ok" = "xno"; then
105   AC_MSG_WARN([Sphinx is required for ADAO documentation])
106 fi
107
108 if test -f a.out; then
109   rm a.out
110 fi
111
112 AC_CONFIG_FILES([
113         Makefile
114         idl/Makefile
115         resources/Makefile
116         src/Makefile
117         src/daComposant/Makefile
118         src/daEficas/Makefile
119         src/daEficas/prefs_ADAO.py
120         src/daSalome/Makefile
121         src/daSalome/daGUI/Makefile
122         src/daSalome/daGUI/daUtils/Makefile
123         src/daSalome/daGUI/daGuiImpl/Makefile
124         src/daSalome/daGUI/daEficasWrapper/Makefile
125         examples/Makefile
126         examples/daSalome/Makefile
127         examples/daSalome/test003_ADAO_JDC_using_scripts.comm
128         examples/daSalome/test004_ADAO_JDC_using_scripts.comm
129         examples/daSalome/test005_ADAO_Operators.comm
130         examples/daSalome/test003_bis_ADAO_JDC_using_user_data_init.comm
131         examples/daSalome/test006_Observers.comm
132         examples/daSkeletons/Makefile
133         examples/daSkeletons/External_data_definition_by_scripts/Makefile
134         examples/daSkeletons/External_data_definition_by_scripts/ADAO_Case.comm
135         bin/Makefile
136         bin/qtEficas_adao_study.py
137         doc/Makefile
138         doc/en/Makefile
139         ])
140 AC_OUTPUT