2 # Run this to generate configure and Makefile
5 test -z "$srcdir" && srcdir
=.
12 (autoconf
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
14 echo "You must have autoconf installed."
15 echo "Download the appropriate package for your distribution,"
16 echo "or see http://www.gnu.org/software/autoconf"
20 # Require libtool only if one of of LT_INIT,
21 # AC_PROG_LIBTOOL, AM_PROG_LIBTOOL is used in configure.ac.
22 grep -E '^[[:blank:]]*(LT_INIT|A[CM]_PROG_LIBTOOL)' configure.ac
>/dev
/null \
24 (libtool
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
26 echo "You must have libtool installed."
27 echo "Download the appropriate package for your distribution,"
28 echo "or see http://www.gnu.org/software/libtool"
33 (automake
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
36 echo "You must have automake installed."
37 echo "Download the appropriate package for your distribution,"
38 echo "or see http://www.gnu.org/software/automake"
41 test $die = 1 && exit 1
43 test -f ovirt-node-image.spec.
in ||
{
44 echo "You must run this script in the top-level directory"
49 echo "I am going to run ./configure with no arguments - if you wish "
50 echo "to pass any to it, please specify them on the $0 command line."
55 # Run autoheader only if needed
56 grep '^[[:blank:]]*AC_CONFIG_HEADERS' configure.ac
>/dev
/null
&& autoheader
58 automake
--add-missing
63 if test "x$OBJ_DIR" != x
; then