-
Notifications
You must be signed in to change notification settings - Fork 406
/
autogen.sh
executable file
·27 lines (23 loc) · 1.01 KB
/
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
#!/bin/sh
set -e
# This script creates (or regenerates) configure (as well as aclocal.m4,
# config.h.in, Makefile.in, etc.) missing in the source repository.
#
# If you compile from a distribution tarball, you can skip this. Otherwise,
# make sure that you have Autoconf, Automake and Libtool installed
# on your system, and that the corresponding *.m4 files are visible
# to the aclocal. The latter can be achieved by using packages shipped by
# your OS, or by installing custom versions of all four packages to the same
# prefix. Otherwise, you may need to invoke autoreconf with the appropriate
# -I options to locate the required *.m4 files.
# Install libtool.m4 and ltmain.sh in the build tree. This command is needed
# if autoreconf and libtoolize are available from the different directories.
# Note: libtoolize might be missing on some platforms.
if (type libtoolize) > /dev/null 2>&1; then
libtoolize -i -c
else
echo "libtoolize is not found, ignoring!"
fi
autoreconf -i
echo
echo "Ready to run './configure'."