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 # ====================================================================
12 # CONF_DIR is the path containing the present script
14 CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
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.
22 # autom4te.cache (directory)
23 echo "====================================================== aclocal"
25 aclocal -I salome_adm/unix/config_files || exit 1
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).
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"
39 libtoolize --force --copy --automake || exit 1
42 # ____________________________________________________________________
43 # autoconf creates the configure script from the file configure.ac (or
44 # configure.in if configure.ac doesn't exist)
47 echo "====================================================== autoconf"
51 # ____________________________________________________________________
52 # autoheader creates config.h.in
55 #echo "====================================================== autoheader"
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.
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"
74 automake --add-missing --copy --gnu
77 # ____________________________________________________________________
79 # Note that automake could be executed at last after autoconf. The
80 # order doesn't matter.
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.