Salome HOME
Minor documentation and code review corrections (39)
[modules/adao.git] / autogen.sh
1 #!/bin/sh
2 # Copyright (C) 2008-2023 EDF R&D
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20 # Author: AndrĂ© Ribes, andre.ribes@edf.fr, EDF R&D
21
22 rm -rf autom4te.cache
23 rm -f aclocal.m4 adm_local/ltmain.sh
24
25 ########################################################################
26 # Test if the KERNEL_ROOT_DIR is set correctly
27
28 if test ! -d "${KERNEL_ROOT_DIR}"; then
29     echo "failed : KERNEL_ROOT_DIR variable is not correct !"
30     exit 1
31 fi
32
33 echo "Running aclocal..."    ;
34 aclocal --force -I adm_local \
35                 -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files || exit 1
36 echo "Running autoheader..." ; autoheader --force                  || exit 1
37 echo "Running autoconf..."   ; autoconf --force                    || exit 1
38 echo "Running libtoolize..." ; libtoolize --copy --force           || exit 1
39 echo "Running automake..."   ; automake --add-missing --copy       || exit 1