-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathautogen.sh
More file actions
executable file
·79 lines (66 loc) · 2.1 KB
/
autogen.sh
File metadata and controls
executable file
·79 lines (66 loc) · 2.1 KB
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
70
71
72
73
74
75
76
77
78
#!/bin/sh
#
# Copyright (C) 2015-2017 Yann Pouillon <devops@materialsevolution.es>
#
# This file is part of ESCDF.
#
# ESCDF is free software: you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, version 2.1 of the License, or (at your option) any
# later version.
#
# ESCDF is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with ESCDF. If not, see <http://www.gnu.org/licenses/> or write to the
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA.
# Stop at first error encountered
set -e
# Check that we are in the right directory
if test ! -s "./configure.ac" -o ! -s "src/escdf.h"; then
echo "This is not a Libescdf source tree - aborting now"
exit 1
fi
# Create possibly missing directories
mkdir -p config/gnu config/m4
# Generate M4 macros
#echo "Generating M4 macros..."
#echo "done."
# Generate makefiles
#echo "Generating makefiles..."
#echo "done."
# Generate M4 includes
echo "Generating aclocal.m4..."
aclocal -I config/m4
echo "done."
# Generate configure auxiliary files
echo "Generating config.h.in..."
autoheader
echo "done."
# Generate configure
echo "Generating configure script..."
autoconf
echo "done."
# Generate libtool scripts
echo "Generating libtool scripts..."
my_libtoolize="libtoolize"
${my_libtoolize} --version >/dev/null 2>&1
if test "${?}" != "0"; then
my_libtoolize="glibtoolize"
fi
${my_libtoolize} --version >/dev/null 2>&1
if test "${?}" != "0"; then
echo "Error: could not find a working version of libtoolize" >&2
exit 1
fi
${my_libtoolize} --automake --copy --force
echo "done."
# Generate makefile inputs
# Do not use "automake --force-missing", as it overwrites the INSTALL file.
echo "Generating Makefile.in for each directory..."
automake --add-missing --copy
echo "done."