forked from juddmon/jpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·37 lines (29 loc) · 985 Bytes
/
autogen.sh
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
# Exit if a command fails
set -e
# Echo commands before they execute to help show progress
set -x
# Clear files that will be rebuilt by autoconf, automake, & autoheader
rm -f configure Makefile Makefile.in config.h.in
# autopoint is a lightweight gettextize which copies required files
# but does not change Makefile.am
autopoint --force
# Copy over scripts to allow internationalization
intltoolize --force --copy --automake
# Copy over scripts for libtool
libtoolize --force --copy --automake
# Update aclocal after other scripts have run
aclocal -I m4
# Create config.h.in from configure.in
autoheader
# Create Makefile.in from Makefile.am & configure.in
automake --add-missing --foreign
# Create config.h, Makefile, & configure script
autoconf
# By default, run configure after generating build environment
if test x$NOCONFIGURE = x; then
echo Running configure $conf_flags "$@" ...
./configure $conf_flags "$@" \
|| exit 1
else
echo Skipping configure process.
fi