4 # Helps generate autoconf stuff, when code is checked out from SCM.
6 # Copyright (C) 2006-2014 - Karel Zak <kzak@redhat.com>
10 test -z "$srcdir" && srcdir
=.
18 echo "You must run this script in the top-level btrfs-progs directory"
23 (autoconf
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
25 echo "You must have autoconf installed to generate btrfs-progs build system."
29 (autoheader
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
31 echo "You must have autoheader installed to generate btrfs-progs build system."
32 echo "The autoheader command is part of the GNU autoconf package."
37 (automake
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
39 echo "You must have automake installed to generate btrfs-progs build system."
44 (pkg-config
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
46 echo "You must have pkg-config installed to use btrfs-progs build system."
47 echo "The pkg-config utility was not found in the standard location, set"
48 echo "the PKG_CONFIG/PKG_CONFIG_PATH/PKG_CONFIG_LIBDIR variables at the"
49 echo "configure time."
53 if test "$DIE" -eq 1; then
58 echo "Generate build-system by:"
59 echo " aclocal: $(aclocal --version | head -1)"
60 echo " autoconf: $(autoconf --version | head -1)"
61 echo " autoheader: $(autoheader --version | head -1)"
62 echo " automake: $(automake --version | head -1)"
66 aclocal
-I m4 $AL_OPTS &&
67 autoconf
-I m4 $AC_OPTS &&
68 autoheader
-I m4 $AH_OPTS ||
71 # it's better to use helper files from automake installation than
72 # maintain copies in git tree
77 for HELPER_DIR
in $
(automake
--print-libdir 2>/dev
/null
) \
79 /usr
/share
/automake-
* ; do
86 echo "Cannot find "$1" in known locations"
91 find_autofile config.guess
92 find_autofile config.sub
93 find_autofile install-sh
98 echo "Now type '$srcdir/configure' and 'make' to compile."