
6647 changed files with 134829 additions and 157089 deletions
@ -0,0 +1,6 @@ |
|||
--recurse |
|||
--exclude=*.orig |
|||
--exclude=*.html |
|||
--exclude=*.html.in |
|||
--langmap=c:+.h.in |
|||
--c-kinds=+p |
@ -0,0 +1 @@ |
|||
../.ctags |
@ -0,0 +1,20 @@ |
|||
( |
|||
(c-mode . ( |
|||
(c-file-style . "K&R") |
|||
(indent-tabs-mode . nil) |
|||
(c-indent-level . 4) |
|||
(c-basic-offset . 4) |
|||
)) |
|||
(html-mode . ( |
|||
(indent-tabs-mode . nil) |
|||
)) |
|||
(sh-mode . ( |
|||
(indent-tabs-mode . nil) |
|||
)) |
|||
(nxml-mode . ( |
|||
(indent-tabs-mode . nil) |
|||
)) |
|||
(perl-mode . ( |
|||
(indent-tabs-mode . nil) |
|||
)) |
|||
) |
@ -0,0 +1,21 @@ |
|||
# EditorConfig is a file format and collection of text editor plugins |
|||
# for maintaining consistent coding styles between different editors |
|||
# and IDEs. Most popular editors support this either natively or via |
|||
# plugin. |
|||
# |
|||
# Check https://editorconfig.org for details. |
|||
|
|||
root = true |
|||
|
|||
[*] |
|||
end_of_line = lf |
|||
insert_final_newline = true |
|||
charset = utf-8 |
|||
|
|||
[*.c] |
|||
indent_style = space |
|||
indent_size = 4 |
|||
|
|||
[*.{rng,xml}] |
|||
indent_style = space |
|||
indent_size = 2 |
@ -0,0 +1,79 @@ |
|||
# 'git shortlog --help' and look for mailmap for the format of each line |
|||
|
|||
# Email consolidation: |
|||
# <Preferred address in AUTHORS> <other alias used by same author> |
|||
|
|||
<bozzolan@gmail.com> <redshift@gmx.com> |
|||
<charles_duffy@messageone.com> <charles@dyfis.net> |
|||
<claudio.bley@gmail.com> <cbley@av-test.de> |
|||
<dfj@redhat.com> <dfj@dfj.bne.redhat.com> |
|||
<dpkshetty@gmail.com> <deepakcs@linux.vnet.ibm.com> |
|||
<dpkshetty@gmail.com> <deepakcs@redhat.com> |
|||
<eblake@redhat.com> <ebb9@byu.net> |
|||
<gdolley@arpnetworks.com> <gdolley@ucla.edu> |
|||
<gerhard.stenzel@de.ibm.com> <gstenzel@linux.vnet.ibm.com> |
|||
<jamie@canonical.com> <jamie@ubuntu.com> |
|||
<laine@redhat.com> <laine@laine.org> |
|||
<meyering@redhat.com> <jim@meyering.net> |
|||
<socketpair@gmail.com> <socketpair gmail com> |
|||
<soren@linux2go.dk> <soren@ubuntu.com> |
|||
<jfehlig@suse.com> <jfehlig@novell.com> |
|||
<jfehlig@suse.com> <jfehlig@linux-ypgk.site> |
|||
<jclift@redhat.com> <justin@salasaga.org> |
|||
<soren@linux2go.dk> <soren@canonical.com> |
|||
<cfergeau@redhat.com> <teuf@gnome.org> |
|||
<wency@cn.fujitsu.com> <wency cn fujitsu com> |
|||
<cardoe@cardoe.com> <cardoe@gentoo.org> |
|||
<fsimonce@redhat.com> <federico.simoncelli@gmail.com> |
|||
<marcandre.lureau@redhat.com> <marcandre.lureau@gmail.com> |
|||
<supriyak@linux.vnet.ibm.com> <supriyak@in.ibm.com> |
|||
<neil@aldur.co.uk> <neil@brightbox.co.uk> |
|||
<stefanb@us.ibm.com> <stefanb@linux.vnet.ibm.com> |
|||
<stefanb@us.ibm.com> <stefannb@linux.vnet.ibm.com> |
|||
<josh.durgin@inktank.com> <joshd@hq.newdream.net> |
|||
<josh.durgin@inktank.com> <josh.durgin@dreamhost.com> |
|||
<gerd@egidy.de> <lists@egidy.de> |
|||
<gerd@egidy.de> <gerd.von.egidy@intra2net.com> |
|||
<benoar@dolka.fr> <benjamin.cama@telecom-bretagne.eu> |
|||
<zhlcindy@linux.vnet.ibm.com> <zhlcindy@gmail.com> |
|||
<serge.hallyn@canonical.com> <serue@us.ibm.com> |
|||
<pritesh.kothari@sun.com> <Pritesh.Kothari@Sun.COM> |
|||
<cbosdonnat@suse.com> <cedric.bosdonnat@free.fr> |
|||
<mnestratov@virtuozzo.com> <mnestratov@parallels.com> |
|||
<nshirokovskiy@virtuozzo.com> <nshirokovskiy@parallels.com> |
|||
<jyang@redhat.com> <osier@yunify.com> |
|||
<kkoukiou@redhat.com> <k.koukiou@googlemail.com> |
|||
<intrigeri@boum.org> <intrigeri+libvirt@boum.org> |
|||
<fidencio@redhat.com> <fabiano@fidencio.org> |
|||
<shi_lei@massclouds.com> <shilei.massclouds@gmx.com> |
|||
<adrian.brzezinski@eo.pl> <redhat@adrb.pl> |
|||
|
|||
# Name consolidation: |
|||
# Preferred author spelling <preferred email> |
|||
Alex Jia <ajia@redhat.com> |
|||
Royce Lv <lvroyce@linux.vnet.ibm.com> |
|||
Daniel J Walsh <dwalsh@redhat.com> |
|||
Jรกn Tomko <jtomko@redhat.com> |
|||
Gerd von Egidy <gerd@egidy.de> |
|||
MATSUDA Daiki <matsudadik@intellilink.co.jp> |
|||
Tang Chen <tangchen@cn.fujitsu.com> |
|||
Peng Zhou <ailvpeng25@gmail.com> |
|||
Dirk Herrendoerfer <d.herrendoerfer@herrendoerfer.name> |
|||
Thibault VINCENT <thibault.vincent@smartjog.com> |
|||
Aurelien Rougemont <beorn@binaries.fr> |
|||
Serge E. Hallyn <serge.hallyn@canonical.com> |
|||
Henrik Persson E <henrik.e.persson@ericsson.com> |
|||
Philipp Hahn <hahn@univention.de> |
|||
Pritesh Kothari <pritesh.kothari@sun.com> |
|||
Wang Yufei (James) <james.wangyufei@huawei.com> |
|||
Deepak C Shetty <dpkshetty@gmail.com> |
|||
Dave Allan <dallan@redhat.com> |
|||
Richard W.M. Jones <rjones@redhat.com> |
|||
|
|||
# Non-trivial consolidation: |
|||
# see git documentation for information about the format |
|||
Daniel P. Berrangรฉ <berrange@redhat.com> |
|||
Daniel P. Berrangรฉ <berrange@redhat.com> <dan@berrange.com> |
|||
Michal Prรญvoznรญk <mprivozn@redhat.com> |
|||
Michal Prรญvoznรญk <mprivozn@redhat.com> <miso.privoznik@gmail.com> |
|||
Marco Bozzolan <bozzolan@gmail.com> <redshift@gmx.com> |
@ -1,15 +0,0 @@ |
|||
libvirt ChangeLog |
|||
================= |
|||
|
|||
The libvirt project doesn't include a detailed ChangeLog in its release |
|||
archives. |
|||
|
|||
If you're interested in the full list of changes made to libvirt since |
|||
the project was started, you can clone the git repository from |
|||
|
|||
https://gitlab.com/libvirt/libvirt/ |
|||
|
|||
and browse them locally using your favorite git history viewer or, |
|||
alternatively, browse them online at |
|||
|
|||
https://gitlab.com/libvirt/libvirt/-/commits/master |
@ -1,74 +0,0 @@ |
|||
# Having a separate GNUmakefile lets me 'include' the dynamically
|
|||
# generated rules created via cfg.mk (package-local configuration)
|
|||
# as well as maint.mk (generic maintainer rules).
|
|||
# This makefile is used only if you run GNU Make.
|
|||
# It is necessary if you want to build targets usually of interest
|
|||
# only to the maintainer.
|
|||
|
|||
# Copyright (C) 2001, 2003, 2006-2019 Free Software Foundation, Inc.
|
|||
|
|||
# This program is free software: you can redistribute it and/or modify
|
|||
# it under the terms of the GNU General Public License as published by
|
|||
# the Free Software Foundation, either version 3 of the License, or
|
|||
# (at your option) any later version.
|
|||
|
|||
# This program is distributed in the hope that it will be useful,
|
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|||
# GNU General Public License for more details.
|
|||
|
|||
# You should have received a copy of the GNU General Public License
|
|||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||
|
|||
_build-aux ?= build-aux |
|||
_autoreconf ?= autoreconf -v |
|||
|
|||
# If the user runs GNU make but has not yet run ./configure,
|
|||
# give them a diagnostic.
|
|||
_gl-Makefile := $(wildcard [M]akefile) |
|||
ifneq ($(_gl-Makefile),) |
|||
|
|||
# Make tar archive easier to reproduce.
|
|||
export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner |
|||
|
|||
# Allow the user to add to this in the Makefile.
|
|||
ALL_RECURSIVE_TARGETS = |
|||
|
|||
include Makefile |
|||
include $(srcdir)/$(_build-aux)/syntax-check.mk |
|||
|
|||
else |
|||
|
|||
.DEFAULT_GOAL := abort-due-to-no-makefile |
|||
srcdir = . |
|||
|
|||
# The package can override .DEFAULT_GOAL to run actions like autoreconf.
|
|||
include $(srcdir)/$(_build-aux)/syntax-check.mk |
|||
|
|||
ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile) |
|||
$(MAKECMDGOALS): abort-due-to-no-makefile |
|||
endif |
|||
|
|||
abort-due-to-no-makefile: |
|||
@echo There seems to be no Makefile in this directory. 1>&2 |
|||
@echo "You must run ./configure before running 'make'." 1>&2 |
|||
@exit 1 |
|||
|
|||
endif |
|||
|
|||
# Tell version 3.79 and up of GNU make to not build goals in this
|
|||
# directory in parallel, in case someone tries to build multiple
|
|||
# targets, and one of them can cause a recursive target to be invoked.
|
|||
|
|||
# Only set this if Automake doesn't provide it.
|
|||
AM_RECURSIVE_TARGETS ?= $(RECURSIVE_TARGETS:-recursive=) \
|
|||
$(RECURSIVE_CLEAN_TARGETS:-recursive=) \
|
|||
dist distcheck tags ctags |
|||
|
|||
ALL_RECURSIVE_TARGETS += $(AM_RECURSIVE_TARGETS) |
|||
|
|||
ifneq ($(word 2, $(MAKECMDGOALS)), ) |
|||
ifneq ($(filter $(ALL_RECURSIVE_TARGETS), $(MAKECMDGOALS)), ) |
|||
.NOTPARALLEL: |
|||
endif |
|||
endif |
@ -1,180 +0,0 @@ |
|||
## Process this file with automake to produce Makefile.in
|
|||
|
|||
## Copyright (C) 2005-2013 Red Hat, Inc.
|
|||
##
|
|||
## This library is free software; you can redistribute it and/or
|
|||
## modify it under the terms of the GNU Lesser General Public
|
|||
## License as published by the Free Software Foundation; either
|
|||
## version 2.1 of the License, or (at your option) any later version.
|
|||
##
|
|||
## This library is distributed in the hope that it will be useful,
|
|||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|||
## Lesser General Public License for more details.
|
|||
##
|
|||
## You should have received a copy of the GNU Lesser General Public
|
|||
## License along with this library. If not, see
|
|||
## <http://www.gnu.org/licenses/>.
|
|||
|
|||
LCOV = lcov |
|||
GENHTML = genhtml |
|||
|
|||
# when building from tarball -Werror isn't auto enabled
|
|||
# so force it explicitly
|
|||
DISTCHECK_CONFIGURE_FLAGS = --enable-werror |
|||
|
|||
SUBDIRS = . include/libvirt src tools docs \
|
|||
tests po examples |
|||
|
|||
XZ_OPT ?= -v -T0 |
|||
export XZ_OPT |
|||
|
|||
ACLOCAL_AMFLAGS = -I m4 |
|||
|
|||
EXTRA_DIST = \
|
|||
config-post.h \
|
|||
libvirt.spec libvirt.spec.in \
|
|||
mingw-libvirt.spec.in \
|
|||
libvirt.pc.in \
|
|||
libvirt-qemu.pc.in \
|
|||
libvirt-lxc.pc.in \
|
|||
libvirt-admin.pc.in \
|
|||
Makefile.nonreentrant \
|
|||
autogen.sh \
|
|||
GNUmakefile \
|
|||
run.in \
|
|||
README.rst \
|
|||
AUTHORS.in \
|
|||
CONTRIBUTING.rst \
|
|||
NEWS.rst \
|
|||
scripts/apibuild.py \
|
|||
scripts/augeas-gentest.py \
|
|||
build-aux/check-spacing.pl \
|
|||
scripts/check-aclperms.py \
|
|||
scripts/check-aclrules.py \
|
|||
scripts/check-drivername.py \
|
|||
scripts/check-driverimpls.py \
|
|||
scripts/check-file-access.py \
|
|||
scripts/check-remote-protocol.py \
|
|||
scripts/check-symfile.py \
|
|||
scripts/check-symsorting.py \
|
|||
scripts/dtrace2systemtap.py \
|
|||
scripts/esx_vi_generator.py \
|
|||
scripts/genaclperms.py \
|
|||
scripts/genpolkit.py \
|
|||
scripts/gensystemtap.py \
|
|||
scripts/group-qemu-caps.py \
|
|||
scripts/header-ifdef.py \
|
|||
scripts/hvsupport.py \
|
|||
scripts/hyperv_wmi_generator.py \
|
|||
scripts/mock-noinline.py \
|
|||
scripts/prohibit-duplicate-header.py \
|
|||
scripts/test-wrap-argv.py \
|
|||
build-aux/syntax-check.mk \
|
|||
build-aux/useless-if-before-free \
|
|||
build-aux/vc-list-files \
|
|||
ci/Makefile \
|
|||
ci/build.sh \
|
|||
ci/list-images.sh \
|
|||
ci/prepare.sh \
|
|||
$(NULL) |
|||
|
|||
pkgconfigdir = $(libdir)/pkgconfig |
|||
pkgconfig_DATA = libvirt.pc libvirt-qemu.pc libvirt-lxc.pc libvirt-admin.pc |
|||
|
|||
rpm: clean |
|||
@(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.xz) |
|||
|
|||
srpm: clean |
|||
@(unset CDPATH ; $(MAKE) dist && rpmbuild -ts $(distdir).tar.xz) |
|||
|
|||
check-local: all tests |
|||
|
|||
check-access: all |
|||
@($(MAKE) $(AM_MAKEFLAGS) -C tests check-access) |
|||
|
|||
cov: clean-cov |
|||
$(MKDIR_P) $(top_builddir)/coverage |
|||
$(LCOV) -c -o $(top_builddir)/coverage/libvirt.info.tmp \
|
|||
-d $(top_builddir)/src \
|
|||
-d $(top_builddir)/tests |
|||
$(LCOV) -r $(top_builddir)/coverage/libvirt.info.tmp \
|
|||
-o $(top_builddir)/coverage/libvirt.info |
|||
rm $(top_builddir)/coverage/libvirt.info.tmp |
|||
$(GENHTML) --show-details -t "libvirt" -o $(top_builddir)/coverage \
|
|||
--legend $(top_builddir)/coverage/libvirt.info |
|||
|
|||
clean-cov: |
|||
rm -rf $(top_builddir)/coverage |
|||
|
|||
MAINTAINERCLEANFILES = .git-module-status |
|||
|
|||
BUILT_SOURCES = configmake.h |
|||
CLEANFILES = configmake.h |
|||
|
|||
distclean-local: clean-GNUmakefile |
|||
clean-GNUmakefile: |
|||
test '$(srcdir)' = . || rm -f $(top_builddir)/GNUmakefile |
|||
|
|||
dist-hook: gen-AUTHORS |
|||
|
|||
.PHONY: gen-AUTHORS |
|||
gen-AUTHORS: |
|||
$(AM_V_GEN)\
|
|||
if test -d $(srcdir)/.git; then \
|
|||
( \
|
|||
cd $(srcdir) && \
|
|||
git log --pretty=format:'%aN <%aE>' | sort -u \
|
|||
) > all.list && \
|
|||
sort -u $(srcdir)/AUTHORS.in > maint.list && \
|
|||
comm -23 all.list maint.list > contrib.list && \
|
|||
contrib="`cat contrib.list`" && \
|
|||
perl -p -e "s/#contributorslist#// and print '$$contrib'" \
|
|||
< $(srcdir)/AUTHORS.in > $(distdir)/AUTHORS-tmp && \
|
|||
mv -f $(distdir)/AUTHORS-tmp $(distdir)/AUTHORS && \
|
|||
rm -f all.list maint.list contrib.list; \
|
|||
fi |
|||
|
|||
ci-%: |
|||
$(MAKE) -C $(srcdir)/ci/ $@ |
|||
|
|||
# Listed in the same order as the GNU makefile conventions, and
|
|||
# provided by autoconf 2.59c+ or 2.70.
|
|||
# The Automake-defined pkg* macros are appended, in the order
|
|||
# listed in the Automake 1.10a+ documentation.
|
|||
configmake.h: Makefile |
|||
$(AM_V_GEN)rm -f $@-t && \
|
|||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
|
|||
echo '#if WIN32'; \
|
|||
echo '# include <winsock2.h> /* avoid mingw pollution on DATADIR */'; \
|
|||
echo '#endif'; \
|
|||
echo '#define PREFIX "$(prefix)"'; \
|
|||
echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
|
|||
echo '#define BINDIR "$(bindir)"'; \
|
|||
echo '#define SBINDIR "$(sbindir)"'; \
|
|||
echo '#define LIBEXECDIR "$(libexecdir)"'; \
|
|||
echo '#define DATAROOTDIR "$(datarootdir)"'; \
|
|||
echo '#define DATADIR "$(datadir)"'; \
|
|||
echo '#define SYSCONFDIR "$(sysconfdir)"'; \
|
|||
echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
|
|||
echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
|
|||
echo '#define RUNSTATEDIR "$(runstatedir)"'; \
|
|||
echo '#define INCLUDEDIR "$(includedir)"'; \
|
|||
echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
|
|||
echo '#define DOCDIR "$(docdir)"'; \
|
|||
echo '#define INFODIR "$(infodir)"'; \
|
|||
echo '#define HTMLDIR "$(htmldir)"'; \
|
|||
echo '#define DVIDIR "$(dvidir)"'; \
|
|||
echo '#define PDFDIR "$(pdfdir)"'; \
|
|||
echo '#define PSDIR "$(psdir)"'; \
|
|||
echo '#define LIBDIR "$(libdir)"'; \
|
|||
echo '#define LISPDIR "$(lispdir)"'; \
|
|||
echo '#define LOCALEDIR "$(localedir)"'; \
|
|||
echo '#define MANDIR "$(mandir)"'; \
|
|||
echo '#define MANEXT "$(manext)"'; \
|
|||
echo '#define PKGDATADIR "$(pkgdatadir)"'; \
|
|||
echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
|
|||
echo '#define PKGLIBDIR "$(pkglibdir)"'; \
|
|||
echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
|
|||
} | sed '/""/d' > $@-t && \
|
|||
mv -f $@-t $@ |
File diff suppressed because it is too large
@ -1,75 +0,0 @@ |
|||
.. image:: https://gitlab.com/libvirt/libvirt/badges/master/pipeline.svg |
|||
:target: https://gitlab.com/libvirt/libvirt/pipelines |
|||
:alt: GitLab CI Build Status |
|||
.. image:: https://travis-ci.org/libvirt/libvirt.svg |
|||
:target: https://travis-ci.org/libvirt/libvirt |
|||
:alt: Travis CI Build Status |
|||
.. image:: https://bestpractices.coreinfrastructure.org/projects/355/badge |
|||
:target: https://bestpractices.coreinfrastructure.org/projects/355 |
|||
:alt: CII Best Practices |
|||
.. image:: https://translate.fedoraproject.org/widgets/libvirt/-/libvirt/svg-badge.svg |
|||
:target: https://translate.fedoraproject.org/engage/libvirt/ |
|||
:alt: Translation status |
|||
|
|||
============================== |
|||
Libvirt API for virtualization |
|||
============================== |
|||
|
|||
Libvirt provides a portable, long term stable C API for managing the |
|||
virtualization technologies provided by many operating systems. It |
|||
includes support for QEMU, KVM, Xen, LXC, bhyve, Virtuozzo, VMware |
|||
vCenter and ESX, VMware Desktop, Hyper-V, VirtualBox and the POWER |
|||
Hypervisor. |
|||
|
|||
For some of these hypervisors, it provides a stateful management |
|||
daemon which runs on the virtualization host allowing access to the |
|||
API both by non-privileged local users and remote users. |
|||
|
|||
Layered packages provide bindings of the libvirt C API into other |
|||
languages including Python, Perl, PHP, Go, Java, OCaml, as well as |
|||
mappings into object systems such as GObject, CIM and SNMP. |
|||
|
|||
Further information about the libvirt project can be found on the |
|||
website: |
|||
|
|||
https://libvirt.org |
|||
|
|||
|
|||
License |
|||
======= |
|||
|
|||
The libvirt C API is distributed under the terms of GNU Lesser General |
|||
Public License, version 2.1 (or later). Some parts of the code that are |
|||
not part of the C library may have the more restrictive GNU General |
|||
Public License, version 2.0 (or later). See the files ``COPYING.LESSER`` |
|||
and ``COPYING`` for full license terms & conditions. |
|||
|
|||
|
|||
Installation |
|||
============ |
|||
|
|||
Instructions on building and installing libvirt can be found on the website: |
|||
|
|||
https://libvirt.org/compiling.html |
|||
|
|||
Contributing |
|||
============ |
|||
|
|||
The libvirt project welcomes contributions in many ways. For most components |
|||
the best way to contribute is to send patches to the primary development |
|||
mailing list. Further guidance on this can be found on the website: |
|||
|
|||
https://libvirt.org/contribute.html |
|||
|
|||
|
|||
Contact |
|||
======= |
|||
|
|||
The libvirt project has two primary mailing lists: |
|||
|
|||
* libvirt-users@redhat.com (**for user discussions**) |
|||
* libvir-list@redhat.com (**for development only**) |
|||
|
|||
Further details on contacting the project are available on the website: |
|||
|
|||
https://libvirt.org/contact.html |
File diff suppressed because it is too large
@ -1,53 +0,0 @@ |
|||
#!/bin/sh |
|||
# Run this to generate all the initial makefiles, etc. |
|||
# |
|||
# THe following options must come first. All other or subsequent |
|||
# arguments are passed to configure: |
|||
# --no-git skip `git submodule update --init` |
|||
|
|||
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 |
|||
} |
|||
|
|||
if [ "x$1" = x--no-git ]; then |
|||
shift |
|||
else |
|||
git submodule update --init || exit 1 |
|||
fi |
|||
|
|||
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 |
@ -0,0 +1,10 @@ |
|||
# define variables
|
|||
|
|||
top_srcdir = @top_srcdir@ |
|||
top_builddir = @top_builddir@ |
|||
FLAKE8 = @flake8_path@ |
|||
RUNUTF8 = @runutf8@ |
|||
PYTHON = @PYTHON3@ |
|||
|
|||
# include syntax-check.mk file
|
|||
include $(top_srcdir)/build-aux/syntax-check.mk |
@ -1,348 +0,0 @@ |
|||
#! /bin/sh |
|||
# Wrapper for compilers which do not understand '-c -o'. |
|||
|
|||
scriptversion=2018-03-07.03; # UTC |
|||
|
|||
# Copyright (C) 1999-2018 Free Software Foundation, Inc. |
|||
# Written by Tom Tromey <tromey@cygnus.com>. |
|||
# |
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; either version 2, or (at your option) |
|||
# any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
|||
|
|||
# As a special exception to the GNU General Public License, if you |
|||
# distribute this file as part of a program that contains a |
|||
# configuration script generated by Autoconf, you may include it under |
|||
# the same distribution terms that you use for the rest of that program. |
|||
|
|||
# This file is maintained in Automake, please report |
|||
# bugs to <bug-automake@gnu.org> or send patches to |
|||
# <automake-patches@gnu.org>. |
|||
|
|||
nl=' |
|||
' |
|||
|
|||
# We need space, tab and new line, in precisely that order. Quoting is |
|||
# there to prevent tools from complaining about whitespace usage. |
|||
IFS=" "" $nl" |
|||
|
|||
file_conv= |
|||
|
|||
# func_file_conv build_file lazy |
|||
# Convert a $build file to $host form and store it in $file |
|||
# Currently only supports Windows hosts. If the determined conversion |
|||
# type is listed in (the comma separated) LAZY, no conversion will |
|||
# take place. |
|||
func_file_conv () |
|||
{ |
|||
file=$1 |
|||
case $file in |
|||
/ | /[!/]*) # absolute file, and not a UNC file |
|||
if test -z "$file_conv"; then |
|||
# lazily determine how to convert abs files |
|||
case `uname -s` in |
|||
MINGW*) |
|||
file_conv=mingw |
|||
;; |
|||
CYGWIN*) |
|||
file_conv=cygwin |
|||
;; |
|||
*) |
|||
file_conv=wine |
|||
;; |
|||
esac |
|||
fi |
|||
case $file_conv/,$2, in |
|||
*,$file_conv,*) |
|||
;; |
|||
mingw/*) |
|||
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` |
|||
;; |
|||
cygwin/*) |
|||
file=`cygpath -m "$file" || echo "$file"` |
|||
;; |
|||
wine/*) |
|||
file=`winepath -w "$file" || echo "$file"` |
|||
;; |
|||
esac |
|||
;; |
|||
esac |
|||
} |
|||
|
|||
# func_cl_dashL linkdir |
|||
# Make cl look for libraries in LINKDIR |
|||
func_cl_dashL () |
|||
{ |
|||
func_file_conv "$1" |
|||
if test -z "$lib_path"; then |
|||
lib_path=$file |
|||
else |
|||
lib_path="$lib_path;$file" |
|||
fi |
|||
linker_opts="$linker_opts -LIBPATH:$file" |
|||
} |
|||
|
|||
# func_cl_dashl library |
|||
# Do a library search-path lookup for cl |
|||
func_cl_dashl () |
|||
{ |
|||
lib=$1 |
|||
found=no |
|||
save_IFS=$IFS |
|||
IFS=';' |
|||
for dir in $lib_path $LIB |
|||
do |
|||
IFS=$save_IFS |
|||
if $shared && test -f "$dir/$lib.dll.lib"; then |
|||
found=yes |
|||
lib=$dir/$lib.dll.lib |
|||
break |
|||
fi |
|||
if test -f "$dir/$lib.lib"; then |
|||
found=yes |
|||
lib=$dir/$lib.lib |
|||
break |
|||
fi |
|||
if test -f "$dir/lib$lib.a"; then |
|||
found=yes |
|||
lib=$dir/lib$lib.a |
|||
break |
|||
fi |
|||
done |
|||
IFS=$save_IFS |
|||
|
|||
if test "$found" != yes; then |
|||
lib=$lib.lib |
|||
fi |
|||
} |
|||
|
|||
# func_cl_wrapper cl arg... |
|||
# Adjust compile command to suit cl |
|||
func_cl_wrapper () |
|||
{ |
|||
# Assume a capable shell |
|||
lib_path= |
|||
shared=: |
|||
linker_opts= |
|||
for arg |
|||
do |
|||
if test -n "$eat"; then |
|||
eat= |
|||
else |
|||
case $1 in |
|||
-o) |
|||
# configure might choose to run compile as 'compile cc -o foo foo.c'. |
|||
eat=1 |
|||
case $2 in |
|||
*.o | *.[oO][bB][jJ]) |
|||
func_file_conv "$2" |
|||
set x "$@" -Fo"$file" |
|||
shift |
|||
;; |
|||
*) |
|||
func_file_conv "$2" |
|||
set x "$@" -Fe"$file" |
|||
shift |
|||
;; |
|||
esac |
|||
;; |
|||
-I) |
|||
eat=1 |
|||
func_file_conv "$2" mingw |
|||
set x "$@" -I"$file" |
|||
shift |
|||
;; |
|||
-I*) |
|||
func_file_conv "${1#-I}" mingw |
|||
set x "$@" -I"$file" |
|||
shift |
|||
;; |
|||
-l) |
|||
eat=1 |
|||
func_cl_dashl "$2" |
|||
set x "$@" "$lib" |
|||
shift |
|||
;; |
|||
-l*) |
|||
func_cl_dashl "${1#-l}" |
|||
set x "$@" "$lib" |
|||
shift |
|||
;; |
|||
-L) |
|||
eat=1 |
|||
func_cl_dashL "$2" |
|||
;; |
|||
-L*) |
|||
func_cl_dashL "${1#-L}" |
|||
;; |
|||
-static) |
|||
shared=false |
|||
;; |
|||
-Wl,*) |
|||
arg=${1#-Wl,} |
|||
save_ifs="$IFS"; IFS=',' |
|||
for flag in $arg; do |
|||
IFS="$save_ifs" |
|||
linker_opts="$linker_opts $flag" |
|||
done |
|||
IFS="$save_ifs" |
|||
;; |
|||
-Xlinker) |
|||
eat=1 |
|||
linker_opts="$linker_opts $2" |
|||
;; |
|||
-*) |
|||
set x "$@" "$1" |
|||
shift |
|||
;; |
|||
*.cc | *.CC | *.cxx | *.CXX | *.[cC]++) |
|||
func_file_conv "$1" |
|||
set x "$@" -Tp"$file" |
|||
shift |
|||
;; |
|||
*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) |
|||
func_file_conv "$1" mingw |
|||
set x "$@" "$file" |
|||
shift |
|||
;; |
|||
*) |
|||
set x "$@" "$1" |
|||
shift |
|||
;; |
|||
esac |
|||
fi |
|||
shift |
|||
done |
|||
if test -n "$linker_opts"; then |
|||
linker_opts="-link$linker_opts" |
|||
fi |
|||
exec "$@" $linker_opts |
|||
exit 1 |
|||
} |
|||
|
|||
eat= |
|||
|
|||
case $1 in |
|||
'') |
|||
echo "$0: No command. Try '$0 --help' for more information." 1>&2 |
|||
exit 1; |
|||
;; |
|||
-h | --h*) |
|||
cat <<\EOF |
|||
Usage: compile [--help] [--version] PROGRAM [ARGS] |
|||
|
|||
Wrapper for compilers which do not understand '-c -o'. |
|||
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining |
|||
arguments, and rename the output as expected. |
|||
|
|||
If you are trying to build a whole package this is not the |
|||
right script to run: please start by reading the file 'INSTALL'. |
|||
|
|||
Report bugs to <bug-automake@gnu.org>. |
|||
EOF |
|||
exit $? |
|||
;; |
|||
-v | --v*) |
|||
echo "compile $scriptversion" |
|||
exit $? |
|||
;; |
|||
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ |
|||
icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) |
|||
func_cl_wrapper "$@" # Doesn't return... |
|||
;; |
|||
esac |
|||
|
|||
ofile= |
|||
cfile= |
|||
|
|||
for arg |
|||
do |
|||
if test -n "$eat"; then |
|||
eat= |
|||
else |
|||
case $1 in |
|||
-o) |
|||
# configure might choose to run compile as 'compile cc -o foo foo.c'. |
|||
# So we strip '-o arg' only if arg is an object. |
|||
eat=1 |
|||
case $2 in |
|||
*.o | *.obj) |
|||
ofile=$2 |
|||
;; |
|||
*) |
|||
set x "$@" -o "$2" |
|||
shift |
|||
;; |
|||
esac |
|||
;; |
|||
*.c) |
|||
cfile=$1 |
|||
set x "$@" "$1" |
|||
shift |
|||
;; |
|||
*) |
|||
set x "$@" "$1" |
|||
shift |
|||
;; |
|||
esac |
|||
fi |
|||
shift |
|||
done |
|||
|
|||
if test -z "$ofile" || test -z "$cfile"; then |
|||
# If no '-o' option was seen then we might have been invoked from a |
|||
# pattern rule where we don't need one. That is ok -- this is a |
|||
# normal compilation that the losing compiler can handle. If no |
|||
# '.c' file was seen then we are probably linking. That is also |
|||
# ok. |
|||
exec "$@" |
|||
fi |
|||
|
|||
# Name of file we expect compiler to create. |
|||
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` |
|||
|
|||
# Create the lock directory. |
|||
# Note: use '[/\\:.-]' here to ensure that we don't use the same name |
|||
# that we are using for the .o file. Also, base the name on the expected |
|||
# object file name, since that is what matters with a parallel build. |
|||
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d |
|||
while true; do |
|||
if mkdir "$lockdir" >/dev/null 2>&1; then |
|||
break |
|||
fi |
|||
sleep 1 |
|||
done |
|||
# FIXME: race condition here if user kills between mkdir and trap. |
|||
trap "rmdir '$lockdir'; exit 1" 1 2 15 |
|||
|
|||
# Run the compile. |
|||
"$@" |
|||
ret=$? |
|||
|
|||
if test -f "$cofile"; then |
|||
test "$cofile" = "$ofile" || mv "$cofile" "$ofile" |
|||
elif test -f "${cofile}bj"; then |
|||
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" |
|||
fi |
|||
|
|||
rmdir "$lockdir" |
|||
exit $ret |
|||
|
|||
# Local Variables: |
|||
# mode: shell-script |
|||
# sh-indentation: 2 |
|||
# eval: (add-hook 'before-save-hook 'time-stamp) |
|||
# time-stamp-start: "scriptversion=" |
|||
# time-stamp-format: "%:y-%02m-%02d.%02H" |
|||
# time-stamp-time-zone: "UTC0" |
|||
# time-stamp-end: "; # UTC" |
|||
# End: |
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -1,791 +0,0 @@ |
|||
#! /bin/sh |
|||
# depcomp - compile a program generating dependencies as side-effects |
|||
|
|||
scriptversion=2018-03-07.03; # UTC |
|||
|
|||
# Copyright (C) 1999-2018 Free Software Foundation, Inc. |
|||
|
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; either version 2, or (at your option) |
|||
# any later version. |
|||
|
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
|
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
|||
|
|||
# As a special exception to the GNU General Public License, if you |
|||
# distribute this file as part of a program that contains a |
|||
# configuration script generated by Autoconf, you may include it under |
|||
# the same distribution terms that you use for the rest of that program. |
|||
|
|||
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. |
|||
|
|||
case $1 in |
|||
'') |
|||
echo "$0: No command. Try '$0 --help' for more information." 1>&2 |
|||
exit 1; |
|||
;; |
|||
-h | --h*) |
|||
cat <<\EOF |
|||
Usage: depcomp [--help] [--version] PROGRAM [ARGS] |
|||
|
|||
Run PROGRAMS ARGS to compile a file, generating dependencies |
|||
as side-effects. |
|||
|
|||
Environment variables: |
|||
depmode Dependency tracking mode. |
|||
source Source file read by 'PROGRAMS ARGS'. |
|||
object Object file output by 'PROGRAMS ARGS'. |
|||
DEPDIR directory where to store dependencies. |
|||
depfile Dependency file to output. |
|||
tmpdepfile Temporary file to use when outputting dependencies. |
|||
libtool Whether libtool is used (yes/no). |
|||
|
|||
Report bugs to <bug-automake@gnu.org>. |
|||
EOF |
|||
exit $? |
|||
;; |
|||
-v | --v*) |
|||
echo "depcomp $scriptversion" |
|||
exit $? |
|||
;; |
|||
esac |
|||
|
|||
# Get the directory component of the given path, and save it in the |
|||
# global variables '$dir'. Note that this directory component will |
|||
# be either empty or ending with a '/' character. This is deliberate. |
|||
set_dir_from () |
|||
{ |
|||
case $1 in |
|||
*/*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; |
|||
*) dir=;; |
|||
esac |
|||
} |
|||
|
|||
# Get the suffix-stripped basename of the given path, and save it the |
|||
# global variable '$base'. |
|||
set_base_from () |
|||
{ |
|||
base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` |
|||
} |
|||
|
|||
# If no dependency file was actually created by the compiler invocation, |
|||
# we still have to create a dummy depfile, to avoid errors with the |
|||
# Makefile "include basename.Plo" scheme. |
|||
make_dummy_depfile () |
|||
{ |
|||
echo "#dummy" > "$depfile" |
|||
} |
|||
|
|||
# Factor out some common post-processing of the generated depfile. |
|||
# Requires the auxiliary global variable '$tmpdepfile' to be set. |
|||
aix_post_process_depfile () |
|||
{ |
|||
# If the compiler actually managed to produce a dependency file, |
|||
# post-process it. |
|||
if test -f "$tmpdepfile"; then |
|||
# Each line is of the form 'foo.o: dependency.h'. |
|||
# Do two passes, one to just change these to |
|||
# $object: dependency.h |
|||
# and one to simply output |
|||
# dependency.h: |
|||
# which is needed to avoid the deleted-header problem. |
|||
{ sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" |
|||
sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" |
|||
} > "$depfile" |
|||
rm -f "$tmpdepfile" |
|||
else |
|||
make_dummy_depfile |
|||
fi |
|||
} |
|||
|
|||
# A tabulation character. |
|||
tab=' ' |
|||
# A newline character. |
|||
nl=' |
|||
' |
|||
# Character ranges might be problematic outside the C locale. |
|||
# These definitions help. |
|||
upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ |
|||
lower=abcdefghijklmnopqrstuvwxyz |
|||
digits=0123456789 |
|||
alpha=${upper}${lower} |
|||
|
|||
if test -z "$depmode" || test -z "$source" || test -z "$object"; then |
|||
echo "depcomp: Variables source, object and depmode must be set" 1>&2 |
|||
exit 1 |
|||
fi |
|||
|
|||
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. |
|||
depfile=${depfile-`echo "$object" | |
|||
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} |
|||
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} |
|||
|
|||
rm -f "$tmpdepfile" |
|||
|
|||
# Avoid interferences from the environment. |
|||
gccflag= dashmflag= |
|||
|
|||
# Some modes work just like other modes, but use different flags. We |
|||
# parameterize here, but still list the modes in the big case below, |
|||
# to make depend.m4 easier to write. Note that we *cannot* use a case |
|||
# here, because this file can only contain one case statement. |
|||
if test "$depmode" = hp; then |
|||
# HP compiler uses -M and no extra arg. |
|||
gccflag=-M |
|||
depmode=gcc |
|||
fi |
|||
|
|||
if test "$depmode" = dashXmstdout; then |
|||
# This is just like dashmstdout with a different argument. |
|||
dashmflag=-xM |
|||
depmode=dashmstdout |
|||
fi |
|||
|
|||
cygpath_u="cygpath -u -f -" |
|||
if test "$depmode" = msvcmsys; then |
|||
# This is just like msvisualcpp but w/o cygpath translation. |
|||
# Just convert the backslash-escaped backslashes to single forward |
|||
# slashes to satisfy depend.m4 |
|||
cygpath_u='sed s,\\\\,/,g' |
|||
depmode=msvisualcpp |
|||
fi |
|||
|
|||
if test "$depmode" = msvc7msys; then |
|||
# This is just like msvc7 but w/o cygpath translation. |
|||
# Just convert the backslash-escaped backslashes to single forward |
|||
# slashes to satisfy depend.m4 |
|||
cygpath_u='sed s,\\\\,/,g' |
|||
depmode=msvc7 |
|||
fi |
|||
|
|||
if test "$depmode" = xlc; then |
|||
# IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. |
|||
gccflag=-qmakedep=gcc,-MF |
|||
depmode=gcc |
|||
fi |
|||
|
|||
case "$depmode" in |
|||
gcc3) |
|||
## gcc 3 implements dependency tracking that does exactly what |
|||
## we want. Yay! Note: for some reason libtool 1.4 doesn't like |
|||
## it if -MD -MP comes after the -MF stuff. Hmm. |
|||
## Unfortunately, FreeBSD c89 acceptance of flags depends upon |
|||
## the command line argument order; so add the flags where they |
|||
## appear in depend2.am. Note that the slowdown incurred here |
|||
## affects only configure: in makefiles, %FASTDEP% shortcuts this. |
|||
for arg |
|||
do |
|||
case $arg in |
|||
-c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; |
|||
*) set fnord "$@" "$arg" ;; |
|||
esac |
|||
shift # fnord |
|||
shift # $arg |
|||
done |
|||
"$@" |
|||
stat=$? |
|||
if test $stat -ne 0; then |
|||
rm -f "$tmpdepfile" |
|||
exit $stat |
|||
fi |
|||
mv "$tmpdepfile" "$depfile" |
|||
;; |
|||
|
|||
gcc) |
|||
## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. |
|||
## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. |
|||
## (see the conditional assignment to $gccflag above). |
|||
## There are various ways to get dependency output from gcc. Here's |
|||
## why we pick this rather obscure method: |
|||
## - Don't want to use -MD because we'd like the dependencies to end |
|||
## up in a subdir. Having to rename by hand is ugly. |
|||
## (We might end up doing this anyway to support other compilers.) |
|||
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like |
|||
## -MM, not -M (despite what the docs say). Also, it might not be |
|||
## supported by the other compilers which use the 'gcc' depmode. |
|||
## - Using -M directly means running the compiler twice (even worse |
|||
## than renaming). |
|||
if test -z "$gccflag"; then |
|||
gccflag=-MD, |
|||
fi |
|||
"$@" -Wp,"$gccflag$tmpdepfile" |
|||
stat=$? |
|||
if test $stat -ne 0; then |
|||
rm -f "$tmpdepfile" |
|||
exit $stat |
|||
fi |
|||
rm -f "$depfile" |
|||
echo "$object : \\" > "$depfile" |
|||
# The second -e expression handles DOS-style file names with drive |
|||
# letters. |
|||
sed -e 's/^[^:]*: / /' \ |
|||
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" |
|||
## This next piece of magic avoids the "deleted header file" problem. |
|||
## The problem is that when a header file which appears in a .P file |
|||
## is deleted, the dependency causes make to die (because there is |
|||
## typically no way to rebuild the header). We avoid this by adding |
|||
## dummy dependencies for each header file. Too bad gcc doesn't do |
|||
## this for us directly. |
|||
## Some versions of gcc put a space before the ':'. On the theory |
|||
## that the space means something, we add a space to the output as |
|||
## well. hp depmode also adds that space, but also prefixes the VPATH |
|||
## to the object. Take care to not repeat it in the output. |
|||
## Some versions of the HPUX 10.20 sed can't process this invocation |
|||
## correctly. Breaking it into two sed invocations is a workaround. |
|||
tr ' ' "$nl" < "$tmpdepfile" \ |
|||
| sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ |
|||
| sed -e 's/$/ :/' >> "$depfile" |
|||
rm -f "$tmpdepfile" |
|||
;; |
|||
|
|||
hp) |
|||
# This case exists only to let depend.m4 do its work. It works by |
|||
# looking at the text of this script. This case will never be run, |
|||
# since it is checked for above. |
|||
exit 1 |
|||
;; |
|||
|
|||
sgi) |
|||
if test "$libtool" = yes; then |
|||
"$@" "-Wp,-MDupdate,$tmpdepfile" |
|||
else |
|||
"$@" -MDupdate "$tmpdepfile" |
|||
fi |
|||
stat=$? |
|||
if test $stat -ne 0; then |
|||
rm -f "$tmpdepfile" |
|||
exit $stat |
|||
fi |
|||
rm -f "$depfile" |
|||
|
|||
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files |
|||
echo "$object : \\" > "$depfile" |
|||
# Clip off the initial element (the dependent). Don't try to be |
|||
# clever and replace this with sed code, as IRIX sed won't handle |
|||
# lines with more than a fixed number of characters (4096 in |
|||
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; |
|||
# the IRIX cc adds comments like '#:fec' to the end of the |
|||
# dependency line. |
|||
tr ' ' "$nl" < "$tmpdepfile" \ |
|||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ |
|||
| tr "$nl" ' ' >> "$depfile" |
|||
echo >> "$depfile" |
|||
# The second pass generates a dummy entry for each header file. |
|||
tr ' ' "$nl" < "$tmpdepfile" \ |
|||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ |
|||
>> "$depfile" |
|||
else |
|||
make_dummy_depfile |
|||
fi |
|||
rm -f "$tmpdepfile" |
|||
;; |
|||
|
|||
xlc) |
|||
# This case exists only to let depend.m4 do its work. It works by |
|||
# looking at the text of this script. This case will never be run, |
|||
# since it is checked for above. |
|||
exit 1 |
|||
;; |
|||
|
|||
aix) |
|||
# The C for AIX Compiler uses -M and outputs the dependencies |
|||
# in a .u file. In older versions, this file always lives in the |
|||
# current directory. Also, the AIX compiler puts '$object:' at the |
|||
# start of each line; $object doesn't have directory information. |
|||
# Version 6 uses the directory in both cases. |
|||