-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild_configure
69 lines (58 loc) · 2.48 KB
/
build_configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/sh
# ====================================================================
# This script is just here to illustrate the procedure for preparing
# the configure process. It creates configuration files (ex:
# ltmain.sh) using libtoolize, the aclocal macro, the configure script
# using autoconf and some scripts used in building process (ex:
# install-sh) using automake. Automake is used here to creates the
# files Makefile.in from the files Makefile.am.
# ====================================================================
# CONF_DIR is the path containing the present script
#
CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
cd ${CONF_DIR}
mkdir -p make
# ____________________________________________________________________
# aclocal creates the aclocal.m4 file from the standard macro and the
# custom macro embedded in the directory salome_adm/unix/config_files.
# output:
# aclocal.m4
# autom4te.cache (directory)
echo "====================================================== aclocal"
aclocal || exit 1
# ____________________________________________________________________
# libtoolize creates some configuration files (ltmain.sh,
# config.guess and config.sub). It only depends on the libtool
# version. The files are created in the directory specified with the
# AC_CONFIG_AUX_DIR(<mydir>) tag (see configure.ac).
# output:
# make/config.guess
# make/config.sub
# make/ltmain.sh
echo "====================================================== libtoolize"
libtoolize --force --copy --automake || exit 1
# ____________________________________________________________________
# autoheader creates config.h.in
# output:
# configure
echo "====================================================== autoheader"
autoheader
# ____________________________________________________________________
# automake creates some scripts used in building process
# (install-sh, missing, ...). It only depends on the automake
# version. This step also creates the Makefile.in files from
# the Makefile.am files
# output:
# make/depcomp
# make/config_files/install-sh
# make/missing
# Makefile.in (from Makefile.am)
echo "====================================================== automake"
automake --add-missing --copy --gnu
# ____________________________________________________________________
# autoconf creates the configure script from the file configure.ac (or
# configure.in if configure.ac doesn't exist)
# output:
# configure
echo "====================================================== autoconf"
autoconf