mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
6eb9bb9cf1
The autoreconf script will already run aclocal for us, so there's no need to do that ahead of time. Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
45 lines
1019 B
Bash
Executable File
45 lines
1019 B
Bash
Executable File
#!/bin/sh
|
|
# Run this to generate all the initial makefiles, etc.
|
|
test -n "$srcdir" || srcdir=$(dirname "$0")
|
|
test -n "$srcdir" || srcdir=.
|
|
|
|
olddir=$(pwd)
|
|
|
|
cd "$srcdir"
|
|
|
|
(test -f src/libvirt.c) || {
|
|
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
|
|
echo " top-level libvirt directory"
|
|
exit 1
|
|
}
|
|
|
|
git submodule update --init || exit 1
|
|
|
|
autoreconf --verbose --force --install || exit 1
|
|
|
|
if test "x$1" = "x--system"; then
|
|
shift
|
|
prefix=/usr
|
|
libdir=$prefix/lib
|
|
sysconfdir=/etc
|
|
localstatedir=/var
|
|
if [ -d /usr/lib64 ]; then
|
|
libdir=$prefix/lib64
|
|
fi
|
|
EXTRA_ARGS="--prefix=$prefix --sysconfdir=$sysconfdir --localstatedir=$localstatedir --libdir=$libdir"
|
|
fi
|
|
|
|
cd "$olddir"
|
|
|
|
if [ "$NOCONFIGURE" = "" ]; then
|
|
$srcdir/configure $EXTRA_ARGS "$@" || exit 1
|
|
|
|
if [ "$1" = "--help" ]; then
|
|
exit 0
|
|
else
|
|
echo "Now type 'make' to compile libvirt" || exit 1
|
|
fi
|
|
else
|
|
echo "Skipping configure process."
|
|
fi
|