mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-20 18:50:08 +03:00
Add --system support to autogen.sh
This commit is contained in:
parent
8973d58b74
commit
16d3a61880
29
autogen.sh
29
autogen.sh
@ -41,9 +41,23 @@ test -f entities.c || {
|
||||
exit 1
|
||||
}
|
||||
|
||||
if test -z "$NOCONFIGURE" && test -z "$*"; then
|
||||
echo "I am going to run ./configure with no arguments - if you wish "
|
||||
EXTRA_ARGS=
|
||||
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"
|
||||
echo "Running ./configure with $EXTRA_ARGS $@"
|
||||
else
|
||||
if test -z "$NOCONFIGURE" && test -z "$*"; then
|
||||
echo "I am going to run ./configure with no arguments - if you wish "
|
||||
echo "to pass any to it, please specify them on the $0 command line."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -d $srcdir/m4 ]; then
|
||||
@ -51,10 +65,6 @@ if [ ! -d $srcdir/m4 ]; then
|
||||
fi
|
||||
|
||||
# Replaced by autoreconf below
|
||||
#libtoolize --copy --force
|
||||
#aclocal $ACLOCAL_FLAGS
|
||||
#automake --force-missing --add-missing --copy --foreign
|
||||
#autoconf
|
||||
autoreconf -if
|
||||
|
||||
cd $THEDIR
|
||||
@ -65,8 +75,7 @@ if test x$OBJ_DIR != x; then
|
||||
fi
|
||||
|
||||
if test -z "$NOCONFIGURE"; then
|
||||
$srcdir/configure "$@"
|
||||
|
||||
echo
|
||||
echo "Now type 'make' to compile libxml."
|
||||
$srcdir/configure $EXTRA_ARGS "$@"
|
||||
echo
|
||||
echo "Now type 'make' to compile libvirt."
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user