Salome HOME
Update for new OCC6.1.1
[modules/kernel.git] / build_configure
1 #!/bin/sh
2 # ====================================================================
3 # This script is just here to illustrate the procedure for preparing
4 # the configure process. It creates configuration files (ex:
5 # ltmain.sh) using libtoolize, the aclocal macro, the configure script
6 # using autoconf and some scripts used in building process (ex:
7 # install-sh) using automake. Automake is used here to creates the
8 # files Makefile.in from the files Makefile.am.
9 # ====================================================================
10 #
11
12 # CONF_DIR is the path containing the present script
13
14 CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
15 cd ${CONF_DIR}
16
17 # ____________________________________________________________________
18 # aclocal creates the aclocal.m4 file from the standard macro and the
19 # custom macro embedded in the directory salome_adm/unix/config_files.
20 # output:
21 #   aclocal.m4
22 #   autom4te.cache (directory)
23 echo "====================================================== aclocal"
24
25 aclocal -I salome_adm/unix/config_files || exit 1
26
27
28 # ____________________________________________________________________
29 # libtoolize creates some configuration files (ltmain.sh,
30 # config.guess and config.sub). It only depends on the libtool
31 # version. The files are created in the directory specified with the
32 # AC_CONFIG_AUX_DIR(<mydir>) tag (see configure.ac).
33 # output:
34 #   salome_adm/unix/config_files/config.guess
35 #   salome_adm/unix/config_files/config.sub
36 #   salome_adm/unix/config_files/ltmain.sh
37 echo "====================================================== libtoolize"
38
39 libtoolize --force --copy --automake || exit 1
40
41
42 # ____________________________________________________________________
43 # autoconf creates the configure script from the file configure.ac (or
44 # configure.in if configure.ac doesn't exist)
45 # output:
46 #   configure
47 echo "====================================================== autoconf"
48
49 autoconf
50
51 # ____________________________________________________________________
52 # autoheader creates config.h.in
53 # output:
54 #   configure
55 #echo "====================================================== autoheader"
56
57 #autoheader
58
59 # ____________________________________________________________________
60 # automake creates some scripts used in building process
61 # (install-sh, missing, ...). It only depends on the automake
62 # version. The files are created in the directory specified with the
63 # AC_CONFIG_AUX_DIR(<mydir>) tag (see configure.ac). This step also
64 # creates the Makefile.in files from the Makefile.am files.
65 # output:
66 #   salome_adm/unix/config_files/compile
67 #   salome_adm/unix/config_files/depcomp
68 #   salome_adm/unix/config_files/install-sh
69 #   salome_adm/unix/config_files/missing
70 #   salome_adm/unix/config_files/py-compile
71 #   Makefile.in (from Makefile.am)
72 echo "====================================================== automake"
73
74 automake --add-missing --copy --gnu
75
76
77 # ____________________________________________________________________
78 #
79 # Note that automake could be executed at last after autoconf. The
80 # order doesn't matter.
81 #
82 # When modifying a Makefile.am file, after a first step of
83 # configure+make, you just have to :
84 # - go to the top source directory and run automake, to rebuild the Makefile.in,
85 # - go to the top build directory and run config.status to rebuild the
86 #   Makefile from the Makefile.in,
87 # - go to the source directory being modified, and then run make.
88 #