From 7d4a6d30c3bd6079d2397c4d52e03be33ce2d703 Mon Sep 17 00:00:00 2001 From: Hans van Kranenburg Date: Fri, 8 Apr 2022 10:40:51 +0100 Subject: [PATCH] Import xen_4.14.4+74-gd7b22226b5-1.debian.tar.xz [dgit import tarball xen 4.14.4+74-gd7b22226b5-1 xen_4.14.4+74-gd7b22226b5-1.debian.tar.xz] --- NEWS | 42 + README.Debian.security | 17 + README.md | 5 + changelog | 2237 ++ compat | 1 + control | 295 + control.md5sum | 17 + copyright | 307 + gitignore-old | 16 + installsharedlibs | 30 + libxen-V.bug-control.vsn-in | 1 + libxen-dev.install | 4 + libxencall1.install | 1 + libxendevicemodel1.install | 1 + libxenevtchn1.install | 1 + libxenforeignmemory1.install | 1 + libxengnttab1.install | 1 + libxenhypfs1.install | 1 + libxenmiscV.install.vsn-in | 8 + libxenmiscV.lintian-overrides.vsn-in | 7 + libxenstore3.0.install | 1 + libxenstore3.0.symbols | 46 + libxentoolcore1.install | 1 + libxentoollog1.install | 1 + not-installed | 36 + ...1-Delete-config.sub-and-config.guess.patch | 3485 +++ patches/0002-Delete-configure-output.patch | 18412 ++++++++++++++++ patches/0003-version.patch | 176 + ...Do-not-ship-COPYING-into-usr-include.patch | 34 + ...o-not-build-the-instruction-emulator.patch | 25 + .../0009-tools-libfsimage-prefix.diff.patch | 83 + ...toconf-Provide-libexec_libdir_suffix.patch | 39 + ...onfigure-output-which-we-always-dele.patch | 24 + ...ke-PV-shim-build-selectable-from-con.patch | 70 + ...akfile-Respect-caller-s-CONFIG_PV_SH.patch | 26 + ...akefile-CONFIG_PV_SHIM-enable-only-o.patch | 26 + ...Provide-separate-install-shim-target.patch | 78 + ...-interface.7-Provide-properly-format.patch | 27 + ...-fields-in-first-hypervisor-log-line.patch | 46 + ...18-vif-common-disable-handle_iptable.patch | 38 + ...ig.xencommons.in-Strip-and-debianize.patch | 118 + ...common-Do-not-adjust-LD_LIBRARY_PATH.patch | 36 + patches/0021-pygrub-Set-sys.path.patch | 35 + ...path-LIBEXEC_LIB-when-building-fsima.patch | 59 + ...xl-bash-completion-also-complete-xen.patch | 27 + .../0024-tools-don-t-build-ship-xenmon.patch | 23 + ...ially-revert-Cross-compilation-fixes.patch | 40 + ...n.sh-fix-handle_iptable-return-value.patch | 30 + ...-rpi4-implement-watchdog-based-reset.patch | 105 + ...-Pass-linker-to-Python-build-process.patch | 91 + ...i-Don-t-fail-if-SPCR-table-is-absent.patch | 47 + ...acpi_os_map_memory-and-acpi_os_unmap.patch | 163 + ...-fixmap-area-should-always-be-cleare.patch | 131 + ...-the-platform-is-not-using-ACPI-befo.patch | 39 + ...uce-fw_unreserved_regions-and-use-it.patch | 124 + ...m-acpi-add-BAD_MADT_GICC_ENTRY-macro.patch | 60 + ...n-t-panic-when-receiving-an-unknown-.patch | 29 + patches/0036-fix-spelling-errors.patch | 211 + ...have-timestamp-inserted-in-config.gz.patch | 30 + ...sert-timestamp-when-SOURCE_DATE_EPOC.patch | 39 + ...able-ordering-in-generated-documenta.patch | 27 + ...te-to-SOURCE_DATE_EPOCH-if-available.patch | 39 + .../0041-x86-ACPI-fix-mapping-of-FACS.patch | 52 + ...ble-mapping-when-one-lives-above-1Mb.patch | 149 + ...86-ACPI-fix-S3-wakeup-vector-mapping.patch | 83 + ...nvalidate-S5-data-when-S3-wakeup-vec.patch | 58 + ...tools-pygrub-remove-static-solaris-support | 85 + ...stestsx86_emulator-pass--no-pie--fno.patch | 46 + patches/prefix-abiname/config-prefix.diff | 35 + patches/series | 44 + rules | 341 + salsa-ci.yml | 30 + scripts/Makefile | 41 + scripts/qemu-ifup | 13 + scripts/xen | 2 + scripts/xen-dir | 10 + scripts/xen-init-list | 18 + scripts/xen-init-name | 21 + scripts/xen-toolstack | 4 + scripts/xen-toolstack-wrapper | 4 + scripts/xen-utils-wrapper | 41 + scripts/xen-version | 24 + shuffle-binaries | 50 + shuffle-boot-files | 41 + source/format | 1 + template-subst | 41 + .../etc/default/grub.d/xen.cfg | 94 + ucf-remove-fixup | 44 + xen-doc.doc-base | 10 + xen-doc.install | 1 + xen-doc.links | 1 + xen-doc.lintian-overrides | 3 + xen-hypervisor-V-F.bug-control.vsn-in | 1 + xen-hypervisor-V-F.install.vsn-in | 4 + xen-hypervisor-V-F.lintian-overrides.vsn-in | 4 + xen-hypervisor-V-F.postinst.vsn-in | 37 + xen-hypervisor-V-F.postrm.vsn-in | 23 + xen-hypervisor-common.docs | 1 + xen-hypervisor-common.install | 1 + xen-kconfig | 4 + xen-utils-V.README.Debian.vsn-in | 48 + xen-utils-V.bug-control.vsn-in | 1 + xen-utils-V.install.vsn-in | 9 + xen-utils-V.lintian-overrides.vsn-in | 13 + xen-utils-V.postinst.vsn-in | 31 + xen-utils-V.prerm.vsn-in | 31 + xen-utils-common.README.Debian | 24 + xen-utils-common.dirs | 1 + xen-utils-common.examples | 1 + xen-utils-common.install | 31 + xen-utils-common.links | 2 + xen-utils-common.maintscript | 4 + xen-utils-common.postinst | 21 + xen-utils-common.postrm | 21 + xen-utils-common.preinst | 20 + xen-utils-common.ucf | 1 + xen-utils-common.xen.init | 345 + xen-utils-common.xendomains.default | 60 + xen-utils-common.xendomains.init | 219 + xenstore-utils.install | 5 + xenstore-utils.lintian-overrides | 6 + 121 files changed, 29526 insertions(+) create mode 100644 NEWS create mode 100644 README.Debian.security create mode 100644 README.md create mode 100644 changelog create mode 100644 compat create mode 100644 control create mode 100644 control.md5sum create mode 100644 copyright create mode 100644 gitignore-old create mode 100755 installsharedlibs create mode 100644 libxen-V.bug-control.vsn-in create mode 100644 libxen-dev.install create mode 100644 libxencall1.install create mode 100644 libxendevicemodel1.install create mode 100644 libxenevtchn1.install create mode 100644 libxenforeignmemory1.install create mode 100644 libxengnttab1.install create mode 100644 libxenhypfs1.install create mode 100644 libxenmiscV.install.vsn-in create mode 100644 libxenmiscV.lintian-overrides.vsn-in create mode 100644 libxenstore3.0.install create mode 100644 libxenstore3.0.symbols create mode 100644 libxentoolcore1.install create mode 100644 libxentoollog1.install create mode 100644 not-installed create mode 100644 patches/0001-Delete-config.sub-and-config.guess.patch create mode 100644 patches/0002-Delete-configure-output.patch create mode 100644 patches/0003-version.patch create mode 100644 patches/0005-Do-not-ship-COPYING-into-usr-include.patch create mode 100644 patches/0008-Do-not-build-the-instruction-emulator.patch create mode 100644 patches/0009-tools-libfsimage-prefix.diff.patch create mode 100644 patches/0010-autoconf-Provide-libexec_libdir_suffix.patch create mode 100644 patches/0011-.gitignore-Add-configure-output-which-we-always-dele.patch create mode 100644 patches/0012-Revert-pvshim-make-PV-shim-build-selectable-from-con.patch create mode 100644 patches/0013-tools-firmware-Makfile-Respect-caller-s-CONFIG_PV_SH.patch create mode 100644 patches/0014-tools-firmware-Makefile-CONFIG_PV_SHIM-enable-only-o.patch create mode 100644 patches/0015-shim-Provide-separate-install-shim-target.patch create mode 100644 patches/0016-docs-man-xen-vbd-interface.7-Provide-properly-format.patch create mode 100644 patches/0017-Fix-empty-fields-in-first-hypervisor-log-line.patch create mode 100644 patches/0018-vif-common-disable-handle_iptable.patch create mode 100644 patches/0019-sysconfig.xencommons.in-Strip-and-debianize.patch create mode 100644 patches/0020-hotplug-common-Do-not-adjust-LD_LIBRARY_PATH.patch create mode 100644 patches/0021-pygrub-Set-sys.path.patch create mode 100644 patches/0022-pygrub-Specify-rpath-LIBEXEC_LIB-when-building-fsima.patch create mode 100644 patches/0023-tools-xl-bash-completion-also-complete-xen.patch create mode 100644 patches/0024-tools-don-t-build-ship-xenmon.patch create mode 100644 patches/0025-tools-Partially-revert-Cross-compilation-fixes.patch create mode 100644 patches/0026-t-h-L-vif-common.sh-fix-handle_iptable-return-value.patch create mode 100644 patches/0027-xen-rpi4-implement-watchdog-based-reset.patch create mode 100644 patches/0028-tools-python-Pass-linker-to-Python-build-process.patch create mode 100644 patches/0029-xen-arm-acpi-Don-t-fail-if-SPCR-table-is-absent.patch create mode 100644 patches/0030-xen-acpi-Rework-acpi_os_map_memory-and-acpi_os_unmap.patch create mode 100644 patches/0031-xen-arm-acpi-The-fixmap-area-should-always-be-cleare.patch create mode 100644 patches/0032-xen-arm-Check-if-the-platform-is-not-using-ACPI-befo.patch create mode 100644 patches/0033-xen-arm-Introduce-fw_unreserved_regions-and-use-it.patch create mode 100644 patches/0034-xen-arm-acpi-add-BAD_MADT_GICC_ENTRY-macro.patch create mode 100644 patches/0035-xen-arm-traps-Don-t-panic-when-receiving-an-unknown-.patch create mode 100644 patches/0036-fix-spelling-errors.patch create mode 100644 patches/0037-xen-don-t-have-timestamp-inserted-in-config.gz.patch create mode 100644 patches/0038-x86-EFI-don-t-insert-timestamp-when-SOURCE_DATE_EPOC.patch create mode 100644 patches/0039-docs-use-predictable-ordering-in-generated-documenta.patch create mode 100644 patches/0040-docs-set-date-to-SOURCE_DATE_EPOCH-if-available.patch create mode 100644 patches/0041-x86-ACPI-fix-mapping-of-FACS.patch create mode 100644 patches/0042-x86-DMI-fix-table-mapping-when-one-lives-above-1Mb.patch create mode 100644 patches/0043-x86-ACPI-fix-S3-wakeup-vector-mapping.patch create mode 100644 patches/0044-x86-ACPI-don-t-invalidate-S5-data-when-S3-wakeup-vec.patch create mode 100644 patches/misc/tools-pygrub-remove-static-solaris-support create mode 100644 patches/misc/toolstestsx86_emulator-pass--no-pie--fno.patch create mode 100644 patches/prefix-abiname/config-prefix.diff create mode 100644 patches/series create mode 100755 rules create mode 100644 salsa-ci.yml create mode 100644 scripts/Makefile create mode 100755 scripts/qemu-ifup create mode 100755 scripts/xen create mode 100755 scripts/xen-dir create mode 100755 scripts/xen-init-list create mode 100755 scripts/xen-init-name create mode 100755 scripts/xen-toolstack create mode 100755 scripts/xen-toolstack-wrapper create mode 100755 scripts/xen-utils-wrapper create mode 100755 scripts/xen-version create mode 100755 shuffle-binaries create mode 100755 shuffle-boot-files create mode 100644 source/format create mode 100755 template-subst create mode 100644 tree/xen-hypervisor-common/etc/default/grub.d/xen.cfg create mode 100755 ucf-remove-fixup create mode 100644 xen-doc.doc-base create mode 100644 xen-doc.install create mode 100644 xen-doc.links create mode 100644 xen-doc.lintian-overrides create mode 100644 xen-hypervisor-V-F.bug-control.vsn-in create mode 100644 xen-hypervisor-V-F.install.vsn-in create mode 100644 xen-hypervisor-V-F.lintian-overrides.vsn-in create mode 100644 xen-hypervisor-V-F.postinst.vsn-in create mode 100644 xen-hypervisor-V-F.postrm.vsn-in create mode 100644 xen-hypervisor-common.docs create mode 100644 xen-hypervisor-common.install create mode 100644 xen-kconfig create mode 100644 xen-utils-V.README.Debian.vsn-in create mode 100644 xen-utils-V.bug-control.vsn-in create mode 100644 xen-utils-V.install.vsn-in create mode 100644 xen-utils-V.lintian-overrides.vsn-in create mode 100644 xen-utils-V.postinst.vsn-in create mode 100644 xen-utils-V.prerm.vsn-in create mode 100644 xen-utils-common.README.Debian create mode 100644 xen-utils-common.dirs create mode 100644 xen-utils-common.examples create mode 100755 xen-utils-common.install create mode 100644 xen-utils-common.links create mode 100644 xen-utils-common.maintscript create mode 100644 xen-utils-common.postinst create mode 100644 xen-utils-common.postrm create mode 100644 xen-utils-common.preinst create mode 100644 xen-utils-common.ucf create mode 100644 xen-utils-common.xen.init create mode 100644 xen-utils-common.xendomains.default create mode 100644 xen-utils-common.xendomains.init create mode 100644 xenstore-utils.install create mode 100644 xenstore-utils.lintian-overrides diff --git a/NEWS b/NEWS new file mode 100644 index 0000000000..f0c865d4e4 --- /dev/null +++ b/NEWS @@ -0,0 +1,42 @@ +xen (4.11.4-1) unstable; urgency=medium + + This package version fixes a bug that would call the stop action on the + xen init script when removing an obsolete xen-utils-V package for a Xen + version V other than the currently running one. This results in stopping + the xenconsoled process. + + If you just upgraded from Xen 4.8 (Stretch), this will happen when + removing the xen-utils-4.8 package afterwards. + + The resulting situation can safely be repaired by calling the start action + on the xen script again manually once to bring back the xenconsoled + process. There will be no damage to running domUs. + + If you're upgrading from previous Xen 4.11 packages, no action is needed. + + Having these (or later) Xen 4.11 packages installed means that the bug + will not trigger any more when removing xen-utils-4.11 after upgrading to + a newer Xen version (e.g. 4.13) in the future. + + -- Hans van Kranenburg Tue, 26 May 2020 13:33:17 +0200 + +xen (4.11.1+92-g6c33308a8d-1) unstable; urgency=high + + This update contains the mitigations for the Microarchitectural Data + Sampling speculative side channel attacks. Only Intel based processors are + affected. + + Note that these fixes will only have effect when also loading updated cpu + microcode with MD_CLEAR functionality. When using the intel-microcode + package to include microcode in the dom0 initrd, it has to be loaded by + Xen. Please refer to the hypervisor command line documentation about the + 'ucode=scan' option. + + For the fixes to be fully effective, it is currently also needed to disable + hyper-threading, which can be done in BIOS settings, or by using smt=no on + the hypervisor command line. + + Additional information is available in the upstream Xen security advisory: + https://xenbits.xen.org/xsa/advisory-297.html + + -- Hans van Kranenburg Tue, 18 Jun 2019 09:50:19 +0200 diff --git a/README.Debian.security b/README.Debian.security new file mode 100644 index 0000000000..6d7ccc0906 --- /dev/null +++ b/README.Debian.security @@ -0,0 +1,17 @@ +Notes about security support for Xen in Debian +============================================== + +Upstream security support for Xen 4.14 will end on Jul 7, 2023: + +---- >8 ---- +Xen-Version: 4.14 +Initial-Release: 2020-07-24 +Supported-Until: 2022-01-24 +Security-Support-Until: 2023-07-24 +---- >8 ---- + +At the same moment, security support in Debian will also end. + +The document containing the above snippet of information can be found in the +xen-doc package, at /usr/share/doc/xen/html/SUPPORT.html or online at +https://xenbits.xen.org/docs/4.14-testing/SUPPORT.html#release-support diff --git a/README.md b/README.md new file mode 100644 index 0000000000..32d2d05143 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +Xen packaging for Debian +======================== + +For general information about the Debian Xen Team, [see the +wiki](https://salsa.debian.org/xen-team/debian-xen/wikis/home). diff --git a/changelog b/changelog new file mode 100644 index 0000000000..5afd4b9c8d --- /dev/null +++ b/changelog @@ -0,0 +1,2237 @@ +xen (4.14.4+74-gd7b22226b5-1) bullseye-security; urgency=medium + + * Update to new upstream version 4.14.4+74-gd7b22226b5, which also contains + security fixes for the following issues: + - arm: guest_physmap_remove_page not removing the p2m mappings + XSA-393 CVE-2022-23033 + - A PV guest could DoS Xen while unmapping a grant + XSA-394 CVE-2022-23034 + - Insufficient cleanup of passed-through device IRQs + XSA-395 CVE-2022-23035 + - Racy interactions between dirty vram tracking and paging log dirty + hypercalls + XSA-397 CVE-2022-26356 + - Multiple speculative security issues + XSA-398 (no CVE yet) + - race in VT-d domain ID cleanup + XSA-399 CVE-2022-26357 + - IOMMU: RMRR (VT-d) and unity map (AMD-Vi) handling issues + XSA-400 CVE-2022-26358 CVE-2022-26359 CVE-2022-26360 CVE-2022-26361 + * Note that the following XSA are not listed, because... + - XSA-391, XSA-392 and XSA-396 have patches for the Linux kernel. + + -- Hans van Kranenburg Fri, 08 Apr 2022 11:40:51 +0200 + +xen (4.14.3+32-g9de3671772-1~deb11u1) bullseye-security; urgency=medium + + * d/salsa-ci.yml: Set RELEASE variable to bullseye + * Rebuild for bullseye-security + + -- Hans van Kranenburg Thu, 02 Dec 2021 21:45:55 +0100 + +xen (4.14.3+32-g9de3671772-1) unstable; urgency=medium + + * Update to new upstream version 4.14.3+32-g9de3671772, which also contains + security fixes for the following issues: + - guests may exceed their designated memory limit + XSA-385 CVE-2021-28706 + - PCI devices with RMRRs not deassigned correctly + XSA-386 CVE-2021-28702 + - PoD operations on misaligned GFNs + XSA-388 CVE-2021-28704 CVE-2021-28707 CVE-2021-28708 + - issues with partially successful P2M updates on x86 + XSA-389 CVE-2021-28705 CVE-2021-28709 + * Note that the following XSA are not listed, because... + - XSA-387 only applies to Xen 4.13 and older + - XSA-390 only applies to Xen 4.15 + * Pick the following upstream commits to fix a regression which prevents + amd64 type hardware to fully power off. The issue was introduced in + version 4.14.0+88-g1d1d1f5391-1 after including upstream commits to + improve Raspberry Pi 4 support. (Closes: #994899): + - 8b6d55c126 ("x86/ACPI: fix mapping of FACS") + - f390941a92 ("x86/DMI: fix table mapping when one lives above 1Mb") + - 0f089bbf43 ("x86/ACPI: fix S3 wakeup vector mapping") + - 16ca5b3f87 ("x86/ACPI: don't invalidate S5 data when S3 wakeup vector + cannot be determined") + + -- Hans van Kranenburg Sat, 27 Nov 2021 15:09:47 +0100 + +xen (4.14.3-1) unstable; urgency=high + + * Update to new upstream version 4.14.3, which also contains security fixes + for the following issues: + - IOMMU page mapping issues on x86 + XSA-378 CVE-2021-28694 CVE-2021-28695 CVE-2021-28696 + - grant table v2 status pages may remain accessible after de-allocation + XSA-379 CVE-2021-28697 + - long running loops in grant table handling + XSA-380 CVE-2021-28698 + - inadequate grant-v2 status frames array bounds check + XSA-382 CVE-2021-28699 + - xen/arm: No memory limit for dom0less domUs + XSA-383 CVE-2021-28700 + - Another race in XENMAPSPACE_grant_table handling + XSA-384 CVE-2021-28701 + + -- Hans van Kranenburg Mon, 13 Sep 2021 11:51:20 +0200 + +xen (4.14.2+25-gb6a8c4f72d-2) unstable; urgency=medium + + * Add README.Debian.security containing a note about the end of upstream + security support for Xen 4.14. Install it into xen-hypervisor-common. + + -- Hans van Kranenburg Fri, 30 Jul 2021 16:57:52 +0200 + +xen (4.14.2+25-gb6a8c4f72d-1) unstable; urgency=medium + + * Update to new upstream version 4.14.2+25-gb6a8c4f72d, which also contains + security fixes for the following issues: + - HVM soft-reset crashes toolstack + XSA-368 CVE-2021-28687 + - xen/arm: Boot modules are not scrubbed + XSA-372 CVE-2021-28693 + - inappropriate x86 IOMMU timeout detection / handling + XSA-373 CVE-2021-28692 + - Speculative Code Store Bypass + XSA-375 CVE-2021-0089 CVE-2021-26313 + - x86: TSX Async Abort protections not restored after S3 + XSA-377 CVE-2021-28690 + * Note that the following XSA are not listed, because... + - XSA-370 does not contain code changes. + - XSA-365, XSA-367, XSA-369, XSA-371 and XSA-374 have patches for the + Linux kernel. + - XSA-366 only applies to Xen 4.11. + + -- Hans van Kranenburg Sun, 11 Jul 2021 14:29:13 +0200 + +xen (4.14.1+11-gb0b734a8b3-1) unstable; urgency=medium + + * Update to new upstream version 4.14.1+11-gb0b734a8b3, which also contains + security fixes for the following issues: + - IRQ vector leak on x86 + XSA-360 CVE-2021-3308 (Closes: #981052) + - arm: The cache may not be cleaned for newly allocated scrubbed pages + XSA-364 CVE-2021-26933 + * Drop separate patches for XSAs up to 359 that are now included in the + upstream stable branch. + + Packaging bugfixes and improvements [Elliott Mitchell]: + * debian/rules: Set CC/LD to enable cross-building + * d/shuffle-binaries: Fix binary shuffling script for cross-building + * Rework "debian/rules: Do not try to move EFI binaries on armhf" + * debian/scripts: Optimize runtime scripts + * debian/xen-utils-common.examples: Remove xm examples + * d/shuffle-boot-files: make it POSIX compliant [Hans van Kranenburg, based + on a patch by Elliott Mitchell] + * d/shuffle-binaries: Switch loop from for to while + * d/shuffle-binaries: Switch to POSIX shell, instead of Bash + * d/shuffle-boot-files: Switch to POSIX shell, instead of Bash + * debian/xendomains.init: Pipe xen-init-list instead of tmp file + + Make the package build reproducibly [Maximilian Engelhardt]: + * debian/salsa-ci.yml: enable salsa-ci + * debian/salsa-ci.yml: enable diffoscope in reprotest + * debian/rules: use SOURCE_DATE_EPOCH for xen build dates + * debian/rules: don't include build path in binaries + * debian/rules: reproducibly build oxenstored + * Pick the following upstream commits: + - 5816d327e4 ("xen: don't have timestamp inserted in config.gz") + - ee41b5c450 ("x86/EFI: don't insert timestamp when SOURCE_DATE_EPOCH is + defined") + - e18dadc5b7 ("docs: use predictable ordering in generated documentation") + * Include upstream patch that is not committed yet, but needed: + - docs: set date to SOURCE_DATE_EPOCH if available + * debian/salsa-ci.yml: don't allow reprotest to fail + + Packaging bugfixes and improvements: + * d/shuffle-boot-files: Document more inner workings + + -- Hans van Kranenburg Sun, 28 Feb 2021 19:49:45 +0100 + +xen (4.14.0+88-g1d1d1f5391-2) unstable; urgency=high + + * For now, revert "debian/rules: Set CC/LD to enable cross-building", since + it causes an FTBFS on i386. + + -- Hans van Kranenburg Tue, 15 Dec 2020 14:57:41 +0100 + +xen (4.14.0+88-g1d1d1f5391-1) unstable; urgency=high + + * Update to new upstream version 4.14.0+88-g1d1d1f5391, which also contains + security fixes for the following issues: + - stack corruption from XSA-346 change + XSA-355 CVE-2020-29040 (Closes: #976109) + * Apply security fixes for the following issues: + - oxenstored: permissions not checked on root node + XSA-353 CVE-2020-29479 + - xenstore watch notifications lacking permission checks + XSA-115 CVE-2020-29480 + - Xenstore: new domains inheriting existing node permissions + XSA-322 CVE-2020-29481 + - Xenstore: wrong path length check + XSA-323 CVE-2020-29482 + - Xenstore: guests can crash xenstored via watchs + XSA-324 CVE-2020-29484 + - Xenstore: guests can disturb domain cleanup + XSA-325 CVE-2020-29483 + - oxenstored memory leak in reset_watches + XSA-330 CVE-2020-29485 + - oxenstored: node ownership can be changed by unprivileged clients + XSA-352 CVE-2020-29486 + - undue recursion in x86 HVM context switch code + XSA-348 CVE-2020-29566 + - infinite loop when cleaning up IRQ vectors + XSA-356 CVE-2020-29567 + - FIFO event channels control block related ordering + XSA-358 CVE-2020-29570 + - FIFO event channels control structure ordering + XSA-359 CVE-2020-29571 + * Note that the following XSA are not listed, because... + - XSA-349 and XSA-350 have patches for the Linux kernel + - XSA-354 has patches for the XAPI toolstack + + Packaging bugfixes and improvements: + * d/rules: do not compress /usr/share/doc/xen/html (Closes: #942611) + * Add missing CVE numbers to the previous changelog entries + + Packaging bugfixes and improvements [Elliott Mitchell]: + * d/shuffle-binaries: Make error detection/message overt + * d/shuffle-binaries: Add quoting for potentially changeable variables + * d/shuffle-boot-files: Add lots of double-quotes when handling variables + * debian/rules: Set CC/LD to enable cross-building + * debian/xen.init: Load xen_acpi_processor on boot + * d/shuffle-binaries: Remove useless extra argument being passed in + + Packaging bugfixes and improvements [Maximilian Engelhardt]: + * d/xen-hypervisor-V-F.postinst.vsn-in: use reboot-required + (Closes: #862408) + * d/xen-hypervisor-V-F.postrm: actually install script + * d/xen-hypervisor-V.*: clean up unused files + * d/xen-hypervisor-V.bug-control.vsn-in: actually install script + * debian/rules: enable verbose build + + Fixes to patches for upstream code: + * t/h/L/vif-common.sh: force handle_iptable return value to be 0 + (Closes: #955994) + + * Pick the following upstream commits to improve Raspberry Pi 4 support, + requested by Elliott Mitchell: + - 25849c8b16 ("xen/rpi4: implement watchdog-based reset") + - 17d192e023 ("tools/python: Pass linker to Python build process") + - 861f0c1109 ("xen/arm: acpi: Don't fail if SPCR table is absent") + - 1c4aa69ca1 ("xen/acpi: Rework acpi_os_map_memory() and + acpi_os_unmap_memory()") + - 4d625ff3c3 ("xen/arm: acpi: The fixmap area should always be cleared + during failure/unmap") + - dac867bf9a ("xen/arm: Check if the platform is not using ACPI before + initializing Dom0less") + - 9c2bc0f24b ("xen/arm: Introduce fw_unreserved_regions() and use it") + - 7056f2f89f ("xen/arm: acpi: add BAD_MADT_GICC_ENTRY() macro") + - 957708c2d1 ("xen/arm: traps: Don't panic when receiving an unknown debug + trap") + + * Pick upstream commit ba6e78f0db ("fix spelling errors"). Thanks, Diederik. + + -- Hans van Kranenburg Tue, 15 Dec 2020 13:00:00 +0100 + +xen (4.14.0+80-gd101b417b7-1) unstable; urgency=medium + + * Re-upload to unstable for rebuild. + + -- Ian Jackson Tue, 24 Nov 2020 10:28:22 +0000 + +xen (4.14.0+80-gd101b417b7-1~exp2) experimental; urgency=medium + + * Re-upload since apparently DMs aren't allowed NEW? + + -- Ian Jackson Mon, 23 Nov 2020 13:24:17 +0000 + +xen (4.14.0+80-gd101b417b7-1~exp1) experimental; urgency=medium + + * Update to new upstream version 4.14.0+80-gd101b417b7, which also contains + security fixes for the following issues: + - Information leak via power sidechannel + XSA-351 CVE-2020-28368 + - x86 PV guest INVLPG-like flushes may leave stale TLB entries + XSA-286 CVE-2020-27674 + - unsafe AMD IOMMU page table updates + XSA-347 CVE-2020-27670 + - undue deferral of IOMMU TLB flushes + XSA-346 CVE-2020-27671 + - x86: Race condition in Xen mapping code + XSA-345 CVE-2020-27672 + - lack of preemption in evtchn_reset() / evtchn_destroy() + XSA-344 CVE-2020-25601 + - races with evtchn_reset() + XSA-343 CVE-2020-25599 + - out of bounds event channels available to 32-bit x86 domains + XSA-342 CVE-2020-25600 + - Missing memory barriers when accessing/allocating an event channel + XSA-340 CVE-2020-25603 + - x86 pv guest kernel DoS via SYSENTER + XSA-339 CVE-2020-25596 + - once valid event channels may not turn invalid + XSA-338 CVE-2020-25597 + - PCI passthrough code reading back hardware registers + XSA-337 CVE-2020-25595 + - race when migrating timers between x86 HVM vCPU-s + XSA-336 CVE-2020-25604 + - Missing unlock in XENMEM_acquire_resource error path + XSA-334 CVE-2020-25598 + - x86 pv: Crash when handling guest access to MSR_MISC_ENABLE + XSA-333 CVE-2020-25602 + * Updating to the most recent upstream stable-4.14 branch also fixes + additional compiling issues with gcc 10 that we were running into. These + were: upstream commit 5d45ecabe3c0 ("xen/arm64: force gcc 10+ to always + inline generic atomics helpers") to fix a FTBFS at mem_access.c and + upstream commit 0dfddb2116e3 ("tools/xenpmd: Fix gcc10 snprintf warning") + to fix a FTBFS on armhf. (Closes: #970802) + * Drop upstream commits d25cc3ec93eb ("libxl: workaround gcc 10.2 + maybe-uninitialized warning") and fff1b7f50e75 ("libxl: fix + -Werror=stringop-truncation in libxl__prepare_sockaddr_un") from our patch + pile because these gcc 10 related fixes are in the upstream stable branch + now. + * Partially revert "debian/rules: Combine shared Make args" since it caused + a FTBFS on i386. + * Revert upstream commit a516bddbd3 ("tools/firmware/Makefile: + CONFIG_PV_SHIM: enable only on x86_64") and cherry-pick our previous + commits 0b898ccc2 ("tools/firmware/Makfile: Respect caller's + CONFIG_PV_SHIM") and a516bddbd3 ("tools/firmware/Makefile: CONFIG_PV_SHIM: + enable only on x86_64") again to work around a FTBFS where the shim would + not be built during the i386 package build. + * Now all FTBFS issues should be resolved, so we can do (Closes: #968965) + + Packaging minor fixes and improvements: + * d/xen-utils-common.xen.init: Actually *really* include the change to + disable oom killer for xenstored. It inadvertently got lost in + 4.14.0-1~exp1. (Closes: #961511) + + Lintian related fixes: + * debian/changelog: fix a typo in the previous changelog entry + + -- Hans van Kranenburg Sun, 22 Nov 2020 02:16:00 +0100 + +xen (4.14.0-1~exp1) experimental; urgency=medium + + Significant changes: + * Update to new upstream version 4.14.0. + (Closes: #866380) about removal of broken xen-bugtool + * debian/{rules,control}: switch to python 3 + (Closes: #938843) about python 2 removal in bullseye + * debian/control: Fix python dependency to use python3-dev:any and + libpython3-dev [Elliott Mitchell] + + Changes related to upgrading to Xen 4.14: + * debian/control: adjust to 4.14 + * debian/rules: remove install commands for pkgconfig files, since those + files are not present any more + * debian/: Follow fsimage -> xenfsimage renaming + * debian/xen-utils-V.*: Use @version@ instead of hardcoded version + * debian/control: add flex, bison + * debian/control: add libxenhypfs[1] [Ian Jackson] + * debian/libxenstore3.0.symbols: drop xprintf + (Closes: #968965) [Ian Jackson; also reported by Gianfranco Costamagna] + * d/scripts/xen-init-name, d/scripts/xen-init-list: rewrite these two + scripts, hugely simplify them and make them use python 3 + * Pick upstream commits d25cc3ec93eb ("libxl: workaround gcc 10.2 + maybe-uninitialized warning") and fff1b7f50e75 ("libxl: fix + -Werror=stringop-truncation in libxl__prepare_sockaddr_un") to fix gcc 10 + FTBFS + * tools: don't build/ship xenmon, it can't work with python 3 + + Packaging minor fixes and improvements: + * debian/rules: Set DEB_BUILD_MAINT_OPTIONS in shell + (Closes: #939560) [Ian Jackson; report from Guillem Jover] + * debian/rules: Improve comment about hardening options + (Closes: #939560) [Ian Jackson; report from Guillem Jover] + * debian/rules: Drop redundant sequence numbers in dh_installinit + (Closes: #939560) [Ian Jackson; report from Guillem Jover] + * d/xen-utils-common.xen.init: add important notes to keep in mind when + changing this script, related to multi-version handling + * debian/control: cleanup Uploaders and add myself + * debian/control: s/libncurses5-dev/libncurses-dev/ + * xen-utils-V scripts: remove update-alternatives command + * xen-utils-V.postinst.vsn-in: whitespace cosmetics + * d/xen-utils-common.xen.init: disable oom killer for xenstored + (Closes: #961511) + * debian/rules: Combine shared Make args [Elliott Mitchell] + + Fixes and improvements for cross-compiling [Elliott Mitchell]: + * debian/rules: Add --host to tools configure target + * Pick upstream commit 69953e285638 ('tools: Partially revert + "Cross-compilation fixes."') + + Lintian related fixes: + * debian/changelog: trim trailing whitespace. [Debian Janitor] + * debian/pycompat: remove obsolete file. [Debian Janitor] + * debian/rules: Avoid using $(PWD) variable. [Debian Janitor] + * debian/control: hardcode xen-utils-4.14 python3 dependency because + dh_python can't figure out how to add it + * debian/control: xen-doc: add ${misc:Depends} + * d/xen-hypervisor-V-F.lintian-overrides.vsn-in: fix override to use the + newer debug-suffix-not-dbg tag and correct the file path used so it + matches again + * debian/control: remove XS-Python-Version which is deprecated + * debian/control: drop autotools-dev build dependency because debhelper + already takes care of this + * d/xen-utils-V.lintian-overrides.vsn-in: fix rpath override because the + xenfsimage python .so filename changed from xenfsimage.so into + xenfsimage.cpython-38-x86_64-linux-gnu.so now, make it match again + * d/xen-utils-V.lintian-overrides.vsn-in: s/fsimage/xenfsimage/ which is a + left over change from the rename in some comment lines + * d/xen-utils-common.xen.init: use /run instead of /var/run because we don't + expect anyone on a pre-stretch system to build and use these packages + * debian/control: update Standards-Version to 4.5.0 + + -- Hans van Kranenburg Thu, 17 Sep 2020 18:59:28 +0200 + +xen (4.11.4+24-gddaaccbbab-1) unstable; urgency=medium + + * Update to new upstream version 4.11.4+24-gddaaccbbab, which also contains + security fixes for the following issues: + - inverted code paths in x86 dirty VRAM tracking + XSA-319 CVE-2020-15563 + - Special Register Buffer speculative side channel + XSA-320 CVE-2020-0543 + N.B: To mitigate this issue, new cpu microcode is required. The changes + in Xen provide a workaround for affected hardware that is not receiving + a vendor microcode update. Please refer to the upstream XSA-320 Advisory + text for more details. + - insufficient cache write-back under VT-d + XSA-321 CVE-2020-15565 + - Missing alignment check in VCPUOP_register_vcpu_info + XSA-327 CVE-2020-15564 + - non-atomic modification of live EPT PTE + XSA-328 CVE-2020-15567 + + -- Hans van Kranenburg Tue, 07 Jul 2020 16:07:39 +0200 + +xen (4.11.4-1) unstable; urgency=medium + + * Update to new upstream version 4.11.4, which also contains security fixes + for the following issues: + - arm: a CPU may speculate past the ERET instruction + XSA-312 (no CVE yet) + - multiple xenoprof issues + XSA-313 CVE-2020-11740 CVE-2020-11741 + - Missing memory barriers in read-write unlock paths + XSA-314 CVE-2020-11739 + - Bad error path in GNTTABOP_map_grant + XSA-316 CVE-2020-11743 + - Bad continuation handling in GNTTABOP_copy + XSA-318 CVE-2020-11742 + * xen-utils and xen-utils-common maint scripts: Replace the previous fix in + the xen init script with a better fix in the xen-utils package instead, to + prevent calling the init script stop action (resulting in a disappeared + xenconsoled) when removing a xen-utils package that belongs to a previous + (not currently runing) Xen version. Also prevent the xen-utils-common + package from inadvertently calling stop and start actions because + dh_installinit would add code for that. (Closes: #932759) + * debian/NEWS: Mention fixing #932759 and how to deal with the bug + + -- Hans van Kranenburg Tue, 26 May 2020 13:33:17 +0200 + +xen (4.11.3+24-g14b62ab3e5-1) unstable; urgency=high + + * Update to new upstream version 4.11.3+24-g14b62ab3e5, which also + contains the following security fixes: (Closes: #947944) + - Unlimited Arm Atomics Operations + XSA-295 CVE-2019-17349 CVE-2019-17350 + - VCPUOP_initialise DoS + XSA-296 CVE-2019-18420 + - missing descriptor table limit checking in x86 PV emulation + XSA-298 CVE-2019-18425 + - Issues with restartable PV type change operations + XSA-299 CVE-2019-18421 + - add-to-physmap can be abused to DoS Arm hosts + XSA-301 CVE-2019-18423 + - passed through PCI devices may corrupt host memory after deassignment + XSA-302 CVE-2019-18424 + - ARM: Interrupts are unconditionally unmasked in exception handlers + XSA-303 CVE-2019-18422 + - x86: Machine Check Error on Page Size Change DoS + XSA-304 CVE-2018-12207 + - TSX Asynchronous Abort speculative side channel + XSA-305 CVE-2019-11135 + - Device quarantine for alternate pci assignment methods + XSA-306 CVE-2019-19579 + - find_next_bit() issues + XSA-307 CVE-2019-19581 CVE-2019-19582 + - VMX: VMentry failure with debug exceptions and blocked states + XSA-308 CVE-2019-19583 + - Linear pagetable use / entry miscounts + XSA-309 CVE-2019-19578 + - Further issues with restartable PV type change operations + XSA-310 CVE-2019-19580 + - Bugs in dynamic height handling for AMD IOMMU pagetables + XSA-311 CVE-2019-19577 + * Add missing CVE numbers to previous changelog entries + + -- Hans van Kranenburg Wed, 08 Jan 2020 12:41:42 +0100 + +xen (4.11.1+92-g6c33308a8d-2) unstable; urgency=high + + * Mention MDS and the need for updated microcode and disabling + hyper-threading in NEWS. + * Mention the ucode=scan option in the grub.d/xen documentation. + + -- Hans van Kranenburg Sat, 22 Jun 2019 11:15:08 +0200 + +xen (4.11.1+92-g6c33308a8d-1) unstable; urgency=high + + * Update to new upstream version 4.11.1+92-g6c33308a8d, which also + contains the following security fixes: + - Fix: grant table transfer issues on large hosts + XSA-284 CVE-2019-17340 (Closes: #929991) + - Fix: race with pass-through device hotplug + XSA-285 CVE-2019-17341 (Closes: #929998) + - Fix: x86: steal_page violates page_struct access discipline + XSA-287 CVE-2019-17342 (Closes: #930001) + - Fix: x86: Inconsistent PV IOMMU discipline + XSA-288 CVE-2019-17343 (Closes: #929994) + - Fix: missing preemption in x86 PV page table unvalidation + XSA-290 CVE-2019-17344 (Closes: #929996) + - Fix: x86/PV: page type reference counting issue with failed IOMMU update + XSA-291 CVE-2019-17345 (Closes: #929995) + - Fix: x86: insufficient TLB flushing when using PCID + XSA-292 CVE-2019-17346 (Closes: #929993) + - Fix: x86: PV kernel context switch corruption + XSA-293 CVE-2019-17347 (Closes: #929999) + - Fix: x86 shadow: Insufficient TLB flushing when using PCID + XSA-294 CVE-2019-17348 (Closes: #929992) + - Fix: Microarchitectural Data Sampling speculative side channel + XSA-297 CVE-2018-12126 CVE-2018-12127 CVE-2018-12130 CVE-2019-11091 + (Closes: #929129) + * Note that the fixes for XSA-297 will only have effect when also loading + updated cpu microcode with MD_CLEAR functionality. When using the + intel-microcode package to include microcode in the dom0 initrd, it has to + be loaded by Xen. Please refer to the hypervisor command line + documentation about the 'ucode=scan' option. + * Fixes for XSA-295 "Unlimited Arm Atomics Operations" will be added in the + next upload. + + -- Hans van Kranenburg Tue, 18 Jun 2019 09:50:19 +0200 + +xen (4.11.1+26-g87f51bf366-3) unstable; urgency=medium + + Minor useability improvements and fixes: + * bash-completion: also complete 'xen' [Hans van Kranenburg] + * /etc/default/xen: Handle with ucf again, like in stretch. + Closes:#923401. [Ian Jackson] + + Build fix: + * Fix FTBFS when building only arch-indep binaries (eg + dpkg-buildpackage -A). Was due to dh-exec bug wrt not-installed. + Closes:#923013. [Hans van Kranenburg; report from Santiago Vila] + + Documentation fix: + * grub.d/xen.cfg: dom0_mem max IS needed [Hans van Kranenburg] + + -- Ian Jackson Thu, 28 Feb 2019 16:37:04 +0000 + +xen (4.11.1+26-g87f51bf366-2) unstable; urgency=medium + + * Packaging change: override spurious lintian warning about + fsimage.so rpath. + + -- Ian Jackson Fri, 22 Feb 2019 16:07:37 +0000 + +xen (4.11.1+26-g87f51bf366-1) unstable; urgency=medium + + Significant changes: + * Update to new upstream version 4.11.1+26-g87f51bf366. + (This is from the upstream stable branch.) [Ian Jackson] + * Build and use oxenstored rather than the C xenstored by default. + [Ian Jackson and Hans van Kranenburg] + * xen init script: rewrite and reorganise xenstored start logic. + [Hans van Kranenburg] + + Documentation etc. improvements: + * Refresh hypervisor and dom0 command line options documentation. + (Closes: #919758) [Hans van Kranenburg; report from Gergely] + * Ship /etc/default/xen, a striped and tidied version of upstream + sysconfig.xencommons.in. [Hans van Kranenburg] + + Significant bugfixes: + * xen init script: Do nothing if running for wrong Xen package. + Avoids mystery loss of xenconsoled. Closes:#851654. + [Ian Jackson; report from Wolodja Wentland] + * Make pygrub work again (by fixing python module and shared library + paths). Closes:#912381. [Ian Jackson; earlier, Bastian Blank; + report from Dimitar Angelov, also Torben Schou Jensen] + + Packaging bugfixes: + * Have xen-utils-common suggest xen-doc, because it contains a broken + symlink to it. Closes:#911046. + [Hans van Kranenburg; report from Andreas Beckmann] + * Have xenstore-utils declare Breaks on xen-utils-common to make + piuparts happy. Closes:#911045. + [Hans van Kranenburg, report from Andreas Beckmann] + * hotplug-common: Strip arch-specific libdir from config file + Closes:#862236. [Ian Jackson; report from Stefan Bühler] + * xendomains init script; Add dependency on $network. + Closes:#798510. [Francois Lesueur] + * xendomains init script; Add should-dependency on nfs-kernel-server + Closes:#826871. [Geoffrey McRae] + + Packaging minor fixes and improvements [Hans van Kranenburg]: + * debian/libxenstore3.0.symbols: revert ea2334dfe0 + * debian/control: add dh-python build-dep + * d/xen-utils-V...: override xen-shim-syms lintian + * debian/control: bump debhelper builddep to 10 + * debian/.gitignore: ignore more debhelper snippets + * bash-completion: install completion rules for xl + * xen init script: don't fail when being run in domU + * Remove xend cruft from various init scripts etc. + + Packaging minor fixes and improvements [Ian Jackson]: + * xen version/upgrade handling: Improve an error message + * xen init script: silently exit status 0 if not running under xen + * xen init script: Tidy up wrong/missing Xen version error handling + * debian/rules: Fix tiny typos + * hotplug-common: Do not adjust LD_LIBRARY_PATH + + -- Ian Jackson Fri, 22 Feb 2019 15:11:45 +0000 + +xen (4.11.1-1) unstable; urgency=medium + + * debian/control: Add Homepage, Vcs-Browser and Vcs-Git. + (Closes: #911457) + * grub.d/xen.cfg: fix default entry when using l10n (Closes: #865086) + * debian/rules: Don't exclude the actual pygrub script. + * Update to new upstream version 4.11.1, which also contains: + - Fix: insufficient TLB flushing / improper large page mappings with AMD + IOMMUs + XSA-275 CVE-2018-19961 CVE-2018-19962 + - Fix: resource accounting issues in x86 IOREQ server handling + XSA-276 CVE-2018-19963 + - Fix: x86: incorrect error handling for guest p2m page removals + XSA-277 CVE-2018-19964 + - Fix: x86: Nested VT-x usable even when disabled + XSA-278 CVE-2018-18883 + - Fix: x86: DoS from attempting to use INVPCID with a non-canonical + addresses + XSA-279 CVE-2018-19965 + - Fix for XSA-240 conflicts with shadow paging + XSA-280 CVE-2018-19966 + - Fix: guest use of HLE constructs may lock up host + XSA-282 CVE-2018-19967 + * Update version handling patching to put the team mailing list address in + the first hypervisor log line and fix broken other substitutions. + * Disable handle_iptable hook in vif-common script. See #894013 for more + information. + + -- Hans van Kranenburg Wed, 02 Jan 2019 20:59:40 +0100 + +xen (4.11.1~pre.20180911.5acdd26fdc+dfsg-5) unstable; urgency=medium + + * debian/rules: Cope if xen-utils-common not being built + (Fixes binary-indep FTBFS.) + + -- Ian Jackson Mon, 15 Oct 2018 18:07:11 +0100 + +xen (4.11.1~pre.20180911.5acdd26fdc+dfsg-4) unstable; urgency=medium + + * Many packaging fixes to fix FTBFS on all arches other than amd64. + * xen-vbd-interface(7): Provide properly-formatted NAME section + * Add pandoc and markdown to Build-Depends - fixes missing docs. + * Revert "tools-xenstore-compatibility.diff" apropos of discussion + https://lists.xenproject.org/archives/html/xen-devel/2018-10/msg00838.html + + -- Ian Jackson Mon, 15 Oct 2018 12:15:36 +0100 + +xen (4.11.1~pre.20180911.5acdd26fdc+dfsg-3) unstable; urgency=medium + + * hypervisor package postinst: Actually install (avoids need to + run update-grub by hand). + * debian/control: Adding Section to source stanza + * debian/control: Add missing Replaces on old xen-utils-common + * debian/rules: Add a -n to a gzip rune to improve reproducibility + + -- Ian Jackson Fri, 12 Oct 2018 16:55:48 +0100 + +xen (4.11.1~pre.20180911.5acdd26fdc+dfsg-2) unstable; urgency=medium + + * Redo as an upload with binaries, because source-only uploads to NEW + are not allowed. + + -- Ian Jackson Fri, 05 Oct 2018 19:38:52 +0100 + +xen (4.11.1~pre.20180911.5acdd26fdc+dfsg-1) unstable; urgency=medium + + * Update to new upstream version 4.11.1~pre.20180911.5acdd26fdc+dfsg; + merging in 4.11.1~pre.20180911.5acdd26fdc+dfsg-1~exp1. + + -- Ian Jackson Fri, 05 Oct 2018 18:39:58 +0100 + +xen (4.11.1~pre+1.733450b39b-1) unstable; urgency=medium + + * Completely overhauled the packaging. In the source package, things + are very much simpler now with only a few hundred loc of templating + and scriptery. In the binary packages the resulting changes are: + - We now provide -dbgsym packages in the standard way + - Shared libraries with unstable ABI upstream (ie, whose + ABI changes with the Xen version) are now in + libxen-misc rather than libxen and + have more conventional-looking filenames. + - Shared libraries with a stable ABI upstream are now each in their + own package, named after the soname (ABI version), as is + conventional. The sonames and minor versions of these are + no longer mangled. + - xs.h, replaced upstream by xenstore.h, is now in + /usr/include/xenstore-compat (as shipped upstream), with + symlinks left behind. + - fsimage*.h is no longer shipped (it's namespace-grabbish). + - libxenvchan.h is in /usr/include as it is in upstream, + not buried in /usr/include/xen/io + - /etc/xen/cpupool, a not very interesting example config file, + has been moved into /usr/share/doc/. + - There is a new xen-doc package, in which the upstream HTML + documentation, and various other bits, is now provided. This + replaces the text format documentation previously provided in + xen-utils-common (but the manpages are still there). + - Utilities which use on libraries with stable ABIs upstream + are no longer subjected to the Xen version wrapper. + - Several utilities are now provided in /usr/bin which were + previously only available buried in /usr/lib/xen-: + xen-detect xenalyze xencons xencov_split xen-cpuid + (version-wrapped, where necessary). + - Likewise very many utilities and daemons in /usr/sbin: + gdbsx xen-bugtool xen-ringwatch xen-tmem-list-parse + xenmon xenpmd flask-* xen-kdd xen-diag xen-hptool + xen-hvmcrash xen-hvmctx xen-livepatch xen-lowmemd + xen-mfndump xenbaked xenconsoled xencov xenlockprof + xenstored xenwatchdogd + - xend and xm are long gone, so remove the support for the + TOOLSTACK setting in /etc/default/xen. /usr/sbin/xen just + runs xl now. Remove mentions of xend-config.sxp and all + *.sxp files. Drop the xend init script. + - There is no longer any Built-Using. This is no longer true for + seabios, which is depended on and used at runtime, rather than + being embedded into hvmloader. (The source package also previously + tried to mention ipxe-qemu in Built-Using but that's (i) dependent + upstream on CONFIG_ROMBIOS which we disable, and not a + build-dependency either.) + - The hvmloader and xen-shim binaries no longer have their .note + and .comment section(s) stripped. .note is needed for xen-shim + to work properly and to find the corresponding debug files. + And .comment is tiny and harmless AFAICT. + - Hypervisor debug map files are installed in /usr/lib/debug. + - The xl bash_completion file from upstream is installed. + - libxenvchan.h is installed. + - We install xen-*.efi in /boot. + - Sections of some packages have been rationalised. + - We install a doc-base control file. + + -- Ian Jackson Wed, 03 Oct 2018 18:45:02 +0100 + +xen (4.11.1~pre.20180911.5acdd26fdc+dfsg-1~exp1) experimental; urgency=medium + + * Update to new upstream version 4.11.1~pre.20180911.5acdd26fdc+dfsg. + * Remove stubdom/grub.patches/00cvs from the upstream source because it's + not DFSG compliant. (license-problem-gfdl-invariants) + * Override statically-linked-binary lintian error about + usr/lib/xen-4.11/boot/xen-shim + + -- Hans van Kranenburg Tue, 11 Sep 2018 15:34:34 +0200 + +xen (4.11.1~pre+1.733450b39b-1~exp1) experimental; urgency=medium + + [ Hans van Kranenburg ] + * Update to 4.11.1-pre commit 733450b39b, which also contains: + - Additional fix for: Unlimited recursion in linear pagetable de-typing + XSA-240 CVE-2017-15595 (listed as xsa240-4.8/0004) + - Fix x86 PV guests may gain access to internally used pages + XSA-248 CVE-2017-17566 + - Fix broken x86 shadow mode refcount overflow check + XSA-249 CVE-2017-17563 + - Fix improper x86 shadow mode refcount error handling + XSA-250 CVE-2017-17564 + - Fix improper bug check in x86 log-dirty handling + XSA-251 CVE-2017-17565 + - Fix: DoS via non-preemptable L3/L4 pagetable freeing + XSA-252 CVE-2018-7540 + - Fix x86: memory leak with MSR emulation + XSA-253 CVE-2018-5244 + - Multiple parts of fixes for... + Information leak via side effects of speculative execution + XSA-254 CVE-2017-5753 CVE-2017-5715 CVE-2017-5754 + - XPTI stage 1 a.k.a. 'Meltdown band-aid', XPTI-S1 or XPTI-lite + - Branch predictor hardening for ARM CPUs + - Support compiling with indirect branch thunks (e.g. retpoline) + - Report details of speculative mitigations in boot logging + - Fix: grant table v2 -> v1 transition may crash Xen + XSA-255 CVE-2018-7541 + - Fix: x86 PVH guest without LAPIC may DoS the host + XSA-256 CVE-2018-7542 + - The "Comet" shim, which can be used as a mitigation for Meltdown to + shield the hypervisor against 64-bit PV guests. + - Fix: Information leak via crafted user-supplied CDROM + XSA-258 CVE-2018-10472 + - Fix: x86: PV guest may crash Xen with XPTI + XSA-259 CVE-2018-10471 + - Fix: x86: mishandling of debug exceptions + XSA-260 CVE-2018-8897 + - Fix: x86 vHPET interrupt injection errors + XSA-261 CVE-2018-10982 + - Fix: qemu may drive Xen into unbounded loop + XSA-262 CVE-2018-10981 + - Fix: Speculative Store Bypass + XSA-263 CVE-2018-3639 + - Fix: preemption checks bypassed in x86 PV MM handling + XSA-264 CVE-2018-12891 + - Fix: x86: #DB exception safety check can be triggered by a guest + XSA-265 CVE-2018-12893 + - Fix: libxl fails to honour readonly flag on HVM emulated SCSI disks + XSA-266 CVE-2018-12892 + - Fix: Speculative register leakage from lazy FPU context switching + XSA-267 CVE-2018-3665 + - Fix: Use of v2 grant tables may cause crash on ARM + XSA-268 CVE-2018-15469 + - Fix: x86: Incorrect MSR_DEBUGCTL handling lets guests enable BTS + XSA-269 CVE-2018-15468 + - Fix: oxenstored does not apply quota-maxentity + XSA-272 CVE-2018-15470 + - Fix: L1 Terminal Fault speculative side channel + XSA-273 CVE-2018-3620 + * Merge changes for 4.9 from the ubuntu packaging (thanks, Stefan Bader): + - Rebase patches against upstream source (line numbers etc). + - debian/rules.real: + - Add a call to build common tool headers. + - Add a call to install common tool headers. + - debian/libxen-dev.install, d/p/ubuntu-tools-libs-abiname.diff: + - Add additional modifications for new libxendevicemodel. + - debian/patches/tools-fake-xs-restrict.patch: + - Re-introduce (fake) xs_restrict call to keep libxenstore version at + 3.0 for now. + - debian/libxenstore3.0.symbols: add xs_control_command + * Rebase patches against 4.10 upstream source. + * Rebase patches against 4.11 upstream source. + * Add README.source.md to document how the packaging works. + * This package builds correctly with gcc 7. (Closes: #853710) + * Fix grub config file conflict when upgrading from Stretch. (Closes: #852545) + * Init scripts: Do not kill per-domain qemu processes. (Closes: #879751) + * debian/patches: Fix "'vwprintw' is deprecated" gcc 8 compilation error + + [ Mark Pryor ] + * Fix shared library build dependencies for the new xentoolcore library. + + [ John Keates ] + * Enable OVMF (Closes: #858962) + + -- Hans van Kranenburg Sun, 08 Jul 2018 14:30:32 +0200 + +xen (4.8.2+xsa245-0+deb9u1) stretch-security; urgency=high + + * Update to upstream stable 4.8 branch, which is currently at Xen 4.8.2 + plus a number of bugfixes and security fixes. + Result is that we now include security fixes for: + XSA-231 CVE-2017-14316 + XSA-232 CVE-2017-14318 + XSA-233 CVE-2017-14317 + XSA-234 CVE-2017-14319 + (235 already included in 4.8.1-1+deb9u3) + XSA-236 CVE-2017-15597 + XSA-237 CVE-2017-15590 + XSA-238 CVE-2017-15591 + XSA-239 CVE-2017-15589 + XSA-240 CVE-2017-15595 + XSA-241 CVE-2017-15588 + XSA-242 CVE-2017-15593 + XSA-243 CVE-2017-15592 + XSA-244 CVE-2017-15594 + XSA-245 CVE-2017-17046 + and a number of upstream functionality fixes, which are not easily + disentangled from the security fixes. + * Apply two more security fixes: + XSA-246 CVE-2017-17044 + XSA-247 CVE-2017-17045 + + -- Ian Jackson Sat, 25 Nov 2017 11:26:37 +0000 + +xen (4.8.1-1+deb9u3) stretch-security; urgency=high + + * Security fixes for + XSA-226 CVE-2017-12135 + XSA-227 CVE-2017-12137 + XSA-228 CVE-2017-12136 + XSA-230 CVE-2017-12855 + XSA-235 CVE-2017-15596 + * Adjust changelog entry for 4.8.1-1+deb9u2 to record + that XSA-225 fix was indeed included. + * Security fix for XSA-229 not included as that bug is in Linux, not Xen. + * Security fixes for XSA-231..234 inc. not inclued as still embargoed. + + -- Ian Jackson Thu, 07 Sep 2017 19:17:58 +0100 + +xen (4.8.1-1+deb9u2) stretch-security; urgency=high + + * Security fixes for + XSA-216 XSA-217 XSA-218 XSA-219 XSA-220 + XSA-221 XSA-222 XSA-223 XSA-224 XSA-225 + + -- Ian Jackson Tue, 20 Jun 2017 14:06:34 +0100 + +xen (4.8.1-1+deb9u1) unstable; urgency=medium + + * Security fixes for XSA-213 (Closes:#861659) and XSA-214 + (Closes:#861660). (Xen 4.7 and later is not affected by XSA-215.) + + -- Ian Jackson Tue, 02 May 2017 12:19:57 +0100 + +xen (4.8.1-1) unstable; urgency=high + + * Update to upstream 4.8.1 release. + Changes include numerous bugfixes, including security fixes for: + XSA-212 / CVE-2017-7228 Closes:#859560 + XSA-207 / no cve yet Closes:#856229 + XSA-206 / no cve yet no Debian bug + + -- Ian Jackson Tue, 18 Apr 2017 18:05:00 +0100 + +xen (4.8.1~pre.2017.01.23-1) unstable; urgency=medium + + * Update to current upstream stable-4.8 git branch (Xen 4.8.1-pre). + Contains bugfixes. + * debian/control-real etc.: debian.py: Allow version numbers like this. + + -- Ian Jackson Mon, 23 Jan 2017 16:03:31 +0000 + +xen (4.8.0-1) unstable; urgency=high + + * Update to upstream Xen 4.8.0. + Includes the following security fixes: + XSA-201 CVE-2016-9815 CVE-2016-9816 CVE-2016-9817 CVE-2016-9818 + XSA-198 CVE-2016-9379 CVE-2016-9380 + XSA-196 CVE-2016-9378 CVE-2016-9377 Closes:#845669 + XSA-195 CVE-2016-9383 + XSA-194 CVE-2016-9384 Closes:#845667 + XSA-193 CVE-2016-9385 + XSA-192 CVE-2016-9382 + XSA-191 CVE-2016-9386 + Includes other bugfixes too: + Closes:#812166, Closes:#818525. + + Cherry picks from upstream: + * Security fixes: + XSA-204 CVE-2016-10013 Closes:#848713 + XSA-203 CVE-2016-10025 + XSA-202 CVE-2016-10024 + For completeness, the following XSAs do not apply here: + XSA-197 CVE-2016-9381 Bug is in qemu + XSA-199 CVE-2016-9637 Bug is in qemu + XSA-200 CVE-2016-9932 Xen 4.8 is not affected + * Cherry pick a build failure fix: + "x86/emul: add likely()/unlikely() to test harness" + + [ Ian Jackson ] + * Drop -lcrypto search from upstream configure, and from our + Build-Depends. Closes:#844419. + * Change my own email address to my work (Citrix) address. When + uploading, I will swap hats to effectively sponsor my own upload. + + [ Ian Campbell ] + * Start a qemu process in dom0 to service the toolstacks loopback disk + attaches. (Closes: #770456) + * Remove correct pidfile when stopping xenconsoled. + * Check that xenstored has actually started before talking to it. + Incorporate a timeout so as not to block boot (Mitigates #737613) + * Correct syntax error in xen-init-list when running with xend + (Closes: #763102) + * Apply SELinux labels to directories created by initscripts. Patch from + Russell Coker. (Closes: #764912) + * Include a reportbug control file to redirect bugs to src:xen for + packages which contain the Xen version in the name. Closes:#796370. + + [ Lubomir Host ] + * Fix xen-init-name to not fail looking for a nonexistent 'config' + entry in xl's JSON output. Closes:#818129. + + -- Ian Jackson Thu, 22 Dec 2016 14:51:46 +0000 + +xen (4.8.0~rc5-1) unstable; urgency=medium + + * New upstream version, Xen 4.8.0 RC5. + + -- Ian Jackson Fri, 11 Nov 2016 15:26:58 +0000 + +xen (4.8.0~rc3-1) unstable; urgency=medium + + * Upload 4.8.0~rc3 to unstable. (RC5 is out upstream, but let's not + update to that in the middle of the Xen 4.6 -> 4.8 transition.) + * No source changes. + + -- Ian Jackson Sat, 05 Nov 2016 15:08:47 +0000 + +xen (4.8.0~rc3-0exp2) experimental; urgency=medium + + * Build-Depend on iasl on all architectures. ARM has ACPI now. + Fixes FTBFS on arm64 (at least). + * Add qemu-utils and seabios to Suggests. + * Pass -no-pie -fno-pic to x86 emulator test build. (Patch + also submitted upstream.) Fixes FTBFS on i386 with GCC6. + * Add myself to Uploaders. + + -- Ian Jackson Tue, 01 Nov 2016 18:00:25 +0000 + +xen (4.8.0~rc3-0exp1) experimental; urgency=high + + * New upstream version, Xen 4.8.0 RC3. + Fixes many outstanding CVEs. + * Incorporated many changes from 4.8.0-0ubuntu2 + - libxen-dev is M-A: same + - Work around grep bug http://bugs.launchpad.net/bugs/1547466 + - debian/xen-hypervisor-4.6.xen.cfg: + Additional config file to simplify grub configuration. + - Use new library/abiname scheme. + - Document what xl and xm are in default.xen + - Add libvirtd dependency to xendomains init script + (Thanks to Stefan Bader and others.) + + -- Ian Jackson Mon, 24 Oct 2016 17:31:27 +0100 + +xen (4.6.0-1+nmu2) unstable; urgency=medium + + * Ensure debian/control.md5sum is correctly updated. Fixes FTBFS of + 4.6.0-1+nmu1 on buildds where linux-support-4.2.0-1 is not expected to be + installed. + + -- Ian Campbell Tue, 09 Feb 2016 16:41:16 +0000 + +xen (4.6.0-1+nmu1) unstable; urgency=medium + + * Non-maintainer upload. + * Drop unused patching in of $(PREFIX), $(SBINDIR) and $(BINDIR) + which are no longer used by the upstream build system. + * Use correct/consistent LIBEXEC dirs throughout build + (Closes: #805508). + + -- Ian Campbell Tue, 19 Jan 2016 14:43:54 +0000 + +xen (4.6.0-1) unstable; urgency=medium + + * New upstream release. + * CVE-2015-7812 + * CVE-2015-7813 + * CVE-2015-7814 + * CVE-2015-7835 + * CVE-2015-7969 + * CVE-2015-7970 + * CVE-2015-7971 + * CVE-2015-7972 + + -- Bastian Blank Sun, 01 Nov 2015 21:49:07 +0100 + +xen (4.5.1~rc1-1) experimental; urgency=medium + + [ Ian Campbell ] + * Use xen-init-dom0 from initscript when it is available. + * Install some user facing docs in xen-utils-common. (Closes: #688308) + + [ Bastian Blank ] + * New upstream release candidate. + + -- Bastian Blank Sun, 31 May 2015 21:59:56 +0200 + +xen (4.5.0-1) experimental; urgency=medium + + [ Ian Campbell ] + * New upstream release + + -- Bastian Blank Wed, 21 Jan 2015 20:21:45 +0100 + +xen (4.5.0~rc3-1) experimental; urgency=medium + + * New upstream release candidate. + * Re-add xend config. + + -- Bastian Blank Wed, 17 Dec 2014 22:37:23 +0100 + +xen (4.4.1-6) unstable; urgency=medium + + * Fix starvation of writers in locks. + CVE-2014-9065 + + -- Bastian Blank Thu, 11 Dec 2014 15:56:08 +0100 + +xen (4.4.1-5) unstable; urgency=medium + + * Fix excessive checks of hypercall arguments. + CVE-2014-8866 + * Fix boundary checks of emulated MMIO access. + CVE-2014-8867 + * Fix additional memory leaks in xl. (closes: #767295) + + -- Bastian Blank Sun, 30 Nov 2014 20:13:32 +0100 + +xen (4.4.1-4) unstable; urgency=medium + + [ Bastian Blank ] + * Make operations pre-emptible. + CVE-2014-5146, CVE-2014-5149 + * Don't allow page table updates from non-PV page tables. + CVE-2014-8594 + * Enforce privilege level while loading code segment. + CVE-2014-8595 + * Fix reference counter leak. + CVE-2014-9030 + * Use linux 3.16.0-4 stuff. + * Fix memory leak in xl. (closes: #767295) + + [ Ian Campbell ] + * Add licensing for tools/python/logging to debian/copyright. + (Closes: #759384) + * Correctly include xen-init-name in xen-utils-common. (Closes: #769543) + * xen-utils recommends grub-xen-host package (Closes: #770460) + + -- Bastian Blank Thu, 27 Nov 2014 20:17:36 +0100 + +xen (4.4.1-3) unstable; urgency=medium + + [ Bastian Blank ] + * Remove unused build-depencencies. + * Extend list affected systems for broken interrupt assignment. + CVE-2013-3495 + * Fix race in hvm memory management. + CVE-2014-7154 + * Fix missing privilege checks on instruction emulation. + CVE-2014-7155, CVE-2014-7156 + * Fix uninitialized control structures in FIFO handling. + CVE-2014-6268 + * Fix MSR range check in emulation. + CVE-2014-7188 + + [ Ian Campbell ] + * Install xen.efi into /boot for amd64 builds. + + -- Bastian Blank Fri, 17 Oct 2014 16:27:46 +0200 + +xen (4.4.1-2) unstable; urgency=medium + + * Re-build with correct content. + * Use dh_lintian. + + -- Bastian Blank Wed, 24 Sep 2014 20:23:14 +0200 + +xen (4.4.1-1) unstable; urgency=medium + + * New upstream release. + - Fix several vulnerabilities. (closes: #757724) + CVE-2014-2599, CVE-2014-3124, + CVE-2014-3967, CVE-2014-3968, + CVE-2014-4021 + + -- Bastian Blank Sun, 21 Sep 2014 10:45:47 +0200 + +xen (4.4.0-5) unstable; urgency=medium + + [ Ian Campbell ] + * Expand on the descriptions of some packages. (Closes: #466683) + * Clarify where xen-utils-common is required. (Closes: #612403) + * No longer depend on gawk. Xen can now use any awk one of which is always + present. (Closes: #589176) + * Put core dumps in /var/lib/xen/dump and ensure it exists. + (Closes: #444000) + + [ Bastian Blank ] + * Handle JSON output from xl in xendomains init script. + + -- Bastian Blank Sat, 06 Sep 2014 22:11:20 +0200 + +xen (4.4.0-4) unstable; urgency=medium + + [ Bastian Blank ] + * Also remove unused OCaml packages from control file. + * Make library packages multi-arch: same. (closes: #730417) + * Use debhelper compat level 9. (closes: #692352) + + [ Ian Campbell ] + * Correct contents of /etc/xen/scripts/hotplugpath.sh (Closes: #706283) + * Drop references cpuperf-xen and cpuperf-perfcntr. (Closes: #733847) + * Install xentrace_format(1), xentrace(8) and xentop(1). (Closes: #407143) + + -- Bastian Blank Sat, 30 Aug 2014 13:34:04 +0200 + +xen (4.4.0-3) unstable; urgency=medium + + [ Ian Campbell ] + * Use correct SeaBIOS binary which supports Xen (Closes: #737905). + + [ Bastian Blank ] + * Really update config.{sub,guess}. + + -- Bastian Blank Fri, 29 Aug 2014 16:33:19 +0200 + +xen (4.4.0-2) unstable; urgency=medium + + * Remove broken and unused OCaml-support. + + -- Bastian Blank Mon, 18 Aug 2014 15:18:42 +0200 + +xen (4.4.0-1) unstable; urgency=medium + + [ Bastian Blank ] + * New upstream release. + - Update scripts for compatiblity with latest coreutils. + (closes: #718898) + - Fix guest reboot with xl toolstack. (closes: #727100) + - CVE-2013-6375: Insufficient TLB flushing in VT-d (iommu) code. + (closes: #730254) + - xl support for global VNC options. (closes: #744157) + - vif scripts can now be named relative to /etc/xen/scripts. + (closes: #744160) + - Support for arbitrary sized SeaBIOS binaries. (closes: #737905) + - pygrub searches for extlinux.conf in the expected places. + (closes: #697407) + - Update scripts to use correct syntax for ip command. + (closes: #705659) + * Fix install of xend configs to not break compatibility. + + [ Ian Campbell ] + * Disable blktap1 support using new configure option instead of by patching. + * Disable qemu-traditional and rombios support using new configure option + instead of by patching. No need to build-depend on ipxe any more. + * Use system qemu-xen via new configure option instead of patching. + * Use system seabios via new configure option instead of patching. + * Use EXTRA_CFLAGS_XEN_TOOLS and APPEND_{CPPFLAGS,LDFLAGS} during build. + * Add support for armhf and arm64. + * Update config.{sub,guess}. + + -- Bastian Blank Sat, 09 Aug 2014 13:09:00 +0200 + +xen (4.3.0-3) unstable; urgency=low + + * Revive hypervisor on i386. + + -- Bastian Blank Fri, 18 Oct 2013 00:15:16 +0200 + +xen (4.3.0-2) unstable; urgency=low + + * Force proper install order. (closes: #721999) + + -- Bastian Blank Sat, 05 Oct 2013 15:03:36 +0000 + +xen (4.3.0-1) unstable; urgency=low + + * New upstream release. + - Fix HVM PCI passthrough. (closes: #706543) + * Call configure with proper arguments. + * Remove now empty xen-docs package. + * Disable external code retrieval. + * Drop all i386 hypervisor packages. + * Drop complete blktap support. + * Create /run/xen. + * Make xen-utils recommend qemu-system-x86. (closes: #688311) + - This version comes with audio support. (closes: #635166) + * Make libxenlight and libxlutil public. (closes: #644390) + - Set versioned ABI name. + - Install headers. + - Move libs into normal library path. + * Use build flags in the tools build. + - Fix fallout from harderning flags. + * Update Standards-Version to 3.9.4. No changes. + + -- Bastian Blank Thu, 05 Sep 2013 13:54:03 +0200 + +xen (4.2.2-1) unstable; urgency=low + + * New upstream release. + - Fix build with gcc 4.8. (closes: #712376) + * Build-depend on libssl-dev. (closes: #712366) + * Enable hardening as much as possible. + * Re-enable ocaml build fixes. (closes: #695176) + * Check for out-of-bound values in CPU affinity setup. + CVE-2013-2072 + * Fix information leak on AMD CPUs. + CVE-2013-2076 + * Recover from faults on XRSTOR. + CVE-2013-2077 + * Properly check guest input to XSETBV. + CVE-2013-2078 + + -- Bastian Blank Thu, 11 Jul 2013 00:28:24 +0200 + +xen (4.2.1-2) unstable; urgency=low + + * Actually upload to unstable. + + -- Bastian Blank Sun, 12 May 2013 00:20:58 +0200 + +xen (4.2.1-1) experimental; urgency=low + + * New upstream release. + * Enable usage of seabios. + * Fix some toolchain issues. + + -- Bastian Blank Sat, 11 May 2013 23:55:46 +0200 + +xen (4.2.0-2) experimental; urgency=low + + * Support JSON output in domain init script helper. + + -- Bastian Blank Mon, 01 Oct 2012 15:11:30 +0200 + +xen (4.2.0-1) experimental; urgency=low + + * New upstream release. + + -- Bastian Blank Tue, 18 Sep 2012 13:54:30 +0200 + +xen (4.2.0~rc3-1) experimental; urgency=low + + * New upstream snapshot. + + -- Bastian Blank Fri, 07 Sep 2012 20:28:46 +0200 + +xen (4.2.0~rc2-1) experimental; urgency=low + + * New upstream snapshot. + * Build-depend against libglib2.0-dev and libyajl-dev. + * Disable seabios build for now. + * Remove support for Lenny and earlier. + * Support build-arch and build-indep make targets. + + -- Bastian Blank Sun, 13 May 2012 12:21:10 +0000 + +xen (4.1.4-4) unstable; urgency=high + + * Make several long runing operations preemptible. + CVE-2013-1918 + * Fix source validation for VT-d interrupt remapping. + CVE-2013-1952 + + -- Bastian Blank Thu, 02 May 2013 14:30:29 +0200 + +xen (4.1.4-3) unstable; urgency=high + + * Fix return from SYSENTER. + CVE-2013-1917 + * Fix various problems with guest interrupt handling. + CVE-2013-1919 + * Only save pointer after access checks. + CVE-2013-1920 + * Fix domain locking for transitive grants. + CVE-2013-1964 + + -- Bastian Blank Fri, 19 Apr 2013 13:01:57 +0200 + +xen (4.1.4-2) unstable; urgency=low + + * Use pre-device interrupt remapping mode per default. Fix removing old + remappings. + CVE-2013-0153 + + -- Bastian Blank Wed, 06 Feb 2013 13:04:52 +0100 + +xen (4.1.4-1) unstable; urgency=low + + * New upstream release. + - Disable process-context identifier support in newer CPUs for all + domains. + - Add workarounds for AMD errata. + - Don't allow any non-canonical addresses. + - Use Multiboot memory map if BIOS emulation does not provide one. + - Fix several problems in tmem. + CVE-2012-3497 + - Fix error handling in domain creation. + - Adjust locking and interrupt handling during S3 resume. + - Tighten more resource and memory range checks. + - Reset performance counters. (closes: #698651) + - Remove special-case for first IO-APIC. + - Fix MSI handling for HVM domains. (closes: #695123) + - Revert cache value of disks in HVM domains. + + -- Bastian Blank Thu, 31 Jan 2013 15:44:50 +0100 + +xen (4.1.3-8) unstable; urgency=high + + * Fix error in VT-d interrupt remapping source validation. + CVE-2012-5634 + * Fix buffer overflow in qemu e1000 emulation. + CVE-2012-6075 + * Update patch, mention second CVE. + CVE-2012-5511, CVE-2012-6333 + + -- Bastian Blank Sat, 19 Jan 2013 13:55:07 +0100 + +xen (4.1.3-7) unstable; urgency=low + + * Fix clock jump due to incorrect annotated inline assembler. + (closes: #599161) + * Add support for XZ compressed Linux kernels to hypervisor and userspace + based loaders, it is needed for any Linux kernels newer then Wheezy. + (closes: #695056) + + -- Bastian Blank Tue, 11 Dec 2012 18:54:59 +0100 + +xen (4.1.3-6) unstable; urgency=high + + * Fix error handling in physical to machine memory mapping. + CVE-2012-5514 + + -- Bastian Blank Tue, 04 Dec 2012 10:51:43 +0100 + +xen (4.1.3-5) unstable; urgency=high + + * Fix state corruption due to incomplete grant table switch. + CVE-2012-5510 + * Check range of arguments to several HVM operations. + CVE-2012-5511, CVE-2012-6333 + * Check array index before using it in HVM memory operation. + CVE-2012-5512 + * Check memory range in memory exchange operation. + CVE-2012-5513 + * Don't allow too large memory size and avoid busy looping. + CVE-2012-5515 + + -- Bastian Blank Mon, 03 Dec 2012 19:37:38 +0100 + +xen (4.1.3-4) unstable; urgency=high + + * Use linux 3.2.0-4 stuff. + * Fix overflow in timer calculations. + CVE-2012-4535 + * Check value of physical interrupts parameter before using it. + CVE-2012-4536 + * Error out on incorrect memory mapping updates. + CVE-2012-4537 + * Check if toplevel page tables are present. + CVE-2012-4538 + * Fix infinite loop in compatibility code. + CVE-2012-4539 + * Limit maximum kernel and ramdisk size. + CVE-2012-2625, CVE-2012-4544 + + -- Bastian Blank Tue, 20 Nov 2012 15:51:01 +0100 + +xen (4.1.3-3) unstable; urgency=low + + * Xen domain init script: + - Make sure Open vSwitch is started before any domain. + - Properly handle and show output of failed migration and save. + - Ask all domains to shut down before checking them. + + -- Bastian Blank Tue, 18 Sep 2012 13:26:32 +0200 + +xen (4.1.3-2) unstable; urgency=medium + + * Don't allow writing reserved bits in debug register. + CVE-2012-3494 + * Fix error handling in interrupt assignment. + CVE-2012-3495 + * Don't trigger bug messages on invalid flags. + CVE-2012-3496 + * Check array bounds in interrupt assignment. + CVE-2012-3498 + * Properly check bounds while setting the cursor in qemu. + CVE-2012-3515 + * Disable monitor in qemu by default. + CVE-2012-4411 + + -- Bastian Blank Fri, 07 Sep 2012 19:41:46 +0200 + +xen (4.1.3-1) unstable; urgency=medium + + * New upstream release: (closes: #683286) + - Don't leave the x86 emulation in a bad state. (closes: #683279) + CVE-2012-3432 + - Only check for shared pages while any exist on teardown. + CVE-2012-3433 + - Fix error handling for unexpected conditions. + - Update CPUID masking to latest Intel spec. + - Allow large ACPI ids. + - Fix IOMMU support for PCI-to-PCIe bridges. + - Disallow access to some sensitive IO-ports. + - Fix wrong address in IOTLB. + - Fix deadlock on CPUs without working cpufreq driver. + - Use uncached disk access in qemu. + - Fix buffer size on emulated e1000 device in qemu. + * Fixup broken and remove applied patches. + + -- Bastian Blank Fri, 17 Aug 2012 11:25:02 +0200 + +xen (4.1.3~rc1+hg-20120614.a9c0a89c08f2-5) unstable; urgency=low + + [ Ian Campbell ] + * Set tap device MAC addresses to fe:ff:ff:ff:ff:ff (Closes: #671018) + * Only run xendomains initscript if toolstack is xl or xm (Closes: #680528) + + [ Bastian Blank ] + * Actually build-depend on new enough version of dpkg-dev. + * Add xen-sytem-* meta-packages. We are finally in a position to do + automatic upgrades and this package is missing. (closes: #681376) + + -- Bastian Blank Sat, 28 Jul 2012 10:23:26 +0200 + +xen (4.1.3~rc1+hg-20120614.a9c0a89c08f2-4) unstable; urgency=low + + * Add Build-Using info to xen-utils package. + * Fix build-arch target. + + -- Bastian Blank Sun, 01 Jul 2012 19:52:30 +0200 + +xen (4.1.3~rc1+hg-20120614.a9c0a89c08f2-3) unstable; urgency=low + + * Remove /usr/lib/xen-default. It breaks systems if xenstored is not + compatible. + * Fix init script usage. + * Fix udev rules for emulated network devices: + - Force names of emulated network devices to a predictable name. + + -- Bastian Blank Sun, 01 Jul 2012 16:59:04 +0200 + +xen (4.1.3~rc1+hg-20120614.a9c0a89c08f2-2) unstable; urgency=low + + * Fix pointer missmatch in interrupt functions. Fixes build on i386. + + -- Bastian Blank Fri, 15 Jun 2012 18:00:51 +0200 + +xen (4.1.3~rc1+hg-20120614.a9c0a89c08f2-1) unstable; urgency=low + + * New upstream snapshot. + - Fix privilege escalation and syscall/sysenter DoS while using + non-canonical addresses by untrusted PV guests. (closes: #677221) + CVE-2012-0217 + CVE-2012-0218 + - Disable Xen on CPUs affected by AMD Erratum #121. PV guests can + cause a DoS of the host. + CVE-2012-2934 + * Don't fail if standard toolstacks are not available. (closes: #677244) + + -- Bastian Blank Thu, 14 Jun 2012 17:06:25 +0200 + +xen (4.1.2-7) unstable; urgency=low + + * Really use ucf. + * Update init script dependencies: + - Start $syslog before xen. + - Start drbd and iscsi before xendomains. (closes: #626356) + - Start corosync and heartbeat after xendomains. + * Remove /var/log/xen on purge. (closes: #656216) + + -- Bastian Blank Tue, 22 May 2012 10:44:41 +0200 + +xen (4.1.2-6) unstable; urgency=low + + * Fix generation of architectures for hypervisor packages. + * Remove information about loop devices, it is incorrect. (closes: #503044) + * Update xendomains init script: + - Create directory for domain images only root readable. (closes: #596048) + - Add missing sanity checks for variables. (closes: #671750) + - Remove not longer supported config options. + - Don't fail if no config is available. + - Remove extra output if domain was restored. + + -- Bastian Blank Sun, 06 May 2012 20:07:41 +0200 + +xen (4.1.2-5) unstable; urgency=low + + * Actually force init script rename. (closes: #669341) + * Fix long output from xl. + * Move complete init script setup. + * Rewrite xendomains init script: + - Use LSB output functions. + - Make output more clear. + - Use xen toolstack wrapper. + - Use a python script to properly read domain details. + * Set name for Domain-0. + + -- Bastian Blank Mon, 23 Apr 2012 11:56:45 +0200 + +xen (4.1.2-4) unstable; urgency=low + + [ Bastian Blank ] + * Build-depend on ipxe-qemu instead of ipxe. (closes: #665070) + * Don't longer use a4wide latex package. + * Use ucf for /etc/default/xen. + * Remove handling for old udev rules link and xenstored directory. + * Rename xend init script to xen. + + [ Lionel Elie Mamane ] + * Fix toolstack script to work with old dash. (closes: #648029) + + -- Bastian Blank Mon, 16 Apr 2012 08:47:29 +0000 + +xen (4.1.2-3) unstable; urgency=low + + * Merge xen-common source package. + * Remove xend wrapper, it should not be called by users. + * Support xl in init script. + * Restart xen daemons on upgrade. + * Restart and stop xenconsoled in init script. + * Load xen-gntdev module. + * Create /var/lib/xen. (closes: #658101) + * Cleanup udev rules. (closes: #657745) + + -- Bastian Blank Wed, 01 Feb 2012 19:28:28 +0100 + +xen (4.1.2-2) unstable; urgency=low + + [ Jon Ludlam ] + * Import (partially reworked) upstream changes for OCaml support. + - Rename the ocamlfind packages. + - Remove uuid and log libraries. + - Fix 2 bit-twiddling bugs and an off-by-one + * Fix build of OCaml libraries. + * Add OCaml library and development package. + * Include some missing headers. + + -- Bastian Blank Sat, 10 Dec 2011 19:13:25 +0000 + +xen (4.1.2-1) unstable; urgency=low + + * New upstream release. + * Build-depend on pkg-config. + * Add package libxen-4.1. Includes some shared libs. + + -- Bastian Blank Sat, 26 Nov 2011 18:28:06 +0100 + +xen (4.1.1-3) unstable; urgency=low + + [ Julien Danjou ] + * Remove Julien Danjou from the Uploaders field. (closes: #590439) + + [ Bastian Blank ] + * Use current version of python. (closes: #646660) + * Build-depend against liblzma-dev, it is used if available. + (closes: #646694) + * Update Standards-Version to 3.9.2. No changes. + * Don't use brace-expansion in debhelper install files. + + -- Bastian Blank Wed, 26 Oct 2011 14:42:33 +0200 + +xen (4.1.1-2) unstable; urgency=low + + * Fix hvmloader with gcc 4.6. + + -- Bastian Blank Fri, 05 Aug 2011 23:58:36 +0200 + +xen (4.1.1-1) unstable; urgency=low + + * New upstream release. + * Don't use qemu-dm if it is not needed. (Backport from xen-unstable.) + * Use dh_python2. + + -- Bastian Blank Mon, 18 Jul 2011 19:38:38 +0200 + +xen (4.1.0-3) unstable; urgency=low + + * Add ghostscript to build-deps. + * Enable qemu-dm build. + - Add qemu as another orig tar. + - Remove blktap1, bluetooth and sdl support from qemu. + - Recommend qemu-keymaps and qemu-utils. + + -- Bastian Blank Thu, 28 Apr 2011 15:20:45 +0200 + +xen (4.1.0-2) unstable; urgency=low + + * Re-enable hvmloader: + - Use packaged ipxe. + * Workaround incompatibility with xenstored of Xen 4.0. + + -- Bastian Blank Fri, 15 Apr 2011 11:38:25 +0200 + +xen (4.1.0-1) unstable; urgency=low + + * New upstream release. + + -- Bastian Blank Sun, 27 Mar 2011 18:09:28 +0000 + +xen (4.1.0~rc6-1) unstable; urgency=low + + * New upstream release candidate. + * Build documentation using pdflatex. + * Use python 2.6. (closes: #596545) + * Fix lintian override. + * Install new tools: xl, xenpaging. + * Enable blktap2. + - Use own md5 implementation. + - Fix includes. + - Fix linking of blktap2 binaries. + - Remove optimization setting. + * Temporarily disable hvmloader, wants to download ipxe. + * Remove xenstored pid check from xl. + + -- Bastian Blank Thu, 17 Mar 2011 16:12:45 +0100 + +xen (4.0.1-2) unstable; urgency=low + + * Fix races in memory management. + * Make sure that frame-table compression leaves enough alligned. + * Disable XSAVE support. (closes: #595490) + * Check for dying domain instead of raising an assertion. + * Add C6 state with EOI errata for Intel. + * Make some memory management interrupt safe. Unsure if really needed. + * Raise bar for inter-socket migrations on mostly-idle systems. + * Fix interrupt handling for legacy routed interrupts. + * Allow to set maximal domain memory even during a running change. + * Support new partition name in pygrub. (closes: #599243) + * Fix some comparisions "< 0" that may be optimized away. + * Check for MWAIT support before using it. + * Fix endless loop on interrupts on Nehalem cpus. + * Don't crash upon direct GDT/LDT access. (closes: #609531) + CVE-2010-4255 + * Don't loose timer ticks after domain restore. + * Reserve some space for IOMMU area in dom0. (closes: #608715) + * Fix hypercall arguments after trace callout. + * Fix some error paths in vtd support. Memory leak. + * Reinstate ACPI DMAR table. + + -- Bastian Blank Wed, 12 Jan 2011 15:01:40 +0100 + +xen (4.0.1-1) unstable; urgency=low + + * New upstream release. + - Fix IOAPIC S3 with interrupt remapping enabled. + + -- Bastian Blank Fri, 03 Sep 2010 17:14:28 +0200 + +xen (4.0.1~rc6-1) unstable; urgency=low + + * New upstream release candidate. + - Add some missing locks for page table walk. + - Fix NMU injection into guest. + - Fix ioapic updates for vt-d. + - Add check for GRUB2 commandline behaviour. + - Fix handling of invalid kernel images. + - Allow usage of powernow. + * Remove lowlevel python modules usage from pygrub. (closes: #588811) + + -- Bastian Blank Tue, 17 Aug 2010 23:15:34 +0200 + +xen (4.0.1~rc5-1) unstable; urgency=low + + * New upstream release candidate. + + -- Bastian Blank Mon, 02 Aug 2010 17:06:27 +0200 + +xen (4.0.1~rc3-1) unstable; urgency=low + + * New upstream release candidate. + * Call dh_pyversion with the correct version. + * Restart xen daemon on upgrade. + + -- Bastian Blank Wed, 30 Jun 2010 16:30:47 +0200 + +xen (4.0.0-2) unstable; urgency=low + + * Fix python dependency. (closes: #586666) + - Use python-support. + - Hardcode to use python 2.5 for now. + + -- Bastian Blank Mon, 21 Jun 2010 17:23:16 +0200 + +xen (4.0.0-1) unstable; urgency=low + + * Update to unstable. + * Fix spelling in README. + * Remove unnecessary build-depends. + * Fixup xend to use different filename lookup. + + -- Bastian Blank Thu, 17 Jun 2010 11:16:55 +0200 + +xen (4.0.0-1~experimental.2) experimental; urgency=low + + * Merge changes from 3.4.3-1. + + -- Bastian Blank Fri, 28 May 2010 12:58:12 +0200 + +xen (4.0.0-1~experimental.1) experimental; urgency=low + + * New upstream version. + * Rename source package to xen. + * Build depend against iasl and uuid-dev. + * Disable blktap2 support, it links against OpenSSL. + * Update copyright file. + + -- Bastian Blank Thu, 06 May 2010 15:47:38 +0200 + +xen-3 (3.4.3-1) unstable; urgency=low + + * New upstream version. + * Disable blktap support, it is unusable with current kernels. + * Disable libaio, was only used by blktap. + * Drop device creation support. (closes: #583283) + + -- Bastian Blank Fri, 28 May 2010 11:43:18 +0200 + +xen-3 (3.4.3~rc6-1) unstable; urgency=low + + * New upstream release candidate. + - Relocate multiboot modules. (closes: #580045) + - Support grub2 in pygrub. (closes: #573311) + + -- Bastian Blank Sat, 08 May 2010 11:32:29 +0200 + +xen-3 (3.4.3~rc3-2) unstable; urgency=low + + * Again list the complete version in the hypervisor. + * Fix path detection for bootloader, document it. (closes: #481105) + * Rewrite README. + + -- Bastian Blank Thu, 08 Apr 2010 16:14:58 +0200 + +xen-3 (3.4.3~rc3-1) unstable; urgency=low + + * New upstream release candidate. + * Use 3.0 (quilt) source format. + * Always use current python version. + + -- Bastian Blank Mon, 01 Mar 2010 22:14:22 +0100 + +xen-3 (3.4.2-2) unstable; urgency=low + + * Remove Jeremy T. Bouse from uploaders. + * Export blktap lib and headers. + * Build amd64 hypervisor on i386. (closes: #366315) + + -- Bastian Blank Sun, 22 Nov 2009 16:54:47 +0100 + +xen-3 (3.4.2-1) unstable; urgency=low + + * New upstream version. + * Strip hvmloader by hand. + * Remove extra license file from libxen-dev. + + -- Bastian Blank Mon, 16 Nov 2009 20:57:07 +0100 + +xen-3 (3.4.1-1) unstable; urgency=low + + * New upstream version. + + -- Bastian Blank Fri, 21 Aug 2009 21:34:38 +0200 + +xen-3 (3.4.0-2) unstable; urgency=low + + * Add symbols file for libxenstore3.0. (closes: #536173) + * Document that ioemu is currently unsupported. (closes: #536175) + * Fix location of fsimage plugins. (closes: #536174) + + -- Bastian Blank Sat, 18 Jul 2009 18:05:35 +0200 + +xen-3 (3.4.0-1) unstable; urgency=low + + [ Bastian Blank ] + * New upstream version. + * Remove ioemu for now. (closes: #490409, #496367) + * Remove non-pae hypervisor. + * Use debhelper compat level 7. + * Make the init script start all daemons. + + -- Bastian Blank Tue, 30 Jun 2009 22:33:22 +0200 + +xen-3 (3.2.1-2) unstable; urgency=low + + * Use e2fslibs based ext2 support for pygrub. (closes: #476366) + * Fix missing checks in pvfb code. + See CVE-2008-1952. (closes: #487095) + * Add support for loading bzImage files. (closes: #474509) + * Enable TLS support in ioemu code. + * Drop libcrypto usage because of GPL-incompatibility. + * Remove AES code from blktap drivers. Considered broken. + + -- Bastian Blank Sat, 28 Jun 2008 11:30:43 +0200 + +xen-3 (3.2.1-1) unstable; urgency=low + + * New upstream version. + * Set rpath relative to ${ORIGIN}. + * Add lintian override to xen-utils package. + + -- Bastian Blank Thu, 22 May 2008 14:01:47 +0200 + +xen-3 (3.2.0-5) unstable; urgency=low + + * Provide correct directory to dh_pycentral. + + -- Bastian Blank Mon, 14 Apr 2008 21:43:49 +0200 + +xen-3 (3.2.0-4) unstable; urgency=low + + * Pull in newer xen-utils-common. + * Fix missing size checks in the ioemu block driver. (closes: #469654) + See: CVE-2008-0928 + + -- Bastian Blank Fri, 07 Mar 2008 14:21:38 +0100 + +xen-3 (3.2.0-3) unstable; urgency=low + + * Clean environment for build. + * Add packages libxenstore3.0 and xenstore-utils. + * Move docs package in docs section to match overwrites. + * Make the hypervisor only recommend the utils. + * Cleanup installation. (closes: #462989) + + -- Bastian Blank Tue, 12 Feb 2008 12:40:56 +0000 + +xen-3 (3.2.0-2) unstable; urgency=low + + * Fix broken patch. (closes: #462522) + + -- Bastian Blank Sat, 26 Jan 2008 17:21:52 +0000 + +xen-3 (3.2.0-1) unstable; urgency=low + + * New upstream version. + * Add package libxen-dev. Including public headers and static libs. + (closes: #402249) + * Don't longer install xenfb, removed upstream. + + -- Bastian Blank Tue, 22 Jan 2008 12:51:49 +0000 + +xen-3 (3.1.2-2) unstable; urgency=low + + * Add missing rpath definitions. + * Fix building of pae version. + + -- Bastian Blank Sat, 08 Dec 2007 12:07:42 +0000 + +xen-3 (3.1.2-1) unstable; urgency=high + + * New upstream release: + - Move shared file into /var/run. (closes: #447795) + See CVE-2007-3919. + - x86: Fix various problems with debug-register handling. (closes: #451626) + See CVE-2007-5906. + + -- Bastian Blank Sat, 24 Nov 2007 13:24:45 +0000 + +xen-3 (3.1.1-1) unstable; urgency=low + + * New upstream release: + - Don't use exec with untrusted values in pygrub. (closes: #444430) + See CVE-2007-4993. + + -- Bastian Blank Fri, 19 Oct 2007 16:02:37 +0000 + +xen-3 (3.1.0-2) unstable; urgency=low + + * Switch to texlive for documentation. + * Drop unused transfig. + * Drop unused latex features from documentation. + * Build depend against gcc-multilib for amd64. (closes: #439662) + + -- Bastian Blank Fri, 31 Aug 2007 08:15:50 +0000 + +xen-3 (3.1.0-1) unstable; urgency=low + + [ Julien Danjou ] + * New upstream version. + + [ Ralph Passgang ] + * Added graphviz to Build-Indeps + + [ Bastian Blank ] + * Upstream removed one part of the version. Do it also. + * Merge utils packages. + * Install blktap support. + * Install pygrub. + * Install xenfb tools. + * xenconsoled startup is racy, wait a little bit. + + -- Bastian Blank Mon, 20 Aug 2007 15:05:08 +0000 + +xen-3.0 (3.0.4-1-1) unstable; urgency=low + + [ Bastian Blank ] + * New upstream version (closes: #394411) + + [ Guido Trotter ] + * Actually try to build and release xen 3.0.4 + * Update build dependencies + + -- Guido Trotter Wed, 23 May 2007 11:57:29 +0100 + +xen-3.0 (3.0.3-0-2) unstable; urgency=medium + + [Bastian Blank] + * Remove device recreate code. + * Remove build dependency on linux-support-X + + [ Guido Trotter ] + * Add missing build dependency on zlib1g-dev (closes: #396557) + * Add missing build dependencies on libncurses5-dev and x11proto-core-dev + (closes: #396561, #396567) + + -- Guido Trotter Thu, 2 Nov 2006 16:38:02 +0000 + +xen-3.0 (3.0.3-0-1) unstable; urgency=low + + * New upstream version. + + -- Bastian Blank Fri, 20 Oct 2006 11:04:35 +0000 + +xen-3.0 (3.0.3~rc4+hg11760-1) unstable; urgency=low + + * New upstream snapshot. + * Ignore update-grub errors. (closes: #392534) + + -- Bastian Blank Sat, 14 Oct 2006 13:09:53 +0000 + +xen-3.0 (3.0.3~rc1+hg11686-1) unstable; urgency=low + + * New upstream snapshot. + * Rename ioemu package to include the complete version. + * Fix name of hypervisor. (closes: #391771) + + -- Bastian Blank Mon, 9 Oct 2006 12:48:13 +0000 + +xen-3.0 (3.0.2-3+hg9762-1) unstable; urgency=low + + * New upstream snapshot. + * Rename hypervisor and utils packages to include the complete version. + * Redo build environment. + + -- Bastian Blank Mon, 4 Sep 2006 18:43:12 +0000 + +xen-3.0 (3.0.2+hg9697-2) unstable; urgency=low + + [ Guido Trotter ] + * Update xen-utils' README.Debian (closes: #372524) + + [ Bastian Blank ] + * Adopt new python policy. (closes: #380990) + * Add patch to make new kernels working on the hypervisor. + + -- Bastian Blank Tue, 15 Aug 2006 19:20:08 +0000 + +xen-3.0 (3.0.2+hg9697-1) unstable; urgency=low + + [ Guido Trotter ] + * Update Standards Version + * Merge upstream fixes trunk (upstream 3.0.2-3 + a couple of fixes) + + [ Bastian Blank ] + * Add xen-ioemu-3.0 package to support HVM guests (closes: #368496) + + -- Guido Trotter Wed, 31 May 2006 10:50:05 +0200 + +xen-3.0 (3.0.2+hg9681-1) unstable; urgency=low + + * Update xen-hypervisor-3.0-i386 and xen-hypervisor-3.0-i386-pae + descriptions, specifying what the difference between the two packages is + (closes: #366019) + * Merge upstream fixes trunk + + -- Guido Trotter Thu, 18 May 2006 15:25:02 +0200 + +xen-3.0 (3.0.2+hg9656-1) unstable; urgency=low + + * Merge upstream fixes trunk + - This includes a fix for CVE-2006-1056 + + -- Guido Trotter Thu, 27 Apr 2006 17:34:03 +0200 + +xen-3.0 (3.0.2+hg9651-1) unstable; urgency=low + + * Merge upstream fixes trunk + * Fix PAE disabled in pae build (Closes: #364875) + + -- Julien Danjou Wed, 26 Apr 2006 13:19:39 +0200 + +xen-3.0 (3.0.2+hg9646-1) unstable; urgency=low + + [ Guido Trotter ] + * Merge upstream fixes trunk + + [ Bastian Blank ] + * debian/patches/libdir.dpatch: Update to make xm save work + + -- Julien Danjou Mon, 24 Apr 2006 18:02:07 +0200 + +xen-3.0 (3.0.2+hg9611-1) unstable; urgency=low + + * Merge upstream bug fixes + * Fix bug with xend init.d script + + -- Julien Danjou Wed, 12 Apr 2006 17:35:35 +0200 + +xen-3.0 (3.0.2+hg9598-1) unstable; urgency=low + + * New upstream release + * Fix copyright file + + -- Julien Danjou Mon, 10 Apr 2006 17:02:55 +0200 + +xen-3.0 (3.0.1+hg8762-1) unstable; urgency=low + + * The "preserve our homes" release + * Now cooperatively maintained by the Debian Xen Team + * New upstream release (closes: #327493, #342249) + * Build depend on transfig (closes: #321157) + * Use gcc rather than gcc-3.4 to compile (closes: #323698) + * Split xen-hypervisor-3.0 and xen-utils-3.0 + * Build both normal and pae hypervisor packages + * Change maintainer and add uploaders field + * Add force-reload support for init script xendomains + * Remove dependency against bash + * Bump standards version to 3.6.2.2 + * xen-utils-3.0 conflicts and replaces xen + * Add dpatch structure to the package + * Remove build-dependency on gcc (it's build essential anyway) + * Make SrvServer.py not executable + * Create NEWS.Debian file with important upgrade notices + * Update copyright file + * Remove the linux-patch-xen package + * Removed useless build-dependencies: libncurses5-dev, wget + * Changed xendomains config path to /etc/default + * xen-utils-3.0 now provides xen-utils and xen-hypervisor-3.0-i386 & + xen-hypervisor-3.0-i386-pae & xen-hypervizor-amd64 now provide + xen-hypervisor + * Made xen-utils-3.0.postinst more fault-tolerant, so that upgrading + xen2 -> xen3 don't fail because of a running xen2 hypervisor + * Updated the "Replaces & Conflicts" + * Install only and correctly udev files + * Compile date is no more in current locale + * Add patch which add the debian version and maintainer in the version + string and removes the banner. + * Don't install unusable cruft in xen-utils + * Remove libxen packages (no stable API/ABI) + + -- Julien Danjou Wed, 5 Apr 2006 16:05:07 +0200 + +xen (2.0.6-1) unstable; urgency=low + + * Patches applied upstream: non-xen-init-exit.patch, add-build.patch, + python-install.patch, disable-html-docs.patch. + * New upstream released. Closes: #311336. + * Remove comparison to UML from xen short description. Closes: #317066. + * Make packages conflicts with 1.2 doc debs. Closes: #304285. + * Add iproute to xen depends, as it uses /bin/ip. Closes: #300488, + #317468. + + -- Adam Heath Wed, 06 Jul 2005 12:35:50 -0500 + +xen (2.0.5-3) experimental; urgency=low + + * Change priority/section to match the overrides file. + + -- Adam Heath Fri, 18 Mar 2005 12:43:50 -0600 + +xen (2.0.5-2) experimental; urgency=low + + * Mike McCallister , + Tommi Virtanen , Tom Hibbert : + Fix missing '.' in update-rc.d call in xen.postinst. Closes: #299384 + + -- Adam Heath Fri, 18 Mar 2005 11:39:56 -0600 + +xen (2.0.5-1) experimental; urgency=low + + * New upstream. + * Remove pic-lib.patch, tools-misc-TARGETS.patch, and clean-mttr.patch + as they have been applied upstream(in various forms). + * xend now starts at priority 20, stops at 21, while xendomains starts + at 21, and stops at 20. + + -- Adam Heath Fri, 11 Mar 2005 14:33:33 -0600 + +xen (2.0.4-4) experimental; urgency=low + + * Bah, major booboo. Add /boot to debian/xen.install, so xen.gz will + get shipped. Reported by Clint Adams . + + -- Adam Heath Tue, 15 Feb 2005 13:00:57 -0600 + +xen (2.0.4-3) experimental; urgency=low + + * Fix file overlap(/usr/share/doc/xen/examples/*) between xen and + xen-docs. Reported by Tupshin Harper . + + -- Adam Heath Sun, 06 Feb 2005 01:22:45 -0600 + +xen (2.0.4-2) experimental; urgency=low + + * Fix kernel patch generation. It was broken when I integrated with + debian's kernel source. I used a symlink, and diff doesn't follow + those. + + -- Adam Heath Sat, 05 Feb 2005 18:16:35 -0600 + +xen (2.0.4-1) experimental; urgency=low + + * New upstream. + * xen.deb can now install on a plain kernel; that is, the init scripts + exit successfully if /proc/xen/privcmd doesn't exist. This allows + for dual-boot setups. + * Manpages do not yet exist xend, xenperf, xensv, xfrd, nor xm. xend + xfrd are daemons, and take little if any options. I've not had a need + to use xenperf nor xensv yet. xm has nice built in help(xm help). + * Upstream now requires either linux 2.4.29, or 2.6.10. Since 2.4.29 is + not yet in debian, disable the 2.4 patch generation. Closes: #271245. + * Not certain how the kernel-patch-xen was empty. It's not now, with + the repackaging. Closes: #272299. + * Xen no longer produces kernel images, so problems about missing features + are no longer valid. Closes: #253924. + * Acknowledge nmu bugs: + * No longer build-depend on gcc 3.3, as the default gcc works. Closes: + #243048. + + -- Adam Heath Sat, 05 Feb 2005 18:04:27 -0600 + +xen (2.0.3-0.1) unstable; urgency=low + + * Changes from Tommi Virtanen: + * Added dh-kpatches and libcurl3-dev to Build-Depends. + * Add /etc/xen/sv/params.py and /etc/xen/xend/params.py. + * Add xmexample1 and xmexample2 to xen/doc/examples. + + -- Adam Heath Wed, 26 Jan 2005 10:55:07 -0600 + +xen (2.0.3-0) unstable; urgency=low + + * New upstream. Closes: #280733. + * Repackaged from scratch. + * Using unreleased patch management system. See debian/README.build. + * After extracting the .dsc, there are no special steps needed + * Those wanting to change the source, use the normal procedures for + any package, including using interdiff(or other tool) to send a + patch to me or the bts. + * No longer try to do anything fancy with regard to the layout of the + built kernels. Now, only patches are distributed. Please make use of + the xen support in kernel-package. + * Early preview release to #debian-devel. + + -- Adam Heath Tue, 25 Jan 2005 13:24:54 -0600 + +xen (1.2-4.1) unstable; urgency=high + + * NMU + * Remove gcc-3.2 from Build-Depends as isn't used during build + (Closes: #243048) + + -- Frank Lichtenheld Sat, 21 Aug 2004 17:42:28 +0200 + +xen (1.2-4) unstable; urgency=low + + * Added xen-docs.README.Debian, which explains the kernel image layout, + and contains references on the locations differ from what is mentioned + by the upstream documentation. Closes: #230345. + + -- Adam Heath Fri, 26 Mar 2004 17:36:41 -0600 + +xen (1.2-3) unstable; urgency=low + + * Add kernel-source-2.4.25 and kernel-patch-debian-2.4.25 to + Build-Depends-Indep. + + -- Adam Heath Tue, 23 Mar 2004 20:14:39 -0600 + +xen (1.2-2) unstable; urgency=low + + * xen: moved /boot/xen.gz to /usr/lib/kernels/xen-i386/images/vmlinuz + * kernel-image, kernel-modules: swapped i386/xeno to xeno/i386 in + /usr/lib/kernels. + * Add kernel-patch-nfs-swap deb. + * Apply additional patches to kernel-image-xen: + * nfs-group + * nfs-swap + + -- Adam Heath Thu, 04 Mar 2004 12:47:47 -0600 + +xen (1.2-1) unstable; urgency=low + + * Initial version. + + -- Adam Heath Tue, 02 Mar 2004 13:21:52 -0600 diff --git a/compat b/compat new file mode 100644 index 0000000000..f599e28b8a --- /dev/null +++ b/compat @@ -0,0 +1 @@ +10 diff --git a/control b/control new file mode 100644 index 0000000000..1f88f1a40f --- /dev/null +++ b/control @@ -0,0 +1,295 @@ +Source: xen +Priority: optional +Maintainer: Debian Xen Team +Uploaders: Ian Jackson , Hans van Kranenburg +Section: admin +Standards-Version: 4.5.0 +Build-Depends: + debhelper (>= 10), + dh-exec, + dpkg-dev (>= 1.16.0~), + file, + rdfind, + lsb-release, + flex, bison, + python3-dev:any, + libpython3-dev, + dh-python, + bcc [i386 amd64], + gcc-multilib [i386 amd64], + e2fslibs-dev, + iasl, + seabios (>= 1.7.4-2~) [i386 amd64], + libaio-dev, + libfdt-dev [armhf arm64], + libglib2.0-dev, + liblzma-dev, + libncurses-dev, + libpixman-1-dev, + libyajl-dev, + pkg-config, + uuid-dev, + zlib1g-dev, + pandoc, + markdown, + ocaml-native-compilers | ocaml-nox, + ocaml-findlib, +Homepage: https://xenproject.org/ +Vcs-Browser: https://salsa.debian.org/xen-team/debian-xen +Vcs-Git: https://salsa.debian.org/xen-team/debian-xen.git + +Package: xenstore-utils +Architecture: amd64 arm64 armhf i386 +Section: admin +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: xen-utils-common (<= 4.11.1~pre+1.733450b39b-1~) +Breaks: xen-utils-common (<= 4.11.1~pre+1.733450b39b-1~) +Suggests: xen-doc +Description: Xenstore command line utilities for Xen + This package contains command line utilities for interacting with + XenStore. + . + XenStore is a shared database used for interdomain communication of + configuration and status information. It is accessible to all domains + running on the same Xen host. See https://wiki.xen.org/wiki/XenStore for + more information. + . + In the common case these tools are used by the Xen toolstack running in + domain0 (or a driver domain) however they may also be used in a guest + domain to support local scripting which wants to communicate via XenStore. + +Package: xen-utils-common +Section: admin +Architecture: amd64 i386 armhf arm64 +Depends: lsb-base, udev, xenstore-utils, + ${shlibs:Depends}, ${python3:Depends}, ${misc:Depends} +Suggests: xen-doc +Description: Xen administrative tools - common files + The userspace tools to manage a system virtualized through the Xen virtual + machine monitor. + . + This package is only required on the host system (Domain 0) and not on the + virtual guest systems (Domain U). + +Package: xen-hypervisor-common +Section: kernel +Architecture: all +Depends: ${misc:Depends} +Replaces: xen-hypervisor-4.8-amd64, xen-hypervisor-4.8-arm64, xen-hypervisor-4.8-armhf +Description: Xen Hypervisor - common files + The configuration which arranges for an installed hypervisor to be booted + as default, with the right command line arguments passed to both + hypervisor and host (Domain 0) kernel. + . + This package is only required on the host system (Domain 0) and not on the + virtual guest systems (Domain U). + +Package: xen-doc +Section: doc +Architecture: amd64 i386 armhf arm64 +Depends: ${misc:Depends} +Description: XEN documentation + Documentation for the Xen hypervisor and surrounding software, + including descriptions of the hypercall interfaces and of some + of the library APIs. + . + You do not need this package for the primary manpages for the + Xen control utilities, as those are in the xen-utils-common package. +# Yes, arch-specific. See xen-doc.lintian-overrides. + +Package: xen-utils-4.14 +Section: admin +Architecture: amd64 arm64 armhf i386 +Provides: xen-utils +Depends: ${shlibs:Depends}, ${misc:Depends}, python3, xen-utils-common (>= ${source:Version}) +Recommends: bridge-utils, libc6-xen [i386], xen-hypervisor-4.14, qemu-system-x86, grub-xen-host [i386 amd64] +Suggests: qemu-utils [i386 amd64], seabios [i386 amd64], ovmf +Description: XEN administrative tools + The userspace tools to manage a system virtualized through the XEN virtual + machine monitor. + . + qemu-utils and seabios are neded for "Xen HVM" (amd64 and i386) +Built-Using: ${misc:Built-Using} + +Package: xen-hypervisor-4.14-amd64 +Section: kernel +Architecture: amd64 i386 +Provides: xen-hypervisor, xen-hypervisor-4.14, xen-hypervisor-amd64 +Depends: ${misc:Depends} +Recommends: xen-utils-4.14, xen-hypervisor-common +Description: Xen Hypervisor on AMD64 + The hypervisor is the "core" for XEN itself. It gets booted by the boot + loader and controls cpu and memory, sharing them between your + administrative domain (Domain 0) and the virtual guest systems. + . + In order to boot a XEN system along with this package you also need a + kernel specifically crafted to work as the Domain 0, mediating hardware + access for XEN itself. + +Package: xen-system-amd64 +Section: admin +Architecture: amd64 i386 +Provides: xen-system +Depends: xen-hypervisor-4.14-amd64, xen-hypervisor-common, xen-utils-4.14, ${misc:Depends} +Description: Xen System on AMD64 (metapackage) + This package depends on the latest Xen hypervisor for use on AMD64 and the + Xen utils. + +Package: xen-hypervisor-4.14-arm64 +Section: kernel +Architecture: arm64 +Provides: xen-hypervisor, xen-hypervisor-4.14, xen-hypervisor-arm64 +Depends: ${misc:Depends} +Recommends: xen-utils-4.14, xen-hypervisor-common +Description: Xen Hypervisor on ARM64 + The hypervisor is the "core" for XEN itself. It gets booted by the boot + loader and controls cpu and memory, sharing them between your + administrative domain (Domain 0) and the virtual guest systems. + . + In order to boot a XEN system along with this package you also need a + kernel specifically crafted to work as the Domain 0, mediating hardware + access for XEN itself. + +Package: xen-system-arm64 +Section: admin +Architecture: arm64 +Provides: xen-system +Depends: xen-hypervisor-4.14-arm64, xen-hypervisor-common, xen-utils-4.14, ${misc:Depends} +Description: Xen System on ARM64 (metapackage) + This package depends on the latest Xen hypervisor for use on ARM64 and the + Xen utils. + +Package: xen-hypervisor-4.14-armhf +Section: kernel +Architecture: armhf +Provides: xen-hypervisor, xen-hypervisor-4.14, xen-hypervisor-armhf +Depends: ${misc:Depends} +Recommends: xen-utils-4.14, xen-hypervisor-common +Description: Xen Hypervisor on ARMHF + The hypervisor is the "core" for XEN itself. It gets booted by the boot + loader and controls cpu and memory, sharing them between your + administrative domain (Domain 0) and the virtual guest systems. + . + In order to boot a XEN system along with this package you also need a + kernel specifically crafted to work as the Domain 0, mediating hardware + access for XEN itself. + +Package: xen-system-armhf +Section: admin +Architecture: armhf +Provides: xen-system +Depends: xen-hypervisor-4.14-armhf, xen-hypervisor-common, xen-utils-4.14, ${misc:Depends} +Description: Xen System on ARMHF (metapackage) + This package depends on the latest Xen hypervisor for use on ARMHF and the + Xen utils. + +Package: libxen-dev +Section: libdevel +Architecture: amd64 arm64 armhf i386 +Depends: ${shlibs:Depends}, ${misc:Depends}, + libxenmisc4.14 (= ${binary:Version}), + libxencall1 (= ${binary:Version}), + libxendevicemodel1 (= ${binary:Version}), + libxenevtchn1 (= ${binary:Version}), + libxenforeignmemory1 (= ${binary:Version}), + libxengnttab1 (= ${binary:Version}), + libxenstore3.0 (= ${binary:Version}), + libxentoolcore1 (= ${binary:Version}), + libxentoollog1 (= ${binary:Version}), + libxenhypfs1 (= ${binary:Version}), +Description: Public headers and libs for Xen + This package contains the public headers and static libraries for Xen. + . + The libxenlight library is intended as a common base for all Xen toolstack + developers. The libxlutil library contains additional helpers which may + be useful to toolstack developers. + . + The libxenstore library allows userspace processes to interact with + the XenStore database. Command line tools for accessing xenstore are + provided is via the xenstore-utils package. + . + Most of the other included libraries are internal, and intended for + use by the Xen toolstack, rather than directly. + +Package: libxenmisc4.14 +Section: libs +Architecture: amd64 arm64 armhf i386 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Xen runtime libraries - miscellaneous, versioned ABI + Shared libraries for Xen utilities. + This package contains libraries whose ABI changes with each + new upstream Xen release, which include ones which embed + knowledge of hypervisor-version-specific hypercall ABIs. +Multi-Arch: same + +Package: libxencall1 +Section: libs +Architecture: amd64 arm64 armhf i386 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Xen runtime library - libxencall + Shared library for Xen utilities. +Multi-Arch: same + +Package: libxendevicemodel1 +Section: libs +Architecture: amd64 arm64 armhf i386 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Xen runtime libraries - libxendevicemodel + Shared library for Xen utilities. +Multi-Arch: same + +Package: libxenevtchn1 +Section: libs +Architecture: amd64 arm64 armhf i386 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Xen runtime libraries - libxenevtchn + Shared library for Xen utilities. +Multi-Arch: same + +Package: libxenforeignmemory1 +Section: libs +Architecture: amd64 arm64 armhf i386 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Xen runtime libraries - libxenforeignmemory + Shared library for Xen utilities. +Multi-Arch: same + +Package: libxengnttab1 +Section: libs +Architecture: amd64 arm64 armhf i386 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Xen runtime libraries - libxengnttab + Shared library for Xen utilities. +Multi-Arch: same + +Package: libxenstore3.0 +Section: libs +Architecture: amd64 arm64 armhf i386 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Xen runtime libraries - libxenstore + Shared library for Xen utilities. +Multi-Arch: same + +Package: libxentoolcore1 +Section: libs +Architecture: amd64 arm64 armhf i386 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Xen runtime libraries - libxentoolcore + Shared library for Xen utilities. +Multi-Arch: same + +Package: libxentoollog1 +Section: libs +Architecture: amd64 arm64 armhf i386 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Xen runtime libraries - libxentoollog + Shared library for Xen utilities. +Multi-Arch: same + +Package: libxenhypfs1 +Section: libs +Architecture: amd64 arm64 armhf i386 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Xen runtime library - libxenhypfs + Shared library for Xen utilities. +Multi-Arch: same diff --git a/control.md5sum b/control.md5sum new file mode 100644 index 0000000000..8a45735f3c --- /dev/null +++ b/control.md5sum @@ -0,0 +1,17 @@ +90846bd8cd1227c290d02071e1f3b141 debian/changelog +dc7b5d9f0538e3180af4e9aff9b0bd57 debian/bin/gencontrol.py +9e089bdfb9c848da38da7f50e37a5502 debian/templates/control.main.in +a15fa64ce6deead28d33c1581b14dba7 debian/templates/xen-hypervisor.postinst.in +28356e01cce3f5f226bacec4c49a7f1e debian/templates/control.system.latest.in +03f63e67cf2d915bfbb535f8c9d9e2e4 debian/templates/xen-utils.postinst.in +63ad8a975156f7bf2327f0e1dc7fc9e2 debian/templates/control.source.in +22492e0565a4754b5e008ca7cac871da debian/templates/xen-hypervisor.postrm.in +02ec00ee85d07ab4eb277a91df014e0c debian/templates/control.hypervisor.in +4974334083116945da78ec656b4371f5 debian/templates/control.utils.in +dcabf82578122540e0534f72750698d5 debian/templates/xen-utils.lintian-overrides.in +b6acd21c3924e6ec6f9c547afbbc7d9e debian/templates/xen-utils.prerm.in +9851cdcecfae45a8c4f95ef676e26973 debian/arch/defines +bda767ffd62b57de88b50731794f1374 debian/arch/i386/defines +06efb201e83233c4607b13c8dad5c031 debian/arch/armhf/defines +afd11afd204a8929340d194894572353 debian/arch/amd64/defines +b6a35272efc8545fafab547e1cf492cb debian/arch/arm64/defines diff --git a/copyright b/copyright new file mode 100644 index 0000000000..9a0736c277 --- /dev/null +++ b/copyright @@ -0,0 +1,307 @@ +This work was downloaded from + + http://xenbits.xensource.com/ + +Copyright: + + Copyright (C) 1998-2005 Hewlett-Packard Co + 1999-2006 Silicon Graphics, Inc + 2001-2006 IBM Corporation + 2005-2006 XenSource Inc + 2006-2010 Citrix Systems Inc. + and many others + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. + + This package 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 + +On Debian systems, the complete text of the GNU General +Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +The bundled qemu is: + + Copyright (C) 2007 Alexander Graf + 2005,2007 Alex Beregszaszi + 2005-2008 Andrzej Zaborowski + 2005-2007 Anthony Liguori + 2004 Antony T Curtis + 2007 Arastra, Inc. + 2007 Armin Kuster or + 1999 AT&T Laboratories Cambridge + 2006,2007 Aurelien Jarno + 2007-2008 AXIS Communications AB + 2007-2008 Bull S.A.S. + 2006 Christian Limpach + 2008 Citrix Systems, Inc. + 2005-2008 CodeSourcery + 2007 Dan Aloni + 1995,1996 Danny Gasparovski + 2000-2003 David McCullough + 2008 Dmitry Baryshkov + 2007-2009 Edgar E. Iglesias, Axis Communications AB. + 1996-1999 Eduardo Horvath + 1998,2003-2008 Fabrice Bellard + 2005 Filip Navara + 2006 Frederick Reeve + 2009 Freescale Semiconductor + 1986-2007 Free Software Foundation, Inc. + 2004 Gianni Tedesco + 2008 Gleb Natapov + 2002 Greg Ungerer + 2007-2009 Hervé Poussineau + 2005,2007,2008 IBM Corporation + 2008 IBM Corporation + 2006 Igor Kovalenko + 2006 InnoTek Systemberatung GmbH + 1999-2008 Intel Corporation + 2009 Isaku Yamahata + 2003-2004 James Yonan + 2008 Jan Kiszka + 2006 Joachim Henke + 2003-2007 Jocelyn Mayer + 2004,2005 Johannes E. Schindelin + 2005 Julian Chesterfield and Andrew Warfield. + 2008 Kamala Narasimhan + 1998 Kenneth Albanowski + 2008 Kevin Wolf + 2009 Kevin Wolf + 2009 Laurent Vivier + 2007-2008 Lauro Ramos Venancio + 2000,2001 Lineo, by David McCullough + 1991,1992,1996 Linus Torvalds + 2006 Lonnie Mendez + 2008 Lubomir Rintel + 2004,2007 Magnus Damm + 2004 Makoto Suzuki (suzu) + 2002-2006 Marcel Holtmann + 2006 Marius Groeger (FPU operations) + 2007 Marko Kohtala + 2002-2003 Maxim Krasnyansky + 2008 Max Krasnyansky + 2005,2008 Mike Kronenberg + 2007 MontaVista Software, Inc + 2007 Neocleus Corporation. + 2007-2008 Nokia Corporation + 2001 OKTET Ltd., St.-Petersburg, Russia + 2006-2008 Openedhand Ltd. + 2007-2008 OpenMoko, Inc. + 1996 Paul Mackerras. + 2008 Paul Mundt + 2006 Pierre d'Herbemont + 2000-2001 Qualcomm Incorporated + 2006-2008 Qumranet Technologies + 1997-1999,2001,2009 Red Hat, Inc. + 1988,1989,1990,1991,1992 Richard Outerbridge + 2007 Robert Reif + 1998-2004 Samuel Rydh (samuel@ibrium.se) + 2005 Samuel Tardieu + 2007,2008 Samuel Thibault + 2008 Semihalf + 2008 Shin-ichiro KAWASAKI + 2002 SnapGear, by Paul Dale + 2006-2007 Stefan Weil + 2008 Takashi YOSHII + 1999,2000 Tatsuyuki Satoh , MultiArcadeMachineEmurator development + 1993 Theodore Ts'o + 2006,2007 Thiemo Seufer + 2003 Thomas M. Ogrisegg + 2006 Thomas Sailer + 1998-2001,2003 Thomas Sailer (t.sailer@alumni.ethz.ch) + 2006,2007 Thorsten Zitterell + 2000-2007 Tibor "TS" Schütz + 2008 TJ + 2002-2005 Vassili Karpov (malc) + 2005 Vassili Karpov (malc) + 2007 Vladimir Ananiev + 2006 XenSource + +The Debian packaging is: + + Copyright (C) 2008-2010 Bastian Blank + +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 of the License, or +(at your option) any later version. + +The following parts are subject of a different license: +* tools/firmware/vgabios +* tools/libaio +* tools/libxen +* tools/xenstat/libxenstat +* tools/xenstore + + This package 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 package 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 General Public License + along with this program. If not, see . + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in "/usr/share/common-licenses/LGPL-2". + +Files in xen/include/public are subject to the following license: + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + +Files in extra/mini-os are subject to the following license: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +Files in tools/vtpm_manager are subject to the following license: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of Intel Corporation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + OF THE POSSIBILITY OF SUCH DAMAGE. + +File tools/python/test.py is subject to the following license: + + This software is Copyright (c) Zope Corporation (tm) and + Contributors. All rights reserved. + + This license has been certified as open source. It has also + been designated as GPL compatible by the Free Software + Foundation (FSF). + + Redistribution and use in source and binary forms, with or + without modification, are permitted provided that the + following conditions are met: + + 1. Redistributions in source code must retain the above + copyright notice, this list of conditions, and the following + disclaimer. + + 2. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions, and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + + 3. The name Zope Corporation (tm) must not be used to + endorse or promote products derived from this software + without prior written permission from Zope Corporation. + + 4. The right to distribute this software or to use it for + any purpose does not give you the right to use Servicemarks + (sm) or Trademarks (tm) of Zope Corporation. Use of them is + covered in a separate agreement (see + http://www.zope.com/Marks). + + 5. If any files are modified, you must cause the modified + files to carry prominent notices stating that you changed + the files and the date of any change. + + Disclaimer + + THIS SOFTWARE IS PROVIDED BY ZOPE CORPORATION ``AS IS'' + AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT + NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN + NO EVENT SHALL ZOPE CORPORATION OR ITS CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + DAMAGE. + + This software consists of contributions made by Zope + Corporation and many individuals on behalf of Zope + Corporation. Specific attributions are listed in the + accompanying credits file. + +Files in tools/python/logging are subject to the following license: + + Copyright (C) 2001-2004 by Vinay Sajip. All Rights Reserved. + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, + provided that the above copyright notice appear in all copies and that + both that copyright notice and this permission notice appear in + supporting documentation, and that the name of Vinay Sajip + not be used in advertising or publicity pertaining to distribution + of the software without specific, written prior permission. + + VINAY SAJIP DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING + ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL + VINAY SAJIP BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR + ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN + AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + diff --git a/gitignore-old b/gitignore-old new file mode 100644 index 0000000000..b3c2ab908c --- /dev/null +++ b/gitignore-old @@ -0,0 +1,16 @@ +__pycache__ +/build/ +/files +/libxen-[0-9].*/ +!/libxen-dev.install +/libxen-dev/ +/libxenstore[0-9].0/ +/stamps/ +/xen-hypervisor-[0-9].*-*/ +/xenstore-utils/ +/xen-system-[0-9]*/ +/xen-utils-[0-9]*.*/ +/xen-utils-common/ +/xen-hypervisor-common/ +*.debhelper* +*.substvars diff --git a/installsharedlibs b/installsharedlibs new file mode 100755 index 0000000000..e64901d061 --- /dev/null +++ b/installsharedlibs @@ -0,0 +1,30 @@ +#!/bin/bash +set -e +set -o pipefail + +# This avoids us having to write out shared library package +# names again. We call dh_install once for each shared +# library package to put the relevant shared library in it. +# +# libxenmisc is a portmanteau of unstable-ABI libraries and +# is handled via a *.install-vsn file. +# +# libxen-dev-V is the dev library package of course. + +x () { + echo x "$@" + "$@" +} + +for p in $(dh_listpackages); do + case $p in + libxen-dev*) continue ;; + libxenmisc*) continue ;; + lib*) ;; + *) continue ;; + esac + + l=${p%%[0-9]*} + + x dh_install -p$p "usr/lib/*/$l.so.*" +done diff --git a/libxen-V.bug-control.vsn-in b/libxen-V.bug-control.vsn-in new file mode 100644 index 0000000000..3e21b39c90 --- /dev/null +++ b/libxen-V.bug-control.vsn-in @@ -0,0 +1 @@ +Submit-As: src:xen diff --git a/libxen-dev.install b/libxen-dev.install new file mode 100644 index 0000000000..4c5a86318b --- /dev/null +++ b/libxen-dev.install @@ -0,0 +1,4 @@ +usr/lib/*/*.a +usr/lib/*/*.so +usr/include +usr/lib/*/pkgconfig diff --git a/libxencall1.install b/libxencall1.install new file mode 100644 index 0000000000..73caa21d7b --- /dev/null +++ b/libxencall1.install @@ -0,0 +1 @@ +usr/lib/*/libxencall.so.* diff --git a/libxendevicemodel1.install b/libxendevicemodel1.install new file mode 100644 index 0000000000..6486cf1e96 --- /dev/null +++ b/libxendevicemodel1.install @@ -0,0 +1 @@ +usr/lib/*/libxendevicemodel.so.* diff --git a/libxenevtchn1.install b/libxenevtchn1.install new file mode 100644 index 0000000000..ec511ebb88 --- /dev/null +++ b/libxenevtchn1.install @@ -0,0 +1 @@ +usr/lib/*/libxenevtchn.so.* diff --git a/libxenforeignmemory1.install b/libxenforeignmemory1.install new file mode 100644 index 0000000000..bda4eaf00a --- /dev/null +++ b/libxenforeignmemory1.install @@ -0,0 +1 @@ +usr/lib/*/libxenforeignmemory.so.* diff --git a/libxengnttab1.install b/libxengnttab1.install new file mode 100644 index 0000000000..bb70016c0f --- /dev/null +++ b/libxengnttab1.install @@ -0,0 +1 @@ +usr/lib/*/libxengnttab.so.* diff --git a/libxenhypfs1.install b/libxenhypfs1.install new file mode 100644 index 0000000000..d561a3a80a --- /dev/null +++ b/libxenhypfs1.install @@ -0,0 +1 @@ +usr/lib/*/libxenhypfs.so.* diff --git a/libxenmiscV.install.vsn-in b/libxenmiscV.install.vsn-in new file mode 100644 index 0000000000..05187346df --- /dev/null +++ b/libxenmiscV.install.vsn-in @@ -0,0 +1,8 @@ +usr/lib/*/libxenctrl.so.* +usr/lib/*/libxenguest.so.* +usr/lib/*/libxenlight.so.* +usr/lib/*/libxenstat.so.* +usr/lib/*/libxenvchan.so.* +usr/lib/*/libxlutil.so.* +usr/lib/xen-@version@/lib/*/libxenfsimage* +usr/lib/xen-@version@/lib/*/xenfsimage diff --git a/libxenmiscV.lintian-overrides.vsn-in b/libxenmiscV.lintian-overrides.vsn-in new file mode 100644 index 0000000000..562575ac90 --- /dev/null +++ b/libxenmiscV.lintian-overrides.vsn-in @@ -0,0 +1,7 @@ +no-symbols-control-file usr/lib/*/lib*.so.@version@.0 +# ^ the ABI changes every Xen release and every Debian release anyway +# and we do not upload to Debian packages based on Xen upstream +# versions which are at least an rc with a stable ABI. + +package-name-doesnt-match-sonames +# ^ yes, this is a portmanteau package. They all change at once. diff --git a/libxenstore3.0.install b/libxenstore3.0.install new file mode 100644 index 0000000000..b0eecf5d65 --- /dev/null +++ b/libxenstore3.0.install @@ -0,0 +1 @@ +usr/lib/*/libxenstore.so.* diff --git a/libxenstore3.0.symbols b/libxenstore3.0.symbols new file mode 100644 index 0000000000..0d6a31497a --- /dev/null +++ b/libxenstore3.0.symbols @@ -0,0 +1,46 @@ +libxenstore.so.3.0 libxenstore3.0 #MINVER# + expanding_buffer_ensure@Base 3.2.0 + sanitise_value@Base 3.2.0 + unsanitise_value@Base 3.2.0 + xs_check_watch@Base 4.2~ + xs_close@Base 4.1.0~rc6 + xs_control_command@Base 4.9.0 + xs_count_strings@Base 3.2.0 + xs_daemon_close@Base 3.2.0 + xs_daemon_destroy_postfork@Base 4.0.1~rc4 + xs_daemon_open@Base 3.2.0 + xs_daemon_open_readonly@Base 3.2.0 + xs_daemon_rootdir@Base 3.2.0 + xs_daemon_rundir@Base 3.2.0 + xs_daemon_socket@Base 3.2.0 + xs_daemon_socket_ro@Base 3.2.0 + xs_daemon_tdb@Base 3.2.0 + xs_debug_command@Base 3.2.0 + xs_directory@Base 3.2.0 + xs_domain_dev@Base 3.2.0 + xs_domain_open@Base 3.2.0 + xs_fileno@Base 3.2.0 + xs_get_domain_path@Base 3.2.0 + xs_get_permissions@Base 3.2.0 + xs_introduce_domain@Base 3.2.0 + xs_is_domain_introduced@Base 3.2.0 + xs_mkdir@Base 3.2.0 + xs_open@Base 4.1.0~rc6 + xs_path_is_subpath@Base 4.2~ + xs_perm_to_string@Base 3.2.0 + xs_read@Base 3.2.0 + xs_read_watch@Base 3.2.0 + xs_release_domain@Base 3.2.0 + xs_restrict@Base 4.1.0~rc6 + xs_resume_domain@Base 3.2.0 + xs_rm@Base 3.2.0 + xs_set_permissions@Base 3.2.0 + xs_set_target@Base 3.4.0 + xs_strings_to_perms@Base 3.2.0 + xs_suspend_evtchn_port@Base 3.4.0 + xs_transaction_end@Base 3.2.0 + xs_transaction_start@Base 3.2.0 + xs_unwatch@Base 3.2.0 + xs_watch@Base 3.2.0 + xs_write@Base 3.2.0 + xs_write_all@Base 3.2.0 diff --git a/libxentoolcore1.install b/libxentoolcore1.install new file mode 100644 index 0000000000..ebd7c6c591 --- /dev/null +++ b/libxentoolcore1.install @@ -0,0 +1 @@ +usr/lib/*/libxentoolcore.so.* diff --git a/libxentoollog1.install b/libxentoollog1.install new file mode 100644 index 0000000000..41009e1005 --- /dev/null +++ b/libxentoollog1.install @@ -0,0 +1 @@ +usr/lib/*/libxentoollog.so.* diff --git a/not-installed b/not-installed new file mode 100644 index 0000000000..d05ea7908c --- /dev/null +++ b/not-installed @@ -0,0 +1,36 @@ +*.pyc + +# It is not clear why we have our own init scripts etc. in Debian. +# We should probably transition to using the upstream ones and +# fix any bugs we encounter. +etc/init.d/xendriverdomain +etc/init.d/xencommons +etc/init.d/xen-watchdog +etc/init.d/xendomains + +# The following two files are installed in xen-utils-common while +# being renamed by dh-exec. However, dh-exec fails to register them +# as installed. See bug #831786. Fool dh_missing by pretending +# they're not installed at all, for now. +etc/default/xencommons +etc/bash_completion.d/xl.sh + +# This is all handled by debian/shuffle-boot-files, +# which dh_missing does not know about. +boot/* + +# This README explains what the various stuff in /etc/xen is. +# It is not right for Debian because we have our own scripts etc. +# (see above). When we do maybe we should install it, or maybe +# we should move it to /usr/share/doc/. +etc/xen/README + +# This file seems like develoment documentation explaining +# some of the code in the upstream init scripts. +etc/xen/README.incompatibilities + +# When we build with ocaml support, do not try to ship development +# libraries which we don't understand and are of limited use. +# If someone wants this, suggestions from ocaml experts on what +# to ship where would be welcome. +usr/local/lib/ocaml diff --git a/patches/0001-Delete-config.sub-and-config.guess.patch b/patches/0001-Delete-config.sub-and-config.guess.patch new file mode 100644 index 0000000000..cf44691813 --- /dev/null +++ b/patches/0001-Delete-config.sub-and-config.guess.patch @@ -0,0 +1,3485 @@ +From: Ian Jackson +Date: Wed, 19 Sep 2018 16:45:49 +0100 +Subject: Delete config.sub and config.guess + +dh_autoreconf will provide these back. + +If this patch does not apply when rebasing, you can simply delete the +files again. + +Signed-off-by: Ian Jackson +--- + config.guess | 1658 ----------------------------------------------------- + config.sub | 1798 ---------------------------------------------------------- + 2 files changed, 3456 deletions(-) + delete mode 100644 config.guess + delete mode 100644 config.sub + +diff --git a/config.guess b/config.guess +deleted file mode 100644 +index 4cd9454..0000000 +--- a/config.guess ++++ /dev/null +@@ -1,1658 +0,0 @@ +-#! /bin/sh +-# Attempt to guess a canonical system name. +-# Copyright 1992-2019 Free Software Foundation, Inc. +- +-timestamp='2019-04-28' +- +-# This file 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 . +-# +-# 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 Exception is an additional permission under section 7 +-# of the GNU General Public License, version 3 ("GPLv3"). +-# +-# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. +-# +-# You can get the latest version of this script from: +-# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess +-# +-# Please send patches to . +- +- +-me=`echo "$0" | sed -e 's,.*/,,'` +- +-usage="\ +-Usage: $0 [OPTION] +- +-Output the configuration name of the system \`$me' is run on. +- +-Options: +- -h, --help print this help, then exit +- -t, --time-stamp print date of last modification, then exit +- -v, --version print version number, then exit +- +-Report bugs and patches to ." +- +-version="\ +-GNU config.guess ($timestamp) +- +-Originally written by Per Bothner. +-Copyright 1992-2019 Free Software Foundation, Inc. +- +-This is free software; see the source for copying conditions. There is NO +-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." +- +-help=" +-Try \`$me --help' for more information." +- +-# Parse command line +-while test $# -gt 0 ; do +- case $1 in +- --time-stamp | --time* | -t ) +- echo "$timestamp" ; exit ;; +- --version | -v ) +- echo "$version" ; exit ;; +- --help | --h* | -h ) +- echo "$usage"; exit ;; +- -- ) # Stop option processing +- shift; break ;; +- - ) # Use stdin as input. +- break ;; +- -* ) +- echo "$me: invalid option $1$help" >&2 +- exit 1 ;; +- * ) +- break ;; +- esac +-done +- +-if test $# != 0; then +- echo "$me: too many arguments$help" >&2 +- exit 1 +-fi +- +-# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +-# compiler to aid in system detection is discouraged as it requires +-# temporary files to be created and, as you can see below, it is a +-# headache to deal with in a portable fashion. +- +-# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +-# use `HOST_CC' if defined, but it is deprecated. +- +-# Portable tmp directory creation inspired by the Autoconf team. +- +-tmp= +-# shellcheck disable=SC2172 +-trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 +- +-set_cc_for_build() { +- : "${TMPDIR=/tmp}" +- # shellcheck disable=SC2039 +- { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || +- { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || +- { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || +- { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } +- dummy=$tmp/dummy +- case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in +- ,,) echo "int x;" > "$dummy.c" +- for driver in cc gcc c89 c99 ; do +- if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then +- CC_FOR_BUILD="$driver" +- break +- fi +- done +- if test x"$CC_FOR_BUILD" = x ; then +- CC_FOR_BUILD=no_compiler_found +- fi +- ;; +- ,,*) CC_FOR_BUILD=$CC ;; +- ,*,*) CC_FOR_BUILD=$HOST_CC ;; +- esac +-} +- +-# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +-# (ghazi@noc.rutgers.edu 1994-08-24) +-if test -f /.attbin/uname ; then +- PATH=$PATH:/.attbin ; export PATH +-fi +- +-UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +-UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +-UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +-UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown +- +-case "$UNAME_SYSTEM" in +-Linux|GNU|GNU/*) +- # If the system lacks a compiler, then just pick glibc. +- # We could probably try harder. +- LIBC=gnu +- +- set_cc_for_build +- cat <<-EOF > "$dummy.c" +- #include +- #if defined(__UCLIBC__) +- LIBC=uclibc +- #elif defined(__dietlibc__) +- LIBC=dietlibc +- #else +- LIBC=gnu +- #endif +- EOF +- eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" +- +- # If ldd exists, use it to detect musl libc. +- if command -v ldd >/dev/null && \ +- ldd --version 2>&1 | grep -q ^musl +- then +- LIBC=musl +- fi +- ;; +-esac +- +-# Note: order is significant - the case branches are not exclusive. +- +-case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in +- *:NetBSD:*:*) +- # NetBSD (nbsd) targets should (where applicable) match one or +- # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, +- # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently +- # switched to ELF, *-*-netbsd* would select the old +- # object file format. This provides both forward +- # compatibility and a consistent mechanism for selecting the +- # object file format. +- # +- # Note: NetBSD doesn't particularly care about the vendor +- # portion of the name. We always set it to "unknown". +- sysctl="sysctl -n hw.machine_arch" +- UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ +- "/sbin/$sysctl" 2>/dev/null || \ +- "/usr/sbin/$sysctl" 2>/dev/null || \ +- echo unknown)` +- case "$UNAME_MACHINE_ARCH" in +- armeb) machine=armeb-unknown ;; +- arm*) machine=arm-unknown ;; +- sh3el) machine=shl-unknown ;; +- sh3eb) machine=sh-unknown ;; +- sh5el) machine=sh5le-unknown ;; +- earmv*) +- arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` +- endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` +- machine="${arch}${endian}"-unknown +- ;; +- *) machine="$UNAME_MACHINE_ARCH"-unknown ;; +- esac +- # The Operating System including object format, if it has switched +- # to ELF recently (or will in the future) and ABI. +- case "$UNAME_MACHINE_ARCH" in +- earm*) +- os=netbsdelf +- ;; +- arm*|i386|m68k|ns32k|sh3*|sparc|vax) +- set_cc_for_build +- if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ +- | grep -q __ELF__ +- then +- # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). +- # Return netbsd for either. FIX? +- os=netbsd +- else +- os=netbsdelf +- fi +- ;; +- *) +- os=netbsd +- ;; +- esac +- # Determine ABI tags. +- case "$UNAME_MACHINE_ARCH" in +- earm*) +- expr='s/^earmv[0-9]/-eabi/;s/eb$//' +- abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` +- ;; +- esac +- # The OS release +- # Debian GNU/NetBSD machines have a different userland, and +- # thus, need a distinct triplet. However, they do not need +- # kernel version information, so it can be replaced with a +- # suitable tag, in the style of linux-gnu. +- case "$UNAME_VERSION" in +- Debian*) +- release='-gnu' +- ;; +- *) +- release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` +- ;; +- esac +- # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: +- # contains redundant information, the shorter form: +- # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. +- echo "$machine-${os}${release}${abi-}" +- exit ;; +- *:Bitrig:*:*) +- UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` +- echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" +- exit ;; +- *:OpenBSD:*:*) +- UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` +- echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" +- exit ;; +- *:LibertyBSD:*:*) +- UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` +- echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" +- exit ;; +- *:MidnightBSD:*:*) +- echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" +- exit ;; +- *:ekkoBSD:*:*) +- echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" +- exit ;; +- *:SolidBSD:*:*) +- echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" +- exit ;; +- macppc:MirBSD:*:*) +- echo powerpc-unknown-mirbsd"$UNAME_RELEASE" +- exit ;; +- *:MirBSD:*:*) +- echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" +- exit ;; +- *:Sortix:*:*) +- echo "$UNAME_MACHINE"-unknown-sortix +- exit ;; +- *:Redox:*:*) +- echo "$UNAME_MACHINE"-unknown-redox +- exit ;; +- mips:OSF1:*.*) +- echo mips-dec-osf1 +- exit ;; +- alpha:OSF1:*:*) +- case $UNAME_RELEASE in +- *4.0) +- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` +- ;; +- *5.*) +- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` +- ;; +- esac +- # According to Compaq, /usr/sbin/psrinfo has been available on +- # OSF/1 and Tru64 systems produced since 1995. I hope that +- # covers most systems running today. This code pipes the CPU +- # types through head -n 1, so we only detect the type of CPU 0. +- ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` +- case "$ALPHA_CPU_TYPE" in +- "EV4 (21064)") +- UNAME_MACHINE=alpha ;; +- "EV4.5 (21064)") +- UNAME_MACHINE=alpha ;; +- "LCA4 (21066/21068)") +- UNAME_MACHINE=alpha ;; +- "EV5 (21164)") +- UNAME_MACHINE=alphaev5 ;; +- "EV5.6 (21164A)") +- UNAME_MACHINE=alphaev56 ;; +- "EV5.6 (21164PC)") +- UNAME_MACHINE=alphapca56 ;; +- "EV5.7 (21164PC)") +- UNAME_MACHINE=alphapca57 ;; +- "EV6 (21264)") +- UNAME_MACHINE=alphaev6 ;; +- "EV6.7 (21264A)") +- UNAME_MACHINE=alphaev67 ;; +- "EV6.8CB (21264C)") +- UNAME_MACHINE=alphaev68 ;; +- "EV6.8AL (21264B)") +- UNAME_MACHINE=alphaev68 ;; +- "EV6.8CX (21264D)") +- UNAME_MACHINE=alphaev68 ;; +- "EV6.9A (21264/EV69A)") +- UNAME_MACHINE=alphaev69 ;; +- "EV7 (21364)") +- UNAME_MACHINE=alphaev7 ;; +- "EV7.9 (21364A)") +- UNAME_MACHINE=alphaev79 ;; +- esac +- # A Pn.n version is a patched version. +- # A Vn.n version is a released version. +- # A Tn.n version is a released field test version. +- # A Xn.n version is an unreleased experimental baselevel. +- # 1.2 uses "1.2" for uname -r. +- echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" +- # Reset EXIT trap before exiting to avoid spurious non-zero exit code. +- exitcode=$? +- trap '' 0 +- exit $exitcode ;; +- Amiga*:UNIX_System_V:4.0:*) +- echo m68k-unknown-sysv4 +- exit ;; +- *:[Aa]miga[Oo][Ss]:*:*) +- echo "$UNAME_MACHINE"-unknown-amigaos +- exit ;; +- *:[Mm]orph[Oo][Ss]:*:*) +- echo "$UNAME_MACHINE"-unknown-morphos +- exit ;; +- *:OS/390:*:*) +- echo i370-ibm-openedition +- exit ;; +- *:z/VM:*:*) +- echo s390-ibm-zvmoe +- exit ;; +- *:OS400:*:*) +- echo powerpc-ibm-os400 +- exit ;; +- arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) +- echo arm-acorn-riscix"$UNAME_RELEASE" +- exit ;; +- arm*:riscos:*:*|arm*:RISCOS:*:*) +- echo arm-unknown-riscos +- exit ;; +- SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) +- echo hppa1.1-hitachi-hiuxmpp +- exit ;; +- Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) +- # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. +- if test "`(/bin/universe) 2>/dev/null`" = att ; then +- echo pyramid-pyramid-sysv3 +- else +- echo pyramid-pyramid-bsd +- fi +- exit ;; +- NILE*:*:*:dcosx) +- echo pyramid-pyramid-svr4 +- exit ;; +- DRS?6000:unix:4.0:6*) +- echo sparc-icl-nx6 +- exit ;; +- DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) +- case `/usr/bin/uname -p` in +- sparc) echo sparc-icl-nx7; exit ;; +- esac ;; +- s390x:SunOS:*:*) +- echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" +- exit ;; +- sun4H:SunOS:5.*:*) +- echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" +- exit ;; +- sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) +- echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" +- exit ;; +- i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) +- echo i386-pc-auroraux"$UNAME_RELEASE" +- exit ;; +- i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) +- set_cc_for_build +- SUN_ARCH=i386 +- # If there is a compiler, see if it is configured for 64-bit objects. +- # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. +- # This test works for both compilers. +- if [ "$CC_FOR_BUILD" != no_compiler_found ]; then +- if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ +- (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ +- grep IS_64BIT_ARCH >/dev/null +- then +- SUN_ARCH=x86_64 +- fi +- fi +- echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" +- exit ;; +- sun4*:SunOS:6*:*) +- # According to config.sub, this is the proper way to canonicalize +- # SunOS6. Hard to guess exactly what SunOS6 will be like, but +- # it's likely to be more like Solaris than SunOS4. +- echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" +- exit ;; +- sun4*:SunOS:*:*) +- case "`/usr/bin/arch -k`" in +- Series*|S4*) +- UNAME_RELEASE=`uname -v` +- ;; +- esac +- # Japanese Language versions have a version number like `4.1.3-JL'. +- echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" +- exit ;; +- sun3*:SunOS:*:*) +- echo m68k-sun-sunos"$UNAME_RELEASE" +- exit ;; +- sun*:*:4.2BSD:*) +- UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` +- test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 +- case "`/bin/arch`" in +- sun3) +- echo m68k-sun-sunos"$UNAME_RELEASE" +- ;; +- sun4) +- echo sparc-sun-sunos"$UNAME_RELEASE" +- ;; +- esac +- exit ;; +- aushp:SunOS:*:*) +- echo sparc-auspex-sunos"$UNAME_RELEASE" +- exit ;; +- # The situation for MiNT is a little confusing. The machine name +- # can be virtually everything (everything which is not +- # "atarist" or "atariste" at least should have a processor +- # > m68000). The system name ranges from "MiNT" over "FreeMiNT" +- # to the lowercase version "mint" (or "freemint"). Finally +- # the system name "TOS" denotes a system which is actually not +- # MiNT. But MiNT is downward compatible to TOS, so this should +- # be no problem. +- atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) +- echo m68k-atari-mint"$UNAME_RELEASE" +- exit ;; +- atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) +- echo m68k-atari-mint"$UNAME_RELEASE" +- exit ;; +- *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) +- echo m68k-atari-mint"$UNAME_RELEASE" +- exit ;; +- milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) +- echo m68k-milan-mint"$UNAME_RELEASE" +- exit ;; +- hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) +- echo m68k-hades-mint"$UNAME_RELEASE" +- exit ;; +- *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) +- echo m68k-unknown-mint"$UNAME_RELEASE" +- exit ;; +- m68k:machten:*:*) +- echo m68k-apple-machten"$UNAME_RELEASE" +- exit ;; +- powerpc:machten:*:*) +- echo powerpc-apple-machten"$UNAME_RELEASE" +- exit ;; +- RISC*:Mach:*:*) +- echo mips-dec-mach_bsd4.3 +- exit ;; +- RISC*:ULTRIX:*:*) +- echo mips-dec-ultrix"$UNAME_RELEASE" +- exit ;; +- VAX*:ULTRIX*:*:*) +- echo vax-dec-ultrix"$UNAME_RELEASE" +- exit ;; +- 2020:CLIX:*:* | 2430:CLIX:*:*) +- echo clipper-intergraph-clix"$UNAME_RELEASE" +- exit ;; +- mips:*:*:UMIPS | mips:*:*:RISCos) +- set_cc_for_build +- sed 's/^ //' << EOF > "$dummy.c" +-#ifdef __cplusplus +-#include /* for printf() prototype */ +- int main (int argc, char *argv[]) { +-#else +- int main (argc, argv) int argc; char *argv[]; { +-#endif +- #if defined (host_mips) && defined (MIPSEB) +- #if defined (SYSTYPE_SYSV) +- printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); +- #endif +- #if defined (SYSTYPE_SVR4) +- printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); +- #endif +- #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) +- printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); +- #endif +- #endif +- exit (-1); +- } +-EOF +- $CC_FOR_BUILD -o "$dummy" "$dummy.c" && +- dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && +- SYSTEM_NAME=`"$dummy" "$dummyarg"` && +- { echo "$SYSTEM_NAME"; exit; } +- echo mips-mips-riscos"$UNAME_RELEASE" +- exit ;; +- Motorola:PowerMAX_OS:*:*) +- echo powerpc-motorola-powermax +- exit ;; +- Motorola:*:4.3:PL8-*) +- echo powerpc-harris-powermax +- exit ;; +- Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) +- echo powerpc-harris-powermax +- exit ;; +- Night_Hawk:Power_UNIX:*:*) +- echo powerpc-harris-powerunix +- exit ;; +- m88k:CX/UX:7*:*) +- echo m88k-harris-cxux7 +- exit ;; +- m88k:*:4*:R4*) +- echo m88k-motorola-sysv4 +- exit ;; +- m88k:*:3*:R3*) +- echo m88k-motorola-sysv3 +- exit ;; +- AViiON:dgux:*:*) +- # DG/UX returns AViiON for all architectures +- UNAME_PROCESSOR=`/usr/bin/uname -p` +- if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] +- then +- if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ +- [ "$TARGET_BINARY_INTERFACE"x = x ] +- then +- echo m88k-dg-dgux"$UNAME_RELEASE" +- else +- echo m88k-dg-dguxbcs"$UNAME_RELEASE" +- fi +- else +- echo i586-dg-dgux"$UNAME_RELEASE" +- fi +- exit ;; +- M88*:DolphinOS:*:*) # DolphinOS (SVR3) +- echo m88k-dolphin-sysv3 +- exit ;; +- M88*:*:R3*:*) +- # Delta 88k system running SVR3 +- echo m88k-motorola-sysv3 +- exit ;; +- XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) +- echo m88k-tektronix-sysv3 +- exit ;; +- Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) +- echo m68k-tektronix-bsd +- exit ;; +- *:IRIX*:*:*) +- echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" +- exit ;; +- ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. +- echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id +- exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' +- i*86:AIX:*:*) +- echo i386-ibm-aix +- exit ;; +- ia64:AIX:*:*) +- if [ -x /usr/bin/oslevel ] ; then +- IBM_REV=`/usr/bin/oslevel` +- else +- IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" +- fi +- echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" +- exit ;; +- *:AIX:2:3) +- if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then +- set_cc_for_build +- sed 's/^ //' << EOF > "$dummy.c" +- #include +- +- main() +- { +- if (!__power_pc()) +- exit(1); +- puts("powerpc-ibm-aix3.2.5"); +- exit(0); +- } +-EOF +- if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` +- then +- echo "$SYSTEM_NAME" +- else +- echo rs6000-ibm-aix3.2.5 +- fi +- elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then +- echo rs6000-ibm-aix3.2.4 +- else +- echo rs6000-ibm-aix3.2 +- fi +- exit ;; +- *:AIX:*:[4567]) +- IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` +- if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then +- IBM_ARCH=rs6000 +- else +- IBM_ARCH=powerpc +- fi +- if [ -x /usr/bin/lslpp ] ; then +- IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | +- awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` +- else +- IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" +- fi +- echo "$IBM_ARCH"-ibm-aix"$IBM_REV" +- exit ;; +- *:AIX:*:*) +- echo rs6000-ibm-aix +- exit ;; +- ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) +- echo romp-ibm-bsd4.4 +- exit ;; +- ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and +- echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to +- exit ;; # report: romp-ibm BSD 4.3 +- *:BOSX:*:*) +- echo rs6000-bull-bosx +- exit ;; +- DPX/2?00:B.O.S.:*:*) +- echo m68k-bull-sysv3 +- exit ;; +- 9000/[34]??:4.3bsd:1.*:*) +- echo m68k-hp-bsd +- exit ;; +- hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) +- echo m68k-hp-bsd4.4 +- exit ;; +- 9000/[34678]??:HP-UX:*:*) +- HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` +- case "$UNAME_MACHINE" in +- 9000/31?) HP_ARCH=m68000 ;; +- 9000/[34]??) HP_ARCH=m68k ;; +- 9000/[678][0-9][0-9]) +- if [ -x /usr/bin/getconf ]; then +- sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` +- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` +- case "$sc_cpu_version" in +- 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 +- 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 +- 532) # CPU_PA_RISC2_0 +- case "$sc_kernel_bits" in +- 32) HP_ARCH=hppa2.0n ;; +- 64) HP_ARCH=hppa2.0w ;; +- '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 +- esac ;; +- esac +- fi +- if [ "$HP_ARCH" = "" ]; then +- set_cc_for_build +- sed 's/^ //' << EOF > "$dummy.c" +- +- #define _HPUX_SOURCE +- #include +- #include +- +- int main () +- { +- #if defined(_SC_KERNEL_BITS) +- long bits = sysconf(_SC_KERNEL_BITS); +- #endif +- long cpu = sysconf (_SC_CPU_VERSION); +- +- switch (cpu) +- { +- case CPU_PA_RISC1_0: puts ("hppa1.0"); break; +- case CPU_PA_RISC1_1: puts ("hppa1.1"); break; +- case CPU_PA_RISC2_0: +- #if defined(_SC_KERNEL_BITS) +- switch (bits) +- { +- case 64: puts ("hppa2.0w"); break; +- case 32: puts ("hppa2.0n"); break; +- default: puts ("hppa2.0"); break; +- } break; +- #else /* !defined(_SC_KERNEL_BITS) */ +- puts ("hppa2.0"); break; +- #endif +- default: puts ("hppa1.0"); break; +- } +- exit (0); +- } +-EOF +- (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` +- test -z "$HP_ARCH" && HP_ARCH=hppa +- fi ;; +- esac +- if [ "$HP_ARCH" = hppa2.0w ] +- then +- set_cc_for_build +- +- # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating +- # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler +- # generating 64-bit code. GNU and HP use different nomenclature: +- # +- # $ CC_FOR_BUILD=cc ./config.guess +- # => hppa2.0w-hp-hpux11.23 +- # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess +- # => hppa64-hp-hpux11.23 +- +- if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | +- grep -q __LP64__ +- then +- HP_ARCH=hppa2.0w +- else +- HP_ARCH=hppa64 +- fi +- fi +- echo "$HP_ARCH"-hp-hpux"$HPUX_REV" +- exit ;; +- ia64:HP-UX:*:*) +- HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` +- echo ia64-hp-hpux"$HPUX_REV" +- exit ;; +- 3050*:HI-UX:*:*) +- set_cc_for_build +- sed 's/^ //' << EOF > "$dummy.c" +- #include +- int +- main () +- { +- long cpu = sysconf (_SC_CPU_VERSION); +- /* The order matters, because CPU_IS_HP_MC68K erroneously returns +- true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct +- results, however. */ +- if (CPU_IS_PA_RISC (cpu)) +- { +- switch (cpu) +- { +- case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; +- case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; +- case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; +- default: puts ("hppa-hitachi-hiuxwe2"); break; +- } +- } +- else if (CPU_IS_HP_MC68K (cpu)) +- puts ("m68k-hitachi-hiuxwe2"); +- else puts ("unknown-hitachi-hiuxwe2"); +- exit (0); +- } +-EOF +- $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && +- { echo "$SYSTEM_NAME"; exit; } +- echo unknown-hitachi-hiuxwe2 +- exit ;; +- 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) +- echo hppa1.1-hp-bsd +- exit ;; +- 9000/8??:4.3bsd:*:*) +- echo hppa1.0-hp-bsd +- exit ;; +- *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) +- echo hppa1.0-hp-mpeix +- exit ;; +- hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) +- echo hppa1.1-hp-osf +- exit ;; +- hp8??:OSF1:*:*) +- echo hppa1.0-hp-osf +- exit ;; +- i*86:OSF1:*:*) +- if [ -x /usr/sbin/sysversion ] ; then +- echo "$UNAME_MACHINE"-unknown-osf1mk +- else +- echo "$UNAME_MACHINE"-unknown-osf1 +- fi +- exit ;; +- parisc*:Lites*:*:*) +- echo hppa1.1-hp-lites +- exit ;; +- C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) +- echo c1-convex-bsd +- exit ;; +- C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) +- if getsysinfo -f scalar_acc +- then echo c32-convex-bsd +- else echo c2-convex-bsd +- fi +- exit ;; +- C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) +- echo c34-convex-bsd +- exit ;; +- C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) +- echo c38-convex-bsd +- exit ;; +- C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) +- echo c4-convex-bsd +- exit ;; +- CRAY*Y-MP:*:*:*) +- echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' +- exit ;; +- CRAY*[A-Z]90:*:*:*) +- echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ +- | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ +- -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ +- -e 's/\.[^.]*$/.X/' +- exit ;; +- CRAY*TS:*:*:*) +- echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' +- exit ;; +- CRAY*T3E:*:*:*) +- echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' +- exit ;; +- CRAY*SV1:*:*:*) +- echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' +- exit ;; +- *:UNICOS/mp:*:*) +- echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' +- exit ;; +- F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) +- FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` +- FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` +- FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` +- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" +- exit ;; +- 5000:UNIX_System_V:4.*:*) +- FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` +- FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` +- echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" +- exit ;; +- i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) +- echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" +- exit ;; +- sparc*:BSD/OS:*:*) +- echo sparc-unknown-bsdi"$UNAME_RELEASE" +- exit ;; +- *:BSD/OS:*:*) +- echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" +- exit ;; +- arm:FreeBSD:*:*) +- UNAME_PROCESSOR=`uname -p` +- set_cc_for_build +- if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ +- | grep -q __ARM_PCS_VFP +- then +- echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi +- else +- echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf +- fi +- exit ;; +- *:FreeBSD:*:*) +- UNAME_PROCESSOR=`/usr/bin/uname -p` +- case "$UNAME_PROCESSOR" in +- amd64) +- UNAME_PROCESSOR=x86_64 ;; +- i386) +- UNAME_PROCESSOR=i586 ;; +- esac +- echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" +- exit ;; +- i*:CYGWIN*:*) +- echo "$UNAME_MACHINE"-pc-cygwin +- exit ;; +- *:MINGW64*:*) +- echo "$UNAME_MACHINE"-pc-mingw64 +- exit ;; +- *:MINGW*:*) +- echo "$UNAME_MACHINE"-pc-mingw32 +- exit ;; +- *:MSYS*:*) +- echo "$UNAME_MACHINE"-pc-msys +- exit ;; +- i*:PW*:*) +- echo "$UNAME_MACHINE"-pc-pw32 +- exit ;; +- *:Interix*:*) +- case "$UNAME_MACHINE" in +- x86) +- echo i586-pc-interix"$UNAME_RELEASE" +- exit ;; +- authenticamd | genuineintel | EM64T) +- echo x86_64-unknown-interix"$UNAME_RELEASE" +- exit ;; +- IA64) +- echo ia64-unknown-interix"$UNAME_RELEASE" +- exit ;; +- esac ;; +- i*:UWIN*:*) +- echo "$UNAME_MACHINE"-pc-uwin +- exit ;; +- amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) +- echo x86_64-pc-cygwin +- exit ;; +- prep*:SunOS:5.*:*) +- echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" +- exit ;; +- *:GNU:*:*) +- # the GNU system +- echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" +- exit ;; +- *:GNU/*:*:*) +- # other systems with GNU libc and userland +- echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" +- exit ;; +- *:Minix:*:*) +- echo "$UNAME_MACHINE"-unknown-minix +- exit ;; +- aarch64:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- aarch64_be:Linux:*:*) +- UNAME_MACHINE=aarch64_be +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- alpha:Linux:*:*) +- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in +- EV5) UNAME_MACHINE=alphaev5 ;; +- EV56) UNAME_MACHINE=alphaev56 ;; +- PCA56) UNAME_MACHINE=alphapca56 ;; +- PCA57) UNAME_MACHINE=alphapca56 ;; +- EV6) UNAME_MACHINE=alphaev6 ;; +- EV67) UNAME_MACHINE=alphaev67 ;; +- EV68*) UNAME_MACHINE=alphaev68 ;; +- esac +- objdump --private-headers /bin/sh | grep -q ld.so.1 +- if test "$?" = 0 ; then LIBC=gnulibc1 ; fi +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- arc:Linux:*:* | arceb:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- arm*:Linux:*:*) +- set_cc_for_build +- if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ +- | grep -q __ARM_EABI__ +- then +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- else +- if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ +- | grep -q __ARM_PCS_VFP +- then +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi +- else +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf +- fi +- fi +- exit ;; +- avr32*:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- cris:Linux:*:*) +- echo "$UNAME_MACHINE"-axis-linux-"$LIBC" +- exit ;; +- crisv32:Linux:*:*) +- echo "$UNAME_MACHINE"-axis-linux-"$LIBC" +- exit ;; +- e2k:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- frv:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- hexagon:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- i*86:Linux:*:*) +- echo "$UNAME_MACHINE"-pc-linux-"$LIBC" +- exit ;; +- ia64:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- k1om:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- m32r*:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- m68*:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- mips:Linux:*:* | mips64:Linux:*:*) +- set_cc_for_build +- IS_GLIBC=0 +- test x"${LIBC}" = xgnu && IS_GLIBC=1 +- sed 's/^ //' << EOF > "$dummy.c" +- #undef CPU +- #undef mips +- #undef mipsel +- #undef mips64 +- #undef mips64el +- #if ${IS_GLIBC} && defined(_ABI64) +- LIBCABI=gnuabi64 +- #else +- #if ${IS_GLIBC} && defined(_ABIN32) +- LIBCABI=gnuabin32 +- #else +- LIBCABI=${LIBC} +- #endif +- #endif +- +- #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 +- CPU=mipsisa64r6 +- #else +- #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 +- CPU=mipsisa32r6 +- #else +- #if defined(__mips64) +- CPU=mips64 +- #else +- CPU=mips +- #endif +- #endif +- #endif +- +- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) +- MIPS_ENDIAN=el +- #else +- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) +- MIPS_ENDIAN= +- #else +- MIPS_ENDIAN= +- #endif +- #endif +-EOF +- eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`" +- test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } +- ;; +- mips64el:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- openrisc*:Linux:*:*) +- echo or1k-unknown-linux-"$LIBC" +- exit ;; +- or32:Linux:*:* | or1k*:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- padre:Linux:*:*) +- echo sparc-unknown-linux-"$LIBC" +- exit ;; +- parisc64:Linux:*:* | hppa64:Linux:*:*) +- echo hppa64-unknown-linux-"$LIBC" +- exit ;; +- parisc:Linux:*:* | hppa:Linux:*:*) +- # Look for CPU level +- case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in +- PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; +- PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; +- *) echo hppa-unknown-linux-"$LIBC" ;; +- esac +- exit ;; +- ppc64:Linux:*:*) +- echo powerpc64-unknown-linux-"$LIBC" +- exit ;; +- ppc:Linux:*:*) +- echo powerpc-unknown-linux-"$LIBC" +- exit ;; +- ppc64le:Linux:*:*) +- echo powerpc64le-unknown-linux-"$LIBC" +- exit ;; +- ppcle:Linux:*:*) +- echo powerpcle-unknown-linux-"$LIBC" +- exit ;; +- riscv32:Linux:*:* | riscv64:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- s390:Linux:*:* | s390x:Linux:*:*) +- echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" +- exit ;; +- sh64*:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- sh*:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- sparc:Linux:*:* | sparc64:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- tile*:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- vax:Linux:*:*) +- echo "$UNAME_MACHINE"-dec-linux-"$LIBC" +- exit ;; +- x86_64:Linux:*:*) +- echo "$UNAME_MACHINE"-pc-linux-"$LIBC" +- exit ;; +- xtensa*:Linux:*:*) +- echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" +- exit ;; +- i*86:DYNIX/ptx:4*:*) +- # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. +- # earlier versions are messed up and put the nodename in both +- # sysname and nodename. +- echo i386-sequent-sysv4 +- exit ;; +- i*86:UNIX_SV:4.2MP:2.*) +- # Unixware is an offshoot of SVR4, but it has its own version +- # number series starting with 2... +- # I am not positive that other SVR4 systems won't match this, +- # I just have to hope. -- rms. +- # Use sysv4.2uw... so that sysv4* matches it. +- echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" +- exit ;; +- i*86:OS/2:*:*) +- # If we were able to find `uname', then EMX Unix compatibility +- # is probably installed. +- echo "$UNAME_MACHINE"-pc-os2-emx +- exit ;; +- i*86:XTS-300:*:STOP) +- echo "$UNAME_MACHINE"-unknown-stop +- exit ;; +- i*86:atheos:*:*) +- echo "$UNAME_MACHINE"-unknown-atheos +- exit ;; +- i*86:syllable:*:*) +- echo "$UNAME_MACHINE"-pc-syllable +- exit ;; +- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) +- echo i386-unknown-lynxos"$UNAME_RELEASE" +- exit ;; +- i*86:*DOS:*:*) +- echo "$UNAME_MACHINE"-pc-msdosdjgpp +- exit ;; +- i*86:*:4.*:*) +- UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` +- if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then +- echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" +- else +- echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" +- fi +- exit ;; +- i*86:*:5:[678]*) +- # UnixWare 7.x, OpenUNIX and OpenServer 6. +- case `/bin/uname -X | grep "^Machine"` in +- *486*) UNAME_MACHINE=i486 ;; +- *Pentium) UNAME_MACHINE=i586 ;; +- *Pent*|*Celeron) UNAME_MACHINE=i686 ;; +- esac +- echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}" +- exit ;; +- i*86:*:3.2:*) +- if test -f /usr/options/cb.name; then +- UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then +- UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` +- (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 +- (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ +- && UNAME_MACHINE=i586 +- (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ +- && UNAME_MACHINE=i686 +- (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ +- && UNAME_MACHINE=i686 +- echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" +- else +- echo "$UNAME_MACHINE"-pc-sysv32 +- fi +- exit ;; +- pc:*:*:*) +- # Left here for compatibility: +- # uname -m prints for DJGPP always 'pc', but it prints nothing about +- # the processor, so we play safe by assuming i586. +- # Note: whatever this is, it MUST be the same as what config.sub +- # prints for the "djgpp" host, or else GDB configure will decide that +- # this is a cross-build. +- echo i586-pc-msdosdjgpp +- exit ;; +- Intel:Mach:3*:*) +- echo i386-pc-mach3 +- exit ;; +- paragon:*:*:*) +- echo i860-intel-osf1 +- exit ;; +- i860:*:4.*:*) # i860-SVR4 +- if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then +- echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 +- else # Add other i860-SVR4 vendors below as they are discovered. +- echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 +- fi +- exit ;; +- mini*:CTIX:SYS*5:*) +- # "miniframe" +- echo m68010-convergent-sysv +- exit ;; +- mc68k:UNIX:SYSTEM5:3.51m) +- echo m68k-convergent-sysv +- exit ;; +- M680?0:D-NIX:5.3:*) +- echo m68k-diab-dnix +- exit ;; +- M68*:*:R3V[5678]*:*) +- test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; +- 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) +- OS_REL='' +- test -r /etc/.relid \ +- && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` +- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ +- && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } +- /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ +- && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; +- 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) +- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ +- && { echo i486-ncr-sysv4; exit; } ;; +- NCR*:*:4.2:* | MPRAS*:*:4.2:*) +- OS_REL='.3' +- test -r /etc/.relid \ +- && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` +- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ +- && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } +- /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ +- && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } +- /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ +- && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; +- m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) +- echo m68k-unknown-lynxos"$UNAME_RELEASE" +- exit ;; +- mc68030:UNIX_System_V:4.*:*) +- echo m68k-atari-sysv4 +- exit ;; +- TSUNAMI:LynxOS:2.*:*) +- echo sparc-unknown-lynxos"$UNAME_RELEASE" +- exit ;; +- rs6000:LynxOS:2.*:*) +- echo rs6000-unknown-lynxos"$UNAME_RELEASE" +- exit ;; +- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) +- echo powerpc-unknown-lynxos"$UNAME_RELEASE" +- exit ;; +- SM[BE]S:UNIX_SV:*:*) +- echo mips-dde-sysv"$UNAME_RELEASE" +- exit ;; +- RM*:ReliantUNIX-*:*:*) +- echo mips-sni-sysv4 +- exit ;; +- RM*:SINIX-*:*:*) +- echo mips-sni-sysv4 +- exit ;; +- *:SINIX-*:*:*) +- if uname -p 2>/dev/null >/dev/null ; then +- UNAME_MACHINE=`(uname -p) 2>/dev/null` +- echo "$UNAME_MACHINE"-sni-sysv4 +- else +- echo ns32k-sni-sysv +- fi +- exit ;; +- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort +- # says +- echo i586-unisys-sysv4 +- exit ;; +- *:UNIX_System_V:4*:FTX*) +- # From Gerald Hewes . +- # How about differentiating between stratus architectures? -djm +- echo hppa1.1-stratus-sysv4 +- exit ;; +- *:*:*:FTX*) +- # From seanf@swdc.stratus.com. +- echo i860-stratus-sysv4 +- exit ;; +- i*86:VOS:*:*) +- # From Paul.Green@stratus.com. +- echo "$UNAME_MACHINE"-stratus-vos +- exit ;; +- *:VOS:*:*) +- # From Paul.Green@stratus.com. +- echo hppa1.1-stratus-vos +- exit ;; +- mc68*:A/UX:*:*) +- echo m68k-apple-aux"$UNAME_RELEASE" +- exit ;; +- news*:NEWS-OS:6*:*) +- echo mips-sony-newsos6 +- exit ;; +- R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) +- if [ -d /usr/nec ]; then +- echo mips-nec-sysv"$UNAME_RELEASE" +- else +- echo mips-unknown-sysv"$UNAME_RELEASE" +- fi +- exit ;; +- BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. +- echo powerpc-be-beos +- exit ;; +- BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. +- echo powerpc-apple-beos +- exit ;; +- BePC:BeOS:*:*) # BeOS running on Intel PC compatible. +- echo i586-pc-beos +- exit ;; +- BePC:Haiku:*:*) # Haiku running on Intel PC compatible. +- echo i586-pc-haiku +- exit ;; +- x86_64:Haiku:*:*) +- echo x86_64-unknown-haiku +- exit ;; +- SX-4:SUPER-UX:*:*) +- echo sx4-nec-superux"$UNAME_RELEASE" +- exit ;; +- SX-5:SUPER-UX:*:*) +- echo sx5-nec-superux"$UNAME_RELEASE" +- exit ;; +- SX-6:SUPER-UX:*:*) +- echo sx6-nec-superux"$UNAME_RELEASE" +- exit ;; +- SX-7:SUPER-UX:*:*) +- echo sx7-nec-superux"$UNAME_RELEASE" +- exit ;; +- SX-8:SUPER-UX:*:*) +- echo sx8-nec-superux"$UNAME_RELEASE" +- exit ;; +- SX-8R:SUPER-UX:*:*) +- echo sx8r-nec-superux"$UNAME_RELEASE" +- exit ;; +- SX-ACE:SUPER-UX:*:*) +- echo sxace-nec-superux"$UNAME_RELEASE" +- exit ;; +- Power*:Rhapsody:*:*) +- echo powerpc-apple-rhapsody"$UNAME_RELEASE" +- exit ;; +- *:Rhapsody:*:*) +- echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" +- exit ;; +- *:Darwin:*:*) +- UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown +- set_cc_for_build +- if test "$UNAME_PROCESSOR" = unknown ; then +- UNAME_PROCESSOR=powerpc +- fi +- if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then +- if [ "$CC_FOR_BUILD" != no_compiler_found ]; then +- if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ +- (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ +- grep IS_64BIT_ARCH >/dev/null +- then +- case $UNAME_PROCESSOR in +- i386) UNAME_PROCESSOR=x86_64 ;; +- powerpc) UNAME_PROCESSOR=powerpc64 ;; +- esac +- fi +- # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc +- if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ +- (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ +- grep IS_PPC >/dev/null +- then +- UNAME_PROCESSOR=powerpc +- fi +- fi +- elif test "$UNAME_PROCESSOR" = i386 ; then +- # Avoid executing cc on OS X 10.9, as it ships with a stub +- # that puts up a graphical alert prompting to install +- # developer tools. Any system running Mac OS X 10.7 or +- # later (Darwin 11 and later) is required to have a 64-bit +- # processor. This is not true of the ARM version of Darwin +- # that Apple uses in portable devices. +- UNAME_PROCESSOR=x86_64 +- fi +- echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" +- exit ;; +- *:procnto*:*:* | *:QNX:[0123456789]*:*) +- UNAME_PROCESSOR=`uname -p` +- if test "$UNAME_PROCESSOR" = x86; then +- UNAME_PROCESSOR=i386 +- UNAME_MACHINE=pc +- fi +- echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" +- exit ;; +- *:QNX:*:4*) +- echo i386-pc-qnx +- exit ;; +- NEO-*:NONSTOP_KERNEL:*:*) +- echo neo-tandem-nsk"$UNAME_RELEASE" +- exit ;; +- NSE-*:NONSTOP_KERNEL:*:*) +- echo nse-tandem-nsk"$UNAME_RELEASE" +- exit ;; +- NSR-*:NONSTOP_KERNEL:*:*) +- echo nsr-tandem-nsk"$UNAME_RELEASE" +- exit ;; +- NSV-*:NONSTOP_KERNEL:*:*) +- echo nsv-tandem-nsk"$UNAME_RELEASE" +- exit ;; +- NSX-*:NONSTOP_KERNEL:*:*) +- echo nsx-tandem-nsk"$UNAME_RELEASE" +- exit ;; +- *:NonStop-UX:*:*) +- echo mips-compaq-nonstopux +- exit ;; +- BS2000:POSIX*:*:*) +- echo bs2000-siemens-sysv +- exit ;; +- DS/*:UNIX_System_V:*:*) +- echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" +- exit ;; +- *:Plan9:*:*) +- # "uname -m" is not consistent, so use $cputype instead. 386 +- # is converted to i386 for consistency with other x86 +- # operating systems. +- # shellcheck disable=SC2154 +- if test "$cputype" = 386; then +- UNAME_MACHINE=i386 +- else +- UNAME_MACHINE="$cputype" +- fi +- echo "$UNAME_MACHINE"-unknown-plan9 +- exit ;; +- *:TOPS-10:*:*) +- echo pdp10-unknown-tops10 +- exit ;; +- *:TENEX:*:*) +- echo pdp10-unknown-tenex +- exit ;; +- KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) +- echo pdp10-dec-tops20 +- exit ;; +- XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) +- echo pdp10-xkl-tops20 +- exit ;; +- *:TOPS-20:*:*) +- echo pdp10-unknown-tops20 +- exit ;; +- *:ITS:*:*) +- echo pdp10-unknown-its +- exit ;; +- SEI:*:*:SEIUX) +- echo mips-sei-seiux"$UNAME_RELEASE" +- exit ;; +- *:DragonFly:*:*) +- echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" +- exit ;; +- *:*VMS:*:*) +- UNAME_MACHINE=`(uname -p) 2>/dev/null` +- case "$UNAME_MACHINE" in +- A*) echo alpha-dec-vms ; exit ;; +- I*) echo ia64-dec-vms ; exit ;; +- V*) echo vax-dec-vms ; exit ;; +- esac ;; +- *:XENIX:*:SysV) +- echo i386-pc-xenix +- exit ;; +- i*86:skyos:*:*) +- echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" +- exit ;; +- i*86:rdos:*:*) +- echo "$UNAME_MACHINE"-pc-rdos +- exit ;; +- i*86:AROS:*:*) +- echo "$UNAME_MACHINE"-pc-aros +- exit ;; +- x86_64:VMkernel:*:*) +- echo "$UNAME_MACHINE"-unknown-esx +- exit ;; +- amd64:Isilon\ OneFS:*:*) +- echo x86_64-unknown-onefs +- exit ;; +- *:Unleashed:*:*) +- echo "$UNAME_MACHINE"-unknown-unleashed"$UNAME_RELEASE" +- exit ;; +-esac +- +-# No uname command or uname output not recognized. +-set_cc_for_build +-cat > "$dummy.c" < +-#include +-#endif +-#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) +-#if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) +-#include +-#if defined(_SIZE_T_) || defined(SIGLOST) +-#include +-#endif +-#endif +-#endif +-main () +-{ +-#if defined (sony) +-#if defined (MIPSEB) +- /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, +- I don't know.... */ +- printf ("mips-sony-bsd\n"); exit (0); +-#else +-#include +- printf ("m68k-sony-newsos%s\n", +-#ifdef NEWSOS4 +- "4" +-#else +- "" +-#endif +- ); exit (0); +-#endif +-#endif +- +-#if defined (NeXT) +-#if !defined (__ARCHITECTURE__) +-#define __ARCHITECTURE__ "m68k" +-#endif +- int version; +- version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; +- if (version < 4) +- printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); +- else +- printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); +- exit (0); +-#endif +- +-#if defined (MULTIMAX) || defined (n16) +-#if defined (UMAXV) +- printf ("ns32k-encore-sysv\n"); exit (0); +-#else +-#if defined (CMU) +- printf ("ns32k-encore-mach\n"); exit (0); +-#else +- printf ("ns32k-encore-bsd\n"); exit (0); +-#endif +-#endif +-#endif +- +-#if defined (__386BSD__) +- printf ("i386-pc-bsd\n"); exit (0); +-#endif +- +-#if defined (sequent) +-#if defined (i386) +- printf ("i386-sequent-dynix\n"); exit (0); +-#endif +-#if defined (ns32000) +- printf ("ns32k-sequent-dynix\n"); exit (0); +-#endif +-#endif +- +-#if defined (_SEQUENT_) +- struct utsname un; +- +- uname(&un); +- if (strncmp(un.version, "V2", 2) == 0) { +- printf ("i386-sequent-ptx2\n"); exit (0); +- } +- if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ +- printf ("i386-sequent-ptx1\n"); exit (0); +- } +- printf ("i386-sequent-ptx\n"); exit (0); +-#endif +- +-#if defined (vax) +-#if !defined (ultrix) +-#include +-#if defined (BSD) +-#if BSD == 43 +- printf ("vax-dec-bsd4.3\n"); exit (0); +-#else +-#if BSD == 199006 +- printf ("vax-dec-bsd4.3reno\n"); exit (0); +-#else +- printf ("vax-dec-bsd\n"); exit (0); +-#endif +-#endif +-#else +- printf ("vax-dec-bsd\n"); exit (0); +-#endif +-#else +-#if defined(_SIZE_T_) || defined(SIGLOST) +- struct utsname un; +- uname (&un); +- printf ("vax-dec-ultrix%s\n", un.release); exit (0); +-#else +- printf ("vax-dec-ultrix\n"); exit (0); +-#endif +-#endif +-#endif +-#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) +-#if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) +-#if defined(_SIZE_T_) || defined(SIGLOST) +- struct utsname *un; +- uname (&un); +- printf ("mips-dec-ultrix%s\n", un.release); exit (0); +-#else +- printf ("mips-dec-ultrix\n"); exit (0); +-#endif +-#endif +-#endif +- +-#if defined (alliant) && defined (i860) +- printf ("i860-alliant-bsd\n"); exit (0); +-#endif +- +- exit (1); +-} +-EOF +- +-$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`$dummy` && +- { echo "$SYSTEM_NAME"; exit; } +- +-# Apollos put the system type in the environment. +-test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } +- +-echo "$0: unable to guess system type" >&2 +- +-case "$UNAME_MACHINE:$UNAME_SYSTEM" in +- mips:Linux | mips64:Linux) +- # If we got here on MIPS GNU/Linux, output extra information. +- cat >&2 <&2 </dev/null || echo unknown` +-uname -r = `(uname -r) 2>/dev/null || echo unknown` +-uname -s = `(uname -s) 2>/dev/null || echo unknown` +-uname -v = `(uname -v) 2>/dev/null || echo unknown` +- +-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +-/bin/uname -X = `(/bin/uname -X) 2>/dev/null` +- +-hostinfo = `(hostinfo) 2>/dev/null` +-/bin/universe = `(/bin/universe) 2>/dev/null` +-/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +-/bin/arch = `(/bin/arch) 2>/dev/null` +-/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` +- +-UNAME_MACHINE = "$UNAME_MACHINE" +-UNAME_RELEASE = "$UNAME_RELEASE" +-UNAME_SYSTEM = "$UNAME_SYSTEM" +-UNAME_VERSION = "$UNAME_VERSION" +-EOF +- +-exit 1 +- +-# Local variables: +-# eval: (add-hook 'before-save-hook 'time-stamp) +-# time-stamp-start: "timestamp='" +-# time-stamp-format: "%:y-%02m-%02d" +-# time-stamp-end: "'" +-# End: +diff --git a/config.sub b/config.sub +deleted file mode 100644 +index f53af5a..0000000 +--- a/config.sub ++++ /dev/null +@@ -1,1798 +0,0 @@ +-#! /bin/sh +-# Configuration validation subroutine script. +-# Copyright 1992-2019 Free Software Foundation, Inc. +- +-timestamp='2019-01-05' +- +-# This file 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 . +-# +-# 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 Exception is an additional permission under section 7 +-# of the GNU General Public License, version 3 ("GPLv3"). +- +- +-# Please send patches to . +-# +-# Configuration subroutine to validate and canonicalize a configuration type. +-# Supply the specified configuration type as an argument. +-# If it is invalid, we print an error message on stderr and exit with code 1. +-# Otherwise, we print the canonical config type on stdout and succeed. +- +-# You can get the latest version of this script from: +-# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub +- +-# This file is supposed to be the same for all GNU packages +-# and recognize all the CPU types, system types and aliases +-# that are meaningful with *any* GNU software. +-# Each package is responsible for reporting which valid configurations +-# it does not support. The user should be able to distinguish +-# a failure to support a valid configuration from a meaningless +-# configuration. +- +-# The goal of this file is to map all the various variations of a given +-# machine specification into a single specification in the form: +-# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +-# or in some cases, the newer four-part form: +-# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +-# It is wrong to echo any other type of specification. +- +-me=`echo "$0" | sed -e 's,.*/,,'` +- +-usage="\ +-Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS +- +-Canonicalize a configuration name. +- +-Options: +- -h, --help print this help, then exit +- -t, --time-stamp print date of last modification, then exit +- -v, --version print version number, then exit +- +-Report bugs and patches to ." +- +-version="\ +-GNU config.sub ($timestamp) +- +-Copyright 1992-2019 Free Software Foundation, Inc. +- +-This is free software; see the source for copying conditions. There is NO +-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." +- +-help=" +-Try \`$me --help' for more information." +- +-# Parse command line +-while test $# -gt 0 ; do +- case $1 in +- --time-stamp | --time* | -t ) +- echo "$timestamp" ; exit ;; +- --version | -v ) +- echo "$version" ; exit ;; +- --help | --h* | -h ) +- echo "$usage"; exit ;; +- -- ) # Stop option processing +- shift; break ;; +- - ) # Use stdin as input. +- break ;; +- -* ) +- echo "$me: invalid option $1$help" >&2 +- exit 1 ;; +- +- *local*) +- # First pass through any local machine types. +- echo "$1" +- exit ;; +- +- * ) +- break ;; +- esac +-done +- +-case $# in +- 0) echo "$me: missing argument$help" >&2 +- exit 1;; +- 1) ;; +- *) echo "$me: too many arguments$help" >&2 +- exit 1;; +-esac +- +-# Split fields of configuration type +-# shellcheck disable=SC2162 +-IFS="-" read field1 field2 field3 field4 <&2 +- exit 1 +- ;; +- *-*-*-*) +- basic_machine=$field1-$field2 +- os=$field3-$field4 +- ;; +- *-*-*) +- # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two +- # parts +- maybe_os=$field2-$field3 +- case $maybe_os in +- nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \ +- | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \ +- | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ +- | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ +- | storm-chaos* | os2-emx* | rtmk-nova*) +- basic_machine=$field1 +- os=$maybe_os +- ;; +- android-linux) +- basic_machine=$field1-unknown +- os=linux-android +- ;; +- *) +- basic_machine=$field1-$field2 +- os=$field3 +- ;; +- esac +- ;; +- *-*) +- # A lone config we happen to match not fitting any pattern +- case $field1-$field2 in +- decstation-3100) +- basic_machine=mips-dec +- os= +- ;; +- *-*) +- # Second component is usually, but not always the OS +- case $field2 in +- # Prevent following clause from handling this valid os +- sun*os*) +- basic_machine=$field1 +- os=$field2 +- ;; +- # Manufacturers +- dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ +- | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ +- | unicom* | ibm* | next | hp | isi* | apollo | altos* \ +- | convergent* | ncr* | news | 32* | 3600* | 3100* \ +- | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ +- | ultra | tti* | harris | dolphin | highlevel | gould \ +- | cbm | ns | masscomp | apple | axis | knuth | cray \ +- | microblaze* | sim | cisco \ +- | oki | wec | wrs | winbond) +- basic_machine=$field1-$field2 +- os= +- ;; +- *) +- basic_machine=$field1 +- os=$field2 +- ;; +- esac +- ;; +- esac +- ;; +- *) +- # Convert single-component short-hands not valid as part of +- # multi-component configurations. +- case $field1 in +- 386bsd) +- basic_machine=i386-pc +- os=bsd +- ;; +- a29khif) +- basic_machine=a29k-amd +- os=udi +- ;; +- adobe68k) +- basic_machine=m68010-adobe +- os=scout +- ;; +- alliant) +- basic_machine=fx80-alliant +- os= +- ;; +- altos | altos3068) +- basic_machine=m68k-altos +- os= +- ;; +- am29k) +- basic_machine=a29k-none +- os=bsd +- ;; +- amdahl) +- basic_machine=580-amdahl +- os=sysv +- ;; +- amiga) +- basic_machine=m68k-unknown +- os= +- ;; +- amigaos | amigados) +- basic_machine=m68k-unknown +- os=amigaos +- ;; +- amigaunix | amix) +- basic_machine=m68k-unknown +- os=sysv4 +- ;; +- apollo68) +- basic_machine=m68k-apollo +- os=sysv +- ;; +- apollo68bsd) +- basic_machine=m68k-apollo +- os=bsd +- ;; +- aros) +- basic_machine=i386-pc +- os=aros +- ;; +- aux) +- basic_machine=m68k-apple +- os=aux +- ;; +- balance) +- basic_machine=ns32k-sequent +- os=dynix +- ;; +- blackfin) +- basic_machine=bfin-unknown +- os=linux +- ;; +- cegcc) +- basic_machine=arm-unknown +- os=cegcc +- ;; +- convex-c1) +- basic_machine=c1-convex +- os=bsd +- ;; +- convex-c2) +- basic_machine=c2-convex +- os=bsd +- ;; +- convex-c32) +- basic_machine=c32-convex +- os=bsd +- ;; +- convex-c34) +- basic_machine=c34-convex +- os=bsd +- ;; +- convex-c38) +- basic_machine=c38-convex +- os=bsd +- ;; +- cray) +- basic_machine=j90-cray +- os=unicos +- ;; +- crds | unos) +- basic_machine=m68k-crds +- os= +- ;; +- da30) +- basic_machine=m68k-da30 +- os= +- ;; +- decstation | pmax | pmin | dec3100 | decstatn) +- basic_machine=mips-dec +- os= +- ;; +- delta88) +- basic_machine=m88k-motorola +- os=sysv3 +- ;; +- dicos) +- basic_machine=i686-pc +- os=dicos +- ;; +- djgpp) +- basic_machine=i586-pc +- os=msdosdjgpp +- ;; +- ebmon29k) +- basic_machine=a29k-amd +- os=ebmon +- ;; +- es1800 | OSE68k | ose68k | ose | OSE) +- basic_machine=m68k-ericsson +- os=ose +- ;; +- gmicro) +- basic_machine=tron-gmicro +- os=sysv +- ;; +- go32) +- basic_machine=i386-pc +- os=go32 +- ;; +- h8300hms) +- basic_machine=h8300-hitachi +- os=hms +- ;; +- h8300xray) +- basic_machine=h8300-hitachi +- os=xray +- ;; +- h8500hms) +- basic_machine=h8500-hitachi +- os=hms +- ;; +- harris) +- basic_machine=m88k-harris +- os=sysv3 +- ;; +- hp300) +- basic_machine=m68k-hp +- ;; +- hp300bsd) +- basic_machine=m68k-hp +- os=bsd +- ;; +- hp300hpux) +- basic_machine=m68k-hp +- os=hpux +- ;; +- hppaosf) +- basic_machine=hppa1.1-hp +- os=osf +- ;; +- hppro) +- basic_machine=hppa1.1-hp +- os=proelf +- ;; +- i386mach) +- basic_machine=i386-mach +- os=mach +- ;; +- vsta) +- basic_machine=i386-pc +- os=vsta +- ;; +- isi68 | isi) +- basic_machine=m68k-isi +- os=sysv +- ;; +- m68knommu) +- basic_machine=m68k-unknown +- os=linux +- ;; +- magnum | m3230) +- basic_machine=mips-mips +- os=sysv +- ;; +- merlin) +- basic_machine=ns32k-utek +- os=sysv +- ;; +- mingw64) +- basic_machine=x86_64-pc +- os=mingw64 +- ;; +- mingw32) +- basic_machine=i686-pc +- os=mingw32 +- ;; +- mingw32ce) +- basic_machine=arm-unknown +- os=mingw32ce +- ;; +- monitor) +- basic_machine=m68k-rom68k +- os=coff +- ;; +- morphos) +- basic_machine=powerpc-unknown +- os=morphos +- ;; +- moxiebox) +- basic_machine=moxie-unknown +- os=moxiebox +- ;; +- msdos) +- basic_machine=i386-pc +- os=msdos +- ;; +- msys) +- basic_machine=i686-pc +- os=msys +- ;; +- mvs) +- basic_machine=i370-ibm +- os=mvs +- ;; +- nacl) +- basic_machine=le32-unknown +- os=nacl +- ;; +- ncr3000) +- basic_machine=i486-ncr +- os=sysv4 +- ;; +- netbsd386) +- basic_machine=i386-pc +- os=netbsd +- ;; +- netwinder) +- basic_machine=armv4l-rebel +- os=linux +- ;; +- news | news700 | news800 | news900) +- basic_machine=m68k-sony +- os=newsos +- ;; +- news1000) +- basic_machine=m68030-sony +- os=newsos +- ;; +- necv70) +- basic_machine=v70-nec +- os=sysv +- ;; +- nh3000) +- basic_machine=m68k-harris +- os=cxux +- ;; +- nh[45]000) +- basic_machine=m88k-harris +- os=cxux +- ;; +- nindy960) +- basic_machine=i960-intel +- os=nindy +- ;; +- mon960) +- basic_machine=i960-intel +- os=mon960 +- ;; +- nonstopux) +- basic_machine=mips-compaq +- os=nonstopux +- ;; +- os400) +- basic_machine=powerpc-ibm +- os=os400 +- ;; +- OSE68000 | ose68000) +- basic_machine=m68000-ericsson +- os=ose +- ;; +- os68k) +- basic_machine=m68k-none +- os=os68k +- ;; +- paragon) +- basic_machine=i860-intel +- os=osf +- ;; +- parisc) +- basic_machine=hppa-unknown +- os=linux +- ;; +- pw32) +- basic_machine=i586-unknown +- os=pw32 +- ;; +- rdos | rdos64) +- basic_machine=x86_64-pc +- os=rdos +- ;; +- rdos32) +- basic_machine=i386-pc +- os=rdos +- ;; +- rom68k) +- basic_machine=m68k-rom68k +- os=coff +- ;; +- sa29200) +- basic_machine=a29k-amd +- os=udi +- ;; +- sei) +- basic_machine=mips-sei +- os=seiux +- ;; +- sequent) +- basic_machine=i386-sequent +- os= +- ;; +- sps7) +- basic_machine=m68k-bull +- os=sysv2 +- ;; +- st2000) +- basic_machine=m68k-tandem +- os= +- ;; +- stratus) +- basic_machine=i860-stratus +- os=sysv4 +- ;; +- sun2) +- basic_machine=m68000-sun +- os= +- ;; +- sun2os3) +- basic_machine=m68000-sun +- os=sunos3 +- ;; +- sun2os4) +- basic_machine=m68000-sun +- os=sunos4 +- ;; +- sun3) +- basic_machine=m68k-sun +- os= +- ;; +- sun3os3) +- basic_machine=m68k-sun +- os=sunos3 +- ;; +- sun3os4) +- basic_machine=m68k-sun +- os=sunos4 +- ;; +- sun4) +- basic_machine=sparc-sun +- os= +- ;; +- sun4os3) +- basic_machine=sparc-sun +- os=sunos3 +- ;; +- sun4os4) +- basic_machine=sparc-sun +- os=sunos4 +- ;; +- sun4sol2) +- basic_machine=sparc-sun +- os=solaris2 +- ;; +- sun386 | sun386i | roadrunner) +- basic_machine=i386-sun +- os= +- ;; +- sv1) +- basic_machine=sv1-cray +- os=unicos +- ;; +- symmetry) +- basic_machine=i386-sequent +- os=dynix +- ;; +- t3e) +- basic_machine=alphaev5-cray +- os=unicos +- ;; +- t90) +- basic_machine=t90-cray +- os=unicos +- ;; +- toad1) +- basic_machine=pdp10-xkl +- os=tops20 +- ;; +- tpf) +- basic_machine=s390x-ibm +- os=tpf +- ;; +- udi29k) +- basic_machine=a29k-amd +- os=udi +- ;; +- ultra3) +- basic_machine=a29k-nyu +- os=sym1 +- ;; +- v810 | necv810) +- basic_machine=v810-nec +- os=none +- ;; +- vaxv) +- basic_machine=vax-dec +- os=sysv +- ;; +- vms) +- basic_machine=vax-dec +- os=vms +- ;; +- vxworks960) +- basic_machine=i960-wrs +- os=vxworks +- ;; +- vxworks68) +- basic_machine=m68k-wrs +- os=vxworks +- ;; +- vxworks29k) +- basic_machine=a29k-wrs +- os=vxworks +- ;; +- xbox) +- basic_machine=i686-pc +- os=mingw32 +- ;; +- ymp) +- basic_machine=ymp-cray +- os=unicos +- ;; +- *) +- basic_machine=$1 +- os= +- ;; +- esac +- ;; +-esac +- +-# Decode 1-component or ad-hoc basic machines +-case $basic_machine in +- # Here we handle the default manufacturer of certain CPU types. It is in +- # some cases the only manufacturer, in others, it is the most popular. +- w89k) +- cpu=hppa1.1 +- vendor=winbond +- ;; +- op50n) +- cpu=hppa1.1 +- vendor=oki +- ;; +- op60c) +- cpu=hppa1.1 +- vendor=oki +- ;; +- ibm*) +- cpu=i370 +- vendor=ibm +- ;; +- orion105) +- cpu=clipper +- vendor=highlevel +- ;; +- mac | mpw | mac-mpw) +- cpu=m68k +- vendor=apple +- ;; +- pmac | pmac-mpw) +- cpu=powerpc +- vendor=apple +- ;; +- +- # Recognize the various machine names and aliases which stand +- # for a CPU type and a company and sometimes even an OS. +- 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) +- cpu=m68000 +- vendor=att +- ;; +- 3b*) +- cpu=we32k +- vendor=att +- ;; +- bluegene*) +- cpu=powerpc +- vendor=ibm +- os=cnk +- ;; +- decsystem10* | dec10*) +- cpu=pdp10 +- vendor=dec +- os=tops10 +- ;; +- decsystem20* | dec20*) +- cpu=pdp10 +- vendor=dec +- os=tops20 +- ;; +- delta | 3300 | motorola-3300 | motorola-delta \ +- | 3300-motorola | delta-motorola) +- cpu=m68k +- vendor=motorola +- ;; +- dpx2*) +- cpu=m68k +- vendor=bull +- os=sysv3 +- ;; +- encore | umax | mmax) +- cpu=ns32k +- vendor=encore +- ;; +- elxsi) +- cpu=elxsi +- vendor=elxsi +- os=${os:-bsd} +- ;; +- fx2800) +- cpu=i860 +- vendor=alliant +- ;; +- genix) +- cpu=ns32k +- vendor=ns +- ;; +- h3050r* | hiux*) +- cpu=hppa1.1 +- vendor=hitachi +- os=hiuxwe2 +- ;; +- hp3k9[0-9][0-9] | hp9[0-9][0-9]) +- cpu=hppa1.0 +- vendor=hp +- ;; +- hp9k2[0-9][0-9] | hp9k31[0-9]) +- cpu=m68000 +- vendor=hp +- ;; +- hp9k3[2-9][0-9]) +- cpu=m68k +- vendor=hp +- ;; +- hp9k6[0-9][0-9] | hp6[0-9][0-9]) +- cpu=hppa1.0 +- vendor=hp +- ;; +- hp9k7[0-79][0-9] | hp7[0-79][0-9]) +- cpu=hppa1.1 +- vendor=hp +- ;; +- hp9k78[0-9] | hp78[0-9]) +- # FIXME: really hppa2.0-hp +- cpu=hppa1.1 +- vendor=hp +- ;; +- hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) +- # FIXME: really hppa2.0-hp +- cpu=hppa1.1 +- vendor=hp +- ;; +- hp9k8[0-9][13679] | hp8[0-9][13679]) +- cpu=hppa1.1 +- vendor=hp +- ;; +- hp9k8[0-9][0-9] | hp8[0-9][0-9]) +- cpu=hppa1.0 +- vendor=hp +- ;; +- i*86v32) +- cpu=`echo "$1" | sed -e 's/86.*/86/'` +- vendor=pc +- os=sysv32 +- ;; +- i*86v4*) +- cpu=`echo "$1" | sed -e 's/86.*/86/'` +- vendor=pc +- os=sysv4 +- ;; +- i*86v) +- cpu=`echo "$1" | sed -e 's/86.*/86/'` +- vendor=pc +- os=sysv +- ;; +- i*86sol2) +- cpu=`echo "$1" | sed -e 's/86.*/86/'` +- vendor=pc +- os=solaris2 +- ;; +- j90 | j90-cray) +- cpu=j90 +- vendor=cray +- os=${os:-unicos} +- ;; +- iris | iris4d) +- cpu=mips +- vendor=sgi +- case $os in +- irix*) +- ;; +- *) +- os=irix4 +- ;; +- esac +- ;; +- miniframe) +- cpu=m68000 +- vendor=convergent +- ;; +- *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) +- cpu=m68k +- vendor=atari +- os=mint +- ;; +- news-3600 | risc-news) +- cpu=mips +- vendor=sony +- os=newsos +- ;; +- next | m*-next) +- cpu=m68k +- vendor=next +- case $os in +- openstep*) +- ;; +- nextstep*) +- ;; +- ns2*) +- os=nextstep2 +- ;; +- *) +- os=nextstep3 +- ;; +- esac +- ;; +- np1) +- cpu=np1 +- vendor=gould +- ;; +- op50n-* | op60c-*) +- cpu=hppa1.1 +- vendor=oki +- os=proelf +- ;; +- pa-hitachi) +- cpu=hppa1.1 +- vendor=hitachi +- os=hiuxwe2 +- ;; +- pbd) +- cpu=sparc +- vendor=tti +- ;; +- pbb) +- cpu=m68k +- vendor=tti +- ;; +- pc532) +- cpu=ns32k +- vendor=pc532 +- ;; +- pn) +- cpu=pn +- vendor=gould +- ;; +- power) +- cpu=power +- vendor=ibm +- ;; +- ps2) +- cpu=i386 +- vendor=ibm +- ;; +- rm[46]00) +- cpu=mips +- vendor=siemens +- ;; +- rtpc | rtpc-*) +- cpu=romp +- vendor=ibm +- ;; +- sde) +- cpu=mipsisa32 +- vendor=sde +- os=${os:-elf} +- ;; +- simso-wrs) +- cpu=sparclite +- vendor=wrs +- os=vxworks +- ;; +- tower | tower-32) +- cpu=m68k +- vendor=ncr +- ;; +- vpp*|vx|vx-*) +- cpu=f301 +- vendor=fujitsu +- ;; +- w65) +- cpu=w65 +- vendor=wdc +- ;; +- w89k-*) +- cpu=hppa1.1 +- vendor=winbond +- os=proelf +- ;; +- none) +- cpu=none +- vendor=none +- ;; +- leon|leon[3-9]) +- cpu=sparc +- vendor=$basic_machine +- ;; +- leon-*|leon[3-9]-*) +- cpu=sparc +- vendor=`echo "$basic_machine" | sed 's/-.*//'` +- ;; +- +- *-*) +- # shellcheck disable=SC2162 +- IFS="-" read cpu vendor <&2 +- exit 1 +- ;; +- esac +- ;; +-esac +- +-# Here we canonicalize certain aliases for manufacturers. +-case $vendor in +- digital*) +- vendor=dec +- ;; +- commodore*) +- vendor=cbm +- ;; +- *) +- ;; +-esac +- +-# Decode manufacturer-specific aliases for certain operating systems. +- +-if [ x$os != x ] +-then +-case $os in +- # First match some system type aliases that might get confused +- # with valid system types. +- # solaris* is a basic system type, with this one exception. +- auroraux) +- os=auroraux +- ;; +- bluegene*) +- os=cnk +- ;; +- solaris1 | solaris1.*) +- os=`echo $os | sed -e 's|solaris1|sunos4|'` +- ;; +- solaris) +- os=solaris2 +- ;; +- unixware*) +- os=sysv4.2uw +- ;; +- gnu/linux*) +- os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` +- ;; +- # es1800 is here to avoid being matched by es* (a different OS) +- es1800*) +- os=ose +- ;; +- # Some version numbers need modification +- chorusos*) +- os=chorusos +- ;; +- isc) +- os=isc2.2 +- ;; +- sco6) +- os=sco5v6 +- ;; +- sco5) +- os=sco3.2v5 +- ;; +- sco4) +- os=sco3.2v4 +- ;; +- sco3.2.[4-9]*) +- os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` +- ;; +- sco3.2v[4-9]* | sco5v6*) +- # Don't forget version if it is 3.2v4 or newer. +- ;; +- scout) +- # Don't match below +- ;; +- sco*) +- os=sco3.2v2 +- ;; +- psos*) +- os=psos +- ;; +- # Now accept the basic system types. +- # The portable systems comes first. +- # Each alternative MUST end in a * to match a version number. +- # sysv* is not here because it comes later, after sysvr4. +- gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ +- | *vms* | esix* | aix* | cnk* | sunos | sunos[34]*\ +- | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ +- | sym* | kopensolaris* | plan9* \ +- | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ +- | aos* | aros* | cloudabi* | sortix* \ +- | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ +- | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \ +- | knetbsd* | mirbsd* | netbsd* \ +- | bitrig* | openbsd* | solidbsd* | libertybsd* \ +- | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \ +- | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \ +- | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \ +- | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \ +- | chorusrdb* | cegcc* | glidix* \ +- | cygwin* | msys* | pe* | moss* | proelf* | rtems* \ +- | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \ +- | linux-newlib* | linux-musl* | linux-uclibc* \ +- | uxpv* | beos* | mpeix* | udk* | moxiebox* \ +- | interix* | uwin* | mks* | rhapsody* | darwin* \ +- | openstep* | oskit* | conix* | pw32* | nonstopux* \ +- | storm-chaos* | tops10* | tenex* | tops20* | its* \ +- | os2* | vos* | palmos* | uclinux* | nucleus* \ +- | morphos* | superux* | rtmk* | windiss* \ +- | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \ +- | skyos* | haiku* | rdos* | toppers* | drops* | es* \ +- | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ +- | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi*) +- # Remember, each alternative MUST END IN *, to match a version number. +- ;; +- qnx*) +- case $cpu in +- x86 | i*86) +- ;; +- *) +- os=nto-$os +- ;; +- esac +- ;; +- hiux*) +- os=hiuxwe2 +- ;; +- nto-qnx*) +- ;; +- nto*) +- os=`echo $os | sed -e 's|nto|nto-qnx|'` +- ;; +- sim | xray | os68k* | v88r* \ +- | windows* | osx | abug | netware* | os9* \ +- | macos* | mpw* | magic* | mmixware* | mon960* | lnews*) +- ;; +- linux-dietlibc) +- os=linux-dietlibc +- ;; +- linux*) +- os=`echo $os | sed -e 's|linux|linux-gnu|'` +- ;; +- lynx*178) +- os=lynxos178 +- ;; +- lynx*5) +- os=lynxos5 +- ;; +- lynx*) +- os=lynxos +- ;; +- mac*) +- os=`echo "$os" | sed -e 's|mac|macos|'` +- ;; +- opened*) +- os=openedition +- ;; +- os400*) +- os=os400 +- ;; +- sunos5*) +- os=`echo "$os" | sed -e 's|sunos5|solaris2|'` +- ;; +- sunos6*) +- os=`echo "$os" | sed -e 's|sunos6|solaris3|'` +- ;; +- wince*) +- os=wince +- ;; +- utek*) +- os=bsd +- ;; +- dynix*) +- os=bsd +- ;; +- acis*) +- os=aos +- ;; +- atheos*) +- os=atheos +- ;; +- syllable*) +- os=syllable +- ;; +- 386bsd) +- os=bsd +- ;; +- ctix* | uts*) +- os=sysv +- ;; +- nova*) +- os=rtmk-nova +- ;; +- ns2) +- os=nextstep2 +- ;; +- nsk*) +- os=nsk +- ;; +- # Preserve the version number of sinix5. +- sinix5.*) +- os=`echo $os | sed -e 's|sinix|sysv|'` +- ;; +- sinix*) +- os=sysv4 +- ;; +- tpf*) +- os=tpf +- ;; +- triton*) +- os=sysv3 +- ;; +- oss*) +- os=sysv3 +- ;; +- svr4*) +- os=sysv4 +- ;; +- svr3) +- os=sysv3 +- ;; +- sysvr4) +- os=sysv4 +- ;; +- # This must come after sysvr4. +- sysv*) +- ;; +- ose*) +- os=ose +- ;; +- *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) +- os=mint +- ;; +- zvmoe) +- os=zvmoe +- ;; +- dicos*) +- os=dicos +- ;; +- pikeos*) +- # Until real need of OS specific support for +- # particular features comes up, bare metal +- # configurations are quite functional. +- case $cpu in +- arm*) +- os=eabi +- ;; +- *) +- os=elf +- ;; +- esac +- ;; +- nacl*) +- ;; +- ios) +- ;; +- none) +- ;; +- *-eabi) +- ;; +- *) +- echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 +- exit 1 +- ;; +-esac +-else +- +-# Here we handle the default operating systems that come with various machines. +-# The value should be what the vendor currently ships out the door with their +-# machine or put another way, the most popular os provided with the machine. +- +-# Note that if you're going to try to match "-MANUFACTURER" here (say, +-# "-sun"), then you have to tell the case statement up towards the top +-# that MANUFACTURER isn't an operating system. Otherwise, code above +-# will signal an error saying that MANUFACTURER isn't an operating +-# system, and we'll never get to this point. +- +-case $cpu-$vendor in +- score-*) +- os=elf +- ;; +- spu-*) +- os=elf +- ;; +- *-acorn) +- os=riscix1.2 +- ;; +- arm*-rebel) +- os=linux +- ;; +- arm*-semi) +- os=aout +- ;; +- c4x-* | tic4x-*) +- os=coff +- ;; +- c8051-*) +- os=elf +- ;; +- clipper-intergraph) +- os=clix +- ;; +- hexagon-*) +- os=elf +- ;; +- tic54x-*) +- os=coff +- ;; +- tic55x-*) +- os=coff +- ;; +- tic6x-*) +- os=coff +- ;; +- # This must come before the *-dec entry. +- pdp10-*) +- os=tops20 +- ;; +- pdp11-*) +- os=none +- ;; +- *-dec | vax-*) +- os=ultrix4.2 +- ;; +- m68*-apollo) +- os=domain +- ;; +- i386-sun) +- os=sunos4.0.2 +- ;; +- m68000-sun) +- os=sunos3 +- ;; +- m68*-cisco) +- os=aout +- ;; +- mep-*) +- os=elf +- ;; +- mips*-cisco) +- os=elf +- ;; +- mips*-*) +- os=elf +- ;; +- or32-*) +- os=coff +- ;; +- *-tti) # must be before sparc entry or we get the wrong os. +- os=sysv3 +- ;; +- sparc-* | *-sun) +- os=sunos4.1.1 +- ;; +- pru-*) +- os=elf +- ;; +- *-be) +- os=beos +- ;; +- *-ibm) +- os=aix +- ;; +- *-knuth) +- os=mmixware +- ;; +- *-wec) +- os=proelf +- ;; +- *-winbond) +- os=proelf +- ;; +- *-oki) +- os=proelf +- ;; +- *-hp) +- os=hpux +- ;; +- *-hitachi) +- os=hiux +- ;; +- i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) +- os=sysv +- ;; +- *-cbm) +- os=amigaos +- ;; +- *-dg) +- os=dgux +- ;; +- *-dolphin) +- os=sysv3 +- ;; +- m68k-ccur) +- os=rtu +- ;; +- m88k-omron*) +- os=luna +- ;; +- *-next) +- os=nextstep +- ;; +- *-sequent) +- os=ptx +- ;; +- *-crds) +- os=unos +- ;; +- *-ns) +- os=genix +- ;; +- i370-*) +- os=mvs +- ;; +- *-gould) +- os=sysv +- ;; +- *-highlevel) +- os=bsd +- ;; +- *-encore) +- os=bsd +- ;; +- *-sgi) +- os=irix +- ;; +- *-siemens) +- os=sysv4 +- ;; +- *-masscomp) +- os=rtu +- ;; +- f30[01]-fujitsu | f700-fujitsu) +- os=uxpv +- ;; +- *-rom68k) +- os=coff +- ;; +- *-*bug) +- os=coff +- ;; +- *-apple) +- os=macos +- ;; +- *-atari*) +- os=mint +- ;; +- *-wrs) +- os=vxworks +- ;; +- *) +- os=none +- ;; +-esac +-fi +- +-# Here we handle the case where we know the os, and the CPU type, but not the +-# manufacturer. We pick the logical manufacturer. +-case $vendor in +- unknown) +- case $os in +- riscix*) +- vendor=acorn +- ;; +- sunos*) +- vendor=sun +- ;; +- cnk*|-aix*) +- vendor=ibm +- ;; +- beos*) +- vendor=be +- ;; +- hpux*) +- vendor=hp +- ;; +- mpeix*) +- vendor=hp +- ;; +- hiux*) +- vendor=hitachi +- ;; +- unos*) +- vendor=crds +- ;; +- dgux*) +- vendor=dg +- ;; +- luna*) +- vendor=omron +- ;; +- genix*) +- vendor=ns +- ;; +- clix*) +- vendor=intergraph +- ;; +- mvs* | opened*) +- vendor=ibm +- ;; +- os400*) +- vendor=ibm +- ;; +- ptx*) +- vendor=sequent +- ;; +- tpf*) +- vendor=ibm +- ;; +- vxsim* | vxworks* | windiss*) +- vendor=wrs +- ;; +- aux*) +- vendor=apple +- ;; +- hms*) +- vendor=hitachi +- ;; +- mpw* | macos*) +- vendor=apple +- ;; +- *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) +- vendor=atari +- ;; +- vos*) +- vendor=stratus +- ;; +- esac +- ;; +-esac +- +-echo "$cpu-$vendor-$os" +-exit +- +-# Local variables: +-# eval: (add-hook 'before-save-hook 'time-stamp) +-# time-stamp-start: "timestamp='" +-# time-stamp-format: "%:y-%02m-%02d" +-# time-stamp-end: "'" +-# End: diff --git a/patches/0002-Delete-configure-output.patch b/patches/0002-Delete-configure-output.patch new file mode 100644 index 0000000000..cb57c4ba7c --- /dev/null +++ b/patches/0002-Delete-configure-output.patch @@ -0,0 +1,18412 @@ +From: Ian Jackson +Date: Wed, 19 Sep 2018 16:53:22 +0100 +Subject: Delete configure output + +These autogenerated files are not useful in Debian; dh_autoreconf will +regenerate them. + +If this patch does not apply when rebasing, you can simply delete the +files again. + +Signed-off-by: Ian Jackson +--- + configure | 3618 ----------------- + docs/configure | 3427 ----------------- + tools/configure | 11329 ------------------------------------------------------ + 3 files changed, 18374 deletions(-) + delete mode 100755 configure + delete mode 100755 docs/configure + delete mode 100755 tools/configure + +diff --git a/configure b/configure +deleted file mode 100755 +index 9da3970..0000000 +--- a/configure ++++ /dev/null +@@ -1,3618 +0,0 @@ +-#! /bin/sh +-# Guess values for system-dependent variables and create Makefiles. +-# Generated by GNU Autoconf 2.69 for Xen Hypervisor 4.14. +-# +-# Report bugs to . +-# +-# +-# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +-# +-# +-# This configure script is free software; the Free Software Foundation +-# gives unlimited permission to copy, distribute and modify it. +-## -------------------- ## +-## M4sh Initialization. ## +-## -------------------- ## +- +-# Be more Bourne compatible +-DUALCASE=1; export DUALCASE # for MKS sh +-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +- emulate sh +- NULLCMD=: +- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which +- # is contrary to our usage. Disable this feature. +- alias -g '${1+"$@"}'='"$@"' +- setopt NO_GLOB_SUBST +-else +- case `(set -o) 2>/dev/null` in #( +- *posix*) : +- set -o posix ;; #( +- *) : +- ;; +-esac +-fi +- +- +-as_nl=' +-' +-export as_nl +-# Printing a long string crashes Solaris 7 /usr/bin/printf. +-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +-# Prefer a ksh shell builtin over an external printf program on Solaris, +-# but without wasting forks for bash or zsh. +-if test -z "$BASH_VERSION$ZSH_VERSION" \ +- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then +- as_echo='print -r --' +- as_echo_n='print -rn --' +-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then +- as_echo='printf %s\n' +- as_echo_n='printf %s' +-else +- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then +- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' +- as_echo_n='/usr/ucb/echo -n' +- else +- as_echo_body='eval expr "X$1" : "X\\(.*\\)"' +- as_echo_n_body='eval +- arg=$1; +- case $arg in #( +- *"$as_nl"*) +- expr "X$arg" : "X\\(.*\\)$as_nl"; +- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; +- esac; +- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" +- ' +- export as_echo_n_body +- as_echo_n='sh -c $as_echo_n_body as_echo' +- fi +- export as_echo_body +- as_echo='sh -c $as_echo_body as_echo' +-fi +- +-# The user is always right. +-if test "${PATH_SEPARATOR+set}" != set; then +- PATH_SEPARATOR=: +- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { +- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || +- PATH_SEPARATOR=';' +- } +-fi +- +- +-# IFS +-# We need space, tab and new line, in precisely that order. Quoting is +-# there to prevent editors from complaining about space-tab. +-# (If _AS_PATH_WALK were called with IFS unset, it would disable word +-# splitting by setting IFS to empty value.) +-IFS=" "" $as_nl" +- +-# Find who we are. Look in the path if we contain no directory separator. +-as_myself= +-case $0 in #(( +- *[\\/]* ) as_myself=$0 ;; +- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-# We did not find ourselves, most probably we were run as `sh COMMAND' +-# in which case we are not to be found in the path. +-if test "x$as_myself" = x; then +- as_myself=$0 +-fi +-if test ! -f "$as_myself"; then +- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 +- exit 1 +-fi +- +-# Unset variables that we do not need and which cause bugs (e.g. in +-# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +-# suppresses any "Segmentation fault" message there. '((' could +-# trigger a bug in pdksh 5.2.14. +-for as_var in BASH_ENV ENV MAIL MAILPATH +-do eval test x\${$as_var+set} = xset \ +- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +-done +-PS1='$ ' +-PS2='> ' +-PS4='+ ' +- +-# NLS nuisances. +-LC_ALL=C +-export LC_ALL +-LANGUAGE=C +-export LANGUAGE +- +-# CDPATH. +-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH +- +-# Use a proper internal environment variable to ensure we don't fall +- # into an infinite loop, continuously re-executing ourselves. +- if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then +- _as_can_reexec=no; export _as_can_reexec; +- # We cannot yet assume a decent shell, so we have to provide a +-# neutralization value for shells without unset; and this also +-# works around shells that cannot unset nonexistent variables. +-# Preserve -v and -x to the replacement shell. +-BASH_ENV=/dev/null +-ENV=/dev/null +-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +-case $- in # (((( +- *v*x* | *x*v* ) as_opts=-vx ;; +- *v* ) as_opts=-v ;; +- *x* ) as_opts=-x ;; +- * ) as_opts= ;; +-esac +-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +-# Admittedly, this is quite paranoid, since all the known shells bail +-# out after a failed `exec'. +-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +-as_fn_exit 255 +- fi +- # We don't want this to propagate to other subprocesses. +- { _as_can_reexec=; unset _as_can_reexec;} +-if test "x$CONFIG_SHELL" = x; then +- as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : +- emulate sh +- NULLCMD=: +- # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which +- # is contrary to our usage. Disable this feature. +- alias -g '\${1+\"\$@\"}'='\"\$@\"' +- setopt NO_GLOB_SUBST +-else +- case \`(set -o) 2>/dev/null\` in #( +- *posix*) : +- set -o posix ;; #( +- *) : +- ;; +-esac +-fi +-" +- as_required="as_fn_return () { (exit \$1); } +-as_fn_success () { as_fn_return 0; } +-as_fn_failure () { as_fn_return 1; } +-as_fn_ret_success () { return 0; } +-as_fn_ret_failure () { return 1; } +- +-exitcode=0 +-as_fn_success || { exitcode=1; echo as_fn_success failed.; } +-as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +-as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +-as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +-if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : +- +-else +- exitcode=1; echo positional parameters were not saved. +-fi +-test x\$exitcode = x0 || exit 1 +-test -x / || exit 1" +- as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO +- as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO +- eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && +- test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" +- if (eval "$as_required") 2>/dev/null; then : +- as_have_required=yes +-else +- as_have_required=no +-fi +- if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : +- +-else +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-as_found=false +-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- as_found=: +- case $as_dir in #( +- /*) +- for as_base in sh bash ksh sh5; do +- # Try only shells that exist, to save several forks. +- as_shell=$as_dir/$as_base +- if { test -f "$as_shell" || test -f "$as_shell.exe"; } && +- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : +- CONFIG_SHELL=$as_shell as_have_required=yes +- if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : +- break 2 +-fi +-fi +- done;; +- esac +- as_found=false +-done +-$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && +- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : +- CONFIG_SHELL=$SHELL as_have_required=yes +-fi; } +-IFS=$as_save_IFS +- +- +- if test "x$CONFIG_SHELL" != x; then : +- export CONFIG_SHELL +- # We cannot yet assume a decent shell, so we have to provide a +-# neutralization value for shells without unset; and this also +-# works around shells that cannot unset nonexistent variables. +-# Preserve -v and -x to the replacement shell. +-BASH_ENV=/dev/null +-ENV=/dev/null +-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +-case $- in # (((( +- *v*x* | *x*v* ) as_opts=-vx ;; +- *v* ) as_opts=-v ;; +- *x* ) as_opts=-x ;; +- * ) as_opts= ;; +-esac +-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +-# Admittedly, this is quite paranoid, since all the known shells bail +-# out after a failed `exec'. +-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +-exit 255 +-fi +- +- if test x$as_have_required = xno; then : +- $as_echo "$0: This script requires a shell more modern than all" +- $as_echo "$0: the shells that I found on your system." +- if test x${ZSH_VERSION+set} = xset ; then +- $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" +- $as_echo "$0: be upgraded to zsh 4.3.4 or later." +- else +- $as_echo "$0: Please tell bug-autoconf@gnu.org and +-$0: xen-devel@lists.xen.org about your system, including +-$0: any error possibly output before this message. Then +-$0: install a modern shell, or manually run the script +-$0: under such a shell if you do have one." +- fi +- exit 1 +-fi +-fi +-fi +-SHELL=${CONFIG_SHELL-/bin/sh} +-export SHELL +-# Unset more variables known to interfere with behavior of common tools. +-CLICOLOR_FORCE= GREP_OPTIONS= +-unset CLICOLOR_FORCE GREP_OPTIONS +- +-## --------------------- ## +-## M4sh Shell Functions. ## +-## --------------------- ## +-# as_fn_unset VAR +-# --------------- +-# Portably unset VAR. +-as_fn_unset () +-{ +- { eval $1=; unset $1;} +-} +-as_unset=as_fn_unset +- +-# as_fn_set_status STATUS +-# ----------------------- +-# Set $? to STATUS, without forking. +-as_fn_set_status () +-{ +- return $1 +-} # as_fn_set_status +- +-# as_fn_exit STATUS +-# ----------------- +-# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +-as_fn_exit () +-{ +- set +e +- as_fn_set_status $1 +- exit $1 +-} # as_fn_exit +- +-# as_fn_mkdir_p +-# ------------- +-# Create "$as_dir" as a directory, including parents if necessary. +-as_fn_mkdir_p () +-{ +- +- case $as_dir in #( +- -*) as_dir=./$as_dir;; +- esac +- test -d "$as_dir" || eval $as_mkdir_p || { +- as_dirs= +- while :; do +- case $as_dir in #( +- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( +- *) as_qdir=$as_dir;; +- esac +- as_dirs="'$as_qdir' $as_dirs" +- as_dir=`$as_dirname -- "$as_dir" || +-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +- X"$as_dir" : 'X\(//\)[^/]' \| \ +- X"$as_dir" : 'X\(//\)$' \| \ +- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X"$as_dir" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)[^/].*/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- test -d "$as_dir" && break +- done +- test -z "$as_dirs" || eval "mkdir $as_dirs" +- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" +- +- +-} # as_fn_mkdir_p +- +-# as_fn_executable_p FILE +-# ----------------------- +-# Test if FILE is an executable regular file. +-as_fn_executable_p () +-{ +- test -f "$1" && test -x "$1" +-} # as_fn_executable_p +-# as_fn_append VAR VALUE +-# ---------------------- +-# Append the text in VALUE to the end of the definition contained in VAR. Take +-# advantage of any shell optimizations that allow amortized linear growth over +-# repeated appends, instead of the typical quadratic growth present in naive +-# implementations. +-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +- eval 'as_fn_append () +- { +- eval $1+=\$2 +- }' +-else +- as_fn_append () +- { +- eval $1=\$$1\$2 +- } +-fi # as_fn_append +- +-# as_fn_arith ARG... +-# ------------------ +-# Perform arithmetic evaluation on the ARGs, and store the result in the +-# global $as_val. Take advantage of shells that can avoid forks. The arguments +-# must be portable across $(()) and expr. +-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +- eval 'as_fn_arith () +- { +- as_val=$(( $* )) +- }' +-else +- as_fn_arith () +- { +- as_val=`expr "$@" || test $? -eq 1` +- } +-fi # as_fn_arith +- +- +-# as_fn_error STATUS ERROR [LINENO LOG_FD] +-# ---------------------------------------- +-# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +-# script with STATUS, using 1 if that was 0. +-as_fn_error () +-{ +- as_status=$1; test $as_status -eq 0 && as_status=1 +- if test "$4"; then +- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 +- fi +- $as_echo "$as_me: error: $2" >&2 +- as_fn_exit $as_status +-} # as_fn_error +- +-if expr a : '\(a\)' >/dev/null 2>&1 && +- test "X`expr 00001 : '.*\(...\)'`" = X001; then +- as_expr=expr +-else +- as_expr=false +-fi +- +-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then +- as_basename=basename +-else +- as_basename=false +-fi +- +-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then +- as_dirname=dirname +-else +- as_dirname=false +-fi +- +-as_me=`$as_basename -- "$0" || +-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ +- X"$0" : 'X\(//\)$' \| \ +- X"$0" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X/"$0" | +- sed '/^.*\/\([^/][^/]*\)\/*$/{ +- s//\1/ +- q +- } +- /^X\/\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\/\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- +-# Avoid depending upon Character Ranges. +-as_cr_letters='abcdefghijklmnopqrstuvwxyz' +-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +-as_cr_Letters=$as_cr_letters$as_cr_LETTERS +-as_cr_digits='0123456789' +-as_cr_alnum=$as_cr_Letters$as_cr_digits +- +- +- as_lineno_1=$LINENO as_lineno_1a=$LINENO +- as_lineno_2=$LINENO as_lineno_2a=$LINENO +- eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && +- test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { +- # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) +- sed -n ' +- p +- /[$]LINENO/= +- ' <$as_myself | +- sed ' +- s/[$]LINENO.*/&-/ +- t lineno +- b +- :lineno +- N +- :loop +- s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ +- t loop +- s/-\n.*// +- ' >$as_me.lineno && +- chmod +x "$as_me.lineno" || +- { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } +- +- # If we had to re-execute with $CONFIG_SHELL, we're ensured to have +- # already done that, so ensure we don't try to do so again and fall +- # in an infinite loop. This has already happened in practice. +- _as_can_reexec=no; export _as_can_reexec +- # Don't try to exec as it changes $[0], causing all sort of problems +- # (the dirname of $[0] is not the place where we might find the +- # original and so on. Autoconf is especially sensitive to this). +- . "./$as_me.lineno" +- # Exit status is that of the last command. +- exit +-} +- +-ECHO_C= ECHO_N= ECHO_T= +-case `echo -n x` in #((((( +--n*) +- case `echo 'xy\c'` in +- *c*) ECHO_T=' ';; # ECHO_T is single tab character. +- xy) ECHO_C='\c';; +- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null +- ECHO_T=' ';; +- esac;; +-*) +- ECHO_N='-n';; +-esac +- +-rm -f conf$$ conf$$.exe conf$$.file +-if test -d conf$$.dir; then +- rm -f conf$$.dir/conf$$.file +-else +- rm -f conf$$.dir +- mkdir conf$$.dir 2>/dev/null +-fi +-if (echo >conf$$.file) 2>/dev/null; then +- if ln -s conf$$.file conf$$ 2>/dev/null; then +- as_ln_s='ln -s' +- # ... but there are two gotchas: +- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. +- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. +- # In both cases, we have to default to `cp -pR'. +- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +- as_ln_s='cp -pR' +- elif ln conf$$.file conf$$ 2>/dev/null; then +- as_ln_s=ln +- else +- as_ln_s='cp -pR' +- fi +-else +- as_ln_s='cp -pR' +-fi +-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +-rmdir conf$$.dir 2>/dev/null +- +-if mkdir -p . 2>/dev/null; then +- as_mkdir_p='mkdir -p "$as_dir"' +-else +- test -d ./-p && rmdir ./-p +- as_mkdir_p=false +-fi +- +-as_test_x='test -x' +-as_executable_p=as_fn_executable_p +- +-# Sed expression to map a string onto a valid CPP name. +-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +- +-# Sed expression to map a string onto a valid variable name. +-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +- +- +-test -n "$DJDIR" || exec 7<&0 &1 +- +-# Name of the host. +-# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +-# so uname gets run too. +-ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` +- +-# +-# Initializations. +-# +-ac_default_prefix=/usr/local +-ac_clean_files= +-ac_config_libobj_dir=. +-LIBOBJS= +-cross_compiling=no +-subdirs= +-MFLAGS= +-MAKEFLAGS= +- +-# Identity of this package. +-PACKAGE_NAME='Xen Hypervisor' +-PACKAGE_TARNAME='xen' +-PACKAGE_VERSION='4.14' +-PACKAGE_STRING='Xen Hypervisor 4.14' +-PACKAGE_BUGREPORT='xen-devel@lists.xen.org' +-PACKAGE_URL='https://www.xen.org/' +- +-ac_unique_file="./xen/common/kernel.c" +-enable_option_checking=no +-ac_subst_vars='LTLIBOBJS +-LIBOBJS +-SUBSYSTEMS +-docs +-stubdom +-tools +-xen +-subdirs +-githttp +-DEBUG_DIR +-XEN_DUMP_DIR +-XEN_PAGING_DIR +-XEN_LOCK_DIR +-XEN_SCRIPT_DIR +-XEN_CONFIG_DIR +-INITD_DIR +-CONFIG_DIR +-SHAREDIR +-XEN_LIB_DIR +-XEN_RUN_STORED +-XEN_LIB_STORED +-XEN_LOG_DIR +-XEN_RUN_DIR +-XENFIRMWAREDIR +-LIBEXEC_INC +-LIBEXEC_LIB +-LIBEXEC_BIN +-LIBEXEC +-CONFIG_LEAF_DIR +-XENSTORED_PORT +-XENSTORED_KVA +-host_os +-host_vendor +-host_cpu +-host +-build_os +-build_vendor +-build_cpu +-build +-target_alias +-host_alias +-build_alias +-LIBS +-ECHO_T +-ECHO_N +-ECHO_C +-DEFS +-mandir +-localedir +-libdir +-psdir +-pdfdir +-dvidir +-htmldir +-infodir +-docdir +-oldincludedir +-includedir +-runstatedir +-localstatedir +-sharedstatedir +-sysconfdir +-datadir +-datarootdir +-libexecdir +-sbindir +-bindir +-program_transform_name +-prefix +-exec_prefix +-PACKAGE_URL +-PACKAGE_BUGREPORT +-PACKAGE_STRING +-PACKAGE_VERSION +-PACKAGE_TARNAME +-PACKAGE_NAME +-PATH_SEPARATOR +-SHELL' +-ac_subst_files='' +-ac_user_opts=' +-enable_option_checking +-with_initddir +-with_sysconfig_leaf_dir +-with_libexec_leaf_dir +-with_xen_dumpdir +-with_rundir +-with_debugdir +-enable_githttp +-enable_xen +-enable_tools +-enable_stubdom +-enable_docs +-' +- ac_precious_vars='build_alias +-host_alias +-target_alias' +-ac_subdirs_all='xen +-tools +-stubdom +-docs' +- +-# Initialize some variables set by options. +-ac_init_help= +-ac_init_version=false +-ac_unrecognized_opts= +-ac_unrecognized_sep= +-# The variables have the same names as the options, with +-# dashes changed to underlines. +-cache_file=/dev/null +-exec_prefix=NONE +-no_create= +-no_recursion= +-prefix=NONE +-program_prefix=NONE +-program_suffix=NONE +-program_transform_name=s,x,x, +-silent= +-site= +-srcdir= +-verbose= +-x_includes=NONE +-x_libraries=NONE +- +-# Installation directory options. +-# These are left unexpanded so users can "make install exec_prefix=/foo" +-# and all the variables that are supposed to be based on exec_prefix +-# by default will actually change. +-# Use braces instead of parens because sh, perl, etc. also accept them. +-# (The list follows the same order as the GNU Coding Standards.) +-bindir='${exec_prefix}/bin' +-sbindir='${exec_prefix}/sbin' +-libexecdir='${exec_prefix}/libexec' +-datarootdir='${prefix}/share' +-datadir='${datarootdir}' +-sysconfdir='${prefix}/etc' +-sharedstatedir='${prefix}/com' +-localstatedir='${prefix}/var' +-runstatedir='${localstatedir}/run' +-includedir='${prefix}/include' +-oldincludedir='/usr/include' +-docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +-infodir='${datarootdir}/info' +-htmldir='${docdir}' +-dvidir='${docdir}' +-pdfdir='${docdir}' +-psdir='${docdir}' +-libdir='${exec_prefix}/lib' +-localedir='${datarootdir}/locale' +-mandir='${datarootdir}/man' +- +-ac_prev= +-ac_dashdash= +-for ac_option +-do +- # If the previous option needs an argument, assign it. +- if test -n "$ac_prev"; then +- eval $ac_prev=\$ac_option +- ac_prev= +- continue +- fi +- +- case $ac_option in +- *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; +- *=) ac_optarg= ;; +- *) ac_optarg=yes ;; +- esac +- +- # Accept the important Cygnus configure options, so we can diagnose typos. +- +- case $ac_dashdash$ac_option in +- --) +- ac_dashdash=yes ;; +- +- -bindir | --bindir | --bindi | --bind | --bin | --bi) +- ac_prev=bindir ;; +- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) +- bindir=$ac_optarg ;; +- +- -build | --build | --buil | --bui | --bu) +- ac_prev=build_alias ;; +- -build=* | --build=* | --buil=* | --bui=* | --bu=*) +- build_alias=$ac_optarg ;; +- +- -cache-file | --cache-file | --cache-fil | --cache-fi \ +- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) +- ac_prev=cache_file ;; +- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ +- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) +- cache_file=$ac_optarg ;; +- +- --config-cache | -C) +- cache_file=config.cache ;; +- +- -datadir | --datadir | --datadi | --datad) +- ac_prev=datadir ;; +- -datadir=* | --datadir=* | --datadi=* | --datad=*) +- datadir=$ac_optarg ;; +- +- -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ +- | --dataroo | --dataro | --datar) +- ac_prev=datarootdir ;; +- -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ +- | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) +- datarootdir=$ac_optarg ;; +- +- -disable-* | --disable-*) +- ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` +- # Reject names that are not valid shell variable names. +- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +- as_fn_error $? "invalid feature name: $ac_useropt" +- ac_useropt_orig=$ac_useropt +- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +- case $ac_user_opts in +- *" +-"enable_$ac_useropt" +-"*) ;; +- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" +- ac_unrecognized_sep=', ';; +- esac +- eval enable_$ac_useropt=no ;; +- +- -docdir | --docdir | --docdi | --doc | --do) +- ac_prev=docdir ;; +- -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) +- docdir=$ac_optarg ;; +- +- -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) +- ac_prev=dvidir ;; +- -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) +- dvidir=$ac_optarg ;; +- +- -enable-* | --enable-*) +- ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` +- # Reject names that are not valid shell variable names. +- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +- as_fn_error $? "invalid feature name: $ac_useropt" +- ac_useropt_orig=$ac_useropt +- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +- case $ac_user_opts in +- *" +-"enable_$ac_useropt" +-"*) ;; +- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" +- ac_unrecognized_sep=', ';; +- esac +- eval enable_$ac_useropt=\$ac_optarg ;; +- +- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ +- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ +- | --exec | --exe | --ex) +- ac_prev=exec_prefix ;; +- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ +- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ +- | --exec=* | --exe=* | --ex=*) +- exec_prefix=$ac_optarg ;; +- +- -gas | --gas | --ga | --g) +- # Obsolete; use --with-gas. +- with_gas=yes ;; +- +- -help | --help | --hel | --he | -h) +- ac_init_help=long ;; +- -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) +- ac_init_help=recursive ;; +- -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) +- ac_init_help=short ;; +- +- -host | --host | --hos | --ho) +- ac_prev=host_alias ;; +- -host=* | --host=* | --hos=* | --ho=*) +- host_alias=$ac_optarg ;; +- +- -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) +- ac_prev=htmldir ;; +- -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ +- | --ht=*) +- htmldir=$ac_optarg ;; +- +- -includedir | --includedir | --includedi | --included | --include \ +- | --includ | --inclu | --incl | --inc) +- ac_prev=includedir ;; +- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ +- | --includ=* | --inclu=* | --incl=* | --inc=*) +- includedir=$ac_optarg ;; +- +- -infodir | --infodir | --infodi | --infod | --info | --inf) +- ac_prev=infodir ;; +- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) +- infodir=$ac_optarg ;; +- +- -libdir | --libdir | --libdi | --libd) +- ac_prev=libdir ;; +- -libdir=* | --libdir=* | --libdi=* | --libd=*) +- libdir=$ac_optarg ;; +- +- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ +- | --libexe | --libex | --libe) +- ac_prev=libexecdir ;; +- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ +- | --libexe=* | --libex=* | --libe=*) +- libexecdir=$ac_optarg ;; +- +- -localedir | --localedir | --localedi | --localed | --locale) +- ac_prev=localedir ;; +- -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) +- localedir=$ac_optarg ;; +- +- -localstatedir | --localstatedir | --localstatedi | --localstated \ +- | --localstate | --localstat | --localsta | --localst | --locals) +- ac_prev=localstatedir ;; +- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ +- | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) +- localstatedir=$ac_optarg ;; +- +- -mandir | --mandir | --mandi | --mand | --man | --ma | --m) +- ac_prev=mandir ;; +- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) +- mandir=$ac_optarg ;; +- +- -nfp | --nfp | --nf) +- # Obsolete; use --without-fp. +- with_fp=no ;; +- +- -no-create | --no-create | --no-creat | --no-crea | --no-cre \ +- | --no-cr | --no-c | -n) +- no_create=yes ;; +- +- -no-recursion | --no-recursion | --no-recursio | --no-recursi \ +- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) +- no_recursion=yes ;; +- +- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ +- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ +- | --oldin | --oldi | --old | --ol | --o) +- ac_prev=oldincludedir ;; +- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ +- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ +- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) +- oldincludedir=$ac_optarg ;; +- +- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) +- ac_prev=prefix ;; +- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) +- prefix=$ac_optarg ;; +- +- -program-prefix | --program-prefix | --program-prefi | --program-pref \ +- | --program-pre | --program-pr | --program-p) +- ac_prev=program_prefix ;; +- -program-prefix=* | --program-prefix=* | --program-prefi=* \ +- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) +- program_prefix=$ac_optarg ;; +- +- -program-suffix | --program-suffix | --program-suffi | --program-suff \ +- | --program-suf | --program-su | --program-s) +- ac_prev=program_suffix ;; +- -program-suffix=* | --program-suffix=* | --program-suffi=* \ +- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) +- program_suffix=$ac_optarg ;; +- +- -program-transform-name | --program-transform-name \ +- | --program-transform-nam | --program-transform-na \ +- | --program-transform-n | --program-transform- \ +- | --program-transform | --program-transfor \ +- | --program-transfo | --program-transf \ +- | --program-trans | --program-tran \ +- | --progr-tra | --program-tr | --program-t) +- ac_prev=program_transform_name ;; +- -program-transform-name=* | --program-transform-name=* \ +- | --program-transform-nam=* | --program-transform-na=* \ +- | --program-transform-n=* | --program-transform-=* \ +- | --program-transform=* | --program-transfor=* \ +- | --program-transfo=* | --program-transf=* \ +- | --program-trans=* | --program-tran=* \ +- | --progr-tra=* | --program-tr=* | --program-t=*) +- program_transform_name=$ac_optarg ;; +- +- -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) +- ac_prev=pdfdir ;; +- -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) +- pdfdir=$ac_optarg ;; +- +- -psdir | --psdir | --psdi | --psd | --ps) +- ac_prev=psdir ;; +- -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) +- psdir=$ac_optarg ;; +- +- -q | -quiet | --quiet | --quie | --qui | --qu | --q \ +- | -silent | --silent | --silen | --sile | --sil) +- silent=yes ;; +- +- -runstatedir | --runstatedir | --runstatedi | --runstated \ +- | --runstate | --runstat | --runsta | --runst | --runs \ +- | --run | --ru | --r) +- ac_prev=runstatedir ;; +- -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ +- | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ +- | --run=* | --ru=* | --r=*) +- runstatedir=$ac_optarg ;; +- +- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) +- ac_prev=sbindir ;; +- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ +- | --sbi=* | --sb=*) +- sbindir=$ac_optarg ;; +- +- -sharedstatedir | --sharedstatedir | --sharedstatedi \ +- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ +- | --sharedst | --shareds | --shared | --share | --shar \ +- | --sha | --sh) +- ac_prev=sharedstatedir ;; +- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ +- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ +- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ +- | --sha=* | --sh=*) +- sharedstatedir=$ac_optarg ;; +- +- -site | --site | --sit) +- ac_prev=site ;; +- -site=* | --site=* | --sit=*) +- site=$ac_optarg ;; +- +- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) +- ac_prev=srcdir ;; +- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) +- srcdir=$ac_optarg ;; +- +- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ +- | --syscon | --sysco | --sysc | --sys | --sy) +- ac_prev=sysconfdir ;; +- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ +- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) +- sysconfdir=$ac_optarg ;; +- +- -target | --target | --targe | --targ | --tar | --ta | --t) +- ac_prev=target_alias ;; +- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) +- target_alias=$ac_optarg ;; +- +- -v | -verbose | --verbose | --verbos | --verbo | --verb) +- verbose=yes ;; +- +- -version | --version | --versio | --versi | --vers | -V) +- ac_init_version=: ;; +- +- -with-* | --with-*) +- ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` +- # Reject names that are not valid shell variable names. +- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +- as_fn_error $? "invalid package name: $ac_useropt" +- ac_useropt_orig=$ac_useropt +- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +- case $ac_user_opts in +- *" +-"with_$ac_useropt" +-"*) ;; +- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" +- ac_unrecognized_sep=', ';; +- esac +- eval with_$ac_useropt=\$ac_optarg ;; +- +- -without-* | --without-*) +- ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` +- # Reject names that are not valid shell variable names. +- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +- as_fn_error $? "invalid package name: $ac_useropt" +- ac_useropt_orig=$ac_useropt +- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +- case $ac_user_opts in +- *" +-"with_$ac_useropt" +-"*) ;; +- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" +- ac_unrecognized_sep=', ';; +- esac +- eval with_$ac_useropt=no ;; +- +- --x) +- # Obsolete; use --with-x. +- with_x=yes ;; +- +- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ +- | --x-incl | --x-inc | --x-in | --x-i) +- ac_prev=x_includes ;; +- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ +- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) +- x_includes=$ac_optarg ;; +- +- -x-libraries | --x-libraries | --x-librarie | --x-librari \ +- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) +- ac_prev=x_libraries ;; +- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ +- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) +- x_libraries=$ac_optarg ;; +- +- -*) as_fn_error $? "unrecognized option: \`$ac_option' +-Try \`$0 --help' for more information" +- ;; +- +- *=*) +- ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` +- # Reject names that are not valid shell variable names. +- case $ac_envvar in #( +- '' | [0-9]* | *[!_$as_cr_alnum]* ) +- as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; +- esac +- eval $ac_envvar=\$ac_optarg +- export $ac_envvar ;; +- +- *) +- # FIXME: should be removed in autoconf 3.0. +- $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 +- expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && +- $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 +- : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" +- ;; +- +- esac +-done +- +-if test -n "$ac_prev"; then +- ac_option=--`echo $ac_prev | sed 's/_/-/g'` +- as_fn_error $? "missing argument to $ac_option" +-fi +- +-if test -n "$ac_unrecognized_opts"; then +- case $enable_option_checking in +- no) ;; +- fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; +- *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; +- esac +-fi +- +-# Check all directory arguments for consistency. +-for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ +- datadir sysconfdir sharedstatedir localstatedir includedir \ +- oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ +- libdir localedir mandir runstatedir +-do +- eval ac_val=\$$ac_var +- # Remove trailing slashes. +- case $ac_val in +- */ ) +- ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` +- eval $ac_var=\$ac_val;; +- esac +- # Be sure to have absolute directory names. +- case $ac_val in +- [\\/$]* | ?:[\\/]* ) continue;; +- NONE | '' ) case $ac_var in *prefix ) continue;; esac;; +- esac +- as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +-done +- +-# There might be people who depend on the old broken behavior: `$host' +-# used to hold the argument of --host etc. +-# FIXME: To remove some day. +-build=$build_alias +-host=$host_alias +-target=$target_alias +- +-# FIXME: To remove some day. +-if test "x$host_alias" != x; then +- if test "x$build_alias" = x; then +- cross_compiling=maybe +- elif test "x$build_alias" != "x$host_alias"; then +- cross_compiling=yes +- fi +-fi +- +-ac_tool_prefix= +-test -n "$host_alias" && ac_tool_prefix=$host_alias- +- +-test "$silent" = yes && exec 6>/dev/null +- +- +-ac_pwd=`pwd` && test -n "$ac_pwd" && +-ac_ls_di=`ls -di .` && +-ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || +- as_fn_error $? "working directory cannot be determined" +-test "X$ac_ls_di" = "X$ac_pwd_ls_di" || +- as_fn_error $? "pwd does not report name of working directory" +- +- +-# Find the source files, if location was not specified. +-if test -z "$srcdir"; then +- ac_srcdir_defaulted=yes +- # Try the directory containing this script, then the parent directory. +- ac_confdir=`$as_dirname -- "$as_myself" || +-$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +- X"$as_myself" : 'X\(//\)[^/]' \| \ +- X"$as_myself" : 'X\(//\)$' \| \ +- X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X"$as_myself" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)[^/].*/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- srcdir=$ac_confdir +- if test ! -r "$srcdir/$ac_unique_file"; then +- srcdir=.. +- fi +-else +- ac_srcdir_defaulted=no +-fi +-if test ! -r "$srcdir/$ac_unique_file"; then +- test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." +- as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +-fi +-ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +-ac_abs_confdir=`( +- cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" +- pwd)` +-# When building in place, set srcdir=. +-if test "$ac_abs_confdir" = "$ac_pwd"; then +- srcdir=. +-fi +-# Remove unnecessary trailing slashes from srcdir. +-# Double slashes in file names in object file debugging info +-# mess up M-x gdb in Emacs. +-case $srcdir in +-*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +-esac +-for ac_var in $ac_precious_vars; do +- eval ac_env_${ac_var}_set=\${${ac_var}+set} +- eval ac_env_${ac_var}_value=\$${ac_var} +- eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} +- eval ac_cv_env_${ac_var}_value=\$${ac_var} +-done +- +-# +-# Report the --help message. +-# +-if test "$ac_init_help" = "long"; then +- # Omit some internal or obsolete options to make the list less imposing. +- # This message is too long to be a string in the A/UX 3.1 sh. +- cat <<_ACEOF +-\`configure' configures Xen Hypervisor 4.14 to adapt to many kinds of systems. +- +-Usage: $0 [OPTION]... [VAR=VALUE]... +- +-To assign environment variables (e.g., CC, CFLAGS...), specify them as +-VAR=VALUE. See below for descriptions of some of the useful variables. +- +-Defaults for the options are specified in brackets. +- +-Configuration: +- -h, --help display this help and exit +- --help=short display options specific to this package +- --help=recursive display the short help of all the included packages +- -V, --version display version information and exit +- -q, --quiet, --silent do not print \`checking ...' messages +- --cache-file=FILE cache test results in FILE [disabled] +- -C, --config-cache alias for \`--cache-file=config.cache' +- -n, --no-create do not create output files +- --srcdir=DIR find the sources in DIR [configure dir or \`..'] +- +-Installation directories: +- --prefix=PREFIX install architecture-independent files in PREFIX +- [$ac_default_prefix] +- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX +- [PREFIX] +- +-By default, \`make install' will install all the files in +-\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +-an installation prefix other than \`$ac_default_prefix' using \`--prefix', +-for instance \`--prefix=\$HOME'. +- +-For better control, use the options below. +- +-Fine tuning of the installation directories: +- --bindir=DIR user executables [EPREFIX/bin] +- --sbindir=DIR system admin executables [EPREFIX/sbin] +- --libexecdir=DIR program executables [EPREFIX/libexec] +- --sysconfdir=DIR read-only single-machine data [PREFIX/etc] +- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] +- --localstatedir=DIR modifiable single-machine data [PREFIX/var] +- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] +- --libdir=DIR object code libraries [EPREFIX/lib] +- --includedir=DIR C header files [PREFIX/include] +- --oldincludedir=DIR C header files for non-gcc [/usr/include] +- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] +- --datadir=DIR read-only architecture-independent data [DATAROOTDIR] +- --infodir=DIR info documentation [DATAROOTDIR/info] +- --localedir=DIR locale-dependent data [DATAROOTDIR/locale] +- --mandir=DIR man documentation [DATAROOTDIR/man] +- --docdir=DIR documentation root [DATAROOTDIR/doc/xen] +- --htmldir=DIR html documentation [DOCDIR] +- --dvidir=DIR dvi documentation [DOCDIR] +- --pdfdir=DIR pdf documentation [DOCDIR] +- --psdir=DIR ps documentation [DOCDIR] +-_ACEOF +- +- cat <<\_ACEOF +- +-System types: +- --build=BUILD configure for building on BUILD [guessed] +- --host=HOST cross-compile to build programs to run on HOST [BUILD] +-_ACEOF +-fi +- +-if test -n "$ac_init_help"; then +- case $ac_init_help in +- short | recursive ) echo "Configuration of Xen Hypervisor 4.14:";; +- esac +- cat <<\_ACEOF +- +-Optional Features: +- --disable-option-checking ignore unrecognized --enable/--with options +- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) +- --enable-FEATURE[=ARG] include FEATURE [ARG=yes] +- --enable-githttp Download GIT repositories via HTTP (default is +- DISABLED) +- --disable-xen Disable build and install of xen +- --disable-tools Disable build and install of tools +- --enable-stubdom Enable build and install of stubdom +- --disable-docs Disable build and install of docs +- +-Optional Packages: +- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] +- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) +- --with-initddir=DIR Path to directory with sysv runlevel scripts. +- [SYSCONFDIR/init.d] +- --with-sysconfig-leaf-dir=SUBDIR +- Name of subdirectory in /etc to store runtime +- options for runlevel scripts and daemons such as +- xenstored. This should be either "sysconfig" or +- "default". [sysconfig] +- --with-libexec-leaf-dir=SUBDIR +- Name of subdirectory in libexecdir to use. +- --with-xen-dumpdir=DIR Path to directory for domU crash dumps. +- [LOCALSTATEDIR/lib/xen/dump] +- --with-rundir=DIR Path to directory for runtime data. +- [LOCALSTATEDIR/run] +- --with-debugdir=DIR Path to directory for debug symbols. +- [PREFIX/lib/debug] +- +-Report bugs to . +-Xen Hypervisor home page: . +-_ACEOF +-ac_status=$? +-fi +- +-if test "$ac_init_help" = "recursive"; then +- # If there are subdirs, report their specific --help. +- for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue +- test -d "$ac_dir" || +- { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || +- continue +- ac_builddir=. +- +-case "$ac_dir" in +-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +-*) +- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` +- # A ".." for each directory in $ac_dir_suffix. +- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` +- case $ac_top_builddir_sub in +- "") ac_top_builddir_sub=. ac_top_build_prefix= ;; +- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; +- esac ;; +-esac +-ac_abs_top_builddir=$ac_pwd +-ac_abs_builddir=$ac_pwd$ac_dir_suffix +-# for backward compatibility: +-ac_top_builddir=$ac_top_build_prefix +- +-case $srcdir in +- .) # We are building in place. +- ac_srcdir=. +- ac_top_srcdir=$ac_top_builddir_sub +- ac_abs_top_srcdir=$ac_pwd ;; +- [\\/]* | ?:[\\/]* ) # Absolute name. +- ac_srcdir=$srcdir$ac_dir_suffix; +- ac_top_srcdir=$srcdir +- ac_abs_top_srcdir=$srcdir ;; +- *) # Relative name. +- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix +- ac_top_srcdir=$ac_top_build_prefix$srcdir +- ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +-esac +-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix +- +- cd "$ac_dir" || { ac_status=$?; continue; } +- # Check for guested configure. +- if test -f "$ac_srcdir/configure.gnu"; then +- echo && +- $SHELL "$ac_srcdir/configure.gnu" --help=recursive +- elif test -f "$ac_srcdir/configure"; then +- echo && +- $SHELL "$ac_srcdir/configure" --help=recursive +- else +- $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 +- fi || ac_status=$? +- cd "$ac_pwd" || { ac_status=$?; break; } +- done +-fi +- +-test -n "$ac_init_help" && exit $ac_status +-if $ac_init_version; then +- cat <<\_ACEOF +-Xen Hypervisor configure 4.14 +-generated by GNU Autoconf 2.69 +- +-Copyright (C) 2012 Free Software Foundation, Inc. +-This configure script is free software; the Free Software Foundation +-gives unlimited permission to copy, distribute and modify it. +-_ACEOF +- exit +-fi +- +-## ------------------------ ## +-## Autoconf initialization. ## +-## ------------------------ ## +-cat >config.log <<_ACEOF +-This file contains any messages produced by compilers while +-running configure, to aid debugging if configure makes a mistake. +- +-It was created by Xen Hypervisor $as_me 4.14, which was +-generated by GNU Autoconf 2.69. Invocation command line was +- +- $ $0 $@ +- +-_ACEOF +-exec 5>>config.log +-{ +-cat <<_ASUNAME +-## --------- ## +-## Platform. ## +-## --------- ## +- +-hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +-uname -m = `(uname -m) 2>/dev/null || echo unknown` +-uname -r = `(uname -r) 2>/dev/null || echo unknown` +-uname -s = `(uname -s) 2>/dev/null || echo unknown` +-uname -v = `(uname -v) 2>/dev/null || echo unknown` +- +-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +-/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` +- +-/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +-/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +-/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +-/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +-/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +-/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` +- +-_ASUNAME +- +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- $as_echo "PATH: $as_dir" +- done +-IFS=$as_save_IFS +- +-} >&5 +- +-cat >&5 <<_ACEOF +- +- +-## ----------- ## +-## Core tests. ## +-## ----------- ## +- +-_ACEOF +- +- +-# Keep a trace of the command line. +-# Strip out --no-create and --no-recursion so they do not pile up. +-# Strip out --silent because we don't want to record it for future runs. +-# Also quote any args containing shell meta-characters. +-# Make two passes to allow for proper duplicate-argument suppression. +-ac_configure_args= +-ac_configure_args0= +-ac_configure_args1= +-ac_must_keep_next=false +-for ac_pass in 1 2 +-do +- for ac_arg +- do +- case $ac_arg in +- -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; +- -q | -quiet | --quiet | --quie | --qui | --qu | --q \ +- | -silent | --silent | --silen | --sile | --sil) +- continue ;; +- *\'*) +- ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; +- esac +- case $ac_pass in +- 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; +- 2) +- as_fn_append ac_configure_args1 " '$ac_arg'" +- if test $ac_must_keep_next = true; then +- ac_must_keep_next=false # Got value, back to normal. +- else +- case $ac_arg in +- *=* | --config-cache | -C | -disable-* | --disable-* \ +- | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ +- | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ +- | -with-* | --with-* | -without-* | --without-* | --x) +- case "$ac_configure_args0 " in +- "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; +- esac +- ;; +- -* ) ac_must_keep_next=true ;; +- esac +- fi +- as_fn_append ac_configure_args " '$ac_arg'" +- ;; +- esac +- done +-done +-{ ac_configure_args0=; unset ac_configure_args0;} +-{ ac_configure_args1=; unset ac_configure_args1;} +- +-# When interrupted or exit'd, cleanup temporary files, and complete +-# config.log. We remove comments because anyway the quotes in there +-# would cause problems or look ugly. +-# WARNING: Use '\'' to represent an apostrophe within the trap. +-# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +-trap 'exit_status=$? +- # Save into config.log some information that might help in debugging. +- { +- echo +- +- $as_echo "## ---------------- ## +-## Cache variables. ## +-## ---------------- ##" +- echo +- # The following way of writing the cache mishandles newlines in values, +-( +- for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do +- eval ac_val=\$$ac_var +- case $ac_val in #( +- *${as_nl}*) +- case $ac_var in #( +- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +-$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; +- esac +- case $ac_var in #( +- _ | IFS | as_nl) ;; #( +- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( +- *) { eval $ac_var=; unset $ac_var;} ;; +- esac ;; +- esac +- done +- (set) 2>&1 | +- case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( +- *${as_nl}ac_space=\ *) +- sed -n \ +- "s/'\''/'\''\\\\'\'''\''/g; +- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" +- ;; #( +- *) +- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" +- ;; +- esac | +- sort +-) +- echo +- +- $as_echo "## ----------------- ## +-## Output variables. ## +-## ----------------- ##" +- echo +- for ac_var in $ac_subst_vars +- do +- eval ac_val=\$$ac_var +- case $ac_val in +- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; +- esac +- $as_echo "$ac_var='\''$ac_val'\''" +- done | sort +- echo +- +- if test -n "$ac_subst_files"; then +- $as_echo "## ------------------- ## +-## File substitutions. ## +-## ------------------- ##" +- echo +- for ac_var in $ac_subst_files +- do +- eval ac_val=\$$ac_var +- case $ac_val in +- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; +- esac +- $as_echo "$ac_var='\''$ac_val'\''" +- done | sort +- echo +- fi +- +- if test -s confdefs.h; then +- $as_echo "## ----------- ## +-## confdefs.h. ## +-## ----------- ##" +- echo +- cat confdefs.h +- echo +- fi +- test "$ac_signal" != 0 && +- $as_echo "$as_me: caught signal $ac_signal" +- $as_echo "$as_me: exit $exit_status" +- } >&5 +- rm -f core *.core core.conftest.* && +- rm -f -r conftest* confdefs* conf$$* $ac_clean_files && +- exit $exit_status +-' 0 +-for ac_signal in 1 2 13 15; do +- trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +-done +-ac_signal=0 +- +-# confdefs.h avoids OS command line length limits that DEFS can exceed. +-rm -f -r conftest* confdefs.h +- +-$as_echo "/* confdefs.h */" > confdefs.h +- +-# Predefined preprocessor variables. +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_NAME "$PACKAGE_NAME" +-_ACEOF +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +-_ACEOF +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_VERSION "$PACKAGE_VERSION" +-_ACEOF +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_STRING "$PACKAGE_STRING" +-_ACEOF +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +-_ACEOF +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_URL "$PACKAGE_URL" +-_ACEOF +- +- +-# Let the site file select an alternate cache file if it wants to. +-# Prefer an explicitly selected file to automatically selected ones. +-ac_site_file1=NONE +-ac_site_file2=NONE +-if test -n "$CONFIG_SITE"; then +- # We do not want a PATH search for config.site. +- case $CONFIG_SITE in #(( +- -*) ac_site_file1=./$CONFIG_SITE;; +- */*) ac_site_file1=$CONFIG_SITE;; +- *) ac_site_file1=./$CONFIG_SITE;; +- esac +-elif test "x$prefix" != xNONE; then +- ac_site_file1=$prefix/share/config.site +- ac_site_file2=$prefix/etc/config.site +-else +- ac_site_file1=$ac_default_prefix/share/config.site +- ac_site_file2=$ac_default_prefix/etc/config.site +-fi +-for ac_site_file in "$ac_site_file1" "$ac_site_file2" +-do +- test "x$ac_site_file" = xNONE && continue +- if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +-$as_echo "$as_me: loading site script $ac_site_file" >&6;} +- sed 's/^/| /' "$ac_site_file" >&5 +- . "$ac_site_file" \ +- || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "failed to load site script $ac_site_file +-See \`config.log' for more details" "$LINENO" 5; } +- fi +-done +- +-if test -r "$cache_file"; then +- # Some versions of bash will fail to source /dev/null (special files +- # actually), so we avoid doing that. DJGPP emulates it as a regular file. +- if test /dev/null != "$cache_file" && test -f "$cache_file"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +-$as_echo "$as_me: loading cache $cache_file" >&6;} +- case $cache_file in +- [\\/]* | ?:[\\/]* ) . "$cache_file";; +- *) . "./$cache_file";; +- esac +- fi +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +-$as_echo "$as_me: creating cache $cache_file" >&6;} +- >$cache_file +-fi +- +-# Check that the precious variables saved in the cache have kept the same +-# value. +-ac_cache_corrupted=false +-for ac_var in $ac_precious_vars; do +- eval ac_old_set=\$ac_cv_env_${ac_var}_set +- eval ac_new_set=\$ac_env_${ac_var}_set +- eval ac_old_val=\$ac_cv_env_${ac_var}_value +- eval ac_new_val=\$ac_env_${ac_var}_value +- case $ac_old_set,$ac_new_set in +- set,) +- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +-$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} +- ac_cache_corrupted=: ;; +- ,set) +- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +-$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} +- ac_cache_corrupted=: ;; +- ,);; +- *) +- if test "x$ac_old_val" != "x$ac_new_val"; then +- # differences in whitespace do not lead to failure. +- ac_old_val_w=`echo x $ac_old_val` +- ac_new_val_w=`echo x $ac_new_val` +- if test "$ac_old_val_w" != "$ac_new_val_w"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +-$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} +- ac_cache_corrupted=: +- else +- { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +-$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} +- eval $ac_var=\$ac_old_val +- fi +- { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +-$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} +- { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +-$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} +- fi;; +- esac +- # Pass precious variables to config.status. +- if test "$ac_new_set" = set; then +- case $ac_new_val in +- *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; +- *) ac_arg=$ac_var=$ac_new_val ;; +- esac +- case " $ac_configure_args " in +- *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. +- *) as_fn_append ac_configure_args " '$ac_arg'" ;; +- esac +- fi +-done +-if $ac_cache_corrupted; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +- { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +-$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} +- as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +-fi +-## -------------------- ## +-## Main body of script. ## +-## -------------------- ## +- +-ac_ext=c +-ac_cpp='$CPP $CPPFLAGS' +-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +-ac_compiler_gnu=$ac_cv_c_compiler_gnu +- +- +- +-ac_config_files="$ac_config_files config/Toplevel.mk config/Paths.mk" +- +- +-ac_aux_dir= +-for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do +- if test -f "$ac_dir/install-sh"; then +- ac_aux_dir=$ac_dir +- ac_install_sh="$ac_aux_dir/install-sh -c" +- break +- elif test -f "$ac_dir/install.sh"; then +- ac_aux_dir=$ac_dir +- ac_install_sh="$ac_aux_dir/install.sh -c" +- break +- elif test -f "$ac_dir/shtool"; then +- ac_aux_dir=$ac_dir +- ac_install_sh="$ac_aux_dir/shtool install -c" +- break +- fi +-done +-if test -z "$ac_aux_dir"; then +- as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +-fi +- +-# These three variables are undocumented and unsupported, +-# and are intended to be withdrawn in a future Autoconf release. +-# They can cause serious problems if a builder's source tree is in a directory +-# whose full name contains unusual characters. +-ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +-ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +-ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. +- +- +-# Make sure we can run config.sub. +-$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || +- as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +-$as_echo_n "checking build system type... " >&6; } +-if ${ac_cv_build+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_build_alias=$build_alias +-test "x$ac_build_alias" = x && +- ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +-test "x$ac_build_alias" = x && +- as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +-ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || +- as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 +- +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +-$as_echo "$ac_cv_build" >&6; } +-case $ac_cv_build in +-*-*-*) ;; +-*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +-esac +-build=$ac_cv_build +-ac_save_IFS=$IFS; IFS='-' +-set x $ac_cv_build +-shift +-build_cpu=$1 +-build_vendor=$2 +-shift; shift +-# Remember, the first character of IFS is used to create $*, +-# except with old shells: +-build_os=$* +-IFS=$ac_save_IFS +-case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac +- +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +-$as_echo_n "checking host system type... " >&6; } +-if ${ac_cv_host+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test "x$host_alias" = x; then +- ac_cv_host=$ac_cv_build +-else +- ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || +- as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +-fi +- +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +-$as_echo "$ac_cv_host" >&6; } +-case $ac_cv_host in +-*-*-*) ;; +-*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +-esac +-host=$ac_cv_host +-ac_save_IFS=$IFS; IFS='-' +-set x $ac_cv_host +-shift +-host_cpu=$1 +-host_vendor=$2 +-shift; shift +-# Remember, the first character of IFS is used to create $*, +-# except with old shells: +-host_os=$* +-IFS=$ac_save_IFS +-case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +-case "$host_os" in +-*freebsd*) XENSTORED_KVA=/dev/xen/xenstored ;; +-*) XENSTORED_KVA=/proc/xen/xsd_kva ;; +-esac +- +- +-case "$host_os" in +-*freebsd*) XENSTORED_PORT=/dev/xen/xenstored ;; +-*) XENSTORED_PORT=/proc/xen/xsd_port ;; +-esac +- +- +- +- +-test "x$prefix" = "xNONE" && prefix=$ac_default_prefix +-test "x$exec_prefix" = "xNONE" && exec_prefix=${prefix} +- +-if test "$localstatedir" = '${prefix}/var' ; then +- localstatedir=/var +-fi +- +-bindir=`eval echo $bindir` +-sbindir=`eval echo $sbindir` +-libdir=`eval echo $libdir` +- +-if test "x$sysconfdir" = 'x${prefix}/etc' ; then +- case "$host_os" in +- *freebsd*) +- sysconfdir=$prefix/etc +- ;; +- *solaris*) +- if test "$prefix" = "/usr" ; then +- sysconfdir=/etc +- else +- sysconfdir=$prefix/etc +- fi +- ;; +- *) +- sysconfdir=/etc +- ;; +- esac +-fi +- +- +-# Check whether --with-initddir was given. +-if test "${with_initddir+set}" = set; then : +- withval=$with_initddir; initddir_path=$withval +-else +- case "$host_os" in +- *linux*) +- if test -d $sysconfdir/rc.d/init.d ; then +- initddir_path=$sysconfdir/rc.d/init.d +- else +- initddir_path=$sysconfdir/init.d +- fi +- ;; +- *) +- initddir_path=$sysconfdir/rc.d +- ;; +- esac +-fi +- +- +- +-# Check whether --with-sysconfig-leaf-dir was given. +-if test "${with_sysconfig_leaf_dir+set}" = set; then : +- withval=$with_sysconfig_leaf_dir; config_leaf_dir=$withval +-else +- config_leaf_dir=sysconfig +- if test ! -d /etc/sysconfig ; then config_leaf_dir=default ; fi +-fi +- +-CONFIG_LEAF_DIR=$config_leaf_dir +- +- +- +-# Check whether --with-libexec-leaf-dir was given. +-if test "${with_libexec_leaf_dir+set}" = set; then : +- withval=$with_libexec_leaf_dir; libexec_subdir=$withval +-else +- libexec_subdir=$PACKAGE_TARNAME +-fi +- +- +- +-# Check whether --with-xen-dumpdir was given. +-if test "${with_xen_dumpdir+set}" = set; then : +- withval=$with_xen_dumpdir; xen_dumpdir_path=$withval +-else +- xen_dumpdir_path=$localstatedir/lib/xen/dump +-fi +- +- +- +-# Check whether --with-rundir was given. +-if test "${with_rundir+set}" = set; then : +- withval=$with_rundir; rundir_path=$withval +-else +- rundir_path=$localstatedir/run +-fi +- +- +- +-# Check whether --with-debugdir was given. +-if test "${with_debugdir+set}" = set; then : +- withval=$with_debugdir; debugdir_path=$withval +-else +- debugdir_path=$prefix/lib/debug +-fi +- +- +-if test "$libexecdir" = '${exec_prefix}/libexec' ; then +- case "$host_os" in +- *netbsd*) ;; +- *) +- libexecdir='${exec_prefix}/lib' +- ;; +- esac +-fi +-LIBEXEC=`eval echo $libexecdir/$libexec_subdir` +- +- +-LIBEXEC_BIN=${LIBEXEC}/bin +- +-LIBEXEC_LIB=${LIBEXEC}/lib +- +-LIBEXEC_INC=${LIBEXEC}/include +- +-XENFIRMWAREDIR=${LIBEXEC}/boot +- +- +-XEN_RUN_DIR=$rundir_path/xen +- +- +-XEN_LOG_DIR=$localstatedir/log/xen +- +- +-XEN_LIB_STORED=$localstatedir/lib/xenstored +- +- +-XEN_RUN_STORED=$rundir_path/xenstored +- +- +-XEN_LIB_DIR=$localstatedir/lib/xen +- +- +-SHAREDIR=$prefix/share +- +- +-CONFIG_DIR=$sysconfdir +- +- +-INITD_DIR=$initddir_path +- +- +-XEN_CONFIG_DIR=$CONFIG_DIR/xen +- +- +-XEN_SCRIPT_DIR=$XEN_CONFIG_DIR/scripts +- +- +-case "$host_os" in +-*freebsd*) XEN_LOCK_DIR=$localstatedir/lib ;; +-*netbsd*) XEN_LOCK_DIR=$localstatedir/lib ;; +-*) XEN_LOCK_DIR=$localstatedir/lock ;; +-esac +- +- +-XEN_PAGING_DIR=$localstatedir/lib/xen/xenpaging +- +- +-XEN_DUMP_DIR=$xen_dumpdir_path +- +- +-DEBUG_DIR=$debugdir_path +- +- +- +-# Check whether --enable-githttp was given. +-if test "${enable_githttp+set}" = set; then : +- enableval=$enable_githttp; +-fi +- +- +-if test "x$enable_githttp" = "xno"; then : +- +- ax_cv_githttp="n" +- +-elif test "x$enable_githttp" = "xyes"; then : +- +- ax_cv_githttp="y" +- +-elif test -z $ax_cv_githttp; then : +- +- ax_cv_githttp="n" +- +-fi +-githttp=$ax_cv_githttp +- +- +- +-case "$host_cpu" in +- i[3456]86|x86_64) +- arch_enable_stubdom=y +- ;; +- *) +- arch_enable_stubdom=n +- ;; +-esac +- +-case "$host_os" in +- freebsd*) +- arch_enable_stubdom=n +- ;; +-esac +- +- +- +- +-# Check whether --enable-xen was given. +-if test "${enable_xen+set}" = set; then : +- enableval=$enable_xen; +- +-if test "x$enableval" = "xyes"; then : +- +- +-xen=y +-SUBSYSTEMS="$SUBSYSTEMS xen" +- +- +-else +- +-if test "x$enableval" = "xno"; then : +- +- +-xen=n +- +- +-fi +- +-fi +- +- +-else +- +- +-xen=y +-SUBSYSTEMS="$SUBSYSTEMS xen" +- +- +-fi +- +- +-if test -e "xen/configure"; then : +- +-if test "x$xen" = "xy" || test "x$xen" = "x" ; then +- subdirs="$subdirs xen" +- +-fi +- +-fi +- +- +- +- +-# Check whether --enable-tools was given. +-if test "${enable_tools+set}" = set; then : +- enableval=$enable_tools; +- +-if test "x$enableval" = "xyes"; then : +- +- +-tools=y +-SUBSYSTEMS="$SUBSYSTEMS tools" +- +- +-else +- +-if test "x$enableval" = "xno"; then : +- +- +-tools=n +- +- +-fi +- +-fi +- +- +-else +- +- +-tools=y +-SUBSYSTEMS="$SUBSYSTEMS tools" +- +- +-fi +- +- +-if test -e "tools/configure"; then : +- +-if test "x$tools" = "xy" || test "x$tools" = "x" ; then +- subdirs="$subdirs tools" +- +-fi +- +-fi +- +- +- +- +-# Check whether --enable-stubdom was given. +-if test "${enable_stubdom+set}" = set; then : +- enableval=$enable_stubdom; +- +-if test "x$enableval" = "xyes"; then : +- +- +-stubdom=y +-SUBSYSTEMS="$SUBSYSTEMS stubdom" +- +- +-else +- +-if test "x$enableval" = "xno"; then : +- +- +-stubdom=n +- +- +-fi +- +-fi +- +- +-else +- +-if test "x$arch_enable_stubdom" = "xy"; then : +- +- +-stubdom=y +-SUBSYSTEMS="$SUBSYSTEMS stubdom" +- +- +-else +- +- +-stubdom=n +- +- +-fi +- +-fi +- +- +-if test -e "stubdom/configure"; then : +- +-if test "x$stubdom" = "xy" || test "x$stubdom" = "x" ; then +- subdirs="$subdirs stubdom" +- +-fi +- +-fi +- +- +- +- +-# Check whether --enable-docs was given. +-if test "${enable_docs+set}" = set; then : +- enableval=$enable_docs; +- +-if test "x$enableval" = "xyes"; then : +- +- +-docs=y +-SUBSYSTEMS="$SUBSYSTEMS docs" +- +- +-else +- +-if test "x$enableval" = "xno"; then : +- +- +-docs=n +- +- +-fi +- +-fi +- +- +-else +- +- +-docs=y +-SUBSYSTEMS="$SUBSYSTEMS docs" +- +- +-fi +- +- +-if test -e "docs/configure"; then : +- +-if test "x$docs" = "xy" || test "x$docs" = "x" ; then +- subdirs="$subdirs docs" +- +-fi +- +-fi +- +- +- +- +- +- +-echo "Will build the following subsystems:" +-for x in $SUBSYSTEMS; do +- echo " $x" +-done +- +- +-cat >confcache <<\_ACEOF +-# This file is a shell script that caches the results of configure +-# tests run on this system so they can be shared between configure +-# scripts and configure runs, see configure's option --config-cache. +-# It is not useful on other systems. If it contains results you don't +-# want to keep, you may remove or edit it. +-# +-# config.status only pays attention to the cache file if you give it +-# the --recheck option to rerun configure. +-# +-# `ac_cv_env_foo' variables (set or unset) will be overridden when +-# loading this file, other *unset* `ac_cv_foo' will be assigned the +-# following values. +- +-_ACEOF +- +-# The following way of writing the cache mishandles newlines in values, +-# but we know of no workaround that is simple, portable, and efficient. +-# So, we kill variables containing newlines. +-# Ultrix sh set writes to stderr and can't be redirected directly, +-# and sets the high bit in the cache file unless we assign to the vars. +-( +- for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do +- eval ac_val=\$$ac_var +- case $ac_val in #( +- *${as_nl}*) +- case $ac_var in #( +- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +-$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; +- esac +- case $ac_var in #( +- _ | IFS | as_nl) ;; #( +- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( +- *) { eval $ac_var=; unset $ac_var;} ;; +- esac ;; +- esac +- done +- +- (set) 2>&1 | +- case $as_nl`(ac_space=' '; set) 2>&1` in #( +- *${as_nl}ac_space=\ *) +- # `set' does not quote correctly, so add quotes: double-quote +- # substitution turns \\\\ into \\, and sed turns \\ into \. +- sed -n \ +- "s/'/'\\\\''/g; +- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" +- ;; #( +- *) +- # `set' quotes correctly as required by POSIX, so do not add quotes. +- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" +- ;; +- esac | +- sort +-) | +- sed ' +- /^ac_cv_env_/b end +- t clear +- :clear +- s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ +- t end +- s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ +- :end' >>confcache +-if diff "$cache_file" confcache >/dev/null 2>&1; then :; else +- if test -w "$cache_file"; then +- if test "x$cache_file" != "x/dev/null"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +-$as_echo "$as_me: updating cache $cache_file" >&6;} +- if test ! -f "$cache_file" || test -h "$cache_file"; then +- cat confcache >"$cache_file" +- else +- case $cache_file in #( +- */* | ?:*) +- mv -f confcache "$cache_file"$$ && +- mv -f "$cache_file"$$ "$cache_file" ;; #( +- *) +- mv -f confcache "$cache_file" ;; +- esac +- fi +- fi +- else +- { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +-$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} +- fi +-fi +-rm -f confcache +- +-test "x$prefix" = xNONE && prefix=$ac_default_prefix +-# Let make expand exec_prefix. +-test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' +- +-# Transform confdefs.h into DEFS. +-# Protect against shell expansion while executing Makefile rules. +-# Protect against Makefile macro expansion. +-# +-# If the first sed substitution is executed (which looks for macros that +-# take arguments), then branch to the quote section. Otherwise, +-# look for a macro that doesn't take arguments. +-ac_script=' +-:mline +-/\\$/{ +- N +- s,\\\n,, +- b mline +-} +-t clear +-:clear +-s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g +-t quote +-s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g +-t quote +-b any +-:quote +-s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g +-s/\[/\\&/g +-s/\]/\\&/g +-s/\$/$$/g +-H +-:any +-${ +- g +- s/^\n// +- s/\n/ /g +- p +-} +-' +-DEFS=`sed -n "$ac_script" confdefs.h` +- +- +-ac_libobjs= +-ac_ltlibobjs= +-U= +-for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue +- # 1. Remove the extension, and $U if already installed. +- ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' +- ac_i=`$as_echo "$ac_i" | sed "$ac_script"` +- # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR +- # will be set to the directory where LIBOBJS objects are built. +- as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" +- as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +-done +-LIBOBJS=$ac_libobjs +- +-LTLIBOBJS=$ac_ltlibobjs +- +- +- +-: "${CONFIG_STATUS=./config.status}" +-ac_write_fail=0 +-ac_clean_files_save=$ac_clean_files +-ac_clean_files="$ac_clean_files $CONFIG_STATUS" +-{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +-$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +-as_write_fail=0 +-cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +-#! $SHELL +-# Generated by $as_me. +-# Run this file to recreate the current configuration. +-# Compiler output produced by configure, useful for debugging +-# configure, is in config.log if it exists. +- +-debug=false +-ac_cs_recheck=false +-ac_cs_silent=false +- +-SHELL=\${CONFIG_SHELL-$SHELL} +-export SHELL +-_ASEOF +-cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +-## -------------------- ## +-## M4sh Initialization. ## +-## -------------------- ## +- +-# Be more Bourne compatible +-DUALCASE=1; export DUALCASE # for MKS sh +-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +- emulate sh +- NULLCMD=: +- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which +- # is contrary to our usage. Disable this feature. +- alias -g '${1+"$@"}'='"$@"' +- setopt NO_GLOB_SUBST +-else +- case `(set -o) 2>/dev/null` in #( +- *posix*) : +- set -o posix ;; #( +- *) : +- ;; +-esac +-fi +- +- +-as_nl=' +-' +-export as_nl +-# Printing a long string crashes Solaris 7 /usr/bin/printf. +-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +-# Prefer a ksh shell builtin over an external printf program on Solaris, +-# but without wasting forks for bash or zsh. +-if test -z "$BASH_VERSION$ZSH_VERSION" \ +- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then +- as_echo='print -r --' +- as_echo_n='print -rn --' +-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then +- as_echo='printf %s\n' +- as_echo_n='printf %s' +-else +- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then +- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' +- as_echo_n='/usr/ucb/echo -n' +- else +- as_echo_body='eval expr "X$1" : "X\\(.*\\)"' +- as_echo_n_body='eval +- arg=$1; +- case $arg in #( +- *"$as_nl"*) +- expr "X$arg" : "X\\(.*\\)$as_nl"; +- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; +- esac; +- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" +- ' +- export as_echo_n_body +- as_echo_n='sh -c $as_echo_n_body as_echo' +- fi +- export as_echo_body +- as_echo='sh -c $as_echo_body as_echo' +-fi +- +-# The user is always right. +-if test "${PATH_SEPARATOR+set}" != set; then +- PATH_SEPARATOR=: +- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { +- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || +- PATH_SEPARATOR=';' +- } +-fi +- +- +-# IFS +-# We need space, tab and new line, in precisely that order. Quoting is +-# there to prevent editors from complaining about space-tab. +-# (If _AS_PATH_WALK were called with IFS unset, it would disable word +-# splitting by setting IFS to empty value.) +-IFS=" "" $as_nl" +- +-# Find who we are. Look in the path if we contain no directory separator. +-as_myself= +-case $0 in #(( +- *[\\/]* ) as_myself=$0 ;; +- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-# We did not find ourselves, most probably we were run as `sh COMMAND' +-# in which case we are not to be found in the path. +-if test "x$as_myself" = x; then +- as_myself=$0 +-fi +-if test ! -f "$as_myself"; then +- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 +- exit 1 +-fi +- +-# Unset variables that we do not need and which cause bugs (e.g. in +-# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +-# suppresses any "Segmentation fault" message there. '((' could +-# trigger a bug in pdksh 5.2.14. +-for as_var in BASH_ENV ENV MAIL MAILPATH +-do eval test x\${$as_var+set} = xset \ +- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +-done +-PS1='$ ' +-PS2='> ' +-PS4='+ ' +- +-# NLS nuisances. +-LC_ALL=C +-export LC_ALL +-LANGUAGE=C +-export LANGUAGE +- +-# CDPATH. +-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH +- +- +-# as_fn_error STATUS ERROR [LINENO LOG_FD] +-# ---------------------------------------- +-# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +-# script with STATUS, using 1 if that was 0. +-as_fn_error () +-{ +- as_status=$1; test $as_status -eq 0 && as_status=1 +- if test "$4"; then +- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 +- fi +- $as_echo "$as_me: error: $2" >&2 +- as_fn_exit $as_status +-} # as_fn_error +- +- +-# as_fn_set_status STATUS +-# ----------------------- +-# Set $? to STATUS, without forking. +-as_fn_set_status () +-{ +- return $1 +-} # as_fn_set_status +- +-# as_fn_exit STATUS +-# ----------------- +-# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +-as_fn_exit () +-{ +- set +e +- as_fn_set_status $1 +- exit $1 +-} # as_fn_exit +- +-# as_fn_unset VAR +-# --------------- +-# Portably unset VAR. +-as_fn_unset () +-{ +- { eval $1=; unset $1;} +-} +-as_unset=as_fn_unset +-# as_fn_append VAR VALUE +-# ---------------------- +-# Append the text in VALUE to the end of the definition contained in VAR. Take +-# advantage of any shell optimizations that allow amortized linear growth over +-# repeated appends, instead of the typical quadratic growth present in naive +-# implementations. +-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +- eval 'as_fn_append () +- { +- eval $1+=\$2 +- }' +-else +- as_fn_append () +- { +- eval $1=\$$1\$2 +- } +-fi # as_fn_append +- +-# as_fn_arith ARG... +-# ------------------ +-# Perform arithmetic evaluation on the ARGs, and store the result in the +-# global $as_val. Take advantage of shells that can avoid forks. The arguments +-# must be portable across $(()) and expr. +-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +- eval 'as_fn_arith () +- { +- as_val=$(( $* )) +- }' +-else +- as_fn_arith () +- { +- as_val=`expr "$@" || test $? -eq 1` +- } +-fi # as_fn_arith +- +- +-if expr a : '\(a\)' >/dev/null 2>&1 && +- test "X`expr 00001 : '.*\(...\)'`" = X001; then +- as_expr=expr +-else +- as_expr=false +-fi +- +-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then +- as_basename=basename +-else +- as_basename=false +-fi +- +-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then +- as_dirname=dirname +-else +- as_dirname=false +-fi +- +-as_me=`$as_basename -- "$0" || +-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ +- X"$0" : 'X\(//\)$' \| \ +- X"$0" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X/"$0" | +- sed '/^.*\/\([^/][^/]*\)\/*$/{ +- s//\1/ +- q +- } +- /^X\/\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\/\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- +-# Avoid depending upon Character Ranges. +-as_cr_letters='abcdefghijklmnopqrstuvwxyz' +-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +-as_cr_Letters=$as_cr_letters$as_cr_LETTERS +-as_cr_digits='0123456789' +-as_cr_alnum=$as_cr_Letters$as_cr_digits +- +-ECHO_C= ECHO_N= ECHO_T= +-case `echo -n x` in #((((( +--n*) +- case `echo 'xy\c'` in +- *c*) ECHO_T=' ';; # ECHO_T is single tab character. +- xy) ECHO_C='\c';; +- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null +- ECHO_T=' ';; +- esac;; +-*) +- ECHO_N='-n';; +-esac +- +-rm -f conf$$ conf$$.exe conf$$.file +-if test -d conf$$.dir; then +- rm -f conf$$.dir/conf$$.file +-else +- rm -f conf$$.dir +- mkdir conf$$.dir 2>/dev/null +-fi +-if (echo >conf$$.file) 2>/dev/null; then +- if ln -s conf$$.file conf$$ 2>/dev/null; then +- as_ln_s='ln -s' +- # ... but there are two gotchas: +- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. +- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. +- # In both cases, we have to default to `cp -pR'. +- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +- as_ln_s='cp -pR' +- elif ln conf$$.file conf$$ 2>/dev/null; then +- as_ln_s=ln +- else +- as_ln_s='cp -pR' +- fi +-else +- as_ln_s='cp -pR' +-fi +-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +-rmdir conf$$.dir 2>/dev/null +- +- +-# as_fn_mkdir_p +-# ------------- +-# Create "$as_dir" as a directory, including parents if necessary. +-as_fn_mkdir_p () +-{ +- +- case $as_dir in #( +- -*) as_dir=./$as_dir;; +- esac +- test -d "$as_dir" || eval $as_mkdir_p || { +- as_dirs= +- while :; do +- case $as_dir in #( +- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( +- *) as_qdir=$as_dir;; +- esac +- as_dirs="'$as_qdir' $as_dirs" +- as_dir=`$as_dirname -- "$as_dir" || +-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +- X"$as_dir" : 'X\(//\)[^/]' \| \ +- X"$as_dir" : 'X\(//\)$' \| \ +- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X"$as_dir" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)[^/].*/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- test -d "$as_dir" && break +- done +- test -z "$as_dirs" || eval "mkdir $as_dirs" +- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" +- +- +-} # as_fn_mkdir_p +-if mkdir -p . 2>/dev/null; then +- as_mkdir_p='mkdir -p "$as_dir"' +-else +- test -d ./-p && rmdir ./-p +- as_mkdir_p=false +-fi +- +- +-# as_fn_executable_p FILE +-# ----------------------- +-# Test if FILE is an executable regular file. +-as_fn_executable_p () +-{ +- test -f "$1" && test -x "$1" +-} # as_fn_executable_p +-as_test_x='test -x' +-as_executable_p=as_fn_executable_p +- +-# Sed expression to map a string onto a valid CPP name. +-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +- +-# Sed expression to map a string onto a valid variable name. +-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +- +- +-exec 6>&1 +-## ----------------------------------- ## +-## Main body of $CONFIG_STATUS script. ## +-## ----------------------------------- ## +-_ASEOF +-test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-# Save the log message, to keep $0 and so on meaningful, and to +-# report actual input values of CONFIG_FILES etc. instead of their +-# values after options handling. +-ac_log=" +-This file was extended by Xen Hypervisor $as_me 4.14, which was +-generated by GNU Autoconf 2.69. Invocation command line was +- +- CONFIG_FILES = $CONFIG_FILES +- CONFIG_HEADERS = $CONFIG_HEADERS +- CONFIG_LINKS = $CONFIG_LINKS +- CONFIG_COMMANDS = $CONFIG_COMMANDS +- $ $0 $@ +- +-on `(hostname || uname -n) 2>/dev/null | sed 1q` +-" +- +-_ACEOF +- +-case $ac_config_files in *" +-"*) set x $ac_config_files; shift; ac_config_files=$*;; +-esac +- +- +- +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-# Files that config.status was made for. +-config_files="$ac_config_files" +- +-_ACEOF +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-ac_cs_usage="\ +-\`$as_me' instantiates files and other configuration actions +-from templates according to the current configuration. Unless the files +-and actions are specified as TAGs, all are instantiated by default. +- +-Usage: $0 [OPTION]... [TAG]... +- +- -h, --help print this help, then exit +- -V, --version print version number and configuration settings, then exit +- --config print configuration, then exit +- -q, --quiet, --silent +- do not print progress messages +- -d, --debug don't remove temporary files +- --recheck update $as_me by reconfiguring in the same conditions +- --file=FILE[:TEMPLATE] +- instantiate the configuration file FILE +- +-Configuration files: +-$config_files +- +-Report bugs to . +-Xen Hypervisor home page: ." +- +-_ACEOF +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +-ac_cs_version="\\ +-Xen Hypervisor config.status 4.14 +-configured by $0, generated by GNU Autoconf 2.69, +- with options \\"\$ac_cs_config\\" +- +-Copyright (C) 2012 Free Software Foundation, Inc. +-This config.status script is free software; the Free Software Foundation +-gives unlimited permission to copy, distribute and modify it." +- +-ac_pwd='$ac_pwd' +-srcdir='$srcdir' +-test -n "\$AWK" || AWK=awk +-_ACEOF +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-# The default lists apply if the user does not specify any file. +-ac_need_defaults=: +-while test $# != 0 +-do +- case $1 in +- --*=?*) +- ac_option=`expr "X$1" : 'X\([^=]*\)='` +- ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` +- ac_shift=: +- ;; +- --*=) +- ac_option=`expr "X$1" : 'X\([^=]*\)='` +- ac_optarg= +- ac_shift=: +- ;; +- *) +- ac_option=$1 +- ac_optarg=$2 +- ac_shift=shift +- ;; +- esac +- +- case $ac_option in +- # Handling of the options. +- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) +- ac_cs_recheck=: ;; +- --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) +- $as_echo "$ac_cs_version"; exit ;; +- --config | --confi | --conf | --con | --co | --c ) +- $as_echo "$ac_cs_config"; exit ;; +- --debug | --debu | --deb | --de | --d | -d ) +- debug=: ;; +- --file | --fil | --fi | --f ) +- $ac_shift +- case $ac_optarg in +- *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; +- '') as_fn_error $? "missing file argument" ;; +- esac +- as_fn_append CONFIG_FILES " '$ac_optarg'" +- ac_need_defaults=false;; +- --he | --h | --help | --hel | -h ) +- $as_echo "$ac_cs_usage"; exit ;; +- -q | -quiet | --quiet | --quie | --qui | --qu | --q \ +- | -silent | --silent | --silen | --sile | --sil | --si | --s) +- ac_cs_silent=: ;; +- +- # This is an error. +- -*) as_fn_error $? "unrecognized option: \`$1' +-Try \`$0 --help' for more information." ;; +- +- *) as_fn_append ac_config_targets " $1" +- ac_need_defaults=false ;; +- +- esac +- shift +-done +- +-ac_configure_extra_args= +- +-if $ac_cs_silent; then +- exec 6>/dev/null +- ac_configure_extra_args="$ac_configure_extra_args --silent" +-fi +- +-_ACEOF +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-if \$ac_cs_recheck; then +- set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion +- shift +- \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 +- CONFIG_SHELL='$SHELL' +- export CONFIG_SHELL +- exec "\$@" +-fi +- +-_ACEOF +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-exec 5>>config.log +-{ +- echo +- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +-## Running $as_me. ## +-_ASBOX +- $as_echo "$ac_log" +-} >&5 +- +-_ACEOF +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-_ACEOF +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +- +-# Handling of arguments. +-for ac_config_target in $ac_config_targets +-do +- case $ac_config_target in +- "config/Toplevel.mk") CONFIG_FILES="$CONFIG_FILES config/Toplevel.mk" ;; +- "config/Paths.mk") CONFIG_FILES="$CONFIG_FILES config/Paths.mk" ;; +- +- *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; +- esac +-done +- +- +-# If the user did not use the arguments to specify the items to instantiate, +-# then the envvar interface is used. Set only those that are not. +-# We use the long form for the default assignment because of an extremely +-# bizarre bug on SunOS 4.1.3. +-if $ac_need_defaults; then +- test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files +-fi +- +-# Have a temporary directory for convenience. Make it in the build tree +-# simply because there is no reason against having it here, and in addition, +-# creating and moving files from /tmp can sometimes cause problems. +-# Hook for its removal unless debugging. +-# Note that there is a small window in which the directory will not be cleaned: +-# after its creation but before its name has been assigned to `$tmp'. +-$debug || +-{ +- tmp= ac_tmp= +- trap 'exit_status=$? +- : "${ac_tmp:=$tmp}" +- { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +-' 0 +- trap 'as_fn_exit 1' 1 2 13 15 +-} +-# Create a (secure) tmp directory for tmp files. +- +-{ +- tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && +- test -d "$tmp" +-} || +-{ +- tmp=./conf$$-$RANDOM +- (umask 077 && mkdir "$tmp") +-} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +-ac_tmp=$tmp +- +-# Set up the scripts for CONFIG_FILES section. +-# No need to generate them if there are no CONFIG_FILES. +-# This happens for instance with `./config.status config.h'. +-if test -n "$CONFIG_FILES"; then +- +- +-ac_cr=`echo X | tr X '\015'` +-# On cygwin, bash can eat \r inside `` if the user requested igncr. +-# But we know of no other shell where ac_cr would be empty at this +-# point, so we can use a bashism as a fallback. +-if test "x$ac_cr" = x; then +- eval ac_cr=\$\'\\r\' +-fi +-ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +-if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then +- ac_cs_awk_cr='\\r' +-else +- ac_cs_awk_cr=$ac_cr +-fi +- +-echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +-_ACEOF +- +- +-{ +- echo "cat >conf$$subs.awk <<_ACEOF" && +- echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && +- echo "_ACEOF" +-} >conf$$subs.sh || +- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +-ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +-ac_delim='%!_!# ' +-for ac_last_try in false false false false false :; do +- . ./conf$$subs.sh || +- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +- +- ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` +- if test $ac_delim_n = $ac_delim_num; then +- break +- elif $ac_last_try; then +- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +- else +- ac_delim="$ac_delim!$ac_delim _$ac_delim!! " +- fi +-done +-rm -f conf$$subs.sh +- +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +-_ACEOF +-sed -n ' +-h +-s/^/S["/; s/!.*/"]=/ +-p +-g +-s/^[^!]*!// +-:repl +-t repl +-s/'"$ac_delim"'$// +-t delim +-:nl +-h +-s/\(.\{148\}\)..*/\1/ +-t more1 +-s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +-p +-n +-b repl +-:more1 +-s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +-p +-g +-s/.\{148\}// +-t nl +-:delim +-h +-s/\(.\{148\}\)..*/\1/ +-t more2 +-s/["\\]/\\&/g; s/^/"/; s/$/"/ +-p +-b +-:more2 +-s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +-p +-g +-s/.\{148\}// +-t delim +-' >$CONFIG_STATUS || ac_write_fail=1 +-rm -f conf$$subs.awk +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-_ACAWK +-cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && +- for (key in S) S_is_set[key] = 1 +- FS = "" +- +-} +-{ +- line = $ 0 +- nfields = split(line, field, "@") +- substed = 0 +- len = length(field[1]) +- for (i = 2; i < nfields; i++) { +- key = field[i] +- keylen = length(key) +- if (S_is_set[key]) { +- value = S[key] +- line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) +- len += length(value) + length(field[++i]) +- substed = 1 +- } else +- len += 1 + keylen +- } +- +- print line +-} +- +-_ACAWK +-_ACEOF +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then +- sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +-else +- cat +-fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ +- || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +-_ACEOF +- +-# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +-# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +-# trailing colons and then remove the whole line if VPATH becomes empty +-# (actually we leave an empty line to preserve line numbers). +-if test "x$srcdir" = x.; then +- ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +-h +-s/// +-s/^/:/ +-s/[ ]*$/:/ +-s/:\$(srcdir):/:/g +-s/:\${srcdir}:/:/g +-s/:@srcdir@:/:/g +-s/^:*// +-s/:*$// +-x +-s/\(=[ ]*\).*/\1/ +-G +-s/\n// +-s/^[^=]*=[ ]*$// +-}' +-fi +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-fi # test -n "$CONFIG_FILES" +- +- +-eval set X " :F $CONFIG_FILES " +-shift +-for ac_tag +-do +- case $ac_tag in +- :[FHLC]) ac_mode=$ac_tag; continue;; +- esac +- case $ac_mode$ac_tag in +- :[FHL]*:*);; +- :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; +- :[FH]-) ac_tag=-:-;; +- :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; +- esac +- ac_save_IFS=$IFS +- IFS=: +- set x $ac_tag +- IFS=$ac_save_IFS +- shift +- ac_file=$1 +- shift +- +- case $ac_mode in +- :L) ac_source=$1;; +- :[FH]) +- ac_file_inputs= +- for ac_f +- do +- case $ac_f in +- -) ac_f="$ac_tmp/stdin";; +- *) # Look for the file first in the build tree, then in the source tree +- # (if the path is not absolute). The absolute path cannot be DOS-style, +- # because $ac_f cannot contain `:'. +- test -f "$ac_f" || +- case $ac_f in +- [\\/$]*) false;; +- *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; +- esac || +- as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; +- esac +- case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac +- as_fn_append ac_file_inputs " '$ac_f'" +- done +- +- # Let's still pretend it is `configure' which instantiates (i.e., don't +- # use $as_me), people would be surprised to read: +- # /* config.h. Generated by config.status. */ +- configure_input='Generated from '` +- $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' +- `' by configure.' +- if test x"$ac_file" != x-; then +- configure_input="$ac_file. $configure_input" +- { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +-$as_echo "$as_me: creating $ac_file" >&6;} +- fi +- # Neutralize special characters interpreted by sed in replacement strings. +- case $configure_input in #( +- *\&* | *\|* | *\\* ) +- ac_sed_conf_input=`$as_echo "$configure_input" | +- sed 's/[\\\\&|]/\\\\&/g'`;; #( +- *) ac_sed_conf_input=$configure_input;; +- esac +- +- case $ac_tag in +- *:-:* | *:-) cat >"$ac_tmp/stdin" \ +- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; +- esac +- ;; +- esac +- +- ac_dir=`$as_dirname -- "$ac_file" || +-$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +- X"$ac_file" : 'X\(//\)[^/]' \| \ +- X"$ac_file" : 'X\(//\)$' \| \ +- X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X"$ac_file" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)[^/].*/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- as_dir="$ac_dir"; as_fn_mkdir_p +- ac_builddir=. +- +-case "$ac_dir" in +-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +-*) +- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` +- # A ".." for each directory in $ac_dir_suffix. +- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` +- case $ac_top_builddir_sub in +- "") ac_top_builddir_sub=. ac_top_build_prefix= ;; +- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; +- esac ;; +-esac +-ac_abs_top_builddir=$ac_pwd +-ac_abs_builddir=$ac_pwd$ac_dir_suffix +-# for backward compatibility: +-ac_top_builddir=$ac_top_build_prefix +- +-case $srcdir in +- .) # We are building in place. +- ac_srcdir=. +- ac_top_srcdir=$ac_top_builddir_sub +- ac_abs_top_srcdir=$ac_pwd ;; +- [\\/]* | ?:[\\/]* ) # Absolute name. +- ac_srcdir=$srcdir$ac_dir_suffix; +- ac_top_srcdir=$srcdir +- ac_abs_top_srcdir=$srcdir ;; +- *) # Relative name. +- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix +- ac_top_srcdir=$ac_top_build_prefix$srcdir +- ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +-esac +-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix +- +- +- case $ac_mode in +- :F) +- # +- # CONFIG_FILE +- # +- +-_ACEOF +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-# If the template does not know about datarootdir, expand it. +-# FIXME: This hack should be removed a few years after 2.60. +-ac_datarootdir_hack=; ac_datarootdir_seen= +-ac_sed_dataroot=' +-/datarootdir/ { +- p +- q +-} +-/@datadir@/p +-/@docdir@/p +-/@infodir@/p +-/@localedir@/p +-/@mandir@/p' +-case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +-*datarootdir*) ac_datarootdir_seen=yes;; +-*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +-$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +-_ACEOF +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +- ac_datarootdir_hack=' +- s&@datadir@&$datadir&g +- s&@docdir@&$docdir&g +- s&@infodir@&$infodir&g +- s&@localedir@&$localedir&g +- s&@mandir@&$mandir&g +- s&\\\${datarootdir}&$datarootdir&g' ;; +-esac +-_ACEOF +- +-# Neutralize VPATH when `$srcdir' = `.'. +-# Shell code in configure.ac might set extrasub. +-# FIXME: do we really want to maintain this feature? +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-ac_sed_extra="$ac_vpsub +-$extrasub +-_ACEOF +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-:t +-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +-s|@configure_input@|$ac_sed_conf_input|;t t +-s&@top_builddir@&$ac_top_builddir_sub&;t t +-s&@top_build_prefix@&$ac_top_build_prefix&;t t +-s&@srcdir@&$ac_srcdir&;t t +-s&@abs_srcdir@&$ac_abs_srcdir&;t t +-s&@top_srcdir@&$ac_top_srcdir&;t t +-s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +-s&@builddir@&$ac_builddir&;t t +-s&@abs_builddir@&$ac_abs_builddir&;t t +-s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +-$ac_datarootdir_hack +-" +-eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ +- >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 +- +-test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && +- { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && +- { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ +- "$ac_tmp/out"`; test -z "$ac_out"; } && +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +-which seems to be undefined. Please make sure it is defined" >&5 +-$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +-which seems to be undefined. Please make sure it is defined" >&2;} +- +- rm -f "$ac_tmp/stdin" +- case $ac_file in +- -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; +- *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; +- esac \ +- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 +- ;; +- +- +- +- esac +- +-done # for ac_tag +- +- +-as_fn_exit 0 +-_ACEOF +-ac_clean_files=$ac_clean_files_save +- +-test $ac_write_fail = 0 || +- as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 +- +- +-# configure is writing to config.log, and then calls config.status. +-# config.status does its own redirection, appending to config.log. +-# Unfortunately, on DOS this fails, as config.log is still kept open +-# by configure, so config.status won't be able to write to it; its +-# output is simply discarded. So we exec the FD to /dev/null, +-# effectively closing config.log, so it can be properly (re)opened and +-# appended to by config.status. When coming back to configure, we +-# need to make the FD available again. +-if test "$no_create" != yes; then +- ac_cs_success=: +- ac_config_status_args= +- test "$silent" = yes && +- ac_config_status_args="$ac_config_status_args --quiet" +- exec 5>/dev/null +- $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false +- exec 5>>config.log +- # Use ||, not &&, to avoid exiting from the if with $? = 1, which +- # would make configure fail if this is the last instruction. +- $ac_cs_success || as_fn_exit 1 +-fi +- +-# +-# CONFIG_SUBDIRS section. +-# +-if test "$no_recursion" != yes; then +- +- # Remove --cache-file, --srcdir, and --disable-option-checking arguments +- # so they do not pile up. +- ac_sub_configure_args= +- ac_prev= +- eval "set x $ac_configure_args" +- shift +- for ac_arg +- do +- if test -n "$ac_prev"; then +- ac_prev= +- continue +- fi +- case $ac_arg in +- -cache-file | --cache-file | --cache-fil | --cache-fi \ +- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) +- ac_prev=cache_file ;; +- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ +- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ +- | --c=*) +- ;; +- --config-cache | -C) +- ;; +- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) +- ac_prev=srcdir ;; +- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) +- ;; +- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) +- ac_prev=prefix ;; +- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) +- ;; +- --disable-option-checking) +- ;; +- *) +- case $ac_arg in +- *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; +- esac +- as_fn_append ac_sub_configure_args " '$ac_arg'" ;; +- esac +- done +- +- # Always prepend --prefix to ensure using the same prefix +- # in subdir configurations. +- ac_arg="--prefix=$prefix" +- case $ac_arg in +- *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; +- esac +- ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" +- +- # Pass --silent +- if test "$silent" = yes; then +- ac_sub_configure_args="--silent $ac_sub_configure_args" +- fi +- +- # Always prepend --disable-option-checking to silence warnings, since +- # different subdirs can have different --enable and --with options. +- ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" +- +- ac_popdir=`pwd` +- for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue +- +- # Do not complain, so a configure script can configure whichever +- # parts of a large source tree are present. +- test -d "$srcdir/$ac_dir" || continue +- +- ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" +- $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 +- $as_echo "$ac_msg" >&6 +- as_dir="$ac_dir"; as_fn_mkdir_p +- ac_builddir=. +- +-case "$ac_dir" in +-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +-*) +- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` +- # A ".." for each directory in $ac_dir_suffix. +- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` +- case $ac_top_builddir_sub in +- "") ac_top_builddir_sub=. ac_top_build_prefix= ;; +- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; +- esac ;; +-esac +-ac_abs_top_builddir=$ac_pwd +-ac_abs_builddir=$ac_pwd$ac_dir_suffix +-# for backward compatibility: +-ac_top_builddir=$ac_top_build_prefix +- +-case $srcdir in +- .) # We are building in place. +- ac_srcdir=. +- ac_top_srcdir=$ac_top_builddir_sub +- ac_abs_top_srcdir=$ac_pwd ;; +- [\\/]* | ?:[\\/]* ) # Absolute name. +- ac_srcdir=$srcdir$ac_dir_suffix; +- ac_top_srcdir=$srcdir +- ac_abs_top_srcdir=$srcdir ;; +- *) # Relative name. +- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix +- ac_top_srcdir=$ac_top_build_prefix$srcdir +- ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +-esac +-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix +- +- +- cd "$ac_dir" +- +- # Check for guested configure; otherwise get Cygnus style configure. +- if test -f "$ac_srcdir/configure.gnu"; then +- ac_sub_configure=$ac_srcdir/configure.gnu +- elif test -f "$ac_srcdir/configure"; then +- ac_sub_configure=$ac_srcdir/configure +- elif test -f "$ac_srcdir/configure.in"; then +- # This should be Cygnus configure. +- ac_sub_configure=$ac_aux_dir/configure +- else +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 +-$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} +- ac_sub_configure= +- fi +- +- # The recursion is here. +- if test -n "$ac_sub_configure"; then +- # Make the cache file name correct relative to the subdirectory. +- case $cache_file in +- [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; +- *) # Relative name. +- ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; +- esac +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 +-$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} +- # The eval makes quoting arguments work. +- eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ +- --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || +- as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 +- fi +- +- cd "$ac_popdir" +- done +-fi +-if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +-$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +-fi +- +diff --git a/docs/configure b/docs/configure +deleted file mode 100755 +index 9e3ed60..0000000 +--- a/docs/configure ++++ /dev/null +@@ -1,3427 +0,0 @@ +-#! /bin/sh +-# Guess values for system-dependent variables and create Makefiles. +-# Generated by GNU Autoconf 2.69 for Xen Hypervisor Documentation 4.14. +-# +-# Report bugs to . +-# +-# +-# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +-# +-# +-# This configure script is free software; the Free Software Foundation +-# gives unlimited permission to copy, distribute and modify it. +-## -------------------- ## +-## M4sh Initialization. ## +-## -------------------- ## +- +-# Be more Bourne compatible +-DUALCASE=1; export DUALCASE # for MKS sh +-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +- emulate sh +- NULLCMD=: +- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which +- # is contrary to our usage. Disable this feature. +- alias -g '${1+"$@"}'='"$@"' +- setopt NO_GLOB_SUBST +-else +- case `(set -o) 2>/dev/null` in #( +- *posix*) : +- set -o posix ;; #( +- *) : +- ;; +-esac +-fi +- +- +-as_nl=' +-' +-export as_nl +-# Printing a long string crashes Solaris 7 /usr/bin/printf. +-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +-# Prefer a ksh shell builtin over an external printf program on Solaris, +-# but without wasting forks for bash or zsh. +-if test -z "$BASH_VERSION$ZSH_VERSION" \ +- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then +- as_echo='print -r --' +- as_echo_n='print -rn --' +-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then +- as_echo='printf %s\n' +- as_echo_n='printf %s' +-else +- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then +- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' +- as_echo_n='/usr/ucb/echo -n' +- else +- as_echo_body='eval expr "X$1" : "X\\(.*\\)"' +- as_echo_n_body='eval +- arg=$1; +- case $arg in #( +- *"$as_nl"*) +- expr "X$arg" : "X\\(.*\\)$as_nl"; +- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; +- esac; +- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" +- ' +- export as_echo_n_body +- as_echo_n='sh -c $as_echo_n_body as_echo' +- fi +- export as_echo_body +- as_echo='sh -c $as_echo_body as_echo' +-fi +- +-# The user is always right. +-if test "${PATH_SEPARATOR+set}" != set; then +- PATH_SEPARATOR=: +- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { +- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || +- PATH_SEPARATOR=';' +- } +-fi +- +- +-# IFS +-# We need space, tab and new line, in precisely that order. Quoting is +-# there to prevent editors from complaining about space-tab. +-# (If _AS_PATH_WALK were called with IFS unset, it would disable word +-# splitting by setting IFS to empty value.) +-IFS=" "" $as_nl" +- +-# Find who we are. Look in the path if we contain no directory separator. +-as_myself= +-case $0 in #(( +- *[\\/]* ) as_myself=$0 ;; +- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-# We did not find ourselves, most probably we were run as `sh COMMAND' +-# in which case we are not to be found in the path. +-if test "x$as_myself" = x; then +- as_myself=$0 +-fi +-if test ! -f "$as_myself"; then +- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 +- exit 1 +-fi +- +-# Unset variables that we do not need and which cause bugs (e.g. in +-# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +-# suppresses any "Segmentation fault" message there. '((' could +-# trigger a bug in pdksh 5.2.14. +-for as_var in BASH_ENV ENV MAIL MAILPATH +-do eval test x\${$as_var+set} = xset \ +- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +-done +-PS1='$ ' +-PS2='> ' +-PS4='+ ' +- +-# NLS nuisances. +-LC_ALL=C +-export LC_ALL +-LANGUAGE=C +-export LANGUAGE +- +-# CDPATH. +-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH +- +-# Use a proper internal environment variable to ensure we don't fall +- # into an infinite loop, continuously re-executing ourselves. +- if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then +- _as_can_reexec=no; export _as_can_reexec; +- # We cannot yet assume a decent shell, so we have to provide a +-# neutralization value for shells without unset; and this also +-# works around shells that cannot unset nonexistent variables. +-# Preserve -v and -x to the replacement shell. +-BASH_ENV=/dev/null +-ENV=/dev/null +-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +-case $- in # (((( +- *v*x* | *x*v* ) as_opts=-vx ;; +- *v* ) as_opts=-v ;; +- *x* ) as_opts=-x ;; +- * ) as_opts= ;; +-esac +-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +-# Admittedly, this is quite paranoid, since all the known shells bail +-# out after a failed `exec'. +-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +-as_fn_exit 255 +- fi +- # We don't want this to propagate to other subprocesses. +- { _as_can_reexec=; unset _as_can_reexec;} +-if test "x$CONFIG_SHELL" = x; then +- as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : +- emulate sh +- NULLCMD=: +- # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which +- # is contrary to our usage. Disable this feature. +- alias -g '\${1+\"\$@\"}'='\"\$@\"' +- setopt NO_GLOB_SUBST +-else +- case \`(set -o) 2>/dev/null\` in #( +- *posix*) : +- set -o posix ;; #( +- *) : +- ;; +-esac +-fi +-" +- as_required="as_fn_return () { (exit \$1); } +-as_fn_success () { as_fn_return 0; } +-as_fn_failure () { as_fn_return 1; } +-as_fn_ret_success () { return 0; } +-as_fn_ret_failure () { return 1; } +- +-exitcode=0 +-as_fn_success || { exitcode=1; echo as_fn_success failed.; } +-as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +-as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +-as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +-if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : +- +-else +- exitcode=1; echo positional parameters were not saved. +-fi +-test x\$exitcode = x0 || exit 1 +-test -x / || exit 1" +- as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO +- as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO +- eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && +- test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" +- if (eval "$as_required") 2>/dev/null; then : +- as_have_required=yes +-else +- as_have_required=no +-fi +- if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : +- +-else +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-as_found=false +-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- as_found=: +- case $as_dir in #( +- /*) +- for as_base in sh bash ksh sh5; do +- # Try only shells that exist, to save several forks. +- as_shell=$as_dir/$as_base +- if { test -f "$as_shell" || test -f "$as_shell.exe"; } && +- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : +- CONFIG_SHELL=$as_shell as_have_required=yes +- if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : +- break 2 +-fi +-fi +- done;; +- esac +- as_found=false +-done +-$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && +- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : +- CONFIG_SHELL=$SHELL as_have_required=yes +-fi; } +-IFS=$as_save_IFS +- +- +- if test "x$CONFIG_SHELL" != x; then : +- export CONFIG_SHELL +- # We cannot yet assume a decent shell, so we have to provide a +-# neutralization value for shells without unset; and this also +-# works around shells that cannot unset nonexistent variables. +-# Preserve -v and -x to the replacement shell. +-BASH_ENV=/dev/null +-ENV=/dev/null +-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +-case $- in # (((( +- *v*x* | *x*v* ) as_opts=-vx ;; +- *v* ) as_opts=-v ;; +- *x* ) as_opts=-x ;; +- * ) as_opts= ;; +-esac +-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +-# Admittedly, this is quite paranoid, since all the known shells bail +-# out after a failed `exec'. +-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +-exit 255 +-fi +- +- if test x$as_have_required = xno; then : +- $as_echo "$0: This script requires a shell more modern than all" +- $as_echo "$0: the shells that I found on your system." +- if test x${ZSH_VERSION+set} = xset ; then +- $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" +- $as_echo "$0: be upgraded to zsh 4.3.4 or later." +- else +- $as_echo "$0: Please tell bug-autoconf@gnu.org and +-$0: xen-devel@lists.xen.org about your system, including +-$0: any error possibly output before this message. Then +-$0: install a modern shell, or manually run the script +-$0: under such a shell if you do have one." +- fi +- exit 1 +-fi +-fi +-fi +-SHELL=${CONFIG_SHELL-/bin/sh} +-export SHELL +-# Unset more variables known to interfere with behavior of common tools. +-CLICOLOR_FORCE= GREP_OPTIONS= +-unset CLICOLOR_FORCE GREP_OPTIONS +- +-## --------------------- ## +-## M4sh Shell Functions. ## +-## --------------------- ## +-# as_fn_unset VAR +-# --------------- +-# Portably unset VAR. +-as_fn_unset () +-{ +- { eval $1=; unset $1;} +-} +-as_unset=as_fn_unset +- +-# as_fn_set_status STATUS +-# ----------------------- +-# Set $? to STATUS, without forking. +-as_fn_set_status () +-{ +- return $1 +-} # as_fn_set_status +- +-# as_fn_exit STATUS +-# ----------------- +-# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +-as_fn_exit () +-{ +- set +e +- as_fn_set_status $1 +- exit $1 +-} # as_fn_exit +- +-# as_fn_mkdir_p +-# ------------- +-# Create "$as_dir" as a directory, including parents if necessary. +-as_fn_mkdir_p () +-{ +- +- case $as_dir in #( +- -*) as_dir=./$as_dir;; +- esac +- test -d "$as_dir" || eval $as_mkdir_p || { +- as_dirs= +- while :; do +- case $as_dir in #( +- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( +- *) as_qdir=$as_dir;; +- esac +- as_dirs="'$as_qdir' $as_dirs" +- as_dir=`$as_dirname -- "$as_dir" || +-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +- X"$as_dir" : 'X\(//\)[^/]' \| \ +- X"$as_dir" : 'X\(//\)$' \| \ +- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X"$as_dir" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)[^/].*/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- test -d "$as_dir" && break +- done +- test -z "$as_dirs" || eval "mkdir $as_dirs" +- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" +- +- +-} # as_fn_mkdir_p +- +-# as_fn_executable_p FILE +-# ----------------------- +-# Test if FILE is an executable regular file. +-as_fn_executable_p () +-{ +- test -f "$1" && test -x "$1" +-} # as_fn_executable_p +-# as_fn_append VAR VALUE +-# ---------------------- +-# Append the text in VALUE to the end of the definition contained in VAR. Take +-# advantage of any shell optimizations that allow amortized linear growth over +-# repeated appends, instead of the typical quadratic growth present in naive +-# implementations. +-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +- eval 'as_fn_append () +- { +- eval $1+=\$2 +- }' +-else +- as_fn_append () +- { +- eval $1=\$$1\$2 +- } +-fi # as_fn_append +- +-# as_fn_arith ARG... +-# ------------------ +-# Perform arithmetic evaluation on the ARGs, and store the result in the +-# global $as_val. Take advantage of shells that can avoid forks. The arguments +-# must be portable across $(()) and expr. +-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +- eval 'as_fn_arith () +- { +- as_val=$(( $* )) +- }' +-else +- as_fn_arith () +- { +- as_val=`expr "$@" || test $? -eq 1` +- } +-fi # as_fn_arith +- +- +-# as_fn_error STATUS ERROR [LINENO LOG_FD] +-# ---------------------------------------- +-# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +-# script with STATUS, using 1 if that was 0. +-as_fn_error () +-{ +- as_status=$1; test $as_status -eq 0 && as_status=1 +- if test "$4"; then +- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 +- fi +- $as_echo "$as_me: error: $2" >&2 +- as_fn_exit $as_status +-} # as_fn_error +- +-if expr a : '\(a\)' >/dev/null 2>&1 && +- test "X`expr 00001 : '.*\(...\)'`" = X001; then +- as_expr=expr +-else +- as_expr=false +-fi +- +-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then +- as_basename=basename +-else +- as_basename=false +-fi +- +-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then +- as_dirname=dirname +-else +- as_dirname=false +-fi +- +-as_me=`$as_basename -- "$0" || +-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ +- X"$0" : 'X\(//\)$' \| \ +- X"$0" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X/"$0" | +- sed '/^.*\/\([^/][^/]*\)\/*$/{ +- s//\1/ +- q +- } +- /^X\/\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\/\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- +-# Avoid depending upon Character Ranges. +-as_cr_letters='abcdefghijklmnopqrstuvwxyz' +-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +-as_cr_Letters=$as_cr_letters$as_cr_LETTERS +-as_cr_digits='0123456789' +-as_cr_alnum=$as_cr_Letters$as_cr_digits +- +- +- as_lineno_1=$LINENO as_lineno_1a=$LINENO +- as_lineno_2=$LINENO as_lineno_2a=$LINENO +- eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && +- test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { +- # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) +- sed -n ' +- p +- /[$]LINENO/= +- ' <$as_myself | +- sed ' +- s/[$]LINENO.*/&-/ +- t lineno +- b +- :lineno +- N +- :loop +- s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ +- t loop +- s/-\n.*// +- ' >$as_me.lineno && +- chmod +x "$as_me.lineno" || +- { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } +- +- # If we had to re-execute with $CONFIG_SHELL, we're ensured to have +- # already done that, so ensure we don't try to do so again and fall +- # in an infinite loop. This has already happened in practice. +- _as_can_reexec=no; export _as_can_reexec +- # Don't try to exec as it changes $[0], causing all sort of problems +- # (the dirname of $[0] is not the place where we might find the +- # original and so on. Autoconf is especially sensitive to this). +- . "./$as_me.lineno" +- # Exit status is that of the last command. +- exit +-} +- +-ECHO_C= ECHO_N= ECHO_T= +-case `echo -n x` in #((((( +--n*) +- case `echo 'xy\c'` in +- *c*) ECHO_T=' ';; # ECHO_T is single tab character. +- xy) ECHO_C='\c';; +- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null +- ECHO_T=' ';; +- esac;; +-*) +- ECHO_N='-n';; +-esac +- +-rm -f conf$$ conf$$.exe conf$$.file +-if test -d conf$$.dir; then +- rm -f conf$$.dir/conf$$.file +-else +- rm -f conf$$.dir +- mkdir conf$$.dir 2>/dev/null +-fi +-if (echo >conf$$.file) 2>/dev/null; then +- if ln -s conf$$.file conf$$ 2>/dev/null; then +- as_ln_s='ln -s' +- # ... but there are two gotchas: +- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. +- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. +- # In both cases, we have to default to `cp -pR'. +- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +- as_ln_s='cp -pR' +- elif ln conf$$.file conf$$ 2>/dev/null; then +- as_ln_s=ln +- else +- as_ln_s='cp -pR' +- fi +-else +- as_ln_s='cp -pR' +-fi +-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +-rmdir conf$$.dir 2>/dev/null +- +-if mkdir -p . 2>/dev/null; then +- as_mkdir_p='mkdir -p "$as_dir"' +-else +- test -d ./-p && rmdir ./-p +- as_mkdir_p=false +-fi +- +-as_test_x='test -x' +-as_executable_p=as_fn_executable_p +- +-# Sed expression to map a string onto a valid CPP name. +-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +- +-# Sed expression to map a string onto a valid variable name. +-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +- +- +-test -n "$DJDIR" || exec 7<&0 &1 +- +-# Name of the host. +-# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +-# so uname gets run too. +-ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` +- +-# +-# Initializations. +-# +-ac_default_prefix=/usr/local +-ac_clean_files= +-ac_config_libobj_dir=. +-LIBOBJS= +-cross_compiling=no +-subdirs= +-MFLAGS= +-MAKEFLAGS= +- +-# Identity of this package. +-PACKAGE_NAME='Xen Hypervisor Documentation' +-PACKAGE_TARNAME='xen' +-PACKAGE_VERSION='4.14' +-PACKAGE_STRING='Xen Hypervisor Documentation 4.14' +-PACKAGE_BUGREPORT='xen-devel@lists.xen.org' +-PACKAGE_URL='https://www.xen.org/' +- +-ac_unique_file="misc/xen-command-line.pandoc" +-ac_subst_vars='LTLIBOBJS +-LIBOBJS +-PERL +-PANDOC +-POD2TEXT +-POD2HTML +-POD2MAN +-FIG2DEV +-DEBUG_DIR +-XEN_DUMP_DIR +-XEN_PAGING_DIR +-XEN_LOCK_DIR +-XEN_SCRIPT_DIR +-XEN_CONFIG_DIR +-INITD_DIR +-CONFIG_DIR +-SHAREDIR +-XEN_LIB_DIR +-XEN_RUN_STORED +-XEN_LIB_STORED +-XEN_LOG_DIR +-XEN_RUN_DIR +-XENFIRMWAREDIR +-LIBEXEC_INC +-LIBEXEC_LIB +-LIBEXEC_BIN +-LIBEXEC +-CONFIG_LEAF_DIR +-XENSTORED_PORT +-XENSTORED_KVA +-target_alias +-host_alias +-build_alias +-LIBS +-ECHO_T +-ECHO_N +-ECHO_C +-DEFS +-mandir +-localedir +-libdir +-psdir +-pdfdir +-dvidir +-htmldir +-infodir +-docdir +-oldincludedir +-includedir +-runstatedir +-localstatedir +-sharedstatedir +-sysconfdir +-datadir +-datarootdir +-libexecdir +-sbindir +-bindir +-program_transform_name +-prefix +-exec_prefix +-PACKAGE_URL +-PACKAGE_BUGREPORT +-PACKAGE_STRING +-PACKAGE_VERSION +-PACKAGE_TARNAME +-PACKAGE_NAME +-PATH_SEPARATOR +-SHELL' +-ac_subst_files='' +-ac_user_opts=' +-enable_option_checking +-with_initddir +-with_sysconfig_leaf_dir +-with_libexec_leaf_dir +-with_xen_dumpdir +-with_rundir +-with_debugdir +-' +- ac_precious_vars='build_alias +-host_alias +-target_alias +-FIG2DEV +-POD2MAN +-POD2HTML +-POD2TEXT +-PANDOC +-PERL' +- +- +-# Initialize some variables set by options. +-ac_init_help= +-ac_init_version=false +-ac_unrecognized_opts= +-ac_unrecognized_sep= +-# The variables have the same names as the options, with +-# dashes changed to underlines. +-cache_file=/dev/null +-exec_prefix=NONE +-no_create= +-no_recursion= +-prefix=NONE +-program_prefix=NONE +-program_suffix=NONE +-program_transform_name=s,x,x, +-silent= +-site= +-srcdir= +-verbose= +-x_includes=NONE +-x_libraries=NONE +- +-# Installation directory options. +-# These are left unexpanded so users can "make install exec_prefix=/foo" +-# and all the variables that are supposed to be based on exec_prefix +-# by default will actually change. +-# Use braces instead of parens because sh, perl, etc. also accept them. +-# (The list follows the same order as the GNU Coding Standards.) +-bindir='${exec_prefix}/bin' +-sbindir='${exec_prefix}/sbin' +-libexecdir='${exec_prefix}/libexec' +-datarootdir='${prefix}/share' +-datadir='${datarootdir}' +-sysconfdir='${prefix}/etc' +-sharedstatedir='${prefix}/com' +-localstatedir='${prefix}/var' +-runstatedir='${localstatedir}/run' +-includedir='${prefix}/include' +-oldincludedir='/usr/include' +-docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +-infodir='${datarootdir}/info' +-htmldir='${docdir}' +-dvidir='${docdir}' +-pdfdir='${docdir}' +-psdir='${docdir}' +-libdir='${exec_prefix}/lib' +-localedir='${datarootdir}/locale' +-mandir='${datarootdir}/man' +- +-ac_prev= +-ac_dashdash= +-for ac_option +-do +- # If the previous option needs an argument, assign it. +- if test -n "$ac_prev"; then +- eval $ac_prev=\$ac_option +- ac_prev= +- continue +- fi +- +- case $ac_option in +- *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; +- *=) ac_optarg= ;; +- *) ac_optarg=yes ;; +- esac +- +- # Accept the important Cygnus configure options, so we can diagnose typos. +- +- case $ac_dashdash$ac_option in +- --) +- ac_dashdash=yes ;; +- +- -bindir | --bindir | --bindi | --bind | --bin | --bi) +- ac_prev=bindir ;; +- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) +- bindir=$ac_optarg ;; +- +- -build | --build | --buil | --bui | --bu) +- ac_prev=build_alias ;; +- -build=* | --build=* | --buil=* | --bui=* | --bu=*) +- build_alias=$ac_optarg ;; +- +- -cache-file | --cache-file | --cache-fil | --cache-fi \ +- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) +- ac_prev=cache_file ;; +- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ +- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) +- cache_file=$ac_optarg ;; +- +- --config-cache | -C) +- cache_file=config.cache ;; +- +- -datadir | --datadir | --datadi | --datad) +- ac_prev=datadir ;; +- -datadir=* | --datadir=* | --datadi=* | --datad=*) +- datadir=$ac_optarg ;; +- +- -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ +- | --dataroo | --dataro | --datar) +- ac_prev=datarootdir ;; +- -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ +- | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) +- datarootdir=$ac_optarg ;; +- +- -disable-* | --disable-*) +- ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` +- # Reject names that are not valid shell variable names. +- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +- as_fn_error $? "invalid feature name: $ac_useropt" +- ac_useropt_orig=$ac_useropt +- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +- case $ac_user_opts in +- *" +-"enable_$ac_useropt" +-"*) ;; +- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" +- ac_unrecognized_sep=', ';; +- esac +- eval enable_$ac_useropt=no ;; +- +- -docdir | --docdir | --docdi | --doc | --do) +- ac_prev=docdir ;; +- -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) +- docdir=$ac_optarg ;; +- +- -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) +- ac_prev=dvidir ;; +- -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) +- dvidir=$ac_optarg ;; +- +- -enable-* | --enable-*) +- ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` +- # Reject names that are not valid shell variable names. +- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +- as_fn_error $? "invalid feature name: $ac_useropt" +- ac_useropt_orig=$ac_useropt +- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +- case $ac_user_opts in +- *" +-"enable_$ac_useropt" +-"*) ;; +- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" +- ac_unrecognized_sep=', ';; +- esac +- eval enable_$ac_useropt=\$ac_optarg ;; +- +- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ +- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ +- | --exec | --exe | --ex) +- ac_prev=exec_prefix ;; +- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ +- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ +- | --exec=* | --exe=* | --ex=*) +- exec_prefix=$ac_optarg ;; +- +- -gas | --gas | --ga | --g) +- # Obsolete; use --with-gas. +- with_gas=yes ;; +- +- -help | --help | --hel | --he | -h) +- ac_init_help=long ;; +- -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) +- ac_init_help=recursive ;; +- -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) +- ac_init_help=short ;; +- +- -host | --host | --hos | --ho) +- ac_prev=host_alias ;; +- -host=* | --host=* | --hos=* | --ho=*) +- host_alias=$ac_optarg ;; +- +- -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) +- ac_prev=htmldir ;; +- -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ +- | --ht=*) +- htmldir=$ac_optarg ;; +- +- -includedir | --includedir | --includedi | --included | --include \ +- | --includ | --inclu | --incl | --inc) +- ac_prev=includedir ;; +- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ +- | --includ=* | --inclu=* | --incl=* | --inc=*) +- includedir=$ac_optarg ;; +- +- -infodir | --infodir | --infodi | --infod | --info | --inf) +- ac_prev=infodir ;; +- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) +- infodir=$ac_optarg ;; +- +- -libdir | --libdir | --libdi | --libd) +- ac_prev=libdir ;; +- -libdir=* | --libdir=* | --libdi=* | --libd=*) +- libdir=$ac_optarg ;; +- +- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ +- | --libexe | --libex | --libe) +- ac_prev=libexecdir ;; +- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ +- | --libexe=* | --libex=* | --libe=*) +- libexecdir=$ac_optarg ;; +- +- -localedir | --localedir | --localedi | --localed | --locale) +- ac_prev=localedir ;; +- -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) +- localedir=$ac_optarg ;; +- +- -localstatedir | --localstatedir | --localstatedi | --localstated \ +- | --localstate | --localstat | --localsta | --localst | --locals) +- ac_prev=localstatedir ;; +- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ +- | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) +- localstatedir=$ac_optarg ;; +- +- -mandir | --mandir | --mandi | --mand | --man | --ma | --m) +- ac_prev=mandir ;; +- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) +- mandir=$ac_optarg ;; +- +- -nfp | --nfp | --nf) +- # Obsolete; use --without-fp. +- with_fp=no ;; +- +- -no-create | --no-create | --no-creat | --no-crea | --no-cre \ +- | --no-cr | --no-c | -n) +- no_create=yes ;; +- +- -no-recursion | --no-recursion | --no-recursio | --no-recursi \ +- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) +- no_recursion=yes ;; +- +- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ +- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ +- | --oldin | --oldi | --old | --ol | --o) +- ac_prev=oldincludedir ;; +- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ +- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ +- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) +- oldincludedir=$ac_optarg ;; +- +- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) +- ac_prev=prefix ;; +- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) +- prefix=$ac_optarg ;; +- +- -program-prefix | --program-prefix | --program-prefi | --program-pref \ +- | --program-pre | --program-pr | --program-p) +- ac_prev=program_prefix ;; +- -program-prefix=* | --program-prefix=* | --program-prefi=* \ +- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) +- program_prefix=$ac_optarg ;; +- +- -program-suffix | --program-suffix | --program-suffi | --program-suff \ +- | --program-suf | --program-su | --program-s) +- ac_prev=program_suffix ;; +- -program-suffix=* | --program-suffix=* | --program-suffi=* \ +- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) +- program_suffix=$ac_optarg ;; +- +- -program-transform-name | --program-transform-name \ +- | --program-transform-nam | --program-transform-na \ +- | --program-transform-n | --program-transform- \ +- | --program-transform | --program-transfor \ +- | --program-transfo | --program-transf \ +- | --program-trans | --program-tran \ +- | --progr-tra | --program-tr | --program-t) +- ac_prev=program_transform_name ;; +- -program-transform-name=* | --program-transform-name=* \ +- | --program-transform-nam=* | --program-transform-na=* \ +- | --program-transform-n=* | --program-transform-=* \ +- | --program-transform=* | --program-transfor=* \ +- | --program-transfo=* | --program-transf=* \ +- | --program-trans=* | --program-tran=* \ +- | --progr-tra=* | --program-tr=* | --program-t=*) +- program_transform_name=$ac_optarg ;; +- +- -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) +- ac_prev=pdfdir ;; +- -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) +- pdfdir=$ac_optarg ;; +- +- -psdir | --psdir | --psdi | --psd | --ps) +- ac_prev=psdir ;; +- -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) +- psdir=$ac_optarg ;; +- +- -q | -quiet | --quiet | --quie | --qui | --qu | --q \ +- | -silent | --silent | --silen | --sile | --sil) +- silent=yes ;; +- +- -runstatedir | --runstatedir | --runstatedi | --runstated \ +- | --runstate | --runstat | --runsta | --runst | --runs \ +- | --run | --ru | --r) +- ac_prev=runstatedir ;; +- -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ +- | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ +- | --run=* | --ru=* | --r=*) +- runstatedir=$ac_optarg ;; +- +- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) +- ac_prev=sbindir ;; +- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ +- | --sbi=* | --sb=*) +- sbindir=$ac_optarg ;; +- +- -sharedstatedir | --sharedstatedir | --sharedstatedi \ +- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ +- | --sharedst | --shareds | --shared | --share | --shar \ +- | --sha | --sh) +- ac_prev=sharedstatedir ;; +- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ +- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ +- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ +- | --sha=* | --sh=*) +- sharedstatedir=$ac_optarg ;; +- +- -site | --site | --sit) +- ac_prev=site ;; +- -site=* | --site=* | --sit=*) +- site=$ac_optarg ;; +- +- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) +- ac_prev=srcdir ;; +- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) +- srcdir=$ac_optarg ;; +- +- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ +- | --syscon | --sysco | --sysc | --sys | --sy) +- ac_prev=sysconfdir ;; +- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ +- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) +- sysconfdir=$ac_optarg ;; +- +- -target | --target | --targe | --targ | --tar | --ta | --t) +- ac_prev=target_alias ;; +- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) +- target_alias=$ac_optarg ;; +- +- -v | -verbose | --verbose | --verbos | --verbo | --verb) +- verbose=yes ;; +- +- -version | --version | --versio | --versi | --vers | -V) +- ac_init_version=: ;; +- +- -with-* | --with-*) +- ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` +- # Reject names that are not valid shell variable names. +- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +- as_fn_error $? "invalid package name: $ac_useropt" +- ac_useropt_orig=$ac_useropt +- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +- case $ac_user_opts in +- *" +-"with_$ac_useropt" +-"*) ;; +- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" +- ac_unrecognized_sep=', ';; +- esac +- eval with_$ac_useropt=\$ac_optarg ;; +- +- -without-* | --without-*) +- ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` +- # Reject names that are not valid shell variable names. +- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +- as_fn_error $? "invalid package name: $ac_useropt" +- ac_useropt_orig=$ac_useropt +- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +- case $ac_user_opts in +- *" +-"with_$ac_useropt" +-"*) ;; +- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" +- ac_unrecognized_sep=', ';; +- esac +- eval with_$ac_useropt=no ;; +- +- --x) +- # Obsolete; use --with-x. +- with_x=yes ;; +- +- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ +- | --x-incl | --x-inc | --x-in | --x-i) +- ac_prev=x_includes ;; +- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ +- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) +- x_includes=$ac_optarg ;; +- +- -x-libraries | --x-libraries | --x-librarie | --x-librari \ +- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) +- ac_prev=x_libraries ;; +- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ +- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) +- x_libraries=$ac_optarg ;; +- +- -*) as_fn_error $? "unrecognized option: \`$ac_option' +-Try \`$0 --help' for more information" +- ;; +- +- *=*) +- ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` +- # Reject names that are not valid shell variable names. +- case $ac_envvar in #( +- '' | [0-9]* | *[!_$as_cr_alnum]* ) +- as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; +- esac +- eval $ac_envvar=\$ac_optarg +- export $ac_envvar ;; +- +- *) +- # FIXME: should be removed in autoconf 3.0. +- $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 +- expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && +- $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 +- : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" +- ;; +- +- esac +-done +- +-if test -n "$ac_prev"; then +- ac_option=--`echo $ac_prev | sed 's/_/-/g'` +- as_fn_error $? "missing argument to $ac_option" +-fi +- +-if test -n "$ac_unrecognized_opts"; then +- case $enable_option_checking in +- no) ;; +- fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; +- *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; +- esac +-fi +- +-# Check all directory arguments for consistency. +-for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ +- datadir sysconfdir sharedstatedir localstatedir includedir \ +- oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ +- libdir localedir mandir runstatedir +-do +- eval ac_val=\$$ac_var +- # Remove trailing slashes. +- case $ac_val in +- */ ) +- ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` +- eval $ac_var=\$ac_val;; +- esac +- # Be sure to have absolute directory names. +- case $ac_val in +- [\\/$]* | ?:[\\/]* ) continue;; +- NONE | '' ) case $ac_var in *prefix ) continue;; esac;; +- esac +- as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +-done +- +-# There might be people who depend on the old broken behavior: `$host' +-# used to hold the argument of --host etc. +-# FIXME: To remove some day. +-build=$build_alias +-host=$host_alias +-target=$target_alias +- +-# FIXME: To remove some day. +-if test "x$host_alias" != x; then +- if test "x$build_alias" = x; then +- cross_compiling=maybe +- elif test "x$build_alias" != "x$host_alias"; then +- cross_compiling=yes +- fi +-fi +- +-ac_tool_prefix= +-test -n "$host_alias" && ac_tool_prefix=$host_alias- +- +-test "$silent" = yes && exec 6>/dev/null +- +- +-ac_pwd=`pwd` && test -n "$ac_pwd" && +-ac_ls_di=`ls -di .` && +-ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || +- as_fn_error $? "working directory cannot be determined" +-test "X$ac_ls_di" = "X$ac_pwd_ls_di" || +- as_fn_error $? "pwd does not report name of working directory" +- +- +-# Find the source files, if location was not specified. +-if test -z "$srcdir"; then +- ac_srcdir_defaulted=yes +- # Try the directory containing this script, then the parent directory. +- ac_confdir=`$as_dirname -- "$as_myself" || +-$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +- X"$as_myself" : 'X\(//\)[^/]' \| \ +- X"$as_myself" : 'X\(//\)$' \| \ +- X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X"$as_myself" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)[^/].*/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- srcdir=$ac_confdir +- if test ! -r "$srcdir/$ac_unique_file"; then +- srcdir=.. +- fi +-else +- ac_srcdir_defaulted=no +-fi +-if test ! -r "$srcdir/$ac_unique_file"; then +- test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." +- as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +-fi +-ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +-ac_abs_confdir=`( +- cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" +- pwd)` +-# When building in place, set srcdir=. +-if test "$ac_abs_confdir" = "$ac_pwd"; then +- srcdir=. +-fi +-# Remove unnecessary trailing slashes from srcdir. +-# Double slashes in file names in object file debugging info +-# mess up M-x gdb in Emacs. +-case $srcdir in +-*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +-esac +-for ac_var in $ac_precious_vars; do +- eval ac_env_${ac_var}_set=\${${ac_var}+set} +- eval ac_env_${ac_var}_value=\$${ac_var} +- eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} +- eval ac_cv_env_${ac_var}_value=\$${ac_var} +-done +- +-# +-# Report the --help message. +-# +-if test "$ac_init_help" = "long"; then +- # Omit some internal or obsolete options to make the list less imposing. +- # This message is too long to be a string in the A/UX 3.1 sh. +- cat <<_ACEOF +-\`configure' configures Xen Hypervisor Documentation 4.14 to adapt to many kinds of systems. +- +-Usage: $0 [OPTION]... [VAR=VALUE]... +- +-To assign environment variables (e.g., CC, CFLAGS...), specify them as +-VAR=VALUE. See below for descriptions of some of the useful variables. +- +-Defaults for the options are specified in brackets. +- +-Configuration: +- -h, --help display this help and exit +- --help=short display options specific to this package +- --help=recursive display the short help of all the included packages +- -V, --version display version information and exit +- -q, --quiet, --silent do not print \`checking ...' messages +- --cache-file=FILE cache test results in FILE [disabled] +- -C, --config-cache alias for \`--cache-file=config.cache' +- -n, --no-create do not create output files +- --srcdir=DIR find the sources in DIR [configure dir or \`..'] +- +-Installation directories: +- --prefix=PREFIX install architecture-independent files in PREFIX +- [$ac_default_prefix] +- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX +- [PREFIX] +- +-By default, \`make install' will install all the files in +-\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +-an installation prefix other than \`$ac_default_prefix' using \`--prefix', +-for instance \`--prefix=\$HOME'. +- +-For better control, use the options below. +- +-Fine tuning of the installation directories: +- --bindir=DIR user executables [EPREFIX/bin] +- --sbindir=DIR system admin executables [EPREFIX/sbin] +- --libexecdir=DIR program executables [EPREFIX/libexec] +- --sysconfdir=DIR read-only single-machine data [PREFIX/etc] +- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] +- --localstatedir=DIR modifiable single-machine data [PREFIX/var] +- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] +- --libdir=DIR object code libraries [EPREFIX/lib] +- --includedir=DIR C header files [PREFIX/include] +- --oldincludedir=DIR C header files for non-gcc [/usr/include] +- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] +- --datadir=DIR read-only architecture-independent data [DATAROOTDIR] +- --infodir=DIR info documentation [DATAROOTDIR/info] +- --localedir=DIR locale-dependent data [DATAROOTDIR/locale] +- --mandir=DIR man documentation [DATAROOTDIR/man] +- --docdir=DIR documentation root [DATAROOTDIR/doc/xen] +- --htmldir=DIR html documentation [DOCDIR] +- --dvidir=DIR dvi documentation [DOCDIR] +- --pdfdir=DIR pdf documentation [DOCDIR] +- --psdir=DIR ps documentation [DOCDIR] +-_ACEOF +- +- cat <<\_ACEOF +-_ACEOF +-fi +- +-if test -n "$ac_init_help"; then +- case $ac_init_help in +- short | recursive ) echo "Configuration of Xen Hypervisor Documentation 4.14:";; +- esac +- cat <<\_ACEOF +- +-Optional Packages: +- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] +- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) +- --with-initddir=DIR Path to directory with sysv runlevel scripts. +- [SYSCONFDIR/init.d] +- --with-sysconfig-leaf-dir=SUBDIR +- Name of subdirectory in /etc to store runtime +- options for runlevel scripts and daemons such as +- xenstored. This should be either "sysconfig" or +- "default". [sysconfig] +- --with-libexec-leaf-dir=SUBDIR +- Name of subdirectory in libexecdir to use. +- --with-xen-dumpdir=DIR Path to directory for domU crash dumps. +- [LOCALSTATEDIR/lib/xen/dump] +- --with-rundir=DIR Path to directory for runtime data. +- [LOCALSTATEDIR/run] +- --with-debugdir=DIR Path to directory for debug symbols. +- [PREFIX/lib/debug] +- +-Some influential environment variables: +- FIG2DEV Path to fig2dev tool +- POD2MAN Path to pod2man tool +- POD2HTML Path to pod2html tool +- POD2TEXT Path to pod2text tool +- PANDOC Path to pandoc tool +- PERL Path to Perl parser +- +-Use these variables to override the choices made by `configure' or to help +-it to find libraries and programs with nonstandard names/locations. +- +-Report bugs to . +-Xen Hypervisor Documentation home page: . +-_ACEOF +-ac_status=$? +-fi +- +-if test "$ac_init_help" = "recursive"; then +- # If there are subdirs, report their specific --help. +- for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue +- test -d "$ac_dir" || +- { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || +- continue +- ac_builddir=. +- +-case "$ac_dir" in +-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +-*) +- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` +- # A ".." for each directory in $ac_dir_suffix. +- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` +- case $ac_top_builddir_sub in +- "") ac_top_builddir_sub=. ac_top_build_prefix= ;; +- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; +- esac ;; +-esac +-ac_abs_top_builddir=$ac_pwd +-ac_abs_builddir=$ac_pwd$ac_dir_suffix +-# for backward compatibility: +-ac_top_builddir=$ac_top_build_prefix +- +-case $srcdir in +- .) # We are building in place. +- ac_srcdir=. +- ac_top_srcdir=$ac_top_builddir_sub +- ac_abs_top_srcdir=$ac_pwd ;; +- [\\/]* | ?:[\\/]* ) # Absolute name. +- ac_srcdir=$srcdir$ac_dir_suffix; +- ac_top_srcdir=$srcdir +- ac_abs_top_srcdir=$srcdir ;; +- *) # Relative name. +- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix +- ac_top_srcdir=$ac_top_build_prefix$srcdir +- ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +-esac +-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix +- +- cd "$ac_dir" || { ac_status=$?; continue; } +- # Check for guested configure. +- if test -f "$ac_srcdir/configure.gnu"; then +- echo && +- $SHELL "$ac_srcdir/configure.gnu" --help=recursive +- elif test -f "$ac_srcdir/configure"; then +- echo && +- $SHELL "$ac_srcdir/configure" --help=recursive +- else +- $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 +- fi || ac_status=$? +- cd "$ac_pwd" || { ac_status=$?; break; } +- done +-fi +- +-test -n "$ac_init_help" && exit $ac_status +-if $ac_init_version; then +- cat <<\_ACEOF +-Xen Hypervisor Documentation configure 4.14 +-generated by GNU Autoconf 2.69 +- +-Copyright (C) 2012 Free Software Foundation, Inc. +-This configure script is free software; the Free Software Foundation +-gives unlimited permission to copy, distribute and modify it. +-_ACEOF +- exit +-fi +- +-## ------------------------ ## +-## Autoconf initialization. ## +-## ------------------------ ## +-cat >config.log <<_ACEOF +-This file contains any messages produced by compilers while +-running configure, to aid debugging if configure makes a mistake. +- +-It was created by Xen Hypervisor Documentation $as_me 4.14, which was +-generated by GNU Autoconf 2.69. Invocation command line was +- +- $ $0 $@ +- +-_ACEOF +-exec 5>>config.log +-{ +-cat <<_ASUNAME +-## --------- ## +-## Platform. ## +-## --------- ## +- +-hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +-uname -m = `(uname -m) 2>/dev/null || echo unknown` +-uname -r = `(uname -r) 2>/dev/null || echo unknown` +-uname -s = `(uname -s) 2>/dev/null || echo unknown` +-uname -v = `(uname -v) 2>/dev/null || echo unknown` +- +-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +-/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` +- +-/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +-/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +-/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +-/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +-/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +-/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` +- +-_ASUNAME +- +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- $as_echo "PATH: $as_dir" +- done +-IFS=$as_save_IFS +- +-} >&5 +- +-cat >&5 <<_ACEOF +- +- +-## ----------- ## +-## Core tests. ## +-## ----------- ## +- +-_ACEOF +- +- +-# Keep a trace of the command line. +-# Strip out --no-create and --no-recursion so they do not pile up. +-# Strip out --silent because we don't want to record it for future runs. +-# Also quote any args containing shell meta-characters. +-# Make two passes to allow for proper duplicate-argument suppression. +-ac_configure_args= +-ac_configure_args0= +-ac_configure_args1= +-ac_must_keep_next=false +-for ac_pass in 1 2 +-do +- for ac_arg +- do +- case $ac_arg in +- -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; +- -q | -quiet | --quiet | --quie | --qui | --qu | --q \ +- | -silent | --silent | --silen | --sile | --sil) +- continue ;; +- *\'*) +- ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; +- esac +- case $ac_pass in +- 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; +- 2) +- as_fn_append ac_configure_args1 " '$ac_arg'" +- if test $ac_must_keep_next = true; then +- ac_must_keep_next=false # Got value, back to normal. +- else +- case $ac_arg in +- *=* | --config-cache | -C | -disable-* | --disable-* \ +- | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ +- | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ +- | -with-* | --with-* | -without-* | --without-* | --x) +- case "$ac_configure_args0 " in +- "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; +- esac +- ;; +- -* ) ac_must_keep_next=true ;; +- esac +- fi +- as_fn_append ac_configure_args " '$ac_arg'" +- ;; +- esac +- done +-done +-{ ac_configure_args0=; unset ac_configure_args0;} +-{ ac_configure_args1=; unset ac_configure_args1;} +- +-# When interrupted or exit'd, cleanup temporary files, and complete +-# config.log. We remove comments because anyway the quotes in there +-# would cause problems or look ugly. +-# WARNING: Use '\'' to represent an apostrophe within the trap. +-# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +-trap 'exit_status=$? +- # Save into config.log some information that might help in debugging. +- { +- echo +- +- $as_echo "## ---------------- ## +-## Cache variables. ## +-## ---------------- ##" +- echo +- # The following way of writing the cache mishandles newlines in values, +-( +- for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do +- eval ac_val=\$$ac_var +- case $ac_val in #( +- *${as_nl}*) +- case $ac_var in #( +- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +-$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; +- esac +- case $ac_var in #( +- _ | IFS | as_nl) ;; #( +- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( +- *) { eval $ac_var=; unset $ac_var;} ;; +- esac ;; +- esac +- done +- (set) 2>&1 | +- case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( +- *${as_nl}ac_space=\ *) +- sed -n \ +- "s/'\''/'\''\\\\'\'''\''/g; +- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" +- ;; #( +- *) +- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" +- ;; +- esac | +- sort +-) +- echo +- +- $as_echo "## ----------------- ## +-## Output variables. ## +-## ----------------- ##" +- echo +- for ac_var in $ac_subst_vars +- do +- eval ac_val=\$$ac_var +- case $ac_val in +- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; +- esac +- $as_echo "$ac_var='\''$ac_val'\''" +- done | sort +- echo +- +- if test -n "$ac_subst_files"; then +- $as_echo "## ------------------- ## +-## File substitutions. ## +-## ------------------- ##" +- echo +- for ac_var in $ac_subst_files +- do +- eval ac_val=\$$ac_var +- case $ac_val in +- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; +- esac +- $as_echo "$ac_var='\''$ac_val'\''" +- done | sort +- echo +- fi +- +- if test -s confdefs.h; then +- $as_echo "## ----------- ## +-## confdefs.h. ## +-## ----------- ##" +- echo +- cat confdefs.h +- echo +- fi +- test "$ac_signal" != 0 && +- $as_echo "$as_me: caught signal $ac_signal" +- $as_echo "$as_me: exit $exit_status" +- } >&5 +- rm -f core *.core core.conftest.* && +- rm -f -r conftest* confdefs* conf$$* $ac_clean_files && +- exit $exit_status +-' 0 +-for ac_signal in 1 2 13 15; do +- trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +-done +-ac_signal=0 +- +-# confdefs.h avoids OS command line length limits that DEFS can exceed. +-rm -f -r conftest* confdefs.h +- +-$as_echo "/* confdefs.h */" > confdefs.h +- +-# Predefined preprocessor variables. +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_NAME "$PACKAGE_NAME" +-_ACEOF +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +-_ACEOF +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_VERSION "$PACKAGE_VERSION" +-_ACEOF +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_STRING "$PACKAGE_STRING" +-_ACEOF +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +-_ACEOF +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_URL "$PACKAGE_URL" +-_ACEOF +- +- +-# Let the site file select an alternate cache file if it wants to. +-# Prefer an explicitly selected file to automatically selected ones. +-ac_site_file1=NONE +-ac_site_file2=NONE +-if test -n "$CONFIG_SITE"; then +- # We do not want a PATH search for config.site. +- case $CONFIG_SITE in #(( +- -*) ac_site_file1=./$CONFIG_SITE;; +- */*) ac_site_file1=$CONFIG_SITE;; +- *) ac_site_file1=./$CONFIG_SITE;; +- esac +-elif test "x$prefix" != xNONE; then +- ac_site_file1=$prefix/share/config.site +- ac_site_file2=$prefix/etc/config.site +-else +- ac_site_file1=$ac_default_prefix/share/config.site +- ac_site_file2=$ac_default_prefix/etc/config.site +-fi +-for ac_site_file in "$ac_site_file1" "$ac_site_file2" +-do +- test "x$ac_site_file" = xNONE && continue +- if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +-$as_echo "$as_me: loading site script $ac_site_file" >&6;} +- sed 's/^/| /' "$ac_site_file" >&5 +- . "$ac_site_file" \ +- || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "failed to load site script $ac_site_file +-See \`config.log' for more details" "$LINENO" 5; } +- fi +-done +- +-if test -r "$cache_file"; then +- # Some versions of bash will fail to source /dev/null (special files +- # actually), so we avoid doing that. DJGPP emulates it as a regular file. +- if test /dev/null != "$cache_file" && test -f "$cache_file"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +-$as_echo "$as_me: loading cache $cache_file" >&6;} +- case $cache_file in +- [\\/]* | ?:[\\/]* ) . "$cache_file";; +- *) . "./$cache_file";; +- esac +- fi +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +-$as_echo "$as_me: creating cache $cache_file" >&6;} +- >$cache_file +-fi +- +-# Check that the precious variables saved in the cache have kept the same +-# value. +-ac_cache_corrupted=false +-for ac_var in $ac_precious_vars; do +- eval ac_old_set=\$ac_cv_env_${ac_var}_set +- eval ac_new_set=\$ac_env_${ac_var}_set +- eval ac_old_val=\$ac_cv_env_${ac_var}_value +- eval ac_new_val=\$ac_env_${ac_var}_value +- case $ac_old_set,$ac_new_set in +- set,) +- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +-$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} +- ac_cache_corrupted=: ;; +- ,set) +- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +-$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} +- ac_cache_corrupted=: ;; +- ,);; +- *) +- if test "x$ac_old_val" != "x$ac_new_val"; then +- # differences in whitespace do not lead to failure. +- ac_old_val_w=`echo x $ac_old_val` +- ac_new_val_w=`echo x $ac_new_val` +- if test "$ac_old_val_w" != "$ac_new_val_w"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +-$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} +- ac_cache_corrupted=: +- else +- { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +-$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} +- eval $ac_var=\$ac_old_val +- fi +- { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +-$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} +- { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +-$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} +- fi;; +- esac +- # Pass precious variables to config.status. +- if test "$ac_new_set" = set; then +- case $ac_new_val in +- *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; +- *) ac_arg=$ac_var=$ac_new_val ;; +- esac +- case " $ac_configure_args " in +- *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. +- *) as_fn_append ac_configure_args " '$ac_arg'" ;; +- esac +- fi +-done +-if $ac_cache_corrupted; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +- { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +-$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} +- as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +-fi +-## -------------------- ## +-## Main body of script. ## +-## -------------------- ## +- +-ac_ext=c +-ac_cpp='$CPP $CPPFLAGS' +-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +-ac_compiler_gnu=$ac_cv_c_compiler_gnu +- +- +- +-ac_config_files="$ac_config_files ../config/Docs.mk man/xl.cfg.5.pod man/xl.1.pod" +- +-ac_aux_dir= +-for ac_dir in ../ "$srcdir"/../; do +- if test -f "$ac_dir/install-sh"; then +- ac_aux_dir=$ac_dir +- ac_install_sh="$ac_aux_dir/install-sh -c" +- break +- elif test -f "$ac_dir/install.sh"; then +- ac_aux_dir=$ac_dir +- ac_install_sh="$ac_aux_dir/install.sh -c" +- break +- elif test -f "$ac_dir/shtool"; then +- ac_aux_dir=$ac_dir +- ac_install_sh="$ac_aux_dir/shtool install -c" +- break +- fi +-done +-if test -z "$ac_aux_dir"; then +- as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../ \"$srcdir\"/../" "$LINENO" 5 +-fi +- +-# These three variables are undocumented and unsupported, +-# and are intended to be withdrawn in a future Autoconf release. +-# They can cause serious problems if a builder's source tree is in a directory +-# whose full name contains unusual characters. +-ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +-ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +-ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. +- +- +- +-# M4 Macro includes +- +- +- +- +- +- +- +- +- +- +- +- +- +- +-case "$host_os" in +-*freebsd*) XENSTORED_KVA=/dev/xen/xenstored ;; +-*) XENSTORED_KVA=/proc/xen/xsd_kva ;; +-esac +- +- +-case "$host_os" in +-*freebsd*) XENSTORED_PORT=/dev/xen/xenstored ;; +-*) XENSTORED_PORT=/proc/xen/xsd_port ;; +-esac +- +- +- +- +-test "x$prefix" = "xNONE" && prefix=$ac_default_prefix +-test "x$exec_prefix" = "xNONE" && exec_prefix=${prefix} +- +-if test "$localstatedir" = '${prefix}/var' ; then +- localstatedir=/var +-fi +- +-bindir=`eval echo $bindir` +-sbindir=`eval echo $sbindir` +-libdir=`eval echo $libdir` +- +-if test "x$sysconfdir" = 'x${prefix}/etc' ; then +- case "$host_os" in +- *freebsd*) +- sysconfdir=$prefix/etc +- ;; +- *solaris*) +- if test "$prefix" = "/usr" ; then +- sysconfdir=/etc +- else +- sysconfdir=$prefix/etc +- fi +- ;; +- *) +- sysconfdir=/etc +- ;; +- esac +-fi +- +- +-# Check whether --with-initddir was given. +-if test "${with_initddir+set}" = set; then : +- withval=$with_initddir; initddir_path=$withval +-else +- case "$host_os" in +- *linux*) +- if test -d $sysconfdir/rc.d/init.d ; then +- initddir_path=$sysconfdir/rc.d/init.d +- else +- initddir_path=$sysconfdir/init.d +- fi +- ;; +- *) +- initddir_path=$sysconfdir/rc.d +- ;; +- esac +-fi +- +- +- +-# Check whether --with-sysconfig-leaf-dir was given. +-if test "${with_sysconfig_leaf_dir+set}" = set; then : +- withval=$with_sysconfig_leaf_dir; config_leaf_dir=$withval +-else +- config_leaf_dir=sysconfig +- if test ! -d /etc/sysconfig ; then config_leaf_dir=default ; fi +-fi +- +-CONFIG_LEAF_DIR=$config_leaf_dir +- +- +- +-# Check whether --with-libexec-leaf-dir was given. +-if test "${with_libexec_leaf_dir+set}" = set; then : +- withval=$with_libexec_leaf_dir; libexec_subdir=$withval +-else +- libexec_subdir=$PACKAGE_TARNAME +-fi +- +- +- +-# Check whether --with-xen-dumpdir was given. +-if test "${with_xen_dumpdir+set}" = set; then : +- withval=$with_xen_dumpdir; xen_dumpdir_path=$withval +-else +- xen_dumpdir_path=$localstatedir/lib/xen/dump +-fi +- +- +- +-# Check whether --with-rundir was given. +-if test "${with_rundir+set}" = set; then : +- withval=$with_rundir; rundir_path=$withval +-else +- rundir_path=$localstatedir/run +-fi +- +- +- +-# Check whether --with-debugdir was given. +-if test "${with_debugdir+set}" = set; then : +- withval=$with_debugdir; debugdir_path=$withval +-else +- debugdir_path=$prefix/lib/debug +-fi +- +- +-if test "$libexecdir" = '${exec_prefix}/libexec' ; then +- case "$host_os" in +- *netbsd*) ;; +- *) +- libexecdir='${exec_prefix}/lib' +- ;; +- esac +-fi +-LIBEXEC=`eval echo $libexecdir/$libexec_subdir` +- +- +-LIBEXEC_BIN=${LIBEXEC}/bin +- +-LIBEXEC_LIB=${LIBEXEC}/lib +- +-LIBEXEC_INC=${LIBEXEC}/include +- +-XENFIRMWAREDIR=${LIBEXEC}/boot +- +- +-XEN_RUN_DIR=$rundir_path/xen +- +- +-XEN_LOG_DIR=$localstatedir/log/xen +- +- +-XEN_LIB_STORED=$localstatedir/lib/xenstored +- +- +-XEN_RUN_STORED=$rundir_path/xenstored +- +- +-XEN_LIB_DIR=$localstatedir/lib/xen +- +- +-SHAREDIR=$prefix/share +- +- +-CONFIG_DIR=$sysconfdir +- +- +-INITD_DIR=$initddir_path +- +- +-XEN_CONFIG_DIR=$CONFIG_DIR/xen +- +- +-XEN_SCRIPT_DIR=$XEN_CONFIG_DIR/scripts +- +- +-case "$host_os" in +-*freebsd*) XEN_LOCK_DIR=$localstatedir/lib ;; +-*netbsd*) XEN_LOCK_DIR=$localstatedir/lib ;; +-*) XEN_LOCK_DIR=$localstatedir/lock ;; +-esac +- +- +-XEN_PAGING_DIR=$localstatedir/lib/xen/xenpaging +- +- +-XEN_DUMP_DIR=$xen_dumpdir_path +- +- +-DEBUG_DIR=$debugdir_path +- +- +- +- +- +- # Extract the first word of "fig2dev", so it can be a program name with args. +-set dummy fig2dev; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_FIG2DEV+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $FIG2DEV in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_FIG2DEV="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-fi +-FIG2DEV=$ac_cv_path_FIG2DEV +-if test -n "$FIG2DEV"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIG2DEV" >&5 +-$as_echo "$FIG2DEV" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- if ! test -x "$ac_cv_path_FIG2DEV"; then : +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fig2dev is not available so some documentation won't be built" >&5 +-$as_echo "$as_me: WARNING: fig2dev is not available so some documentation won't be built" >&2;} +- +-fi +- +- +- +- # Extract the first word of "pod2man", so it can be a program name with args. +-set dummy pod2man; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_POD2MAN+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $POD2MAN in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-fi +-POD2MAN=$ac_cv_path_POD2MAN +-if test -n "$POD2MAN"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5 +-$as_echo "$POD2MAN" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- if ! test -x "$ac_cv_path_POD2MAN"; then : +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pod2man is not available so some documentation won't be built" >&5 +-$as_echo "$as_me: WARNING: pod2man is not available so some documentation won't be built" >&2;} +- +-fi +- +- +- +- # Extract the first word of "pod2html", so it can be a program name with args. +-set dummy pod2html; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_POD2HTML+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $POD2HTML in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-fi +-POD2HTML=$ac_cv_path_POD2HTML +-if test -n "$POD2HTML"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5 +-$as_echo "$POD2HTML" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- if ! test -x "$ac_cv_path_POD2HTML"; then : +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pod2html is not available so some documentation won't be built" >&5 +-$as_echo "$as_me: WARNING: pod2html is not available so some documentation won't be built" >&2;} +- +-fi +- +- +- +- # Extract the first word of "pod2text", so it can be a program name with args. +-set dummy pod2text; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_POD2TEXT+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $POD2TEXT in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_POD2TEXT="$POD2TEXT" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_POD2TEXT="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-fi +-POD2TEXT=$ac_cv_path_POD2TEXT +-if test -n "$POD2TEXT"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2TEXT" >&5 +-$as_echo "$POD2TEXT" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- if ! test -x "$ac_cv_path_POD2TEXT"; then : +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pod2text is not available so some documentation won't be built" >&5 +-$as_echo "$as_me: WARNING: pod2text is not available so some documentation won't be built" >&2;} +- +-fi +- +- +- +- # Extract the first word of "pandoc", so it can be a program name with args. +-set dummy pandoc; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_PANDOC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $PANDOC in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-fi +-PANDOC=$ac_cv_path_PANDOC +-if test -n "$PANDOC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 +-$as_echo "$PANDOC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- if ! test -x "$ac_cv_path_PANDOC"; then : +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pandoc is not available so some documentation won't be built" >&5 +-$as_echo "$as_me: WARNING: pandoc is not available so some documentation won't be built" >&2;} +- +-fi +- +- +- +-# Extract the first word of "perl", so it can be a program name with args. +-set dummy perl; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_PERL+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $PERL in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_PERL="$PERL" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" +- ;; +-esac +-fi +-PERL=$ac_cv_path_PERL +-if test -n "$PERL"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 +-$as_echo "$PERL" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-if test x"${PERL}" = x"no" +-then +- as_fn_error $? "Unable to find perl, please install perl" "$LINENO" 5 +-fi +- +-cat >confcache <<\_ACEOF +-# This file is a shell script that caches the results of configure +-# tests run on this system so they can be shared between configure +-# scripts and configure runs, see configure's option --config-cache. +-# It is not useful on other systems. If it contains results you don't +-# want to keep, you may remove or edit it. +-# +-# config.status only pays attention to the cache file if you give it +-# the --recheck option to rerun configure. +-# +-# `ac_cv_env_foo' variables (set or unset) will be overridden when +-# loading this file, other *unset* `ac_cv_foo' will be assigned the +-# following values. +- +-_ACEOF +- +-# The following way of writing the cache mishandles newlines in values, +-# but we know of no workaround that is simple, portable, and efficient. +-# So, we kill variables containing newlines. +-# Ultrix sh set writes to stderr and can't be redirected directly, +-# and sets the high bit in the cache file unless we assign to the vars. +-( +- for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do +- eval ac_val=\$$ac_var +- case $ac_val in #( +- *${as_nl}*) +- case $ac_var in #( +- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +-$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; +- esac +- case $ac_var in #( +- _ | IFS | as_nl) ;; #( +- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( +- *) { eval $ac_var=; unset $ac_var;} ;; +- esac ;; +- esac +- done +- +- (set) 2>&1 | +- case $as_nl`(ac_space=' '; set) 2>&1` in #( +- *${as_nl}ac_space=\ *) +- # `set' does not quote correctly, so add quotes: double-quote +- # substitution turns \\\\ into \\, and sed turns \\ into \. +- sed -n \ +- "s/'/'\\\\''/g; +- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" +- ;; #( +- *) +- # `set' quotes correctly as required by POSIX, so do not add quotes. +- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" +- ;; +- esac | +- sort +-) | +- sed ' +- /^ac_cv_env_/b end +- t clear +- :clear +- s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ +- t end +- s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ +- :end' >>confcache +-if diff "$cache_file" confcache >/dev/null 2>&1; then :; else +- if test -w "$cache_file"; then +- if test "x$cache_file" != "x/dev/null"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +-$as_echo "$as_me: updating cache $cache_file" >&6;} +- if test ! -f "$cache_file" || test -h "$cache_file"; then +- cat confcache >"$cache_file" +- else +- case $cache_file in #( +- */* | ?:*) +- mv -f confcache "$cache_file"$$ && +- mv -f "$cache_file"$$ "$cache_file" ;; #( +- *) +- mv -f confcache "$cache_file" ;; +- esac +- fi +- fi +- else +- { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +-$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} +- fi +-fi +-rm -f confcache +- +-test "x$prefix" = xNONE && prefix=$ac_default_prefix +-# Let make expand exec_prefix. +-test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' +- +-# Transform confdefs.h into DEFS. +-# Protect against shell expansion while executing Makefile rules. +-# Protect against Makefile macro expansion. +-# +-# If the first sed substitution is executed (which looks for macros that +-# take arguments), then branch to the quote section. Otherwise, +-# look for a macro that doesn't take arguments. +-ac_script=' +-:mline +-/\\$/{ +- N +- s,\\\n,, +- b mline +-} +-t clear +-:clear +-s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g +-t quote +-s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g +-t quote +-b any +-:quote +-s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g +-s/\[/\\&/g +-s/\]/\\&/g +-s/\$/$$/g +-H +-:any +-${ +- g +- s/^\n// +- s/\n/ /g +- p +-} +-' +-DEFS=`sed -n "$ac_script" confdefs.h` +- +- +-ac_libobjs= +-ac_ltlibobjs= +-U= +-for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue +- # 1. Remove the extension, and $U if already installed. +- ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' +- ac_i=`$as_echo "$ac_i" | sed "$ac_script"` +- # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR +- # will be set to the directory where LIBOBJS objects are built. +- as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" +- as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +-done +-LIBOBJS=$ac_libobjs +- +-LTLIBOBJS=$ac_ltlibobjs +- +- +- +-: "${CONFIG_STATUS=./config.status}" +-ac_write_fail=0 +-ac_clean_files_save=$ac_clean_files +-ac_clean_files="$ac_clean_files $CONFIG_STATUS" +-{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +-$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +-as_write_fail=0 +-cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +-#! $SHELL +-# Generated by $as_me. +-# Run this file to recreate the current configuration. +-# Compiler output produced by configure, useful for debugging +-# configure, is in config.log if it exists. +- +-debug=false +-ac_cs_recheck=false +-ac_cs_silent=false +- +-SHELL=\${CONFIG_SHELL-$SHELL} +-export SHELL +-_ASEOF +-cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +-## -------------------- ## +-## M4sh Initialization. ## +-## -------------------- ## +- +-# Be more Bourne compatible +-DUALCASE=1; export DUALCASE # for MKS sh +-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +- emulate sh +- NULLCMD=: +- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which +- # is contrary to our usage. Disable this feature. +- alias -g '${1+"$@"}'='"$@"' +- setopt NO_GLOB_SUBST +-else +- case `(set -o) 2>/dev/null` in #( +- *posix*) : +- set -o posix ;; #( +- *) : +- ;; +-esac +-fi +- +- +-as_nl=' +-' +-export as_nl +-# Printing a long string crashes Solaris 7 /usr/bin/printf. +-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +-# Prefer a ksh shell builtin over an external printf program on Solaris, +-# but without wasting forks for bash or zsh. +-if test -z "$BASH_VERSION$ZSH_VERSION" \ +- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then +- as_echo='print -r --' +- as_echo_n='print -rn --' +-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then +- as_echo='printf %s\n' +- as_echo_n='printf %s' +-else +- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then +- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' +- as_echo_n='/usr/ucb/echo -n' +- else +- as_echo_body='eval expr "X$1" : "X\\(.*\\)"' +- as_echo_n_body='eval +- arg=$1; +- case $arg in #( +- *"$as_nl"*) +- expr "X$arg" : "X\\(.*\\)$as_nl"; +- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; +- esac; +- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" +- ' +- export as_echo_n_body +- as_echo_n='sh -c $as_echo_n_body as_echo' +- fi +- export as_echo_body +- as_echo='sh -c $as_echo_body as_echo' +-fi +- +-# The user is always right. +-if test "${PATH_SEPARATOR+set}" != set; then +- PATH_SEPARATOR=: +- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { +- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || +- PATH_SEPARATOR=';' +- } +-fi +- +- +-# IFS +-# We need space, tab and new line, in precisely that order. Quoting is +-# there to prevent editors from complaining about space-tab. +-# (If _AS_PATH_WALK were called with IFS unset, it would disable word +-# splitting by setting IFS to empty value.) +-IFS=" "" $as_nl" +- +-# Find who we are. Look in the path if we contain no directory separator. +-as_myself= +-case $0 in #(( +- *[\\/]* ) as_myself=$0 ;; +- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-# We did not find ourselves, most probably we were run as `sh COMMAND' +-# in which case we are not to be found in the path. +-if test "x$as_myself" = x; then +- as_myself=$0 +-fi +-if test ! -f "$as_myself"; then +- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 +- exit 1 +-fi +- +-# Unset variables that we do not need and which cause bugs (e.g. in +-# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +-# suppresses any "Segmentation fault" message there. '((' could +-# trigger a bug in pdksh 5.2.14. +-for as_var in BASH_ENV ENV MAIL MAILPATH +-do eval test x\${$as_var+set} = xset \ +- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +-done +-PS1='$ ' +-PS2='> ' +-PS4='+ ' +- +-# NLS nuisances. +-LC_ALL=C +-export LC_ALL +-LANGUAGE=C +-export LANGUAGE +- +-# CDPATH. +-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH +- +- +-# as_fn_error STATUS ERROR [LINENO LOG_FD] +-# ---------------------------------------- +-# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +-# script with STATUS, using 1 if that was 0. +-as_fn_error () +-{ +- as_status=$1; test $as_status -eq 0 && as_status=1 +- if test "$4"; then +- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 +- fi +- $as_echo "$as_me: error: $2" >&2 +- as_fn_exit $as_status +-} # as_fn_error +- +- +-# as_fn_set_status STATUS +-# ----------------------- +-# Set $? to STATUS, without forking. +-as_fn_set_status () +-{ +- return $1 +-} # as_fn_set_status +- +-# as_fn_exit STATUS +-# ----------------- +-# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +-as_fn_exit () +-{ +- set +e +- as_fn_set_status $1 +- exit $1 +-} # as_fn_exit +- +-# as_fn_unset VAR +-# --------------- +-# Portably unset VAR. +-as_fn_unset () +-{ +- { eval $1=; unset $1;} +-} +-as_unset=as_fn_unset +-# as_fn_append VAR VALUE +-# ---------------------- +-# Append the text in VALUE to the end of the definition contained in VAR. Take +-# advantage of any shell optimizations that allow amortized linear growth over +-# repeated appends, instead of the typical quadratic growth present in naive +-# implementations. +-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +- eval 'as_fn_append () +- { +- eval $1+=\$2 +- }' +-else +- as_fn_append () +- { +- eval $1=\$$1\$2 +- } +-fi # as_fn_append +- +-# as_fn_arith ARG... +-# ------------------ +-# Perform arithmetic evaluation on the ARGs, and store the result in the +-# global $as_val. Take advantage of shells that can avoid forks. The arguments +-# must be portable across $(()) and expr. +-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +- eval 'as_fn_arith () +- { +- as_val=$(( $* )) +- }' +-else +- as_fn_arith () +- { +- as_val=`expr "$@" || test $? -eq 1` +- } +-fi # as_fn_arith +- +- +-if expr a : '\(a\)' >/dev/null 2>&1 && +- test "X`expr 00001 : '.*\(...\)'`" = X001; then +- as_expr=expr +-else +- as_expr=false +-fi +- +-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then +- as_basename=basename +-else +- as_basename=false +-fi +- +-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then +- as_dirname=dirname +-else +- as_dirname=false +-fi +- +-as_me=`$as_basename -- "$0" || +-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ +- X"$0" : 'X\(//\)$' \| \ +- X"$0" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X/"$0" | +- sed '/^.*\/\([^/][^/]*\)\/*$/{ +- s//\1/ +- q +- } +- /^X\/\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\/\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- +-# Avoid depending upon Character Ranges. +-as_cr_letters='abcdefghijklmnopqrstuvwxyz' +-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +-as_cr_Letters=$as_cr_letters$as_cr_LETTERS +-as_cr_digits='0123456789' +-as_cr_alnum=$as_cr_Letters$as_cr_digits +- +-ECHO_C= ECHO_N= ECHO_T= +-case `echo -n x` in #((((( +--n*) +- case `echo 'xy\c'` in +- *c*) ECHO_T=' ';; # ECHO_T is single tab character. +- xy) ECHO_C='\c';; +- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null +- ECHO_T=' ';; +- esac;; +-*) +- ECHO_N='-n';; +-esac +- +-rm -f conf$$ conf$$.exe conf$$.file +-if test -d conf$$.dir; then +- rm -f conf$$.dir/conf$$.file +-else +- rm -f conf$$.dir +- mkdir conf$$.dir 2>/dev/null +-fi +-if (echo >conf$$.file) 2>/dev/null; then +- if ln -s conf$$.file conf$$ 2>/dev/null; then +- as_ln_s='ln -s' +- # ... but there are two gotchas: +- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. +- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. +- # In both cases, we have to default to `cp -pR'. +- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +- as_ln_s='cp -pR' +- elif ln conf$$.file conf$$ 2>/dev/null; then +- as_ln_s=ln +- else +- as_ln_s='cp -pR' +- fi +-else +- as_ln_s='cp -pR' +-fi +-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +-rmdir conf$$.dir 2>/dev/null +- +- +-# as_fn_mkdir_p +-# ------------- +-# Create "$as_dir" as a directory, including parents if necessary. +-as_fn_mkdir_p () +-{ +- +- case $as_dir in #( +- -*) as_dir=./$as_dir;; +- esac +- test -d "$as_dir" || eval $as_mkdir_p || { +- as_dirs= +- while :; do +- case $as_dir in #( +- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( +- *) as_qdir=$as_dir;; +- esac +- as_dirs="'$as_qdir' $as_dirs" +- as_dir=`$as_dirname -- "$as_dir" || +-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +- X"$as_dir" : 'X\(//\)[^/]' \| \ +- X"$as_dir" : 'X\(//\)$' \| \ +- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X"$as_dir" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)[^/].*/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- test -d "$as_dir" && break +- done +- test -z "$as_dirs" || eval "mkdir $as_dirs" +- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" +- +- +-} # as_fn_mkdir_p +-if mkdir -p . 2>/dev/null; then +- as_mkdir_p='mkdir -p "$as_dir"' +-else +- test -d ./-p && rmdir ./-p +- as_mkdir_p=false +-fi +- +- +-# as_fn_executable_p FILE +-# ----------------------- +-# Test if FILE is an executable regular file. +-as_fn_executable_p () +-{ +- test -f "$1" && test -x "$1" +-} # as_fn_executable_p +-as_test_x='test -x' +-as_executable_p=as_fn_executable_p +- +-# Sed expression to map a string onto a valid CPP name. +-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +- +-# Sed expression to map a string onto a valid variable name. +-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +- +- +-exec 6>&1 +-## ----------------------------------- ## +-## Main body of $CONFIG_STATUS script. ## +-## ----------------------------------- ## +-_ASEOF +-test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-# Save the log message, to keep $0 and so on meaningful, and to +-# report actual input values of CONFIG_FILES etc. instead of their +-# values after options handling. +-ac_log=" +-This file was extended by Xen Hypervisor Documentation $as_me 4.14, which was +-generated by GNU Autoconf 2.69. Invocation command line was +- +- CONFIG_FILES = $CONFIG_FILES +- CONFIG_HEADERS = $CONFIG_HEADERS +- CONFIG_LINKS = $CONFIG_LINKS +- CONFIG_COMMANDS = $CONFIG_COMMANDS +- $ $0 $@ +- +-on `(hostname || uname -n) 2>/dev/null | sed 1q` +-" +- +-_ACEOF +- +-case $ac_config_files in *" +-"*) set x $ac_config_files; shift; ac_config_files=$*;; +-esac +- +- +- +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-# Files that config.status was made for. +-config_files="$ac_config_files" +- +-_ACEOF +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-ac_cs_usage="\ +-\`$as_me' instantiates files and other configuration actions +-from templates according to the current configuration. Unless the files +-and actions are specified as TAGs, all are instantiated by default. +- +-Usage: $0 [OPTION]... [TAG]... +- +- -h, --help print this help, then exit +- -V, --version print version number and configuration settings, then exit +- --config print configuration, then exit +- -q, --quiet, --silent +- do not print progress messages +- -d, --debug don't remove temporary files +- --recheck update $as_me by reconfiguring in the same conditions +- --file=FILE[:TEMPLATE] +- instantiate the configuration file FILE +- +-Configuration files: +-$config_files +- +-Report bugs to . +-Xen Hypervisor Documentation home page: ." +- +-_ACEOF +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +-ac_cs_version="\\ +-Xen Hypervisor Documentation config.status 4.14 +-configured by $0, generated by GNU Autoconf 2.69, +- with options \\"\$ac_cs_config\\" +- +-Copyright (C) 2012 Free Software Foundation, Inc. +-This config.status script is free software; the Free Software Foundation +-gives unlimited permission to copy, distribute and modify it." +- +-ac_pwd='$ac_pwd' +-srcdir='$srcdir' +-test -n "\$AWK" || AWK=awk +-_ACEOF +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-# The default lists apply if the user does not specify any file. +-ac_need_defaults=: +-while test $# != 0 +-do +- case $1 in +- --*=?*) +- ac_option=`expr "X$1" : 'X\([^=]*\)='` +- ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` +- ac_shift=: +- ;; +- --*=) +- ac_option=`expr "X$1" : 'X\([^=]*\)='` +- ac_optarg= +- ac_shift=: +- ;; +- *) +- ac_option=$1 +- ac_optarg=$2 +- ac_shift=shift +- ;; +- esac +- +- case $ac_option in +- # Handling of the options. +- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) +- ac_cs_recheck=: ;; +- --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) +- $as_echo "$ac_cs_version"; exit ;; +- --config | --confi | --conf | --con | --co | --c ) +- $as_echo "$ac_cs_config"; exit ;; +- --debug | --debu | --deb | --de | --d | -d ) +- debug=: ;; +- --file | --fil | --fi | --f ) +- $ac_shift +- case $ac_optarg in +- *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; +- '') as_fn_error $? "missing file argument" ;; +- esac +- as_fn_append CONFIG_FILES " '$ac_optarg'" +- ac_need_defaults=false;; +- --he | --h | --help | --hel | -h ) +- $as_echo "$ac_cs_usage"; exit ;; +- -q | -quiet | --quiet | --quie | --qui | --qu | --q \ +- | -silent | --silent | --silen | --sile | --sil | --si | --s) +- ac_cs_silent=: ;; +- +- # This is an error. +- -*) as_fn_error $? "unrecognized option: \`$1' +-Try \`$0 --help' for more information." ;; +- +- *) as_fn_append ac_config_targets " $1" +- ac_need_defaults=false ;; +- +- esac +- shift +-done +- +-ac_configure_extra_args= +- +-if $ac_cs_silent; then +- exec 6>/dev/null +- ac_configure_extra_args="$ac_configure_extra_args --silent" +-fi +- +-_ACEOF +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-if \$ac_cs_recheck; then +- set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion +- shift +- \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 +- CONFIG_SHELL='$SHELL' +- export CONFIG_SHELL +- exec "\$@" +-fi +- +-_ACEOF +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-exec 5>>config.log +-{ +- echo +- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +-## Running $as_me. ## +-_ASBOX +- $as_echo "$ac_log" +-} >&5 +- +-_ACEOF +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-_ACEOF +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +- +-# Handling of arguments. +-for ac_config_target in $ac_config_targets +-do +- case $ac_config_target in +- "../config/Docs.mk") CONFIG_FILES="$CONFIG_FILES ../config/Docs.mk" ;; +- "man/xl.cfg.5.pod") CONFIG_FILES="$CONFIG_FILES man/xl.cfg.5.pod" ;; +- "man/xl.1.pod") CONFIG_FILES="$CONFIG_FILES man/xl.1.pod" ;; +- +- *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; +- esac +-done +- +- +-# If the user did not use the arguments to specify the items to instantiate, +-# then the envvar interface is used. Set only those that are not. +-# We use the long form for the default assignment because of an extremely +-# bizarre bug on SunOS 4.1.3. +-if $ac_need_defaults; then +- test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files +-fi +- +-# Have a temporary directory for convenience. Make it in the build tree +-# simply because there is no reason against having it here, and in addition, +-# creating and moving files from /tmp can sometimes cause problems. +-# Hook for its removal unless debugging. +-# Note that there is a small window in which the directory will not be cleaned: +-# after its creation but before its name has been assigned to `$tmp'. +-$debug || +-{ +- tmp= ac_tmp= +- trap 'exit_status=$? +- : "${ac_tmp:=$tmp}" +- { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +-' 0 +- trap 'as_fn_exit 1' 1 2 13 15 +-} +-# Create a (secure) tmp directory for tmp files. +- +-{ +- tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && +- test -d "$tmp" +-} || +-{ +- tmp=./conf$$-$RANDOM +- (umask 077 && mkdir "$tmp") +-} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +-ac_tmp=$tmp +- +-# Set up the scripts for CONFIG_FILES section. +-# No need to generate them if there are no CONFIG_FILES. +-# This happens for instance with `./config.status config.h'. +-if test -n "$CONFIG_FILES"; then +- +- +-ac_cr=`echo X | tr X '\015'` +-# On cygwin, bash can eat \r inside `` if the user requested igncr. +-# But we know of no other shell where ac_cr would be empty at this +-# point, so we can use a bashism as a fallback. +-if test "x$ac_cr" = x; then +- eval ac_cr=\$\'\\r\' +-fi +-ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +-if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then +- ac_cs_awk_cr='\\r' +-else +- ac_cs_awk_cr=$ac_cr +-fi +- +-echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +-_ACEOF +- +- +-{ +- echo "cat >conf$$subs.awk <<_ACEOF" && +- echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && +- echo "_ACEOF" +-} >conf$$subs.sh || +- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +-ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +-ac_delim='%!_!# ' +-for ac_last_try in false false false false false :; do +- . ./conf$$subs.sh || +- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +- +- ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` +- if test $ac_delim_n = $ac_delim_num; then +- break +- elif $ac_last_try; then +- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +- else +- ac_delim="$ac_delim!$ac_delim _$ac_delim!! " +- fi +-done +-rm -f conf$$subs.sh +- +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +-_ACEOF +-sed -n ' +-h +-s/^/S["/; s/!.*/"]=/ +-p +-g +-s/^[^!]*!// +-:repl +-t repl +-s/'"$ac_delim"'$// +-t delim +-:nl +-h +-s/\(.\{148\}\)..*/\1/ +-t more1 +-s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +-p +-n +-b repl +-:more1 +-s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +-p +-g +-s/.\{148\}// +-t nl +-:delim +-h +-s/\(.\{148\}\)..*/\1/ +-t more2 +-s/["\\]/\\&/g; s/^/"/; s/$/"/ +-p +-b +-:more2 +-s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +-p +-g +-s/.\{148\}// +-t delim +-' >$CONFIG_STATUS || ac_write_fail=1 +-rm -f conf$$subs.awk +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-_ACAWK +-cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && +- for (key in S) S_is_set[key] = 1 +- FS = "" +- +-} +-{ +- line = $ 0 +- nfields = split(line, field, "@") +- substed = 0 +- len = length(field[1]) +- for (i = 2; i < nfields; i++) { +- key = field[i] +- keylen = length(key) +- if (S_is_set[key]) { +- value = S[key] +- line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) +- len += length(value) + length(field[++i]) +- substed = 1 +- } else +- len += 1 + keylen +- } +- +- print line +-} +- +-_ACAWK +-_ACEOF +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then +- sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +-else +- cat +-fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ +- || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +-_ACEOF +- +-# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +-# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +-# trailing colons and then remove the whole line if VPATH becomes empty +-# (actually we leave an empty line to preserve line numbers). +-if test "x$srcdir" = x.; then +- ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +-h +-s/// +-s/^/:/ +-s/[ ]*$/:/ +-s/:\$(srcdir):/:/g +-s/:\${srcdir}:/:/g +-s/:@srcdir@:/:/g +-s/^:*// +-s/:*$// +-x +-s/\(=[ ]*\).*/\1/ +-G +-s/\n// +-s/^[^=]*=[ ]*$// +-}' +-fi +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-fi # test -n "$CONFIG_FILES" +- +- +-eval set X " :F $CONFIG_FILES " +-shift +-for ac_tag +-do +- case $ac_tag in +- :[FHLC]) ac_mode=$ac_tag; continue;; +- esac +- case $ac_mode$ac_tag in +- :[FHL]*:*);; +- :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; +- :[FH]-) ac_tag=-:-;; +- :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; +- esac +- ac_save_IFS=$IFS +- IFS=: +- set x $ac_tag +- IFS=$ac_save_IFS +- shift +- ac_file=$1 +- shift +- +- case $ac_mode in +- :L) ac_source=$1;; +- :[FH]) +- ac_file_inputs= +- for ac_f +- do +- case $ac_f in +- -) ac_f="$ac_tmp/stdin";; +- *) # Look for the file first in the build tree, then in the source tree +- # (if the path is not absolute). The absolute path cannot be DOS-style, +- # because $ac_f cannot contain `:'. +- test -f "$ac_f" || +- case $ac_f in +- [\\/$]*) false;; +- *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; +- esac || +- as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; +- esac +- case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac +- as_fn_append ac_file_inputs " '$ac_f'" +- done +- +- # Let's still pretend it is `configure' which instantiates (i.e., don't +- # use $as_me), people would be surprised to read: +- # /* config.h. Generated by config.status. */ +- configure_input='Generated from '` +- $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' +- `' by configure.' +- if test x"$ac_file" != x-; then +- configure_input="$ac_file. $configure_input" +- { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +-$as_echo "$as_me: creating $ac_file" >&6;} +- fi +- # Neutralize special characters interpreted by sed in replacement strings. +- case $configure_input in #( +- *\&* | *\|* | *\\* ) +- ac_sed_conf_input=`$as_echo "$configure_input" | +- sed 's/[\\\\&|]/\\\\&/g'`;; #( +- *) ac_sed_conf_input=$configure_input;; +- esac +- +- case $ac_tag in +- *:-:* | *:-) cat >"$ac_tmp/stdin" \ +- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; +- esac +- ;; +- esac +- +- ac_dir=`$as_dirname -- "$ac_file" || +-$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +- X"$ac_file" : 'X\(//\)[^/]' \| \ +- X"$ac_file" : 'X\(//\)$' \| \ +- X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X"$ac_file" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)[^/].*/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- as_dir="$ac_dir"; as_fn_mkdir_p +- ac_builddir=. +- +-case "$ac_dir" in +-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +-*) +- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` +- # A ".." for each directory in $ac_dir_suffix. +- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` +- case $ac_top_builddir_sub in +- "") ac_top_builddir_sub=. ac_top_build_prefix= ;; +- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; +- esac ;; +-esac +-ac_abs_top_builddir=$ac_pwd +-ac_abs_builddir=$ac_pwd$ac_dir_suffix +-# for backward compatibility: +-ac_top_builddir=$ac_top_build_prefix +- +-case $srcdir in +- .) # We are building in place. +- ac_srcdir=. +- ac_top_srcdir=$ac_top_builddir_sub +- ac_abs_top_srcdir=$ac_pwd ;; +- [\\/]* | ?:[\\/]* ) # Absolute name. +- ac_srcdir=$srcdir$ac_dir_suffix; +- ac_top_srcdir=$srcdir +- ac_abs_top_srcdir=$srcdir ;; +- *) # Relative name. +- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix +- ac_top_srcdir=$ac_top_build_prefix$srcdir +- ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +-esac +-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix +- +- +- case $ac_mode in +- :F) +- # +- # CONFIG_FILE +- # +- +-_ACEOF +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-# If the template does not know about datarootdir, expand it. +-# FIXME: This hack should be removed a few years after 2.60. +-ac_datarootdir_hack=; ac_datarootdir_seen= +-ac_sed_dataroot=' +-/datarootdir/ { +- p +- q +-} +-/@datadir@/p +-/@docdir@/p +-/@infodir@/p +-/@localedir@/p +-/@mandir@/p' +-case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +-*datarootdir*) ac_datarootdir_seen=yes;; +-*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +-$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +-_ACEOF +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +- ac_datarootdir_hack=' +- s&@datadir@&$datadir&g +- s&@docdir@&$docdir&g +- s&@infodir@&$infodir&g +- s&@localedir@&$localedir&g +- s&@mandir@&$mandir&g +- s&\\\${datarootdir}&$datarootdir&g' ;; +-esac +-_ACEOF +- +-# Neutralize VPATH when `$srcdir' = `.'. +-# Shell code in configure.ac might set extrasub. +-# FIXME: do we really want to maintain this feature? +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-ac_sed_extra="$ac_vpsub +-$extrasub +-_ACEOF +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-:t +-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +-s|@configure_input@|$ac_sed_conf_input|;t t +-s&@top_builddir@&$ac_top_builddir_sub&;t t +-s&@top_build_prefix@&$ac_top_build_prefix&;t t +-s&@srcdir@&$ac_srcdir&;t t +-s&@abs_srcdir@&$ac_abs_srcdir&;t t +-s&@top_srcdir@&$ac_top_srcdir&;t t +-s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +-s&@builddir@&$ac_builddir&;t t +-s&@abs_builddir@&$ac_abs_builddir&;t t +-s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +-$ac_datarootdir_hack +-" +-eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ +- >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 +- +-test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && +- { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && +- { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ +- "$ac_tmp/out"`; test -z "$ac_out"; } && +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +-which seems to be undefined. Please make sure it is defined" >&5 +-$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +-which seems to be undefined. Please make sure it is defined" >&2;} +- +- rm -f "$ac_tmp/stdin" +- case $ac_file in +- -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; +- *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; +- esac \ +- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 +- ;; +- +- +- +- esac +- +-done # for ac_tag +- +- +-as_fn_exit 0 +-_ACEOF +-ac_clean_files=$ac_clean_files_save +- +-test $ac_write_fail = 0 || +- as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 +- +- +-# configure is writing to config.log, and then calls config.status. +-# config.status does its own redirection, appending to config.log. +-# Unfortunately, on DOS this fails, as config.log is still kept open +-# by configure, so config.status won't be able to write to it; its +-# output is simply discarded. So we exec the FD to /dev/null, +-# effectively closing config.log, so it can be properly (re)opened and +-# appended to by config.status. When coming back to configure, we +-# need to make the FD available again. +-if test "$no_create" != yes; then +- ac_cs_success=: +- ac_config_status_args= +- test "$silent" = yes && +- ac_config_status_args="$ac_config_status_args --quiet" +- exec 5>/dev/null +- $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false +- exec 5>>config.log +- # Use ||, not &&, to avoid exiting from the if with $? = 1, which +- # would make configure fail if this is the last instruction. +- $ac_cs_success || as_fn_exit 1 +-fi +-if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +-$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +-fi +- +diff --git a/tools/configure b/tools/configure +deleted file mode 100755 +index f3f19c1..0000000 +--- a/tools/configure ++++ /dev/null +@@ -1,11329 +0,0 @@ +-#! /bin/sh +-# Guess values for system-dependent variables and create Makefiles. +-# Generated by GNU Autoconf 2.69 for Xen Hypervisor Tools 4.14. +-# +-# Report bugs to . +-# +-# +-# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +-# +-# +-# This configure script is free software; the Free Software Foundation +-# gives unlimited permission to copy, distribute and modify it. +-## -------------------- ## +-## M4sh Initialization. ## +-## -------------------- ## +- +-# Be more Bourne compatible +-DUALCASE=1; export DUALCASE # for MKS sh +-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +- emulate sh +- NULLCMD=: +- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which +- # is contrary to our usage. Disable this feature. +- alias -g '${1+"$@"}'='"$@"' +- setopt NO_GLOB_SUBST +-else +- case `(set -o) 2>/dev/null` in #( +- *posix*) : +- set -o posix ;; #( +- *) : +- ;; +-esac +-fi +- +- +-as_nl=' +-' +-export as_nl +-# Printing a long string crashes Solaris 7 /usr/bin/printf. +-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +-# Prefer a ksh shell builtin over an external printf program on Solaris, +-# but without wasting forks for bash or zsh. +-if test -z "$BASH_VERSION$ZSH_VERSION" \ +- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then +- as_echo='print -r --' +- as_echo_n='print -rn --' +-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then +- as_echo='printf %s\n' +- as_echo_n='printf %s' +-else +- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then +- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' +- as_echo_n='/usr/ucb/echo -n' +- else +- as_echo_body='eval expr "X$1" : "X\\(.*\\)"' +- as_echo_n_body='eval +- arg=$1; +- case $arg in #( +- *"$as_nl"*) +- expr "X$arg" : "X\\(.*\\)$as_nl"; +- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; +- esac; +- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" +- ' +- export as_echo_n_body +- as_echo_n='sh -c $as_echo_n_body as_echo' +- fi +- export as_echo_body +- as_echo='sh -c $as_echo_body as_echo' +-fi +- +-# The user is always right. +-if test "${PATH_SEPARATOR+set}" != set; then +- PATH_SEPARATOR=: +- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { +- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || +- PATH_SEPARATOR=';' +- } +-fi +- +- +-# IFS +-# We need space, tab and new line, in precisely that order. Quoting is +-# there to prevent editors from complaining about space-tab. +-# (If _AS_PATH_WALK were called with IFS unset, it would disable word +-# splitting by setting IFS to empty value.) +-IFS=" "" $as_nl" +- +-# Find who we are. Look in the path if we contain no directory separator. +-as_myself= +-case $0 in #(( +- *[\\/]* ) as_myself=$0 ;; +- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-# We did not find ourselves, most probably we were run as `sh COMMAND' +-# in which case we are not to be found in the path. +-if test "x$as_myself" = x; then +- as_myself=$0 +-fi +-if test ! -f "$as_myself"; then +- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 +- exit 1 +-fi +- +-# Unset variables that we do not need and which cause bugs (e.g. in +-# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +-# suppresses any "Segmentation fault" message there. '((' could +-# trigger a bug in pdksh 5.2.14. +-for as_var in BASH_ENV ENV MAIL MAILPATH +-do eval test x\${$as_var+set} = xset \ +- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +-done +-PS1='$ ' +-PS2='> ' +-PS4='+ ' +- +-# NLS nuisances. +-LC_ALL=C +-export LC_ALL +-LANGUAGE=C +-export LANGUAGE +- +-# CDPATH. +-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH +- +-# Use a proper internal environment variable to ensure we don't fall +- # into an infinite loop, continuously re-executing ourselves. +- if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then +- _as_can_reexec=no; export _as_can_reexec; +- # We cannot yet assume a decent shell, so we have to provide a +-# neutralization value for shells without unset; and this also +-# works around shells that cannot unset nonexistent variables. +-# Preserve -v and -x to the replacement shell. +-BASH_ENV=/dev/null +-ENV=/dev/null +-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +-case $- in # (((( +- *v*x* | *x*v* ) as_opts=-vx ;; +- *v* ) as_opts=-v ;; +- *x* ) as_opts=-x ;; +- * ) as_opts= ;; +-esac +-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +-# Admittedly, this is quite paranoid, since all the known shells bail +-# out after a failed `exec'. +-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +-as_fn_exit 255 +- fi +- # We don't want this to propagate to other subprocesses. +- { _as_can_reexec=; unset _as_can_reexec;} +-if test "x$CONFIG_SHELL" = x; then +- as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : +- emulate sh +- NULLCMD=: +- # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which +- # is contrary to our usage. Disable this feature. +- alias -g '\${1+\"\$@\"}'='\"\$@\"' +- setopt NO_GLOB_SUBST +-else +- case \`(set -o) 2>/dev/null\` in #( +- *posix*) : +- set -o posix ;; #( +- *) : +- ;; +-esac +-fi +-" +- as_required="as_fn_return () { (exit \$1); } +-as_fn_success () { as_fn_return 0; } +-as_fn_failure () { as_fn_return 1; } +-as_fn_ret_success () { return 0; } +-as_fn_ret_failure () { return 1; } +- +-exitcode=0 +-as_fn_success || { exitcode=1; echo as_fn_success failed.; } +-as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +-as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +-as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +-if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : +- +-else +- exitcode=1; echo positional parameters were not saved. +-fi +-test x\$exitcode = x0 || exit 1 +-test -x / || exit 1" +- as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO +- as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO +- eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && +- test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +-test \$(( 1 + 1 )) = 2 || exit 1" +- if (eval "$as_required") 2>/dev/null; then : +- as_have_required=yes +-else +- as_have_required=no +-fi +- if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : +- +-else +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-as_found=false +-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- as_found=: +- case $as_dir in #( +- /*) +- for as_base in sh bash ksh sh5; do +- # Try only shells that exist, to save several forks. +- as_shell=$as_dir/$as_base +- if { test -f "$as_shell" || test -f "$as_shell.exe"; } && +- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : +- CONFIG_SHELL=$as_shell as_have_required=yes +- if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : +- break 2 +-fi +-fi +- done;; +- esac +- as_found=false +-done +-$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && +- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : +- CONFIG_SHELL=$SHELL as_have_required=yes +-fi; } +-IFS=$as_save_IFS +- +- +- if test "x$CONFIG_SHELL" != x; then : +- export CONFIG_SHELL +- # We cannot yet assume a decent shell, so we have to provide a +-# neutralization value for shells without unset; and this also +-# works around shells that cannot unset nonexistent variables. +-# Preserve -v and -x to the replacement shell. +-BASH_ENV=/dev/null +-ENV=/dev/null +-(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +-case $- in # (((( +- *v*x* | *x*v* ) as_opts=-vx ;; +- *v* ) as_opts=-v ;; +- *x* ) as_opts=-x ;; +- * ) as_opts= ;; +-esac +-exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +-# Admittedly, this is quite paranoid, since all the known shells bail +-# out after a failed `exec'. +-$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +-exit 255 +-fi +- +- if test x$as_have_required = xno; then : +- $as_echo "$0: This script requires a shell more modern than all" +- $as_echo "$0: the shells that I found on your system." +- if test x${ZSH_VERSION+set} = xset ; then +- $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" +- $as_echo "$0: be upgraded to zsh 4.3.4 or later." +- else +- $as_echo "$0: Please tell bug-autoconf@gnu.org and +-$0: xen-devel@lists.xen.org about your system, including +-$0: any error possibly output before this message. Then +-$0: install a modern shell, or manually run the script +-$0: under such a shell if you do have one." +- fi +- exit 1 +-fi +-fi +-fi +-SHELL=${CONFIG_SHELL-/bin/sh} +-export SHELL +-# Unset more variables known to interfere with behavior of common tools. +-CLICOLOR_FORCE= GREP_OPTIONS= +-unset CLICOLOR_FORCE GREP_OPTIONS +- +-## --------------------- ## +-## M4sh Shell Functions. ## +-## --------------------- ## +-# as_fn_unset VAR +-# --------------- +-# Portably unset VAR. +-as_fn_unset () +-{ +- { eval $1=; unset $1;} +-} +-as_unset=as_fn_unset +- +-# as_fn_set_status STATUS +-# ----------------------- +-# Set $? to STATUS, without forking. +-as_fn_set_status () +-{ +- return $1 +-} # as_fn_set_status +- +-# as_fn_exit STATUS +-# ----------------- +-# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +-as_fn_exit () +-{ +- set +e +- as_fn_set_status $1 +- exit $1 +-} # as_fn_exit +- +-# as_fn_mkdir_p +-# ------------- +-# Create "$as_dir" as a directory, including parents if necessary. +-as_fn_mkdir_p () +-{ +- +- case $as_dir in #( +- -*) as_dir=./$as_dir;; +- esac +- test -d "$as_dir" || eval $as_mkdir_p || { +- as_dirs= +- while :; do +- case $as_dir in #( +- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( +- *) as_qdir=$as_dir;; +- esac +- as_dirs="'$as_qdir' $as_dirs" +- as_dir=`$as_dirname -- "$as_dir" || +-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +- X"$as_dir" : 'X\(//\)[^/]' \| \ +- X"$as_dir" : 'X\(//\)$' \| \ +- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X"$as_dir" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)[^/].*/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- test -d "$as_dir" && break +- done +- test -z "$as_dirs" || eval "mkdir $as_dirs" +- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" +- +- +-} # as_fn_mkdir_p +- +-# as_fn_executable_p FILE +-# ----------------------- +-# Test if FILE is an executable regular file. +-as_fn_executable_p () +-{ +- test -f "$1" && test -x "$1" +-} # as_fn_executable_p +-# as_fn_append VAR VALUE +-# ---------------------- +-# Append the text in VALUE to the end of the definition contained in VAR. Take +-# advantage of any shell optimizations that allow amortized linear growth over +-# repeated appends, instead of the typical quadratic growth present in naive +-# implementations. +-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +- eval 'as_fn_append () +- { +- eval $1+=\$2 +- }' +-else +- as_fn_append () +- { +- eval $1=\$$1\$2 +- } +-fi # as_fn_append +- +-# as_fn_arith ARG... +-# ------------------ +-# Perform arithmetic evaluation on the ARGs, and store the result in the +-# global $as_val. Take advantage of shells that can avoid forks. The arguments +-# must be portable across $(()) and expr. +-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +- eval 'as_fn_arith () +- { +- as_val=$(( $* )) +- }' +-else +- as_fn_arith () +- { +- as_val=`expr "$@" || test $? -eq 1` +- } +-fi # as_fn_arith +- +- +-# as_fn_error STATUS ERROR [LINENO LOG_FD] +-# ---------------------------------------- +-# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +-# script with STATUS, using 1 if that was 0. +-as_fn_error () +-{ +- as_status=$1; test $as_status -eq 0 && as_status=1 +- if test "$4"; then +- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 +- fi +- $as_echo "$as_me: error: $2" >&2 +- as_fn_exit $as_status +-} # as_fn_error +- +-if expr a : '\(a\)' >/dev/null 2>&1 && +- test "X`expr 00001 : '.*\(...\)'`" = X001; then +- as_expr=expr +-else +- as_expr=false +-fi +- +-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then +- as_basename=basename +-else +- as_basename=false +-fi +- +-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then +- as_dirname=dirname +-else +- as_dirname=false +-fi +- +-as_me=`$as_basename -- "$0" || +-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ +- X"$0" : 'X\(//\)$' \| \ +- X"$0" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X/"$0" | +- sed '/^.*\/\([^/][^/]*\)\/*$/{ +- s//\1/ +- q +- } +- /^X\/\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\/\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- +-# Avoid depending upon Character Ranges. +-as_cr_letters='abcdefghijklmnopqrstuvwxyz' +-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +-as_cr_Letters=$as_cr_letters$as_cr_LETTERS +-as_cr_digits='0123456789' +-as_cr_alnum=$as_cr_Letters$as_cr_digits +- +- +- as_lineno_1=$LINENO as_lineno_1a=$LINENO +- as_lineno_2=$LINENO as_lineno_2a=$LINENO +- eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && +- test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { +- # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) +- sed -n ' +- p +- /[$]LINENO/= +- ' <$as_myself | +- sed ' +- s/[$]LINENO.*/&-/ +- t lineno +- b +- :lineno +- N +- :loop +- s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ +- t loop +- s/-\n.*// +- ' >$as_me.lineno && +- chmod +x "$as_me.lineno" || +- { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } +- +- # If we had to re-execute with $CONFIG_SHELL, we're ensured to have +- # already done that, so ensure we don't try to do so again and fall +- # in an infinite loop. This has already happened in practice. +- _as_can_reexec=no; export _as_can_reexec +- # Don't try to exec as it changes $[0], causing all sort of problems +- # (the dirname of $[0] is not the place where we might find the +- # original and so on. Autoconf is especially sensitive to this). +- . "./$as_me.lineno" +- # Exit status is that of the last command. +- exit +-} +- +-ECHO_C= ECHO_N= ECHO_T= +-case `echo -n x` in #((((( +--n*) +- case `echo 'xy\c'` in +- *c*) ECHO_T=' ';; # ECHO_T is single tab character. +- xy) ECHO_C='\c';; +- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null +- ECHO_T=' ';; +- esac;; +-*) +- ECHO_N='-n';; +-esac +- +-rm -f conf$$ conf$$.exe conf$$.file +-if test -d conf$$.dir; then +- rm -f conf$$.dir/conf$$.file +-else +- rm -f conf$$.dir +- mkdir conf$$.dir 2>/dev/null +-fi +-if (echo >conf$$.file) 2>/dev/null; then +- if ln -s conf$$.file conf$$ 2>/dev/null; then +- as_ln_s='ln -s' +- # ... but there are two gotchas: +- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. +- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. +- # In both cases, we have to default to `cp -pR'. +- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +- as_ln_s='cp -pR' +- elif ln conf$$.file conf$$ 2>/dev/null; then +- as_ln_s=ln +- else +- as_ln_s='cp -pR' +- fi +-else +- as_ln_s='cp -pR' +-fi +-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +-rmdir conf$$.dir 2>/dev/null +- +-if mkdir -p . 2>/dev/null; then +- as_mkdir_p='mkdir -p "$as_dir"' +-else +- test -d ./-p && rmdir ./-p +- as_mkdir_p=false +-fi +- +-as_test_x='test -x' +-as_executable_p=as_fn_executable_p +- +-# Sed expression to map a string onto a valid CPP name. +-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +- +-# Sed expression to map a string onto a valid variable name. +-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +- +- +-test -n "$DJDIR" || exec 7<&0 &1 +- +-# Name of the host. +-# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +-# so uname gets run too. +-ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` +- +-# +-# Initializations. +-# +-ac_default_prefix=/usr/local +-ac_clean_files= +-ac_config_libobj_dir=. +-LIBOBJS= +-cross_compiling=no +-subdirs= +-MFLAGS= +-MAKEFLAGS= +- +-# Identity of this package. +-PACKAGE_NAME='Xen Hypervisor Tools' +-PACKAGE_TARNAME='xen' +-PACKAGE_VERSION='4.14' +-PACKAGE_STRING='Xen Hypervisor Tools 4.14' +-PACKAGE_BUGREPORT='xen-devel@lists.xen.org' +-PACKAGE_URL='https://www.xen.org/' +- +-ac_unique_file="libxl/libxl.c" +-# Factoring default headers for most tests. +-ac_includes_default="\ +-#include +-#ifdef HAVE_SYS_TYPES_H +-# include +-#endif +-#ifdef HAVE_SYS_STAT_H +-# include +-#endif +-#ifdef STDC_HEADERS +-# include +-# include +-#else +-# ifdef HAVE_STDLIB_H +-# include +-# endif +-#endif +-#ifdef HAVE_STRING_H +-# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +-# include +-# endif +-# include +-#endif +-#ifdef HAVE_STRINGS_H +-# include +-#endif +-#ifdef HAVE_INTTYPES_H +-# include +-#endif +-#ifdef HAVE_STDINT_H +-# include +-#endif +-#ifdef HAVE_UNISTD_H +-# include +-#endif" +- +-ac_subst_vars='LTLIBOBJS +-LIBOBJS +-pvshim +-ninepfs +-SYSTEMD_LIBS +-SYSTEMD_CFLAGS +-SYSTEMD_MODULES_LOAD +-SYSTEMD_DIR +-systemd +-libnl +-LIBNL3_LIBS +-LIBNL3_CFLAGS +-argp_ldflags +-libiconv +-PTYFUNCS_LIBS +-PTHREAD_LIBS +-PTHREAD_LDFLAGS +-PTHREAD_CFLAGS +-EXTFS_LIBS +-system_aio +-zlib +-FETCHER +-FTP +-FALSE +-WGET +-pixman_LIBS +-pixman_CFLAGS +-glib_LIBS +-glib_CFLAGS +-PKG_CONFIG_LIBDIR +-PKG_CONFIG_PATH +-PKG_CONFIG +-TINFO_LIBS +-CURSES_LIBS +-PY_NOOPT_CFLAGS +-EGREP +-GREP +-CPP +-pyconfig +-PYTHONPATH +-CHECKPOLICY +-XENSTORED +-GO +-OCAMLFIND +-OCAMLBUILD +-OCAMLDOC +-OCAMLMKLIB +-OCAMLMKTOP +-OCAMLDEP +-OCAML +-OCAMLOPTDOTOPT +-OCAMLCDOTOPT +-OCAMLBEST +-OCAMLOPT +-OCAMLLIB +-OCAMLVERSION +-OCAMLC +-INSTALL_DATA +-INSTALL_SCRIPT +-INSTALL_PROGRAM +-SET_MAKE +-AWK +-IASL +-XGETTEXT +-BASH +-FLEX +-BISON +-PERL +-PYTHON +-APPEND_LIB +-APPEND_INCLUDES +-PREPEND_LIB +-PREPEND_INCLUDES +-EXTRA_QEMUU_CONFIGURE_ARGS +-ipxe +-qemu_xen_systemd +-qemu_xen_path +-qemu_xen +-rombios +-BCC +-LD86 +-AS86 +-qemu_traditional +-LINUX_BACKEND_MODULES +-golang +-seabios +-ovmf +-xsmpolicy +-ocamltools +-monitors +-githttp +-rpath +-DEBUG_DIR +-XEN_DUMP_DIR +-XEN_PAGING_DIR +-XEN_LOCK_DIR +-XEN_SCRIPT_DIR +-XEN_CONFIG_DIR +-INITD_DIR +-CONFIG_DIR +-SHAREDIR +-XEN_LIB_DIR +-XEN_RUN_STORED +-XEN_LIB_STORED +-XEN_LOG_DIR +-XEN_RUN_DIR +-XENFIRMWAREDIR +-LIBEXEC_INC +-LIBEXEC_LIB +-LIBEXEC_BIN +-LIBEXEC +-CONFIG_LEAF_DIR +-XENSTORED_PORT +-XENSTORED_KVA +-FILE_OFFSET_BITS +-OBJEXT +-EXEEXT +-ac_ct_CC +-CPPFLAGS +-LDFLAGS +-CFLAGS +-CC +-CONFIG_RUMP +-host_os +-host_vendor +-host_cpu +-host +-build_os +-build_vendor +-build_cpu +-build +-target_alias +-host_alias +-build_alias +-LIBS +-ECHO_T +-ECHO_N +-ECHO_C +-DEFS +-mandir +-localedir +-libdir +-psdir +-pdfdir +-dvidir +-htmldir +-infodir +-docdir +-oldincludedir +-includedir +-runstatedir +-localstatedir +-sharedstatedir +-sysconfdir +-datadir +-datarootdir +-libexecdir +-sbindir +-bindir +-program_transform_name +-prefix +-exec_prefix +-PACKAGE_URL +-PACKAGE_BUGREPORT +-PACKAGE_STRING +-PACKAGE_VERSION +-PACKAGE_TARNAME +-PACKAGE_NAME +-PATH_SEPARATOR +-SHELL' +-ac_subst_files='' +-ac_user_opts=' +-enable_option_checking +-enable_largefile +-with_initddir +-with_sysconfig_leaf_dir +-with_libexec_leaf_dir +-with_xen_dumpdir +-with_rundir +-with_debugdir +-enable_rpath +-enable_githttp +-enable_monitors +-enable_ocamltools +-enable_xsmpolicy +-enable_ovmf +-enable_seabios +-enable_golang +-with_linux_backend_modules +-enable_qemu_traditional +-enable_rombios +-with_system_qemu +-with_stubdom_qmp_proxy +-with_system_seabios +-with_system_ovmf +-enable_ipxe +-with_system_ipxe +-with_extra_qemuu_configure_args +-with_xenstored +-enable_systemd +-with_systemd +-with_systemd_modules_load +-enable_9pfs +-enable_pvshim +-' +- ac_precious_vars='build_alias +-host_alias +-target_alias +-CC +-CFLAGS +-LDFLAGS +-LIBS +-CPPFLAGS +-PREPEND_INCLUDES +-PREPEND_LIB +-APPEND_INCLUDES +-APPEND_LIB +-PYTHON +-PERL +-BISON +-FLEX +-BASH +-XGETTEXT +-AS86 +-LD86 +-BCC +-IASL +-AWK +-CPP +-PKG_CONFIG +-PKG_CONFIG_PATH +-PKG_CONFIG_LIBDIR +-glib_CFLAGS +-glib_LIBS +-pixman_CFLAGS +-pixman_LIBS +-LIBNL3_CFLAGS +-LIBNL3_LIBS +-SYSTEMD_CFLAGS +-SYSTEMD_LIBS' +- +- +-# Initialize some variables set by options. +-ac_init_help= +-ac_init_version=false +-ac_unrecognized_opts= +-ac_unrecognized_sep= +-# The variables have the same names as the options, with +-# dashes changed to underlines. +-cache_file=/dev/null +-exec_prefix=NONE +-no_create= +-no_recursion= +-prefix=NONE +-program_prefix=NONE +-program_suffix=NONE +-program_transform_name=s,x,x, +-silent= +-site= +-srcdir= +-verbose= +-x_includes=NONE +-x_libraries=NONE +- +-# Installation directory options. +-# These are left unexpanded so users can "make install exec_prefix=/foo" +-# and all the variables that are supposed to be based on exec_prefix +-# by default will actually change. +-# Use braces instead of parens because sh, perl, etc. also accept them. +-# (The list follows the same order as the GNU Coding Standards.) +-bindir='${exec_prefix}/bin' +-sbindir='${exec_prefix}/sbin' +-libexecdir='${exec_prefix}/libexec' +-datarootdir='${prefix}/share' +-datadir='${datarootdir}' +-sysconfdir='${prefix}/etc' +-sharedstatedir='${prefix}/com' +-localstatedir='${prefix}/var' +-runstatedir='${localstatedir}/run' +-includedir='${prefix}/include' +-oldincludedir='/usr/include' +-docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +-infodir='${datarootdir}/info' +-htmldir='${docdir}' +-dvidir='${docdir}' +-pdfdir='${docdir}' +-psdir='${docdir}' +-libdir='${exec_prefix}/lib' +-localedir='${datarootdir}/locale' +-mandir='${datarootdir}/man' +- +-ac_prev= +-ac_dashdash= +-for ac_option +-do +- # If the previous option needs an argument, assign it. +- if test -n "$ac_prev"; then +- eval $ac_prev=\$ac_option +- ac_prev= +- continue +- fi +- +- case $ac_option in +- *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; +- *=) ac_optarg= ;; +- *) ac_optarg=yes ;; +- esac +- +- # Accept the important Cygnus configure options, so we can diagnose typos. +- +- case $ac_dashdash$ac_option in +- --) +- ac_dashdash=yes ;; +- +- -bindir | --bindir | --bindi | --bind | --bin | --bi) +- ac_prev=bindir ;; +- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) +- bindir=$ac_optarg ;; +- +- -build | --build | --buil | --bui | --bu) +- ac_prev=build_alias ;; +- -build=* | --build=* | --buil=* | --bui=* | --bu=*) +- build_alias=$ac_optarg ;; +- +- -cache-file | --cache-file | --cache-fil | --cache-fi \ +- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) +- ac_prev=cache_file ;; +- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ +- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) +- cache_file=$ac_optarg ;; +- +- --config-cache | -C) +- cache_file=config.cache ;; +- +- -datadir | --datadir | --datadi | --datad) +- ac_prev=datadir ;; +- -datadir=* | --datadir=* | --datadi=* | --datad=*) +- datadir=$ac_optarg ;; +- +- -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ +- | --dataroo | --dataro | --datar) +- ac_prev=datarootdir ;; +- -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ +- | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) +- datarootdir=$ac_optarg ;; +- +- -disable-* | --disable-*) +- ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` +- # Reject names that are not valid shell variable names. +- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +- as_fn_error $? "invalid feature name: $ac_useropt" +- ac_useropt_orig=$ac_useropt +- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +- case $ac_user_opts in +- *" +-"enable_$ac_useropt" +-"*) ;; +- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" +- ac_unrecognized_sep=', ';; +- esac +- eval enable_$ac_useropt=no ;; +- +- -docdir | --docdir | --docdi | --doc | --do) +- ac_prev=docdir ;; +- -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) +- docdir=$ac_optarg ;; +- +- -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) +- ac_prev=dvidir ;; +- -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) +- dvidir=$ac_optarg ;; +- +- -enable-* | --enable-*) +- ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` +- # Reject names that are not valid shell variable names. +- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +- as_fn_error $? "invalid feature name: $ac_useropt" +- ac_useropt_orig=$ac_useropt +- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +- case $ac_user_opts in +- *" +-"enable_$ac_useropt" +-"*) ;; +- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" +- ac_unrecognized_sep=', ';; +- esac +- eval enable_$ac_useropt=\$ac_optarg ;; +- +- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ +- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ +- | --exec | --exe | --ex) +- ac_prev=exec_prefix ;; +- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ +- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ +- | --exec=* | --exe=* | --ex=*) +- exec_prefix=$ac_optarg ;; +- +- -gas | --gas | --ga | --g) +- # Obsolete; use --with-gas. +- with_gas=yes ;; +- +- -help | --help | --hel | --he | -h) +- ac_init_help=long ;; +- -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) +- ac_init_help=recursive ;; +- -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) +- ac_init_help=short ;; +- +- -host | --host | --hos | --ho) +- ac_prev=host_alias ;; +- -host=* | --host=* | --hos=* | --ho=*) +- host_alias=$ac_optarg ;; +- +- -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) +- ac_prev=htmldir ;; +- -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ +- | --ht=*) +- htmldir=$ac_optarg ;; +- +- -includedir | --includedir | --includedi | --included | --include \ +- | --includ | --inclu | --incl | --inc) +- ac_prev=includedir ;; +- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ +- | --includ=* | --inclu=* | --incl=* | --inc=*) +- includedir=$ac_optarg ;; +- +- -infodir | --infodir | --infodi | --infod | --info | --inf) +- ac_prev=infodir ;; +- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) +- infodir=$ac_optarg ;; +- +- -libdir | --libdir | --libdi | --libd) +- ac_prev=libdir ;; +- -libdir=* | --libdir=* | --libdi=* | --libd=*) +- libdir=$ac_optarg ;; +- +- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ +- | --libexe | --libex | --libe) +- ac_prev=libexecdir ;; +- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ +- | --libexe=* | --libex=* | --libe=*) +- libexecdir=$ac_optarg ;; +- +- -localedir | --localedir | --localedi | --localed | --locale) +- ac_prev=localedir ;; +- -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) +- localedir=$ac_optarg ;; +- +- -localstatedir | --localstatedir | --localstatedi | --localstated \ +- | --localstate | --localstat | --localsta | --localst | --locals) +- ac_prev=localstatedir ;; +- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ +- | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) +- localstatedir=$ac_optarg ;; +- +- -mandir | --mandir | --mandi | --mand | --man | --ma | --m) +- ac_prev=mandir ;; +- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) +- mandir=$ac_optarg ;; +- +- -nfp | --nfp | --nf) +- # Obsolete; use --without-fp. +- with_fp=no ;; +- +- -no-create | --no-create | --no-creat | --no-crea | --no-cre \ +- | --no-cr | --no-c | -n) +- no_create=yes ;; +- +- -no-recursion | --no-recursion | --no-recursio | --no-recursi \ +- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) +- no_recursion=yes ;; +- +- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ +- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ +- | --oldin | --oldi | --old | --ol | --o) +- ac_prev=oldincludedir ;; +- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ +- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ +- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) +- oldincludedir=$ac_optarg ;; +- +- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) +- ac_prev=prefix ;; +- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) +- prefix=$ac_optarg ;; +- +- -program-prefix | --program-prefix | --program-prefi | --program-pref \ +- | --program-pre | --program-pr | --program-p) +- ac_prev=program_prefix ;; +- -program-prefix=* | --program-prefix=* | --program-prefi=* \ +- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) +- program_prefix=$ac_optarg ;; +- +- -program-suffix | --program-suffix | --program-suffi | --program-suff \ +- | --program-suf | --program-su | --program-s) +- ac_prev=program_suffix ;; +- -program-suffix=* | --program-suffix=* | --program-suffi=* \ +- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) +- program_suffix=$ac_optarg ;; +- +- -program-transform-name | --program-transform-name \ +- | --program-transform-nam | --program-transform-na \ +- | --program-transform-n | --program-transform- \ +- | --program-transform | --program-transfor \ +- | --program-transfo | --program-transf \ +- | --program-trans | --program-tran \ +- | --progr-tra | --program-tr | --program-t) +- ac_prev=program_transform_name ;; +- -program-transform-name=* | --program-transform-name=* \ +- | --program-transform-nam=* | --program-transform-na=* \ +- | --program-transform-n=* | --program-transform-=* \ +- | --program-transform=* | --program-transfor=* \ +- | --program-transfo=* | --program-transf=* \ +- | --program-trans=* | --program-tran=* \ +- | --progr-tra=* | --program-tr=* | --program-t=*) +- program_transform_name=$ac_optarg ;; +- +- -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) +- ac_prev=pdfdir ;; +- -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) +- pdfdir=$ac_optarg ;; +- +- -psdir | --psdir | --psdi | --psd | --ps) +- ac_prev=psdir ;; +- -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) +- psdir=$ac_optarg ;; +- +- -q | -quiet | --quiet | --quie | --qui | --qu | --q \ +- | -silent | --silent | --silen | --sile | --sil) +- silent=yes ;; +- +- -runstatedir | --runstatedir | --runstatedi | --runstated \ +- | --runstate | --runstat | --runsta | --runst | --runs \ +- | --run | --ru | --r) +- ac_prev=runstatedir ;; +- -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ +- | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ +- | --run=* | --ru=* | --r=*) +- runstatedir=$ac_optarg ;; +- +- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) +- ac_prev=sbindir ;; +- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ +- | --sbi=* | --sb=*) +- sbindir=$ac_optarg ;; +- +- -sharedstatedir | --sharedstatedir | --sharedstatedi \ +- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ +- | --sharedst | --shareds | --shared | --share | --shar \ +- | --sha | --sh) +- ac_prev=sharedstatedir ;; +- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ +- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ +- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ +- | --sha=* | --sh=*) +- sharedstatedir=$ac_optarg ;; +- +- -site | --site | --sit) +- ac_prev=site ;; +- -site=* | --site=* | --sit=*) +- site=$ac_optarg ;; +- +- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) +- ac_prev=srcdir ;; +- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) +- srcdir=$ac_optarg ;; +- +- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ +- | --syscon | --sysco | --sysc | --sys | --sy) +- ac_prev=sysconfdir ;; +- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ +- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) +- sysconfdir=$ac_optarg ;; +- +- -target | --target | --targe | --targ | --tar | --ta | --t) +- ac_prev=target_alias ;; +- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) +- target_alias=$ac_optarg ;; +- +- -v | -verbose | --verbose | --verbos | --verbo | --verb) +- verbose=yes ;; +- +- -version | --version | --versio | --versi | --vers | -V) +- ac_init_version=: ;; +- +- -with-* | --with-*) +- ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` +- # Reject names that are not valid shell variable names. +- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +- as_fn_error $? "invalid package name: $ac_useropt" +- ac_useropt_orig=$ac_useropt +- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +- case $ac_user_opts in +- *" +-"with_$ac_useropt" +-"*) ;; +- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" +- ac_unrecognized_sep=', ';; +- esac +- eval with_$ac_useropt=\$ac_optarg ;; +- +- -without-* | --without-*) +- ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` +- # Reject names that are not valid shell variable names. +- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +- as_fn_error $? "invalid package name: $ac_useropt" +- ac_useropt_orig=$ac_useropt +- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +- case $ac_user_opts in +- *" +-"with_$ac_useropt" +-"*) ;; +- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" +- ac_unrecognized_sep=', ';; +- esac +- eval with_$ac_useropt=no ;; +- +- --x) +- # Obsolete; use --with-x. +- with_x=yes ;; +- +- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ +- | --x-incl | --x-inc | --x-in | --x-i) +- ac_prev=x_includes ;; +- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ +- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) +- x_includes=$ac_optarg ;; +- +- -x-libraries | --x-libraries | --x-librarie | --x-librari \ +- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) +- ac_prev=x_libraries ;; +- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ +- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) +- x_libraries=$ac_optarg ;; +- +- -*) as_fn_error $? "unrecognized option: \`$ac_option' +-Try \`$0 --help' for more information" +- ;; +- +- *=*) +- ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` +- # Reject names that are not valid shell variable names. +- case $ac_envvar in #( +- '' | [0-9]* | *[!_$as_cr_alnum]* ) +- as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; +- esac +- eval $ac_envvar=\$ac_optarg +- export $ac_envvar ;; +- +- *) +- # FIXME: should be removed in autoconf 3.0. +- $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 +- expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && +- $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 +- : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" +- ;; +- +- esac +-done +- +-if test -n "$ac_prev"; then +- ac_option=--`echo $ac_prev | sed 's/_/-/g'` +- as_fn_error $? "missing argument to $ac_option" +-fi +- +-if test -n "$ac_unrecognized_opts"; then +- case $enable_option_checking in +- no) ;; +- fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; +- *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; +- esac +-fi +- +-# Check all directory arguments for consistency. +-for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ +- datadir sysconfdir sharedstatedir localstatedir includedir \ +- oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ +- libdir localedir mandir runstatedir +-do +- eval ac_val=\$$ac_var +- # Remove trailing slashes. +- case $ac_val in +- */ ) +- ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` +- eval $ac_var=\$ac_val;; +- esac +- # Be sure to have absolute directory names. +- case $ac_val in +- [\\/$]* | ?:[\\/]* ) continue;; +- NONE | '' ) case $ac_var in *prefix ) continue;; esac;; +- esac +- as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +-done +- +-# There might be people who depend on the old broken behavior: `$host' +-# used to hold the argument of --host etc. +-# FIXME: To remove some day. +-build=$build_alias +-host=$host_alias +-target=$target_alias +- +-# FIXME: To remove some day. +-if test "x$host_alias" != x; then +- if test "x$build_alias" = x; then +- cross_compiling=maybe +- elif test "x$build_alias" != "x$host_alias"; then +- cross_compiling=yes +- fi +-fi +- +-ac_tool_prefix= +-test -n "$host_alias" && ac_tool_prefix=$host_alias- +- +-test "$silent" = yes && exec 6>/dev/null +- +- +-ac_pwd=`pwd` && test -n "$ac_pwd" && +-ac_ls_di=`ls -di .` && +-ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || +- as_fn_error $? "working directory cannot be determined" +-test "X$ac_ls_di" = "X$ac_pwd_ls_di" || +- as_fn_error $? "pwd does not report name of working directory" +- +- +-# Find the source files, if location was not specified. +-if test -z "$srcdir"; then +- ac_srcdir_defaulted=yes +- # Try the directory containing this script, then the parent directory. +- ac_confdir=`$as_dirname -- "$as_myself" || +-$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +- X"$as_myself" : 'X\(//\)[^/]' \| \ +- X"$as_myself" : 'X\(//\)$' \| \ +- X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X"$as_myself" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)[^/].*/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- srcdir=$ac_confdir +- if test ! -r "$srcdir/$ac_unique_file"; then +- srcdir=.. +- fi +-else +- ac_srcdir_defaulted=no +-fi +-if test ! -r "$srcdir/$ac_unique_file"; then +- test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." +- as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +-fi +-ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +-ac_abs_confdir=`( +- cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" +- pwd)` +-# When building in place, set srcdir=. +-if test "$ac_abs_confdir" = "$ac_pwd"; then +- srcdir=. +-fi +-# Remove unnecessary trailing slashes from srcdir. +-# Double slashes in file names in object file debugging info +-# mess up M-x gdb in Emacs. +-case $srcdir in +-*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +-esac +-for ac_var in $ac_precious_vars; do +- eval ac_env_${ac_var}_set=\${${ac_var}+set} +- eval ac_env_${ac_var}_value=\$${ac_var} +- eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} +- eval ac_cv_env_${ac_var}_value=\$${ac_var} +-done +- +-# +-# Report the --help message. +-# +-if test "$ac_init_help" = "long"; then +- # Omit some internal or obsolete options to make the list less imposing. +- # This message is too long to be a string in the A/UX 3.1 sh. +- cat <<_ACEOF +-\`configure' configures Xen Hypervisor Tools 4.14 to adapt to many kinds of systems. +- +-Usage: $0 [OPTION]... [VAR=VALUE]... +- +-To assign environment variables (e.g., CC, CFLAGS...), specify them as +-VAR=VALUE. See below for descriptions of some of the useful variables. +- +-Defaults for the options are specified in brackets. +- +-Configuration: +- -h, --help display this help and exit +- --help=short display options specific to this package +- --help=recursive display the short help of all the included packages +- -V, --version display version information and exit +- -q, --quiet, --silent do not print \`checking ...' messages +- --cache-file=FILE cache test results in FILE [disabled] +- -C, --config-cache alias for \`--cache-file=config.cache' +- -n, --no-create do not create output files +- --srcdir=DIR find the sources in DIR [configure dir or \`..'] +- +-Installation directories: +- --prefix=PREFIX install architecture-independent files in PREFIX +- [$ac_default_prefix] +- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX +- [PREFIX] +- +-By default, \`make install' will install all the files in +-\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +-an installation prefix other than \`$ac_default_prefix' using \`--prefix', +-for instance \`--prefix=\$HOME'. +- +-For better control, use the options below. +- +-Fine tuning of the installation directories: +- --bindir=DIR user executables [EPREFIX/bin] +- --sbindir=DIR system admin executables [EPREFIX/sbin] +- --libexecdir=DIR program executables [EPREFIX/libexec] +- --sysconfdir=DIR read-only single-machine data [PREFIX/etc] +- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] +- --localstatedir=DIR modifiable single-machine data [PREFIX/var] +- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] +- --libdir=DIR object code libraries [EPREFIX/lib] +- --includedir=DIR C header files [PREFIX/include] +- --oldincludedir=DIR C header files for non-gcc [/usr/include] +- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] +- --datadir=DIR read-only architecture-independent data [DATAROOTDIR] +- --infodir=DIR info documentation [DATAROOTDIR/info] +- --localedir=DIR locale-dependent data [DATAROOTDIR/locale] +- --mandir=DIR man documentation [DATAROOTDIR/man] +- --docdir=DIR documentation root [DATAROOTDIR/doc/xen] +- --htmldir=DIR html documentation [DOCDIR] +- --dvidir=DIR dvi documentation [DOCDIR] +- --pdfdir=DIR pdf documentation [DOCDIR] +- --psdir=DIR ps documentation [DOCDIR] +-_ACEOF +- +- cat <<\_ACEOF +- +-System types: +- --build=BUILD configure for building on BUILD [guessed] +- --host=HOST cross-compile to build programs to run on HOST [BUILD] +-_ACEOF +-fi +- +-if test -n "$ac_init_help"; then +- case $ac_init_help in +- short | recursive ) echo "Configuration of Xen Hypervisor Tools 4.14:";; +- esac +- cat <<\_ACEOF +- +-Optional Features: +- --disable-option-checking ignore unrecognized --enable/--with options +- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) +- --enable-FEATURE[=ARG] include FEATURE [ARG=yes] +- --disable-largefile omit support for large files +- --enable-rpath Build tools with -Wl,-rpath,LIBDIR (default is +- DISABLED) +- --enable-githttp Download GIT repositories via HTTP (default is +- DISABLED) +- --disable-monitors Disable xenstat and xentop monitoring tools (default +- is ENABLED) +- --disable-ocamltools Disable Ocaml tools (default is ENABLED) +- --disable-xsmpolicy Disable XSM policy compilation (default is ENABLED) +- --enable-ovmf Enable OVMF (default is DISABLED) +- --disable-seabios Disable SeaBIOS (default is ENABLED) +- --disable-golang Disable Go tools (default is ENABLED) +- --enable-qemu-traditional +- Enable qemu traditional device model, (DEFAULT is on +- for Linux or NetBSD x86, otherwise off) +- --enable-rombios Enable ROMBIOS, (DEFAULT is on if qemu-traditional +- is enabled, otherwise off) +- --disable-ipxe Enable in-tree IPXE, (DEFAULT is on if rombios is +- enabled, otherwise off, see also --with-system-ipxe) +- --enable-systemd Enable systemd support (default is DISABLED) +- --enable-9pfs Explicitly enable 9pfs support in QEMU build +- (default is to defer to QEMU configure default) +- --disable-pvshim Disable pvshim build (enabled by default on 64bit +- x86) +- +-Optional Packages: +- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] +- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) +- --with-initddir=DIR Path to directory with sysv runlevel scripts. +- [SYSCONFDIR/init.d] +- --with-sysconfig-leaf-dir=SUBDIR +- Name of subdirectory in /etc to store runtime +- options for runlevel scripts and daemons such as +- xenstored. This should be either "sysconfig" or +- "default". [sysconfig] +- --with-libexec-leaf-dir=SUBDIR +- Name of subdirectory in libexecdir to use. +- --with-xen-dumpdir=DIR Path to directory for domU crash dumps. +- [LOCALSTATEDIR/lib/xen/dump] +- --with-rundir=DIR Path to directory for runtime data. +- [LOCALSTATEDIR/run] +- --with-debugdir=DIR Path to directory for debug symbols. +- [PREFIX/lib/debug] +- --with-linux-backend-modules="mod1 mod2" +- List of Linux backend module or modalias names to be +- autoloaded on startup. +- --with-system-qemu[=PATH] +- Use system supplied qemu PATH or qemu (taken from +- $PATH) as qemu-xen device model instead of building +- and installing our own version +- --stubdom-qmp-proxy[=PATH] +- Use supplied binary PATH as a QMP proxy into +- stubdomain +- --with-system-seabios[=PATH] +- Use system supplied seabios PATH instead of building +- and installing our own version +- --with-system-ovmf[=PATH] +- Use system supplied OVMF PATH instead of building +- and installing our own version +- --with-system-ipxe[=PATH] +- Use system supplied IPXE PATH instead of building +- and installing our own version, it takes precedence +- over --{en,dis}able-ipxe and is bound by the +- presence of rombios, --without-system-ipxe is an +- error +- --with-extra-qemuu-configure-args[="--ARG1 ..."] +- List of additional configure options for upstream +- qemu +- --with-xenstored[=oxenstored|xenstored] +- This lets you choose which xenstore daemon you want, +- you have two options: the original xenstored written +- in C (xenstored) or the newer and robust one written +- in Ocaml (oxenstored). The oxenstored daemon is the +- default but can only be used if you have ocaml +- library / build dependencies solved, if you have not +- specified a preference and do not have ocaml +- dependencies resolved we'll enable the C xenstored +- for you. If you ask for oxenstored we'll complain +- until you resolve those dependencies +- --with-systemd=DIR set directory for systemd service files +- [PREFIX/lib/systemd/system] +- --with-systemd-modules-load=DIR +- set directory for systemd modules load files +- [PREFIX/lib/modules-load.d/] +- +-Some influential environment variables: +- CC C compiler command +- CFLAGS C compiler flags +- LDFLAGS linker flags, e.g. -L if you have libraries in a +- nonstandard directory +- LIBS libraries to pass to the linker, e.g. -l +- CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if +- you have headers in a nonstandard directory +- PREPEND_INCLUDES +- List of include folders to prepend to CFLAGS (without -I) +- PREPEND_LIB List of library folders to prepend to LDFLAGS (without -L) +- APPEND_INCLUDES +- List of include folders to append to CFLAGS (without -I) +- APPEND_LIB List of library folders to append to LDFLAGS (without -L) +- PYTHON Path to the Python parser +- PERL Path to Perl parser +- BISON Path to Bison parser generator +- FLEX Path to Flex lexical analyser generator +- BASH Path to bash shell +- XGETTEXT Path to xgetttext tool +- AS86 Path to as86 tool +- LD86 Path to ld86 tool +- BCC Path to bcc tool +- IASL Path to iasl tool +- AWK Path to awk tool +- CPP C preprocessor +- PKG_CONFIG path to pkg-config utility +- PKG_CONFIG_PATH +- directories to add to pkg-config's search path +- PKG_CONFIG_LIBDIR +- path overriding pkg-config's built-in search path +- glib_CFLAGS C compiler flags for glib, overriding pkg-config +- glib_LIBS linker flags for glib, overriding pkg-config +- pixman_CFLAGS +- C compiler flags for pixman, overriding pkg-config +- pixman_LIBS linker flags for pixman, overriding pkg-config +- LIBNL3_CFLAGS +- C compiler flags for LIBNL3, overriding pkg-config +- LIBNL3_LIBS linker flags for LIBNL3, overriding pkg-config +- SYSTEMD_CFLAGS +- C compiler flags for SYSTEMD, overriding pkg-config +- SYSTEMD_LIBS +- linker flags for SYSTEMD, overriding pkg-config +- +-Use these variables to override the choices made by `configure' or to help +-it to find libraries and programs with nonstandard names/locations. +- +-Report bugs to . +-Xen Hypervisor Tools home page: . +-_ACEOF +-ac_status=$? +-fi +- +-if test "$ac_init_help" = "recursive"; then +- # If there are subdirs, report their specific --help. +- for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue +- test -d "$ac_dir" || +- { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || +- continue +- ac_builddir=. +- +-case "$ac_dir" in +-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +-*) +- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` +- # A ".." for each directory in $ac_dir_suffix. +- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` +- case $ac_top_builddir_sub in +- "") ac_top_builddir_sub=. ac_top_build_prefix= ;; +- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; +- esac ;; +-esac +-ac_abs_top_builddir=$ac_pwd +-ac_abs_builddir=$ac_pwd$ac_dir_suffix +-# for backward compatibility: +-ac_top_builddir=$ac_top_build_prefix +- +-case $srcdir in +- .) # We are building in place. +- ac_srcdir=. +- ac_top_srcdir=$ac_top_builddir_sub +- ac_abs_top_srcdir=$ac_pwd ;; +- [\\/]* | ?:[\\/]* ) # Absolute name. +- ac_srcdir=$srcdir$ac_dir_suffix; +- ac_top_srcdir=$srcdir +- ac_abs_top_srcdir=$srcdir ;; +- *) # Relative name. +- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix +- ac_top_srcdir=$ac_top_build_prefix$srcdir +- ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +-esac +-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix +- +- cd "$ac_dir" || { ac_status=$?; continue; } +- # Check for guested configure. +- if test -f "$ac_srcdir/configure.gnu"; then +- echo && +- $SHELL "$ac_srcdir/configure.gnu" --help=recursive +- elif test -f "$ac_srcdir/configure"; then +- echo && +- $SHELL "$ac_srcdir/configure" --help=recursive +- else +- $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 +- fi || ac_status=$? +- cd "$ac_pwd" || { ac_status=$?; break; } +- done +-fi +- +-test -n "$ac_init_help" && exit $ac_status +-if $ac_init_version; then +- cat <<\_ACEOF +-Xen Hypervisor Tools configure 4.14 +-generated by GNU Autoconf 2.69 +- +-Copyright (C) 2012 Free Software Foundation, Inc. +-This configure script is free software; the Free Software Foundation +-gives unlimited permission to copy, distribute and modify it. +-_ACEOF +- exit +-fi +- +-## ------------------------ ## +-## Autoconf initialization. ## +-## ------------------------ ## +- +-# ac_fn_c_try_compile LINENO +-# -------------------------- +-# Try to compile conftest.$ac_ext, and return whether this succeeded. +-ac_fn_c_try_compile () +-{ +- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +- rm -f conftest.$ac_objext +- if { { ac_try="$ac_compile" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +-$as_echo "$ac_try_echo"; } >&5 +- (eval "$ac_compile") 2>conftest.err +- ac_status=$? +- if test -s conftest.err; then +- grep -v '^ *+' conftest.err >conftest.er1 +- cat conftest.er1 >&5 +- mv -f conftest.er1 conftest.err +- fi +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; } && { +- test -z "$ac_c_werror_flag" || +- test ! -s conftest.err +- } && test -s conftest.$ac_objext; then : +- ac_retval=0 +-else +- $as_echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +- ac_retval=1 +-fi +- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno +- as_fn_set_status $ac_retval +- +-} # ac_fn_c_try_compile +- +-# ac_fn_c_try_link LINENO +-# ----------------------- +-# Try to link conftest.$ac_ext, and return whether this succeeded. +-ac_fn_c_try_link () +-{ +- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +- rm -f conftest.$ac_objext conftest$ac_exeext +- if { { ac_try="$ac_link" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +-$as_echo "$ac_try_echo"; } >&5 +- (eval "$ac_link") 2>conftest.err +- ac_status=$? +- if test -s conftest.err; then +- grep -v '^ *+' conftest.err >conftest.er1 +- cat conftest.er1 >&5 +- mv -f conftest.er1 conftest.err +- fi +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; } && { +- test -z "$ac_c_werror_flag" || +- test ! -s conftest.err +- } && test -s conftest$ac_exeext && { +- test "$cross_compiling" = yes || +- test -x conftest$ac_exeext +- }; then : +- ac_retval=0 +-else +- $as_echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +- ac_retval=1 +-fi +- # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information +- # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would +- # interfere with the next link command; also delete a directory that is +- # left behind by Apple's compiler. We do this before executing the actions. +- rm -rf conftest.dSYM conftest_ipa8_conftest.oo +- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno +- as_fn_set_status $ac_retval +- +-} # ac_fn_c_try_link +- +-# ac_fn_c_try_cpp LINENO +-# ---------------------- +-# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +-ac_fn_c_try_cpp () +-{ +- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +- if { { ac_try="$ac_cpp conftest.$ac_ext" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +-$as_echo "$ac_try_echo"; } >&5 +- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err +- ac_status=$? +- if test -s conftest.err; then +- grep -v '^ *+' conftest.err >conftest.er1 +- cat conftest.er1 >&5 +- mv -f conftest.er1 conftest.err +- fi +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; } > conftest.i && { +- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || +- test ! -s conftest.err +- }; then : +- ac_retval=0 +-else +- $as_echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +- ac_retval=1 +-fi +- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno +- as_fn_set_status $ac_retval +- +-} # ac_fn_c_try_cpp +- +-# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +-# ------------------------------------------------------- +-# Tests whether HEADER exists, giving a warning if it cannot be compiled using +-# the include files in INCLUDES and setting the cache variable VAR +-# accordingly. +-ac_fn_c_check_header_mongrel () +-{ +- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +- if eval \${$3+:} false; then : +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +-$as_echo_n "checking for $2... " >&6; } +-if eval \${$3+:} false; then : +- $as_echo_n "(cached) " >&6 +-fi +-eval ac_res=\$$3 +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +-$as_echo "$ac_res" >&6; } +-else +- # Is the header compilable? +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +-$as_echo_n "checking $2 usability... " >&6; } +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-$4 +-#include <$2> +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_header_compiler=yes +-else +- ac_header_compiler=no +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +-$as_echo "$ac_header_compiler" >&6; } +- +-# Is the header present? +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +-$as_echo_n "checking $2 presence... " >&6; } +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include <$2> +-_ACEOF +-if ac_fn_c_try_cpp "$LINENO"; then : +- ac_header_preproc=yes +-else +- ac_header_preproc=no +-fi +-rm -f conftest.err conftest.i conftest.$ac_ext +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +-$as_echo "$ac_header_preproc" >&6; } +- +-# So? What about this header? +-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( +- yes:no: ) +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +-$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +-$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +- ;; +- no:yes:* ) +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +-$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 +-$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +-$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 +-$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +-$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +-( $as_echo "## -------------------------------------- ## +-## Report this to xen-devel@lists.xen.org ## +-## -------------------------------------- ##" +- ) | sed "s/^/$as_me: WARNING: /" >&2 +- ;; +-esac +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +-$as_echo_n "checking for $2... " >&6; } +-if eval \${$3+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- eval "$3=\$ac_header_compiler" +-fi +-eval ac_res=\$$3 +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +-$as_echo "$ac_res" >&6; } +-fi +- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno +- +-} # ac_fn_c_check_header_mongrel +- +-# ac_fn_c_try_run LINENO +-# ---------------------- +-# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +-# that executables *can* be run. +-ac_fn_c_try_run () +-{ +- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +- if { { ac_try="$ac_link" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +-$as_echo "$ac_try_echo"; } >&5 +- (eval "$ac_link") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' +- { { case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +-$as_echo "$ac_try_echo"; } >&5 +- (eval "$ac_try") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; }; then : +- ac_retval=0 +-else +- $as_echo "$as_me: program exited with status $ac_status" >&5 +- $as_echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +- ac_retval=$ac_status +-fi +- rm -rf conftest.dSYM conftest_ipa8_conftest.oo +- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno +- as_fn_set_status $ac_retval +- +-} # ac_fn_c_try_run +- +-# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +-# ------------------------------------------------------- +-# Tests whether HEADER exists and can be compiled using the include files in +-# INCLUDES, setting the cache variable VAR accordingly. +-ac_fn_c_check_header_compile () +-{ +- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +-$as_echo_n "checking for $2... " >&6; } +-if eval \${$3+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-$4 +-#include <$2> +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- eval "$3=yes" +-else +- eval "$3=no" +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +-fi +-eval ac_res=\$$3 +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +-$as_echo "$ac_res" >&6; } +- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno +- +-} # ac_fn_c_check_header_compile +- +-# ac_fn_c_check_func LINENO FUNC VAR +-# ---------------------------------- +-# Tests whether FUNC exists, setting the cache variable VAR accordingly +-ac_fn_c_check_func () +-{ +- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +-$as_echo_n "checking for $2... " >&6; } +-if eval \${$3+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-/* Define $2 to an innocuous variant, in case declares $2. +- For example, HP-UX 11i declares gettimeofday. */ +-#define $2 innocuous_$2 +- +-/* System header to define __stub macros and hopefully few prototypes, +- which can conflict with char $2 (); below. +- Prefer to if __STDC__ is defined, since +- exists even on freestanding compilers. */ +- +-#ifdef __STDC__ +-# include +-#else +-# include +-#endif +- +-#undef $2 +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char $2 (); +-/* The GNU C library defines this for functions which it implements +- to always fail with ENOSYS. Some functions are actually named +- something starting with __ and the normal name is an alias. */ +-#if defined __stub_$2 || defined __stub___$2 +-choke me +-#endif +- +-int +-main () +-{ +-return $2 (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- eval "$3=yes" +-else +- eval "$3=no" +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-fi +-eval ac_res=\$$3 +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +-$as_echo "$ac_res" >&6; } +- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno +- +-} # ac_fn_c_check_func +- +-# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES +-# --------------------------------------------- +-# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR +-# accordingly. +-ac_fn_c_check_decl () +-{ +- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +- as_decl_name=`echo $2|sed 's/ *(.*//'` +- as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +-$as_echo_n "checking whether $as_decl_name is declared... " >&6; } +-if eval \${$3+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-$4 +-int +-main () +-{ +-#ifndef $as_decl_name +-#ifdef __cplusplus +- (void) $as_decl_use; +-#else +- (void) $as_decl_name; +-#endif +-#endif +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- eval "$3=yes" +-else +- eval "$3=no" +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +-fi +-eval ac_res=\$$3 +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +-$as_echo "$ac_res" >&6; } +- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno +- +-} # ac_fn_c_check_decl +-cat >config.log <<_ACEOF +-This file contains any messages produced by compilers while +-running configure, to aid debugging if configure makes a mistake. +- +-It was created by Xen Hypervisor Tools $as_me 4.14, which was +-generated by GNU Autoconf 2.69. Invocation command line was +- +- $ $0 $@ +- +-_ACEOF +-exec 5>>config.log +-{ +-cat <<_ASUNAME +-## --------- ## +-## Platform. ## +-## --------- ## +- +-hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +-uname -m = `(uname -m) 2>/dev/null || echo unknown` +-uname -r = `(uname -r) 2>/dev/null || echo unknown` +-uname -s = `(uname -s) 2>/dev/null || echo unknown` +-uname -v = `(uname -v) 2>/dev/null || echo unknown` +- +-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +-/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` +- +-/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +-/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +-/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +-/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +-/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +-/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` +- +-_ASUNAME +- +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- $as_echo "PATH: $as_dir" +- done +-IFS=$as_save_IFS +- +-} >&5 +- +-cat >&5 <<_ACEOF +- +- +-## ----------- ## +-## Core tests. ## +-## ----------- ## +- +-_ACEOF +- +- +-# Keep a trace of the command line. +-# Strip out --no-create and --no-recursion so they do not pile up. +-# Strip out --silent because we don't want to record it for future runs. +-# Also quote any args containing shell meta-characters. +-# Make two passes to allow for proper duplicate-argument suppression. +-ac_configure_args= +-ac_configure_args0= +-ac_configure_args1= +-ac_must_keep_next=false +-for ac_pass in 1 2 +-do +- for ac_arg +- do +- case $ac_arg in +- -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; +- -q | -quiet | --quiet | --quie | --qui | --qu | --q \ +- | -silent | --silent | --silen | --sile | --sil) +- continue ;; +- *\'*) +- ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; +- esac +- case $ac_pass in +- 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; +- 2) +- as_fn_append ac_configure_args1 " '$ac_arg'" +- if test $ac_must_keep_next = true; then +- ac_must_keep_next=false # Got value, back to normal. +- else +- case $ac_arg in +- *=* | --config-cache | -C | -disable-* | --disable-* \ +- | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ +- | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ +- | -with-* | --with-* | -without-* | --without-* | --x) +- case "$ac_configure_args0 " in +- "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; +- esac +- ;; +- -* ) ac_must_keep_next=true ;; +- esac +- fi +- as_fn_append ac_configure_args " '$ac_arg'" +- ;; +- esac +- done +-done +-{ ac_configure_args0=; unset ac_configure_args0;} +-{ ac_configure_args1=; unset ac_configure_args1;} +- +-# When interrupted or exit'd, cleanup temporary files, and complete +-# config.log. We remove comments because anyway the quotes in there +-# would cause problems or look ugly. +-# WARNING: Use '\'' to represent an apostrophe within the trap. +-# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +-trap 'exit_status=$? +- # Save into config.log some information that might help in debugging. +- { +- echo +- +- $as_echo "## ---------------- ## +-## Cache variables. ## +-## ---------------- ##" +- echo +- # The following way of writing the cache mishandles newlines in values, +-( +- for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do +- eval ac_val=\$$ac_var +- case $ac_val in #( +- *${as_nl}*) +- case $ac_var in #( +- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +-$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; +- esac +- case $ac_var in #( +- _ | IFS | as_nl) ;; #( +- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( +- *) { eval $ac_var=; unset $ac_var;} ;; +- esac ;; +- esac +- done +- (set) 2>&1 | +- case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( +- *${as_nl}ac_space=\ *) +- sed -n \ +- "s/'\''/'\''\\\\'\'''\''/g; +- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" +- ;; #( +- *) +- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" +- ;; +- esac | +- sort +-) +- echo +- +- $as_echo "## ----------------- ## +-## Output variables. ## +-## ----------------- ##" +- echo +- for ac_var in $ac_subst_vars +- do +- eval ac_val=\$$ac_var +- case $ac_val in +- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; +- esac +- $as_echo "$ac_var='\''$ac_val'\''" +- done | sort +- echo +- +- if test -n "$ac_subst_files"; then +- $as_echo "## ------------------- ## +-## File substitutions. ## +-## ------------------- ##" +- echo +- for ac_var in $ac_subst_files +- do +- eval ac_val=\$$ac_var +- case $ac_val in +- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; +- esac +- $as_echo "$ac_var='\''$ac_val'\''" +- done | sort +- echo +- fi +- +- if test -s confdefs.h; then +- $as_echo "## ----------- ## +-## confdefs.h. ## +-## ----------- ##" +- echo +- cat confdefs.h +- echo +- fi +- test "$ac_signal" != 0 && +- $as_echo "$as_me: caught signal $ac_signal" +- $as_echo "$as_me: exit $exit_status" +- } >&5 +- rm -f core *.core core.conftest.* && +- rm -f -r conftest* confdefs* conf$$* $ac_clean_files && +- exit $exit_status +-' 0 +-for ac_signal in 1 2 13 15; do +- trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +-done +-ac_signal=0 +- +-# confdefs.h avoids OS command line length limits that DEFS can exceed. +-rm -f -r conftest* confdefs.h +- +-$as_echo "/* confdefs.h */" > confdefs.h +- +-# Predefined preprocessor variables. +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_NAME "$PACKAGE_NAME" +-_ACEOF +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +-_ACEOF +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_VERSION "$PACKAGE_VERSION" +-_ACEOF +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_STRING "$PACKAGE_STRING" +-_ACEOF +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +-_ACEOF +- +-cat >>confdefs.h <<_ACEOF +-#define PACKAGE_URL "$PACKAGE_URL" +-_ACEOF +- +- +-# Let the site file select an alternate cache file if it wants to. +-# Prefer an explicitly selected file to automatically selected ones. +-ac_site_file1=NONE +-ac_site_file2=NONE +-if test -n "$CONFIG_SITE"; then +- # We do not want a PATH search for config.site. +- case $CONFIG_SITE in #(( +- -*) ac_site_file1=./$CONFIG_SITE;; +- */*) ac_site_file1=$CONFIG_SITE;; +- *) ac_site_file1=./$CONFIG_SITE;; +- esac +-elif test "x$prefix" != xNONE; then +- ac_site_file1=$prefix/share/config.site +- ac_site_file2=$prefix/etc/config.site +-else +- ac_site_file1=$ac_default_prefix/share/config.site +- ac_site_file2=$ac_default_prefix/etc/config.site +-fi +-for ac_site_file in "$ac_site_file1" "$ac_site_file2" +-do +- test "x$ac_site_file" = xNONE && continue +- if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +-$as_echo "$as_me: loading site script $ac_site_file" >&6;} +- sed 's/^/| /' "$ac_site_file" >&5 +- . "$ac_site_file" \ +- || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "failed to load site script $ac_site_file +-See \`config.log' for more details" "$LINENO" 5; } +- fi +-done +- +-if test -r "$cache_file"; then +- # Some versions of bash will fail to source /dev/null (special files +- # actually), so we avoid doing that. DJGPP emulates it as a regular file. +- if test /dev/null != "$cache_file" && test -f "$cache_file"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +-$as_echo "$as_me: loading cache $cache_file" >&6;} +- case $cache_file in +- [\\/]* | ?:[\\/]* ) . "$cache_file";; +- *) . "./$cache_file";; +- esac +- fi +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +-$as_echo "$as_me: creating cache $cache_file" >&6;} +- >$cache_file +-fi +- +-# Check that the precious variables saved in the cache have kept the same +-# value. +-ac_cache_corrupted=false +-for ac_var in $ac_precious_vars; do +- eval ac_old_set=\$ac_cv_env_${ac_var}_set +- eval ac_new_set=\$ac_env_${ac_var}_set +- eval ac_old_val=\$ac_cv_env_${ac_var}_value +- eval ac_new_val=\$ac_env_${ac_var}_value +- case $ac_old_set,$ac_new_set in +- set,) +- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +-$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} +- ac_cache_corrupted=: ;; +- ,set) +- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +-$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} +- ac_cache_corrupted=: ;; +- ,);; +- *) +- if test "x$ac_old_val" != "x$ac_new_val"; then +- # differences in whitespace do not lead to failure. +- ac_old_val_w=`echo x $ac_old_val` +- ac_new_val_w=`echo x $ac_new_val` +- if test "$ac_old_val_w" != "$ac_new_val_w"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +-$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} +- ac_cache_corrupted=: +- else +- { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +-$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} +- eval $ac_var=\$ac_old_val +- fi +- { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +-$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} +- { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +-$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} +- fi;; +- esac +- # Pass precious variables to config.status. +- if test "$ac_new_set" = set; then +- case $ac_new_val in +- *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; +- *) ac_arg=$ac_var=$ac_new_val ;; +- esac +- case " $ac_configure_args " in +- *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. +- *) as_fn_append ac_configure_args " '$ac_arg'" ;; +- esac +- fi +-done +-if $ac_cache_corrupted; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +- { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +-$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} +- as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +-fi +-## -------------------- ## +-## Main body of script. ## +-## -------------------- ## +- +-ac_ext=c +-ac_cpp='$CPP $CPPFLAGS' +-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +-ac_compiler_gnu=$ac_cv_c_compiler_gnu +- +- +- +-ac_config_files="$ac_config_files ../config/Tools.mk hotplug/FreeBSD/rc.d/xencommons hotplug/FreeBSD/rc.d/xendriverdomain hotplug/Linux/init.d/sysconfig.xencommons hotplug/Linux/init.d/sysconfig.xendomains hotplug/Linux/init.d/xen-watchdog hotplug/Linux/init.d/xencommons hotplug/Linux/init.d/xendomains hotplug/Linux/init.d/xendriverdomain hotplug/Linux/launch-xenstore hotplug/Linux/vif-setup hotplug/Linux/xen-hotplug-common.sh hotplug/Linux/xendomains hotplug/NetBSD/rc.d/xencommons hotplug/NetBSD/rc.d/xendriverdomain ocaml/xenstored/oxenstored.conf" +- +-ac_config_headers="$ac_config_headers config.h" +- +-ac_aux_dir= +-for ac_dir in ../ "$srcdir"/../; do +- if test -f "$ac_dir/install-sh"; then +- ac_aux_dir=$ac_dir +- ac_install_sh="$ac_aux_dir/install-sh -c" +- break +- elif test -f "$ac_dir/install.sh"; then +- ac_aux_dir=$ac_dir +- ac_install_sh="$ac_aux_dir/install.sh -c" +- break +- elif test -f "$ac_dir/shtool"; then +- ac_aux_dir=$ac_dir +- ac_install_sh="$ac_aux_dir/shtool install -c" +- break +- fi +-done +-if test -z "$ac_aux_dir"; then +- as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../ \"$srcdir\"/../" "$LINENO" 5 +-fi +- +-# These three variables are undocumented and unsupported, +-# and are intended to be withdrawn in a future Autoconf release. +-# They can cause serious problems if a builder's source tree is in a directory +-# whose full name contains unusual characters. +-ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +-ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +-ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. +- +- +- +-# Check if CFLAGS, LDFLAGS, LIBS, CPPFLAGS or CPP is set and print a warning +- +-if test -n "$CC$CFLAGS$LDFLAGS$LIBS$CPPFLAGS$CPP"; then : +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Setting CC, CFLAGS, LDFLAGS, LIBS, CPPFLAGS or CPP is not \ +-recommended, use PREPEND_INCLUDES, PREPEND_LIB, \ +-APPEND_INCLUDES and APPEND_LIB instead when possible." >&5 +-$as_echo "$as_me: WARNING: Setting CC, CFLAGS, LDFLAGS, LIBS, CPPFLAGS or CPP is not \ +-recommended, use PREPEND_INCLUDES, PREPEND_LIB, \ +-APPEND_INCLUDES and APPEND_LIB instead when possible." >&2;} +- +-fi +- +-# Make sure we can run config.sub. +-$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || +- as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +-$as_echo_n "checking build system type... " >&6; } +-if ${ac_cv_build+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_build_alias=$build_alias +-test "x$ac_build_alias" = x && +- ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +-test "x$ac_build_alias" = x && +- as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 +-ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || +- as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 +- +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +-$as_echo "$ac_cv_build" >&6; } +-case $ac_cv_build in +-*-*-*) ;; +-*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; +-esac +-build=$ac_cv_build +-ac_save_IFS=$IFS; IFS='-' +-set x $ac_cv_build +-shift +-build_cpu=$1 +-build_vendor=$2 +-shift; shift +-# Remember, the first character of IFS is used to create $*, +-# except with old shells: +-build_os=$* +-IFS=$ac_save_IFS +-case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac +- +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +-$as_echo_n "checking host system type... " >&6; } +-if ${ac_cv_host+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test "x$host_alias" = x; then +- ac_cv_host=$ac_cv_build +-else +- ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || +- as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 +-fi +- +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +-$as_echo "$ac_cv_host" >&6; } +-case $ac_cv_host in +-*-*-*) ;; +-*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; +-esac +-host=$ac_cv_host +-ac_save_IFS=$IFS; IFS='-' +-set x $ac_cv_host +-shift +-host_cpu=$1 +-host_vendor=$2 +-shift; shift +-# Remember, the first character of IFS is used to create $*, +-# except with old shells: +-host_os=$* +-IFS=$ac_save_IFS +-case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac +- +- +- +-case $host_vendor in +-rumpxen|rumprun) CONFIG_RUMP=y; rump=true ;; +-*) CONFIG_RUMP=n; rump=false ;; +-esac +- +- +-ac_ext=c +-ac_cpp='$CPP $CPPFLAGS' +-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +-ac_compiler_gnu=$ac_cv_c_compiler_gnu +-if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +-set dummy ${ac_tool_prefix}gcc; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_CC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$CC"; then +- ac_cv_prog_CC="$CC" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_CC="${ac_tool_prefix}gcc" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-CC=$ac_cv_prog_CC +-if test -n "$CC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +-$as_echo "$CC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_CC"; then +- ac_ct_CC=$CC +- # Extract the first word of "gcc", so it can be a program name with args. +-set dummy gcc; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_CC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_CC"; then +- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_CC="gcc" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_CC=$ac_cv_prog_ac_ct_CC +-if test -n "$ac_ct_CC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +-$as_echo "$ac_ct_CC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_CC" = x; then +- CC="" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- CC=$ac_ct_CC +- fi +-else +- CC="$ac_cv_prog_CC" +-fi +- +-if test -z "$CC"; then +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +-set dummy ${ac_tool_prefix}cc; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_CC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$CC"; then +- ac_cv_prog_CC="$CC" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_CC="${ac_tool_prefix}cc" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-CC=$ac_cv_prog_CC +-if test -n "$CC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +-$as_echo "$CC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- fi +-fi +-if test -z "$CC"; then +- # Extract the first word of "cc", so it can be a program name with args. +-set dummy cc; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_CC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$CC"; then +- ac_cv_prog_CC="$CC" # Let the user override the test. +-else +- ac_prog_rejected=no +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then +- ac_prog_rejected=yes +- continue +- fi +- ac_cv_prog_CC="cc" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-if test $ac_prog_rejected = yes; then +- # We found a bogon in the path, so make sure we never use it. +- set dummy $ac_cv_prog_CC +- shift +- if test $# != 0; then +- # We chose a different compiler from the bogus one. +- # However, it has the same basename, so the bogon will be chosen +- # first if we set CC to just the basename; use the full file name. +- shift +- ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" +- fi +-fi +-fi +-fi +-CC=$ac_cv_prog_CC +-if test -n "$CC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +-$as_echo "$CC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$CC"; then +- if test -n "$ac_tool_prefix"; then +- for ac_prog in cl.exe +- do +- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +-set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_CC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$CC"; then +- ac_cv_prog_CC="$CC" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_CC="$ac_tool_prefix$ac_prog" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-CC=$ac_cv_prog_CC +-if test -n "$CC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +-$as_echo "$CC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- test -n "$CC" && break +- done +-fi +-if test -z "$CC"; then +- ac_ct_CC=$CC +- for ac_prog in cl.exe +-do +- # Extract the first word of "$ac_prog", so it can be a program name with args. +-set dummy $ac_prog; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_CC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_CC"; then +- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_CC="$ac_prog" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_CC=$ac_cv_prog_ac_ct_CC +-if test -n "$ac_ct_CC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +-$as_echo "$ac_ct_CC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- test -n "$ac_ct_CC" && break +-done +- +- if test "x$ac_ct_CC" = x; then +- CC="" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- CC=$ac_ct_CC +- fi +-fi +- +-fi +- +- +-test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "no acceptable C compiler found in \$PATH +-See \`config.log' for more details" "$LINENO" 5; } +- +-# Provide some information about the compiler. +-$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +-set X $ac_compile +-ac_compiler=$2 +-for ac_option in --version -v -V -qversion; do +- { { ac_try="$ac_compiler $ac_option >&5" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +-$as_echo "$ac_try_echo"; } >&5 +- (eval "$ac_compiler $ac_option >&5") 2>conftest.err +- ac_status=$? +- if test -s conftest.err; then +- sed '10a\ +-... rest of stderr output deleted ... +- 10q' conftest.err >conftest.er1 +- cat conftest.er1 >&5 +- fi +- rm -f conftest.er1 conftest.err +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; } +-done +- +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-ac_clean_files_save=$ac_clean_files +-ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +-# Try to create an executable without -o first, disregard a.out. +-# It will help us diagnose broken compilers, and finding out an intuition +-# of exeext. +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +-$as_echo_n "checking whether the C compiler works... " >&6; } +-ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +- +-# The possible output files: +-ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" +- +-ac_rmfiles= +-for ac_file in $ac_files +-do +- case $ac_file in +- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; +- * ) ac_rmfiles="$ac_rmfiles $ac_file";; +- esac +-done +-rm -f $ac_rmfiles +- +-if { { ac_try="$ac_link_default" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +-$as_echo "$ac_try_echo"; } >&5 +- (eval "$ac_link_default") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then : +- # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +-# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +-# in a Makefile. We should not override ac_cv_exeext if it was cached, +-# so that the user can short-circuit this test for compilers unknown to +-# Autoconf. +-for ac_file in $ac_files '' +-do +- test -f "$ac_file" || continue +- case $ac_file in +- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) +- ;; +- [ab].out ) +- # We found the default executable, but exeext='' is most +- # certainly right. +- break;; +- *.* ) +- if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; +- then :; else +- ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` +- fi +- # We set ac_cv_exeext here because the later test for it is not +- # safe: cross compilers may not add the suffix if given an `-o' +- # argument, so we may need to know it at that point already. +- # Even if this section looks crufty: it has the advantage of +- # actually working. +- break;; +- * ) +- break;; +- esac +-done +-test "$ac_cv_exeext" = no && ac_cv_exeext= +- +-else +- ac_file='' +-fi +-if test -z "$ac_file"; then : +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-$as_echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +-{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error 77 "C compiler cannot create executables +-See \`config.log' for more details" "$LINENO" 5; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +-$as_echo_n "checking for C compiler default output file name... " >&6; } +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +-$as_echo "$ac_file" >&6; } +-ac_exeext=$ac_cv_exeext +- +-rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +-ac_clean_files=$ac_clean_files_save +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +-$as_echo_n "checking for suffix of executables... " >&6; } +-if { { ac_try="$ac_link" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +-$as_echo "$ac_try_echo"; } >&5 +- (eval "$ac_link") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then : +- # If both `conftest.exe' and `conftest' are `present' (well, observable) +-# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +-# work properly (i.e., refer to `conftest.exe'), while it won't with +-# `rm'. +-for ac_file in conftest.exe conftest conftest.*; do +- test -f "$ac_file" || continue +- case $ac_file in +- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; +- *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` +- break;; +- * ) break;; +- esac +-done +-else +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "cannot compute suffix of executables: cannot compile and link +-See \`config.log' for more details" "$LINENO" 5; } +-fi +-rm -f conftest conftest$ac_cv_exeext +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +-$as_echo "$ac_cv_exeext" >&6; } +- +-rm -f conftest.$ac_ext +-EXEEXT=$ac_cv_exeext +-ac_exeext=$EXEEXT +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include +-int +-main () +-{ +-FILE *f = fopen ("conftest.out", "w"); +- return ferror (f) || fclose (f) != 0; +- +- ; +- return 0; +-} +-_ACEOF +-ac_clean_files="$ac_clean_files conftest.out" +-# Check that the compiler produces executables we can run. If not, either +-# the compiler is broken, or we cross compile. +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +-$as_echo_n "checking whether we are cross compiling... " >&6; } +-if test "$cross_compiling" != yes; then +- { { ac_try="$ac_link" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +-$as_echo "$ac_try_echo"; } >&5 +- (eval "$ac_link") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; } +- if { ac_try='./conftest$ac_cv_exeext' +- { { case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +-$as_echo "$ac_try_echo"; } >&5 +- (eval "$ac_try") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; }; then +- cross_compiling=no +- else +- if test "$cross_compiling" = maybe; then +- cross_compiling=yes +- else +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "cannot run C compiled programs. +-If you meant to cross compile, use \`--host'. +-See \`config.log' for more details" "$LINENO" 5; } +- fi +- fi +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +-$as_echo "$cross_compiling" >&6; } +- +-rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +-ac_clean_files=$ac_clean_files_save +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +-$as_echo_n "checking for suffix of object files... " >&6; } +-if ${ac_cv_objext+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-rm -f conftest.o conftest.obj +-if { { ac_try="$ac_compile" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +-$as_echo "$ac_try_echo"; } >&5 +- (eval "$ac_compile") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then : +- for ac_file in conftest.o conftest.obj conftest.*; do +- test -f "$ac_file" || continue; +- case $ac_file in +- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; +- *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` +- break;; +- esac +-done +-else +- $as_echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +-{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "cannot compute suffix of object files: cannot compile +-See \`config.log' for more details" "$LINENO" 5; } +-fi +-rm -f conftest.$ac_cv_objext conftest.$ac_ext +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +-$as_echo "$ac_cv_objext" >&6; } +-OBJEXT=$ac_cv_objext +-ac_objext=$OBJEXT +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +-$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +-if ${ac_cv_c_compiler_gnu+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +-#ifndef __GNUC__ +- choke me +-#endif +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_compiler_gnu=yes +-else +- ac_compiler_gnu=no +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +-ac_cv_c_compiler_gnu=$ac_compiler_gnu +- +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +-$as_echo "$ac_cv_c_compiler_gnu" >&6; } +-if test $ac_compiler_gnu = yes; then +- GCC=yes +-else +- GCC= +-fi +-ac_test_CFLAGS=${CFLAGS+set} +-ac_save_CFLAGS=$CFLAGS +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +-$as_echo_n "checking whether $CC accepts -g... " >&6; } +-if ${ac_cv_prog_cc_g+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_save_c_werror_flag=$ac_c_werror_flag +- ac_c_werror_flag=yes +- ac_cv_prog_cc_g=no +- CFLAGS="-g" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_prog_cc_g=yes +-else +- CFLAGS="" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- +-else +- ac_c_werror_flag=$ac_save_c_werror_flag +- CFLAGS="-g" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_prog_cc_g=yes +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- ac_c_werror_flag=$ac_save_c_werror_flag +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +-$as_echo "$ac_cv_prog_cc_g" >&6; } +-if test "$ac_test_CFLAGS" = set; then +- CFLAGS=$ac_save_CFLAGS +-elif test $ac_cv_prog_cc_g = yes; then +- if test "$GCC" = yes; then +- CFLAGS="-g -O2" +- else +- CFLAGS="-g" +- fi +-else +- if test "$GCC" = yes; then +- CFLAGS="-O2" +- else +- CFLAGS= +- fi +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +-$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +-if ${ac_cv_prog_cc_c89+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_cv_prog_cc_c89=no +-ac_save_CC=$CC +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include +-#include +-struct stat; +-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +-struct buf { int x; }; +-FILE * (*rcsopen) (struct buf *, struct stat *, int); +-static char *e (p, i) +- char **p; +- int i; +-{ +- return p[i]; +-} +-static char *f (char * (*g) (char **, int), char **p, ...) +-{ +- char *s; +- va_list v; +- va_start (v,p); +- s = g (p, va_arg (v,int)); +- va_end (v); +- return s; +-} +- +-/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has +- function prototypes and stuff, but not '\xHH' hex character constants. +- These don't provoke an error unfortunately, instead are silently treated +- as 'x'. The following induces an error, until -std is added to get +- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an +- array size at least. It's necessary to write '\x00'==0 to get something +- that's true only with -std. */ +-int osf4_cc_array ['\x00' == 0 ? 1 : -1]; +- +-/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters +- inside strings and character constants. */ +-#define FOO(x) 'x' +-int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; +- +-int test (int i, double x); +-struct s1 {int (*f) (int a);}; +-struct s2 {int (*f) (double a);}; +-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +-int argc; +-char **argv; +-int +-main () +-{ +-return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; +- ; +- return 0; +-} +-_ACEOF +-for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ +- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +-do +- CC="$ac_save_CC $ac_arg" +- if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_prog_cc_c89=$ac_arg +-fi +-rm -f core conftest.err conftest.$ac_objext +- test "x$ac_cv_prog_cc_c89" != "xno" && break +-done +-rm -f conftest.$ac_ext +-CC=$ac_save_CC +- +-fi +-# AC_CACHE_VAL +-case "x$ac_cv_prog_cc_c89" in +- x) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +-$as_echo "none needed" >&6; } ;; +- xno) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +-$as_echo "unsupported" >&6; } ;; +- *) +- CC="$CC $ac_cv_prog_cc_c89" +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +-$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +-esac +-if test "x$ac_cv_prog_cc_c89" != xno; then : +- +-fi +- +-ac_ext=c +-ac_cpp='$CPP $CPPFLAGS' +-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +-ac_compiler_gnu=$ac_cv_c_compiler_gnu +- +- +-# Check whether --enable-largefile was given. +-if test "${enable_largefile+set}" = set; then : +- enableval=$enable_largefile; +-fi +- +-if test "$enable_largefile" != no; then +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 +-$as_echo_n "checking for special C compiler options needed for large files... " >&6; } +-if ${ac_cv_sys_largefile_CC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_cv_sys_largefile_CC=no +- if test "$GCC" != yes; then +- ac_save_CC=$CC +- while :; do +- # IRIX 6.2 and later do not support large files by default, +- # so use the C compiler's -n32 option if that helps. +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include +- /* Check that off_t can represent 2**63 - 1 correctly. +- We can't simply define LARGE_OFF_T to be 9223372036854775807, +- since some C++ compilers masquerading as C compilers +- incorrectly reject 9223372036854775807. */ +-#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) +- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 +- && LARGE_OFF_T % 2147483647 == 1) +- ? 1 : -1]; +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +- if ac_fn_c_try_compile "$LINENO"; then : +- break +-fi +-rm -f core conftest.err conftest.$ac_objext +- CC="$CC -n32" +- if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_sys_largefile_CC=' -n32'; break +-fi +-rm -f core conftest.err conftest.$ac_objext +- break +- done +- CC=$ac_save_CC +- rm -f conftest.$ac_ext +- fi +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 +-$as_echo "$ac_cv_sys_largefile_CC" >&6; } +- if test "$ac_cv_sys_largefile_CC" != no; then +- CC=$CC$ac_cv_sys_largefile_CC +- fi +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 +-$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } +-if ${ac_cv_sys_file_offset_bits+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- while :; do +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include +- /* Check that off_t can represent 2**63 - 1 correctly. +- We can't simply define LARGE_OFF_T to be 9223372036854775807, +- since some C++ compilers masquerading as C compilers +- incorrectly reject 9223372036854775807. */ +-#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) +- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 +- && LARGE_OFF_T % 2147483647 == 1) +- ? 1 : -1]; +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_sys_file_offset_bits=no; break +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#define _FILE_OFFSET_BITS 64 +-#include +- /* Check that off_t can represent 2**63 - 1 correctly. +- We can't simply define LARGE_OFF_T to be 9223372036854775807, +- since some C++ compilers masquerading as C compilers +- incorrectly reject 9223372036854775807. */ +-#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) +- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 +- && LARGE_OFF_T % 2147483647 == 1) +- ? 1 : -1]; +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_sys_file_offset_bits=64; break +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- ac_cv_sys_file_offset_bits=unknown +- break +-done +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 +-$as_echo "$ac_cv_sys_file_offset_bits" >&6; } +-case $ac_cv_sys_file_offset_bits in #( +- no | unknown) ;; +- *) +-cat >>confdefs.h <<_ACEOF +-#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits +-_ACEOF +-;; +-esac +-rm -rf conftest* +- if test $ac_cv_sys_file_offset_bits = unknown; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 +-$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } +-if ${ac_cv_sys_large_files+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- while :; do +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include +- /* Check that off_t can represent 2**63 - 1 correctly. +- We can't simply define LARGE_OFF_T to be 9223372036854775807, +- since some C++ compilers masquerading as C compilers +- incorrectly reject 9223372036854775807. */ +-#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) +- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 +- && LARGE_OFF_T % 2147483647 == 1) +- ? 1 : -1]; +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_sys_large_files=no; break +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#define _LARGE_FILES 1 +-#include +- /* Check that off_t can represent 2**63 - 1 correctly. +- We can't simply define LARGE_OFF_T to be 9223372036854775807, +- since some C++ compilers masquerading as C compilers +- incorrectly reject 9223372036854775807. */ +-#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) +- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 +- && LARGE_OFF_T % 2147483647 == 1) +- ? 1 : -1]; +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_sys_large_files=1; break +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- ac_cv_sys_large_files=unknown +- break +-done +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 +-$as_echo "$ac_cv_sys_large_files" >&6; } +-case $ac_cv_sys_large_files in #( +- no | unknown) ;; +- *) +-cat >>confdefs.h <<_ACEOF +-#define _LARGE_FILES $ac_cv_sys_large_files +-_ACEOF +-;; +-esac +-rm -rf conftest* +- fi +- +- +-fi +- +- +-case $ac_cv_sys_file_offset_bits in #( +- no | unknown) ;; +- *) +- FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits +-;; +-esac +- +- +-# M4 Macro includes +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +-# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- +-# serial 1 (pkg-config-0.24) +-# +-# Copyright © 2004 Scott James Remnant . +-# +-# 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 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 . +-# +-# 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. +- +-# PKG_PROG_PKG_CONFIG([MIN-VERSION]) +-# ---------------------------------- +-# PKG_PROG_PKG_CONFIG +- +-# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) +-# +-# Check to see whether a particular set of modules exists. Similar +-# to PKG_CHECK_MODULES(), but does not set variables or print errors. +-# +-# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) +-# only at the first occurence in configure.ac, so if the first place +-# it's called might be skipped (such as if it is within an "if", you +-# have to call PKG_CHECK_EXISTS manually +-# -------------------------------------------------------------- +- +- +-# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) +-# --------------------------------------------- +-# _PKG_CONFIG +- +-# _PKG_SHORT_ERRORS_SUPPORTED +-# ----------------------------- +-# _PKG_SHORT_ERRORS_SUPPORTED +- +- +-# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], +-# [ACTION-IF-NOT-FOUND]) +-# +-# +-# Note that if there is a possibility the first call to +-# PKG_CHECK_MODULES might not happen, you should be sure to include an +-# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac +-# +-# +-# -------------------------------------------------------------- +-# PKG_CHECK_MODULES +- +- +-# PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], +-# [ACTION-IF-NOT-FOUND]) +-# --------------------------------------------------------------------- +-# Checks for existence of MODULES and gathers its build flags with +-# static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags +-# and VARIABLE-PREFIX_LIBS from --libs. +-# +-# Note that if there is a possibility the first call to +-# PKG_CHECK_MODULES_STATIC might not happen, you should be sure to include +-# an explicit call to PKG_PROG_PKG_CONFIG in your configure.ac. +- +- +- +-# PKG_INSTALLDIR(DIRECTORY) +-# ------------------------- +-# Substitutes the variable pkgconfigdir as the location where a module +-# should install pkg-config .pc files. By default the directory is +-# $libdir/pkgconfig, but the default can be changed by passing +-# DIRECTORY. The user can override through the --with-pkgconfigdir +-# parameter. +- +- +-# PKG_NOARCH_INSTALLDIR(DIRECTORY) +-# ------------------------- +-# Substitutes the variable noarch_pkgconfigdir as the location where a +-# module should install arch-independent pkg-config .pc files. By +-# default the directory is $datadir/pkgconfig, but the default can be +-# changed by passing DIRECTORY. The user can override through the +-# --with-noarch-pkgconfigdir parameter. +- +- +-# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, +-# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) +-# ------------------------------------------- +-# Retrieves the value of the pkg-config variable for the given module. +-# PKG_CHECK_VAR +- +- +- +-# We define, separately, PTHREAD_CFLAGS, _LDFLAGS and _LIBS +-# even though currently we don't set them very separately. +-# This means that the makefiles will not need to change in +-# the future if we make the test more sophisticated. +- +- +- +-# We invoke AX_PTHREAD_VARS with the name of another macro +-# which is then expanded once for each variable. +- +- +- +- +- +- +- +- +- +- +- +- +- +-# Fetched from http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_compare_version.m4 +-# Commit ID: 27948f49ca30e4222bb7cdd55182bd7341ac50c5 +-# =========================================================================== +-# http://www.gnu.org/software/autoconf-archive/ax_compare_version.html +-# =========================================================================== +-# +-# SYNOPSIS +-# +-# AX_COMPARE_VERSION(VERSION_A, OP, VERSION_B, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) +-# +-# DESCRIPTION +-# +-# This macro compares two version strings. Due to the various number of +-# minor-version numbers that can exist, and the fact that string +-# comparisons are not compatible with numeric comparisons, this is not +-# necessarily trivial to do in a autoconf script. This macro makes doing +-# these comparisons easy. +-# +-# The six basic comparisons are available, as well as checking equality +-# limited to a certain number of minor-version levels. +-# +-# The operator OP determines what type of comparison to do, and can be one +-# of: +-# +-# eq - equal (test A == B) +-# ne - not equal (test A != B) +-# le - less than or equal (test A <= B) +-# ge - greater than or equal (test A >= B) +-# lt - less than (test A < B) +-# gt - greater than (test A > B) +-# +-# Additionally, the eq and ne operator can have a number after it to limit +-# the test to that number of minor versions. +-# +-# eq0 - equal up to the length of the shorter version +-# ne0 - not equal up to the length of the shorter version +-# eqN - equal up to N sub-version levels +-# neN - not equal up to N sub-version levels +-# +-# When the condition is true, shell commands ACTION-IF-TRUE are run, +-# otherwise shell commands ACTION-IF-FALSE are run. The environment +-# variable 'ax_compare_version' is always set to either 'true' or 'false' +-# as well. +-# +-# Examples: +-# +-# AX_COMPARE_VERSION([3.15.7],[lt],[3.15.8]) +-# AX_COMPARE_VERSION([3.15],[lt],[3.15.8]) +-# +-# would both be true. +-# +-# AX_COMPARE_VERSION([3.15.7],[eq],[3.15.8]) +-# AX_COMPARE_VERSION([3.15],[gt],[3.15.8]) +-# +-# would both be false. +-# +-# AX_COMPARE_VERSION([3.15.7],[eq2],[3.15.8]) +-# +-# would be true because it is only comparing two minor versions. +-# +-# AX_COMPARE_VERSION([3.15.7],[eq0],[3.15]) +-# +-# would be true because it is only comparing the lesser number of minor +-# versions of the two values. +-# +-# Note: The characters that separate the version numbers do not matter. An +-# empty string is the same as version 0. OP is evaluated by autoconf, not +-# configure, so must be a string, not a variable. +-# +-# The author would like to acknowledge Guido Draheim whose advice about +-# the m4_case and m4_ifvaln functions make this macro only include the +-# portions necessary to perform the specific comparison specified by the +-# OP argument in the final configure script. +-# +-# LICENSE +-# +-# Copyright (c) 2008 Tim Toolan +-# +-# Copying and distribution of this file, with or without modification, are +-# permitted in any medium without royalty provided the copyright notice +-# and this notice are preserved. This file is offered as-is, without any +-# warranty. +- +-#serial 11 +- +- +- +- +-case "$host_os" in +-*freebsd*) XENSTORED_KVA=/dev/xen/xenstored ;; +-*) XENSTORED_KVA=/proc/xen/xsd_kva ;; +-esac +- +- +-case "$host_os" in +-*freebsd*) XENSTORED_PORT=/dev/xen/xenstored ;; +-*) XENSTORED_PORT=/proc/xen/xsd_port ;; +-esac +- +- +-# systemd.m4 - Macros to check for and enable systemd -*- Autoconf -*- +-# +-# Copyright (C) 2014 Luis R. Rodriguez +-# +-# 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 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 . +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +-test "x$prefix" = "xNONE" && prefix=$ac_default_prefix +-test "x$exec_prefix" = "xNONE" && exec_prefix=${prefix} +- +-if test "$localstatedir" = '${prefix}/var' ; then +- localstatedir=/var +-fi +- +-bindir=`eval echo $bindir` +-sbindir=`eval echo $sbindir` +-libdir=`eval echo $libdir` +- +-if test "x$sysconfdir" = 'x${prefix}/etc' ; then +- case "$host_os" in +- *freebsd*) +- sysconfdir=$prefix/etc +- ;; +- *solaris*) +- if test "$prefix" = "/usr" ; then +- sysconfdir=/etc +- else +- sysconfdir=$prefix/etc +- fi +- ;; +- *) +- sysconfdir=/etc +- ;; +- esac +-fi +- +- +-# Check whether --with-initddir was given. +-if test "${with_initddir+set}" = set; then : +- withval=$with_initddir; initddir_path=$withval +-else +- case "$host_os" in +- *linux*) +- if test -d $sysconfdir/rc.d/init.d ; then +- initddir_path=$sysconfdir/rc.d/init.d +- else +- initddir_path=$sysconfdir/init.d +- fi +- ;; +- *) +- initddir_path=$sysconfdir/rc.d +- ;; +- esac +-fi +- +- +- +-# Check whether --with-sysconfig-leaf-dir was given. +-if test "${with_sysconfig_leaf_dir+set}" = set; then : +- withval=$with_sysconfig_leaf_dir; config_leaf_dir=$withval +-else +- config_leaf_dir=sysconfig +- if test ! -d /etc/sysconfig ; then config_leaf_dir=default ; fi +-fi +- +-CONFIG_LEAF_DIR=$config_leaf_dir +- +- +- +-# Check whether --with-libexec-leaf-dir was given. +-if test "${with_libexec_leaf_dir+set}" = set; then : +- withval=$with_libexec_leaf_dir; libexec_subdir=$withval +-else +- libexec_subdir=$PACKAGE_TARNAME +-fi +- +- +- +-# Check whether --with-xen-dumpdir was given. +-if test "${with_xen_dumpdir+set}" = set; then : +- withval=$with_xen_dumpdir; xen_dumpdir_path=$withval +-else +- xen_dumpdir_path=$localstatedir/lib/xen/dump +-fi +- +- +- +-# Check whether --with-rundir was given. +-if test "${with_rundir+set}" = set; then : +- withval=$with_rundir; rundir_path=$withval +-else +- rundir_path=$localstatedir/run +-fi +- +- +- +-# Check whether --with-debugdir was given. +-if test "${with_debugdir+set}" = set; then : +- withval=$with_debugdir; debugdir_path=$withval +-else +- debugdir_path=$prefix/lib/debug +-fi +- +- +-if test "$libexecdir" = '${exec_prefix}/libexec' ; then +- case "$host_os" in +- *netbsd*) ;; +- *) +- libexecdir='${exec_prefix}/lib' +- ;; +- esac +-fi +-LIBEXEC=`eval echo $libexecdir/$libexec_subdir` +- +- +-LIBEXEC_BIN=${LIBEXEC}/bin +- +-LIBEXEC_LIB=${LIBEXEC}/lib +- +-LIBEXEC_INC=${LIBEXEC}/include +- +-XENFIRMWAREDIR=${LIBEXEC}/boot +- +- +-XEN_RUN_DIR=$rundir_path/xen +- +- +-XEN_LOG_DIR=$localstatedir/log/xen +- +- +-XEN_LIB_STORED=$localstatedir/lib/xenstored +- +- +-XEN_RUN_STORED=$rundir_path/xenstored +- +- +-XEN_LIB_DIR=$localstatedir/lib/xen +- +- +-SHAREDIR=$prefix/share +- +- +-CONFIG_DIR=$sysconfdir +- +- +-INITD_DIR=$initddir_path +- +- +-XEN_CONFIG_DIR=$CONFIG_DIR/xen +- +- +-XEN_SCRIPT_DIR=$XEN_CONFIG_DIR/scripts +- +- +-case "$host_os" in +-*freebsd*) XEN_LOCK_DIR=$localstatedir/lib ;; +-*netbsd*) XEN_LOCK_DIR=$localstatedir/lib ;; +-*) XEN_LOCK_DIR=$localstatedir/lock ;; +-esac +- +- +-XEN_PAGING_DIR=$localstatedir/lib/xen/xenpaging +- +- +-XEN_DUMP_DIR=$xen_dumpdir_path +- +- +-DEBUG_DIR=$debugdir_path +- +- +- +-# Enable/disable options +- +-# Check whether --enable-rpath was given. +-if test "${enable_rpath+set}" = set; then : +- enableval=$enable_rpath; +-fi +- +- +-if test "x$enable_rpath" = "xno"; then : +- +- ax_cv_rpath="n" +- +-elif test "x$enable_rpath" = "xyes"; then : +- +- ax_cv_rpath="y" +- +-elif test -z $ax_cv_rpath; then : +- +- ax_cv_rpath="n" +- +-fi +-rpath=$ax_cv_rpath +- +- +- +-# Check whether --enable-githttp was given. +-if test "${enable_githttp+set}" = set; then : +- enableval=$enable_githttp; +-fi +- +- +-if test "x$enable_githttp" = "xno"; then : +- +- ax_cv_githttp="n" +- +-elif test "x$enable_githttp" = "xyes"; then : +- +- ax_cv_githttp="y" +- +-elif test -z $ax_cv_githttp; then : +- +- ax_cv_githttp="n" +- +-fi +-githttp=$ax_cv_githttp +- +- +- +-# Check whether --enable-monitors was given. +-if test "${enable_monitors+set}" = set; then : +- enableval=$enable_monitors; +-fi +- +- +-if test "x$enable_monitors" = "xno"; then : +- +- ax_cv_monitors="n" +- +-elif test "x$enable_monitors" = "xyes"; then : +- +- ax_cv_monitors="y" +- +-elif test -z $ax_cv_monitors; then : +- +- ax_cv_monitors="y" +- +-fi +-monitors=$ax_cv_monitors +- +- +- +-# Check whether --enable-ocamltools was given. +-if test "${enable_ocamltools+set}" = set; then : +- enableval=$enable_ocamltools; +-fi +- +- +-if test "x$enable_ocamltools" = "xno"; then : +- +- ax_cv_ocamltools="n" +- +-elif test "x$enable_ocamltools" = "xyes"; then : +- +- ax_cv_ocamltools="y" +- +-elif test -z $ax_cv_ocamltools; then : +- +- ax_cv_ocamltools="y" +- +-fi +-ocamltools=$ax_cv_ocamltools +- +- +- +-# Check whether --enable-xsmpolicy was given. +-if test "${enable_xsmpolicy+set}" = set; then : +- enableval=$enable_xsmpolicy; +-fi +- +- +-if test "x$enable_xsmpolicy" = "xno"; then : +- +- ax_cv_xsmpolicy="n" +- +-elif test "x$enable_xsmpolicy" = "xyes"; then : +- +- ax_cv_xsmpolicy="y" +- +-elif test -z $ax_cv_xsmpolicy; then : +- +- ax_cv_xsmpolicy="y" +- +-fi +-xsmpolicy=$ax_cv_xsmpolicy +- +- +- +-# Check whether --enable-ovmf was given. +-if test "${enable_ovmf+set}" = set; then : +- enableval=$enable_ovmf; +-fi +- +- +-if test "x$enable_ovmf" = "xno"; then : +- +- ax_cv_ovmf="n" +- +-elif test "x$enable_ovmf" = "xyes"; then : +- +- ax_cv_ovmf="y" +- +-elif test -z $ax_cv_ovmf; then : +- +- ax_cv_ovmf="n" +- +-fi +-ovmf=$ax_cv_ovmf +- +- +- +-# Check whether --enable-seabios was given. +-if test "${enable_seabios+set}" = set; then : +- enableval=$enable_seabios; +-fi +- +- +-if test "x$enable_seabios" = "xno"; then : +- +- ax_cv_seabios="n" +- +-elif test "x$enable_seabios" = "xyes"; then : +- +- ax_cv_seabios="y" +- +-elif test -z $ax_cv_seabios; then : +- +- ax_cv_seabios="y" +- +-fi +-seabios=$ax_cv_seabios +- +- +- +-# Check whether --enable-golang was given. +-if test "${enable_golang+set}" = set; then : +- enableval=$enable_golang; +-fi +- +- +-if test "x$enable_golang" = "xno"; then : +- +- ax_cv_golang="n" +- +-elif test "x$enable_golang" = "xyes"; then : +- +- ax_cv_golang="y" +- +-elif test -z $ax_cv_golang; then : +- +- ax_cv_golang="y" +- +-fi +-golang=$ax_cv_golang +- +- +- +- +-# Check whether --with-linux-backend-modules was given. +-if test "${with_linux_backend_modules+set}" = set; then : +- withval=$with_linux_backend_modules; LINUX_BACKEND_MODULES="$withval" +-else +- case "$host_os" in +-*linux*) +-LINUX_BACKEND_MODULES=" +-xen-evtchn +-xen-gntdev +-xen-gntalloc +-xen-blkback +-xen-netback +-xen-pciback +-evtchn +-gntdev +-netbk +-blkbk +-xen-scsibk +-usbbk +-pciback +-xen-acpi-processor +-" +-;; +-*) +-LINUX_BACKEND_MODULES= +-;; +-esac +-fi +- +-LINUX_BACKEND_MODULES="`eval echo $LINUX_BACKEND_MODULES`" +- +- +-# Check whether --enable-qemu-traditional was given. +-if test "${enable_qemu_traditional+set}" = set; then : +- enableval=$enable_qemu_traditional; +-else +- +- case "$host_cpu" in +- i[3456]86|x86_64) +- enable_qemu_traditional="yes";; +- *) enable_qemu_traditional="no";; +- esac +- case "$host_os" in +- freebsd*) +- enable_qemu_traditional="no";; +- esac +- +- +-fi +- +-if test "x$enable_qemu_traditional" = "xyes"; then : +- +- +-$as_echo "#define HAVE_QEMU_TRADITIONAL 1" >>confdefs.h +- +- qemu_traditional=y +-else +- +- qemu_traditional=n +- +-fi +- +- +-# Check whether --enable-rombios was given. +-if test "${enable_rombios+set}" = set; then : +- enableval=$enable_rombios; +-else +- +- if test "x$enable_qemu_traditional" = "xyes"; then : +- +- enable_rombios="yes" +- +-else +- +- enable_rombios="no" +- +-fi +- +-fi +- +-if test "x$enable_rombios" = "xyes"; then : +- +- # Extract the first word of "as86", so it can be a program name with args. +-set dummy as86; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_AS86+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $AS86 in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_AS86="$AS86" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_AS86="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- test -z "$ac_cv_path_AS86" && ac_cv_path_AS86="no" +- ;; +-esac +-fi +-AS86=$ac_cv_path_AS86 +-if test -n "$AS86"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS86" >&5 +-$as_echo "$AS86" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-if test x"${AS86}" = x"no" +-then +- as_fn_error $? "Unable to find as86, please install as86" "$LINENO" 5 +-fi +- # Extract the first word of "ld86", so it can be a program name with args. +-set dummy ld86; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_LD86+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $LD86 in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_LD86="$LD86" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_LD86="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- test -z "$ac_cv_path_LD86" && ac_cv_path_LD86="no" +- ;; +-esac +-fi +-LD86=$ac_cv_path_LD86 +-if test -n "$LD86"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD86" >&5 +-$as_echo "$LD86" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-if test x"${LD86}" = x"no" +-then +- as_fn_error $? "Unable to find ld86, please install ld86" "$LINENO" 5 +-fi +- # Extract the first word of "bcc", so it can be a program name with args. +-set dummy bcc; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_BCC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $BCC in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_BCC="$BCC" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_BCC="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- test -z "$ac_cv_path_BCC" && ac_cv_path_BCC="no" +- ;; +-esac +-fi +-BCC=$ac_cv_path_BCC +-if test -n "$BCC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BCC" >&5 +-$as_echo "$BCC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-if test x"${BCC}" = x"no" +-then +- as_fn_error $? "Unable to find bcc, please install bcc" "$LINENO" 5 +-fi +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_version_number in -llzma" >&5 +-$as_echo_n "checking for lzma_version_number in -llzma... " >&6; } +-if ${ac_cv_lib_lzma_lzma_version_number+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-llzma $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char lzma_version_number (); +-int +-main () +-{ +-return lzma_version_number (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_lzma_lzma_version_number=yes +-else +- ac_cv_lib_lzma_lzma_version_number=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_version_number" >&5 +-$as_echo "$ac_cv_lib_lzma_lzma_version_number" >&6; } +-if test "x$ac_cv_lib_lzma_lzma_version_number" = xyes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBLZMA 1 +-_ACEOF +- +- LIBS="-llzma $LIBS" +- +-else +- as_fn_error $? "Could not find lzma, needed to build rombios" "$LINENO" 5 +-fi +- +- +-$as_echo "#define HAVE_ROMBIOS 1" >>confdefs.h +- +- rombios=y +-else +- +- rombios=n +- +-fi +- +- +- +-# Check whether --with-system-qemu was given. +-if test "${with_system_qemu+set}" = set; then : +- withval=$with_system_qemu; +- case $withval in +- yes) +- qemu_xen=n ; qemu_xen_path="qemu-system-i386" +- qemu_xen_systemd="/usr/bin/env $qemu_xen_path" ;; +- no) +- qemu_xen=y ;; +- *) +- qemu_xen=n ; qemu_xen_path="$withval" ; +- qemu_xen_systemd="$qemu_xen_path" ;; +- esac +- +-else +- +- case "$host_cpu" in +- i[3456]86|x86_64) +- qemu_xen=y;; +- arm*|aarch64) +- qemu_xen=y;; +- *) qemu_xen=n;; +- esac +- +-fi +- +-if test "x$qemu_xen" = "xy"; then : +- +- qemu_xen_path="$LIBEXEC_BIN/qemu-system-i386" +- qemu_xen_systemd="$qemu_xen_path" +- +-fi +- +-cat >>confdefs.h <<_ACEOF +-#define QEMU_XEN_PATH "$qemu_xen_path" +-_ACEOF +- +- +- +- +- +- +-# Check whether --with-stubdom-qmp-proxy was given. +-if test "${with_stubdom_qmp_proxy+set}" = set; then : +- withval=$with_stubdom_qmp_proxy; +- stubdom_qmp_proxy="$withval" +- +-else +- +- stubdom_qmp_proxy="$bindir/vchan-socket-proxy" +- +-fi +- +- +-cat >>confdefs.h <<_ACEOF +-#define STUBDOM_QMP_PROXY_PATH "$stubdom_qmp_proxy" +-_ACEOF +- +- +- +-# Check whether --with-system-seabios was given. +-if test "${with_system_seabios+set}" = set; then : +- withval=$with_system_seabios; +- # Disable compilation of SeaBIOS. +- seabios=n +- case $withval in +- no) seabios_path= ;; +- /*) seabios_path=$withval ;; +- *) as_fn_error $? "Seabios specified, but is not an absolute path" "$LINENO" 5 ;; +- esac +- +-fi +- +-if test "x$seabios" = "xy" -o -n "$seabios_path" ; then : +- +- +-cat >>confdefs.h <<_ACEOF +-#define SEABIOS_PATH "${seabios_path:-$XENFIRMWAREDIR/seabios.bin}" +-_ACEOF +- +- +-fi +- +- +-# Check whether --with-system-ovmf was given. +-if test "${with_system_ovmf+set}" = set; then : +- withval=$with_system_ovmf; +- # Disable compilation of OVMF. +- ovmf=n +- case $withval in +- no) ovmf_path= ;; +- /*) ovmf_path=$withval ;; +- *) as_fn_error $? "OVMF specified, but is not an absolute path" "$LINENO" 5 ;; +- esac +- +-fi +- +-if test "x$ovmf" = "xy" -o -n "$ovmf_path" ; then : +- +- +-cat >>confdefs.h <<_ACEOF +-#define OVMF_PATH "${ovmf_path:-$XENFIRMWAREDIR/ovmf.bin}" +-_ACEOF +- +- +-fi +- +-# Check whether --enable-ipxe was given. +-if test "${enable_ipxe+set}" = set; then : +- enableval=$enable_ipxe; +- if test "x$enable_ipxe" = "xno"; then : +- ipxe=n +-else +- ipxe=y +-fi +- +-else +- +- if test "x$enable_rombios" = "xno"; then : +- ipxe=n +-else +- ipxe=y +-fi +- +-fi +- +- +-# Check whether --with-system-ipxe was given. +-if test "${with_system_ipxe+set}" = set; then : +- withval=$with_system_ipxe; +- case $withval in +- no) as_fn_error $? "--without-system-ipxe has no effect" "$LINENO" 5 ;; +- /*) ipxe_path=$withval; ipxe=n ;; +- *) as_fn_error $? "IPXE specified, but is not an absolute path" "$LINENO" 5 ;; +- esac +- +-fi +- +-if test "x$ipxe" = "xy" -o -n "$ipxe_path" ; then : +- +- +- if test "x$enable_rombios" = "xno"; then : +- +- as_fn_error $? "Rombios is required to use IPXE" "$LINENO" 5 +- +-fi +- +- +-cat >>confdefs.h <<_ACEOF +-#define IPXE_PATH "${ipxe_path:-$XENFIRMWAREDIR/ipxe.bin}" +-_ACEOF +- +- +-fi +- +- +- +-# Check whether --with-extra-qemuu-configure-args was given. +-if test "${with_extra_qemuu_configure_args+set}" = set; then : +- withval=$with_extra_qemuu_configure_args; +- case $withval in +- no) EXTRA_QEMUU_CONFIGURE_ARGS= ;; +- *) EXTRA_QEMUU_CONFIGURE_ARGS=$withval ;; +- esac +- +-fi +- +- +- +- +- +- +- +- +-for cppflag in $PREPEND_INCLUDES +-do +- PREPEND_CPPFLAGS="$PREPEND_CPPFLAGS -I$cppflag" +-done +-for ldflag in $PREPEND_LIB +-do +- PREPEND_LDFLAGS="$PREPEND_LDFLAGS -L$ldflag" +-done +-for cppflag in $APPEND_INCLUDES +-do +- APPEND_CPPFLAGS="$APPEND_CPPFLAGS -I$cppflag" +-done +-for ldflag in $APPEND_LIB +-do +- APPEND_LDFLAGS="$APPEND_LDFLAGS -L$ldflag" +-done +-if test ! -z "$EXTRA_PREFIX" ; then +- CPPFLAGS="$CPPFLAGS -I$EXTRA_PREFIX/include" +- LDFLAGS="$LDFLAGS -L$EXTRA_PREFIX/lib" +-fi +-CPPFLAGS="$PREPEND_CPPFLAGS $CPPFLAGS $APPEND_CPPFLAGS" +-LDFLAGS="$PREPEND_LDFLAGS $LDFLAGS $APPEND_LDFLAGS" +- +- +- +- +- +- +- +- +- +- +- +- +- +-# Checks for programs. +-ac_ext=c +-ac_cpp='$CPP $CPPFLAGS' +-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +-ac_compiler_gnu=$ac_cv_c_compiler_gnu +-if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +-set dummy ${ac_tool_prefix}gcc; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_CC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$CC"; then +- ac_cv_prog_CC="$CC" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_CC="${ac_tool_prefix}gcc" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-CC=$ac_cv_prog_CC +-if test -n "$CC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +-$as_echo "$CC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_CC"; then +- ac_ct_CC=$CC +- # Extract the first word of "gcc", so it can be a program name with args. +-set dummy gcc; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_CC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_CC"; then +- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_CC="gcc" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_CC=$ac_cv_prog_ac_ct_CC +-if test -n "$ac_ct_CC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +-$as_echo "$ac_ct_CC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_CC" = x; then +- CC="" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- CC=$ac_ct_CC +- fi +-else +- CC="$ac_cv_prog_CC" +-fi +- +-if test -z "$CC"; then +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +-set dummy ${ac_tool_prefix}cc; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_CC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$CC"; then +- ac_cv_prog_CC="$CC" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_CC="${ac_tool_prefix}cc" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-CC=$ac_cv_prog_CC +-if test -n "$CC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +-$as_echo "$CC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- fi +-fi +-if test -z "$CC"; then +- # Extract the first word of "cc", so it can be a program name with args. +-set dummy cc; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_CC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$CC"; then +- ac_cv_prog_CC="$CC" # Let the user override the test. +-else +- ac_prog_rejected=no +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then +- ac_prog_rejected=yes +- continue +- fi +- ac_cv_prog_CC="cc" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-if test $ac_prog_rejected = yes; then +- # We found a bogon in the path, so make sure we never use it. +- set dummy $ac_cv_prog_CC +- shift +- if test $# != 0; then +- # We chose a different compiler from the bogus one. +- # However, it has the same basename, so the bogon will be chosen +- # first if we set CC to just the basename; use the full file name. +- shift +- ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" +- fi +-fi +-fi +-fi +-CC=$ac_cv_prog_CC +-if test -n "$CC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +-$as_echo "$CC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$CC"; then +- if test -n "$ac_tool_prefix"; then +- for ac_prog in cl.exe +- do +- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +-set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_CC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$CC"; then +- ac_cv_prog_CC="$CC" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_CC="$ac_tool_prefix$ac_prog" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-CC=$ac_cv_prog_CC +-if test -n "$CC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +-$as_echo "$CC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- test -n "$CC" && break +- done +-fi +-if test -z "$CC"; then +- ac_ct_CC=$CC +- for ac_prog in cl.exe +-do +- # Extract the first word of "$ac_prog", so it can be a program name with args. +-set dummy $ac_prog; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_CC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_CC"; then +- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_CC="$ac_prog" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_CC=$ac_cv_prog_ac_ct_CC +-if test -n "$ac_ct_CC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +-$as_echo "$ac_ct_CC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- test -n "$ac_ct_CC" && break +-done +- +- if test "x$ac_ct_CC" = x; then +- CC="" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- CC=$ac_ct_CC +- fi +-fi +- +-fi +- +- +-test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "no acceptable C compiler found in \$PATH +-See \`config.log' for more details" "$LINENO" 5; } +- +-# Provide some information about the compiler. +-$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +-set X $ac_compile +-ac_compiler=$2 +-for ac_option in --version -v -V -qversion; do +- { { ac_try="$ac_compiler $ac_option >&5" +-case "(($ac_try" in +- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +- *) ac_try_echo=$ac_try;; +-esac +-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +-$as_echo "$ac_try_echo"; } >&5 +- (eval "$ac_compiler $ac_option >&5") 2>conftest.err +- ac_status=$? +- if test -s conftest.err; then +- sed '10a\ +-... rest of stderr output deleted ... +- 10q' conftest.err >conftest.er1 +- cat conftest.er1 >&5 +- fi +- rm -f conftest.er1 conftest.err +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; } +-done +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +-$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +-if ${ac_cv_c_compiler_gnu+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +-#ifndef __GNUC__ +- choke me +-#endif +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_compiler_gnu=yes +-else +- ac_compiler_gnu=no +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +-ac_cv_c_compiler_gnu=$ac_compiler_gnu +- +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +-$as_echo "$ac_cv_c_compiler_gnu" >&6; } +-if test $ac_compiler_gnu = yes; then +- GCC=yes +-else +- GCC= +-fi +-ac_test_CFLAGS=${CFLAGS+set} +-ac_save_CFLAGS=$CFLAGS +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +-$as_echo_n "checking whether $CC accepts -g... " >&6; } +-if ${ac_cv_prog_cc_g+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_save_c_werror_flag=$ac_c_werror_flag +- ac_c_werror_flag=yes +- ac_cv_prog_cc_g=no +- CFLAGS="-g" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_prog_cc_g=yes +-else +- CFLAGS="" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- +-else +- ac_c_werror_flag=$ac_save_c_werror_flag +- CFLAGS="-g" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_prog_cc_g=yes +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- ac_c_werror_flag=$ac_save_c_werror_flag +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +-$as_echo "$ac_cv_prog_cc_g" >&6; } +-if test "$ac_test_CFLAGS" = set; then +- CFLAGS=$ac_save_CFLAGS +-elif test $ac_cv_prog_cc_g = yes; then +- if test "$GCC" = yes; then +- CFLAGS="-g -O2" +- else +- CFLAGS="-g" +- fi +-else +- if test "$GCC" = yes; then +- CFLAGS="-O2" +- else +- CFLAGS= +- fi +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +-$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +-if ${ac_cv_prog_cc_c89+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_cv_prog_cc_c89=no +-ac_save_CC=$CC +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include +-#include +-struct stat; +-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +-struct buf { int x; }; +-FILE * (*rcsopen) (struct buf *, struct stat *, int); +-static char *e (p, i) +- char **p; +- int i; +-{ +- return p[i]; +-} +-static char *f (char * (*g) (char **, int), char **p, ...) +-{ +- char *s; +- va_list v; +- va_start (v,p); +- s = g (p, va_arg (v,int)); +- va_end (v); +- return s; +-} +- +-/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has +- function prototypes and stuff, but not '\xHH' hex character constants. +- These don't provoke an error unfortunately, instead are silently treated +- as 'x'. The following induces an error, until -std is added to get +- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an +- array size at least. It's necessary to write '\x00'==0 to get something +- that's true only with -std. */ +-int osf4_cc_array ['\x00' == 0 ? 1 : -1]; +- +-/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters +- inside strings and character constants. */ +-#define FOO(x) 'x' +-int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; +- +-int test (int i, double x); +-struct s1 {int (*f) (int a);}; +-struct s2 {int (*f) (double a);}; +-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +-int argc; +-char **argv; +-int +-main () +-{ +-return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; +- ; +- return 0; +-} +-_ACEOF +-for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ +- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +-do +- CC="$ac_save_CC $ac_arg" +- if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_prog_cc_c89=$ac_arg +-fi +-rm -f core conftest.err conftest.$ac_objext +- test "x$ac_cv_prog_cc_c89" != "xno" && break +-done +-rm -f conftest.$ac_ext +-CC=$ac_save_CC +- +-fi +-# AC_CACHE_VAL +-case "x$ac_cv_prog_cc_c89" in +- x) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +-$as_echo "none needed" >&6; } ;; +- xno) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +-$as_echo "unsupported" >&6; } ;; +- *) +- CC="$CC $ac_cv_prog_cc_c89" +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +-$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +-esac +-if test "x$ac_cv_prog_cc_c89" != xno; then : +- +-fi +- +-ac_ext=c +-ac_cpp='$CPP $CPPFLAGS' +-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +-ac_compiler_gnu=$ac_cv_c_compiler_gnu +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +-$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +-set x ${MAKE-make} +-ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +-if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- cat >conftest.make <<\_ACEOF +-SHELL = /bin/sh +-all: +- @echo '@@@%%%=$(MAKE)=@@@%%%' +-_ACEOF +-# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +-case `${MAKE-make} -f conftest.make 2>/dev/null` in +- *@@@%%%=?*=@@@%%%*) +- eval ac_cv_prog_make_${ac_make}_set=yes;; +- *) +- eval ac_cv_prog_make_${ac_make}_set=no;; +-esac +-rm -f conftest.make +-fi +-if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- SET_MAKE= +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- SET_MAKE="MAKE=${MAKE-make}" +-fi +- +-# Find a good install program. We prefer a C program (faster), +-# so one script is as good as another. But avoid the broken or +-# incompatible versions: +-# SysV /etc/install, /usr/sbin/install +-# SunOS /usr/etc/install +-# IRIX /sbin/install +-# AIX /bin/install +-# AmigaOS /C/install, which installs bootblocks on floppy discs +-# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +-# AFS /usr/afsws/bin/install, which mishandles nonexistent args +-# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +-# OS/2's system install, which has a completely different semantic +-# ./install, which can be erroneously created by make from ./install.sh. +-# Reject install programs that cannot install multiple files. +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +-$as_echo_n "checking for a BSD-compatible install... " >&6; } +-if test -z "$INSTALL"; then +-if ${ac_cv_path_install+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- # Account for people who put trailing slashes in PATH elements. +-case $as_dir/ in #(( +- ./ | .// | /[cC]/* | \ +- /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ +- ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ +- /usr/ucb/* ) ;; +- *) +- # OSF1 and SCO ODT 3.0 have their own names for install. +- # Don't use installbsd from OSF since it installs stuff as root +- # by default. +- for ac_prog in ginstall scoinst install; do +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then +- if test $ac_prog = install && +- grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then +- # AIX install. It has an incompatible calling convention. +- : +- elif test $ac_prog = install && +- grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then +- # program-specific install script used by HP pwplus--don't use. +- : +- else +- rm -rf conftest.one conftest.two conftest.dir +- echo one > conftest.one +- echo two > conftest.two +- mkdir conftest.dir +- if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && +- test -s conftest.one && test -s conftest.two && +- test -s conftest.dir/conftest.one && +- test -s conftest.dir/conftest.two +- then +- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" +- break 3 +- fi +- fi +- fi +- done +- done +- ;; +-esac +- +- done +-IFS=$as_save_IFS +- +-rm -rf conftest.one conftest.two conftest.dir +- +-fi +- if test "${ac_cv_path_install+set}" = set; then +- INSTALL=$ac_cv_path_install +- else +- # As a last resort, use the slow shell script. Don't cache a +- # value for INSTALL within a source directory, because that will +- # break other packages using the cache if that directory is +- # removed, or if the value is a relative name. +- INSTALL=$ac_install_sh +- fi +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +-$as_echo "$INSTALL" >&6; } +- +-# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +-# It thinks the first close brace ends the variable substitution. +-test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' +- +-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' +- +-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' +- +-# Extract the first word of "bison", so it can be a program name with args. +-set dummy bison; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_BISON+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $BISON in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_BISON="$BISON" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-fi +-BISON=$ac_cv_path_BISON +-if test -n "$BISON"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 +-$as_echo "$BISON" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-# Extract the first word of "flex", so it can be a program name with args. +-set dummy flex; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_FLEX+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $FLEX in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-fi +-FLEX=$ac_cv_path_FLEX +-if test -n "$FLEX"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 +-$as_echo "$FLEX" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-# Extract the first word of "perl", so it can be a program name with args. +-set dummy perl; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_PERL+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $PERL in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_PERL="$PERL" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" +- ;; +-esac +-fi +-PERL=$ac_cv_path_PERL +-if test -n "$PERL"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 +-$as_echo "$PERL" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-if test x"${PERL}" = x"no" +-then +- as_fn_error $? "Unable to find perl, please install perl" "$LINENO" 5 +-fi +-# Extract the first word of "awk", so it can be a program name with args. +-set dummy awk; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_AWK+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $AWK in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_AWK="$AWK" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="no" +- ;; +-esac +-fi +-AWK=$ac_cv_path_AWK +-if test -n "$AWK"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +-$as_echo "$AWK" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-if test x"${AWK}" = x"no" +-then +- as_fn_error $? "Unable to find awk, please install awk" "$LINENO" 5 +-fi +- +- # checking for ocamlc +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}ocamlc", so it can be a program name with args. +-set dummy ${ac_tool_prefix}ocamlc; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_OCAMLC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$OCAMLC"; then +- ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_OCAMLC="${ac_tool_prefix}ocamlc" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-OCAMLC=$ac_cv_prog_OCAMLC +-if test -n "$OCAMLC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5 +-$as_echo "$OCAMLC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_OCAMLC"; then +- ac_ct_OCAMLC=$OCAMLC +- # Extract the first word of "ocamlc", so it can be a program name with args. +-set dummy ocamlc; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_OCAMLC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_OCAMLC"; then +- ac_cv_prog_ac_ct_OCAMLC="$ac_ct_OCAMLC" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_OCAMLC="ocamlc" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_OCAMLC=$ac_cv_prog_ac_ct_OCAMLC +-if test -n "$ac_ct_OCAMLC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLC" >&5 +-$as_echo "$ac_ct_OCAMLC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_OCAMLC" = x; then +- OCAMLC="no" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- OCAMLC=$ac_ct_OCAMLC +- fi +-else +- OCAMLC="$ac_cv_prog_OCAMLC" +-fi +- +- +- if test "$OCAMLC" != "no"; then +- OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version* *\(.*\)$|\1|p'` +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml version is $OCAMLVERSION" >&5 +-$as_echo "OCaml version is $OCAMLVERSION" >&6; } +- # If OCAMLLIB is set, use it +- if test "$OCAMLLIB" = ""; then +- OCAMLLIB=`$OCAMLC -where 2>/dev/null || $OCAMLC -v|tail -1|cut -d ' ' -f 4` +- else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCAMLLIB previously set; preserving it." >&5 +-$as_echo "OCAMLLIB previously set; preserving it." >&6; } +- fi +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: OCaml library path is $OCAMLLIB" >&5 +-$as_echo "OCaml library path is $OCAMLLIB" >&6; } +- +- +- +- +- # checking for ocamlopt +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}ocamlopt", so it can be a program name with args. +-set dummy ${ac_tool_prefix}ocamlopt; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_OCAMLOPT+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$OCAMLOPT"; then +- ac_cv_prog_OCAMLOPT="$OCAMLOPT" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_OCAMLOPT="${ac_tool_prefix}ocamlopt" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-OCAMLOPT=$ac_cv_prog_OCAMLOPT +-if test -n "$OCAMLOPT"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5 +-$as_echo "$OCAMLOPT" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_OCAMLOPT"; then +- ac_ct_OCAMLOPT=$OCAMLOPT +- # Extract the first word of "ocamlopt", so it can be a program name with args. +-set dummy ocamlopt; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_OCAMLOPT+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_OCAMLOPT"; then +- ac_cv_prog_ac_ct_OCAMLOPT="$ac_ct_OCAMLOPT" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_OCAMLOPT="ocamlopt" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_OCAMLOPT=$ac_cv_prog_ac_ct_OCAMLOPT +-if test -n "$ac_ct_OCAMLOPT"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLOPT" >&5 +-$as_echo "$ac_ct_OCAMLOPT" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_OCAMLOPT" = x; then +- OCAMLOPT="no" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- OCAMLOPT=$ac_ct_OCAMLOPT +- fi +-else +- OCAMLOPT="$ac_cv_prog_OCAMLOPT" +-fi +- +- OCAMLBEST=byte +- if test "$OCAMLOPT" = "no"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlopt; bytecode compilation only." >&5 +-$as_echo "$as_me: WARNING: Cannot find ocamlopt; bytecode compilation only." >&2;} +- else +- TMPVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' ` +- if test "$TMPVERSION" != "$OCAMLVERSION" ; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlopt discarded." >&5 +-$as_echo "versions differs from ocamlc; ocamlopt discarded." >&6; } +- OCAMLOPT=no +- else +- OCAMLBEST=opt +- fi +- fi +- +- +- +- # checking for ocamlc.opt +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}ocamlc.opt", so it can be a program name with args. +-set dummy ${ac_tool_prefix}ocamlc.opt; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_OCAMLCDOTOPT+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$OCAMLCDOTOPT"; then +- ac_cv_prog_OCAMLCDOTOPT="$OCAMLCDOTOPT" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_OCAMLCDOTOPT="${ac_tool_prefix}ocamlc.opt" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-OCAMLCDOTOPT=$ac_cv_prog_OCAMLCDOTOPT +-if test -n "$OCAMLCDOTOPT"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLCDOTOPT" >&5 +-$as_echo "$OCAMLCDOTOPT" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_OCAMLCDOTOPT"; then +- ac_ct_OCAMLCDOTOPT=$OCAMLCDOTOPT +- # Extract the first word of "ocamlc.opt", so it can be a program name with args. +-set dummy ocamlc.opt; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_OCAMLCDOTOPT+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_OCAMLCDOTOPT"; then +- ac_cv_prog_ac_ct_OCAMLCDOTOPT="$ac_ct_OCAMLCDOTOPT" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_OCAMLCDOTOPT="ocamlc.opt" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_OCAMLCDOTOPT=$ac_cv_prog_ac_ct_OCAMLCDOTOPT +-if test -n "$ac_ct_OCAMLCDOTOPT"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLCDOTOPT" >&5 +-$as_echo "$ac_ct_OCAMLCDOTOPT" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_OCAMLCDOTOPT" = x; then +- OCAMLCDOTOPT="no" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- OCAMLCDOTOPT=$ac_ct_OCAMLCDOTOPT +- fi +-else +- OCAMLCDOTOPT="$ac_cv_prog_OCAMLCDOTOPT" +-fi +- +- if test "$OCAMLCDOTOPT" != "no"; then +- TMPVERSION=`$OCAMLCDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' ` +- if test "$TMPVERSION" != "$OCAMLVERSION" ; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: versions differs from ocamlc; ocamlc.opt discarded." >&5 +-$as_echo "versions differs from ocamlc; ocamlc.opt discarded." >&6; } +- else +- OCAMLC=$OCAMLCDOTOPT +- fi +- fi +- +- # checking for ocamlopt.opt +- if test "$OCAMLOPT" != "no" ; then +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}ocamlopt.opt", so it can be a program name with args. +-set dummy ${ac_tool_prefix}ocamlopt.opt; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_OCAMLOPTDOTOPT+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$OCAMLOPTDOTOPT"; then +- ac_cv_prog_OCAMLOPTDOTOPT="$OCAMLOPTDOTOPT" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_OCAMLOPTDOTOPT="${ac_tool_prefix}ocamlopt.opt" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-OCAMLOPTDOTOPT=$ac_cv_prog_OCAMLOPTDOTOPT +-if test -n "$OCAMLOPTDOTOPT"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPTDOTOPT" >&5 +-$as_echo "$OCAMLOPTDOTOPT" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_OCAMLOPTDOTOPT"; then +- ac_ct_OCAMLOPTDOTOPT=$OCAMLOPTDOTOPT +- # Extract the first word of "ocamlopt.opt", so it can be a program name with args. +-set dummy ocamlopt.opt; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_OCAMLOPTDOTOPT+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_OCAMLOPTDOTOPT"; then +- ac_cv_prog_ac_ct_OCAMLOPTDOTOPT="$ac_ct_OCAMLOPTDOTOPT" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_OCAMLOPTDOTOPT="ocamlopt.opt" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_OCAMLOPTDOTOPT=$ac_cv_prog_ac_ct_OCAMLOPTDOTOPT +-if test -n "$ac_ct_OCAMLOPTDOTOPT"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLOPTDOTOPT" >&5 +-$as_echo "$ac_ct_OCAMLOPTDOTOPT" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_OCAMLOPTDOTOPT" = x; then +- OCAMLOPTDOTOPT="no" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- OCAMLOPTDOTOPT=$ac_ct_OCAMLOPTDOTOPT +- fi +-else +- OCAMLOPTDOTOPT="$ac_cv_prog_OCAMLOPTDOTOPT" +-fi +- +- if test "$OCAMLOPTDOTOPT" != "no"; then +- TMPVERSION=`$OCAMLOPTDOTOPT -v | sed -n -e 's|.*version* *\(.*\)$|\1|p' ` +- if test "$TMPVERSION" != "$OCAMLVERSION" ; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: version differs from ocamlc; ocamlopt.opt discarded." >&5 +-$as_echo "version differs from ocamlc; ocamlopt.opt discarded." >&6; } +- else +- OCAMLOPT=$OCAMLOPTDOTOPT +- fi +- fi +- fi +- +- +- fi +- +- +- +- # checking for ocaml toplevel +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}ocaml", so it can be a program name with args. +-set dummy ${ac_tool_prefix}ocaml; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_OCAML+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$OCAML"; then +- ac_cv_prog_OCAML="$OCAML" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_OCAML="${ac_tool_prefix}ocaml" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-OCAML=$ac_cv_prog_OCAML +-if test -n "$OCAML"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAML" >&5 +-$as_echo "$OCAML" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_OCAML"; then +- ac_ct_OCAML=$OCAML +- # Extract the first word of "ocaml", so it can be a program name with args. +-set dummy ocaml; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_OCAML+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_OCAML"; then +- ac_cv_prog_ac_ct_OCAML="$ac_ct_OCAML" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_OCAML="ocaml" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_OCAML=$ac_cv_prog_ac_ct_OCAML +-if test -n "$ac_ct_OCAML"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAML" >&5 +-$as_echo "$ac_ct_OCAML" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_OCAML" = x; then +- OCAML="no" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- OCAML=$ac_ct_OCAML +- fi +-else +- OCAML="$ac_cv_prog_OCAML" +-fi +- +- +- # checking for ocamldep +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}ocamldep", so it can be a program name with args. +-set dummy ${ac_tool_prefix}ocamldep; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_OCAMLDEP+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$OCAMLDEP"; then +- ac_cv_prog_OCAMLDEP="$OCAMLDEP" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_OCAMLDEP="${ac_tool_prefix}ocamldep" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-OCAMLDEP=$ac_cv_prog_OCAMLDEP +-if test -n "$OCAMLDEP"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5 +-$as_echo "$OCAMLDEP" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_OCAMLDEP"; then +- ac_ct_OCAMLDEP=$OCAMLDEP +- # Extract the first word of "ocamldep", so it can be a program name with args. +-set dummy ocamldep; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_OCAMLDEP+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_OCAMLDEP"; then +- ac_cv_prog_ac_ct_OCAMLDEP="$ac_ct_OCAMLDEP" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_OCAMLDEP="ocamldep" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_OCAMLDEP=$ac_cv_prog_ac_ct_OCAMLDEP +-if test -n "$ac_ct_OCAMLDEP"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLDEP" >&5 +-$as_echo "$ac_ct_OCAMLDEP" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_OCAMLDEP" = x; then +- OCAMLDEP="no" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- OCAMLDEP=$ac_ct_OCAMLDEP +- fi +-else +- OCAMLDEP="$ac_cv_prog_OCAMLDEP" +-fi +- +- +- # checking for ocamlmktop +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}ocamlmktop", so it can be a program name with args. +-set dummy ${ac_tool_prefix}ocamlmktop; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_OCAMLMKTOP+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$OCAMLMKTOP"; then +- ac_cv_prog_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_OCAMLMKTOP="${ac_tool_prefix}ocamlmktop" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-OCAMLMKTOP=$ac_cv_prog_OCAMLMKTOP +-if test -n "$OCAMLMKTOP"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKTOP" >&5 +-$as_echo "$OCAMLMKTOP" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_OCAMLMKTOP"; then +- ac_ct_OCAMLMKTOP=$OCAMLMKTOP +- # Extract the first word of "ocamlmktop", so it can be a program name with args. +-set dummy ocamlmktop; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_OCAMLMKTOP+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_OCAMLMKTOP"; then +- ac_cv_prog_ac_ct_OCAMLMKTOP="$ac_ct_OCAMLMKTOP" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_OCAMLMKTOP="ocamlmktop" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_OCAMLMKTOP=$ac_cv_prog_ac_ct_OCAMLMKTOP +-if test -n "$ac_ct_OCAMLMKTOP"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLMKTOP" >&5 +-$as_echo "$ac_ct_OCAMLMKTOP" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_OCAMLMKTOP" = x; then +- OCAMLMKTOP="no" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- OCAMLMKTOP=$ac_ct_OCAMLMKTOP +- fi +-else +- OCAMLMKTOP="$ac_cv_prog_OCAMLMKTOP" +-fi +- +- +- # checking for ocamlmklib +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}ocamlmklib", so it can be a program name with args. +-set dummy ${ac_tool_prefix}ocamlmklib; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_OCAMLMKLIB+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$OCAMLMKLIB"; then +- ac_cv_prog_OCAMLMKLIB="$OCAMLMKLIB" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_OCAMLMKLIB="${ac_tool_prefix}ocamlmklib" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-OCAMLMKLIB=$ac_cv_prog_OCAMLMKLIB +-if test -n "$OCAMLMKLIB"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKLIB" >&5 +-$as_echo "$OCAMLMKLIB" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_OCAMLMKLIB"; then +- ac_ct_OCAMLMKLIB=$OCAMLMKLIB +- # Extract the first word of "ocamlmklib", so it can be a program name with args. +-set dummy ocamlmklib; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_OCAMLMKLIB+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_OCAMLMKLIB"; then +- ac_cv_prog_ac_ct_OCAMLMKLIB="$ac_ct_OCAMLMKLIB" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_OCAMLMKLIB="ocamlmklib" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_OCAMLMKLIB=$ac_cv_prog_ac_ct_OCAMLMKLIB +-if test -n "$ac_ct_OCAMLMKLIB"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLMKLIB" >&5 +-$as_echo "$ac_ct_OCAMLMKLIB" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_OCAMLMKLIB" = x; then +- OCAMLMKLIB="no" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- OCAMLMKLIB=$ac_ct_OCAMLMKLIB +- fi +-else +- OCAMLMKLIB="$ac_cv_prog_OCAMLMKLIB" +-fi +- +- +- # checking for ocamldoc +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}ocamldoc", so it can be a program name with args. +-set dummy ${ac_tool_prefix}ocamldoc; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_OCAMLDOC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$OCAMLDOC"; then +- ac_cv_prog_OCAMLDOC="$OCAMLDOC" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_OCAMLDOC="${ac_tool_prefix}ocamldoc" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-OCAMLDOC=$ac_cv_prog_OCAMLDOC +-if test -n "$OCAMLDOC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5 +-$as_echo "$OCAMLDOC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_OCAMLDOC"; then +- ac_ct_OCAMLDOC=$OCAMLDOC +- # Extract the first word of "ocamldoc", so it can be a program name with args. +-set dummy ocamldoc; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_OCAMLDOC+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_OCAMLDOC"; then +- ac_cv_prog_ac_ct_OCAMLDOC="$ac_ct_OCAMLDOC" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_OCAMLDOC="ocamldoc" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_OCAMLDOC=$ac_cv_prog_ac_ct_OCAMLDOC +-if test -n "$ac_ct_OCAMLDOC"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLDOC" >&5 +-$as_echo "$ac_ct_OCAMLDOC" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_OCAMLDOC" = x; then +- OCAMLDOC="no" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- OCAMLDOC=$ac_ct_OCAMLDOC +- fi +-else +- OCAMLDOC="$ac_cv_prog_OCAMLDOC" +-fi +- +- +- # checking for ocamlbuild +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}ocamlbuild", so it can be a program name with args. +-set dummy ${ac_tool_prefix}ocamlbuild; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_OCAMLBUILD+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$OCAMLBUILD"; then +- ac_cv_prog_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_OCAMLBUILD="${ac_tool_prefix}ocamlbuild" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-OCAMLBUILD=$ac_cv_prog_OCAMLBUILD +-if test -n "$OCAMLBUILD"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5 +-$as_echo "$OCAMLBUILD" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_OCAMLBUILD"; then +- ac_ct_OCAMLBUILD=$OCAMLBUILD +- # Extract the first word of "ocamlbuild", so it can be a program name with args. +-set dummy ocamlbuild; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_OCAMLBUILD+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_OCAMLBUILD"; then +- ac_cv_prog_ac_ct_OCAMLBUILD="$ac_ct_OCAMLBUILD" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_OCAMLBUILD="ocamlbuild" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_OCAMLBUILD=$ac_cv_prog_ac_ct_OCAMLBUILD +-if test -n "$ac_ct_OCAMLBUILD"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLBUILD" >&5 +-$as_echo "$ac_ct_OCAMLBUILD" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_OCAMLBUILD" = x; then +- OCAMLBUILD="no" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- OCAMLBUILD=$ac_ct_OCAMLBUILD +- fi +-else +- OCAMLBUILD="$ac_cv_prog_OCAMLBUILD" +-fi +- +- +- +- # checking for ocamlfind +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}ocamlfind", so it can be a program name with args. +-set dummy ${ac_tool_prefix}ocamlfind; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_OCAMLFIND+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$OCAMLFIND"; then +- ac_cv_prog_OCAMLFIND="$OCAMLFIND" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_OCAMLFIND="${ac_tool_prefix}ocamlfind" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-OCAMLFIND=$ac_cv_prog_OCAMLFIND +-if test -n "$OCAMLFIND"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5 +-$as_echo "$OCAMLFIND" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_OCAMLFIND"; then +- ac_ct_OCAMLFIND=$OCAMLFIND +- # Extract the first word of "ocamlfind", so it can be a program name with args. +-set dummy ocamlfind; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_OCAMLFIND+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_OCAMLFIND"; then +- ac_cv_prog_ac_ct_OCAMLFIND="$ac_ct_OCAMLFIND" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_OCAMLFIND="ocamlfind" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_OCAMLFIND=$ac_cv_prog_ac_ct_OCAMLFIND +-if test -n "$ac_ct_OCAMLFIND"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OCAMLFIND" >&5 +-$as_echo "$ac_ct_OCAMLFIND" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_OCAMLFIND" = x; then +- OCAMLFIND="no" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- OCAMLFIND=$ac_ct_OCAMLFIND +- fi +-else +- OCAMLFIND="$ac_cv_prog_OCAMLFIND" +-fi +- +- +- +- +-for ac_prog in gawk mawk nawk awk +-do +- # Extract the first word of "$ac_prog", so it can be a program name with args. +-set dummy $ac_prog; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_AWK+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$AWK"; then +- ac_cv_prog_AWK="$AWK" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_AWK="$ac_prog" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-AWK=$ac_cv_prog_AWK +-if test -n "$AWK"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +-$as_echo "$AWK" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- test -n "$AWK" && break +-done +- +-if test "x$ocamltools" = "xy"; then : +- +- if test "x$OCAMLOPT" = "xno" || test "x$OCAMLFIND" = "xno"; then : +- +- if test "x$enable_ocamltools" = "xyes"; then : +- +- as_fn_error $? "Ocaml tools enabled, but missing ocamlopt or ocamlfind" "$LINENO" 5 +-fi +- ocamltools="n" +- +-else +- +- +- +- +- # Used to indicate true or false condition +- ax_compare_version=false +- +- # Convert the two version strings to be compared into a format that +- # allows a simple string comparison. The end result is that a version +- # string of the form 1.12.5-r617 will be converted to the form +- # 0001001200050617. In other words, each number is zero padded to four +- # digits, and non digits are removed. +- +- ax_compare_version_A=`echo "$OCAMLVERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ +- -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ +- -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ +- -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ +- -e 's/[^0-9]//g'` +- +- +- ax_compare_version_B=`echo "4.02.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ +- -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ +- -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ +- -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ +- -e 's/[^0-9]//g'` +- +- +- ax_compare_version=`echo "x$ax_compare_version_A +-x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"` +- +- +- +- if test "$ax_compare_version" = "true" ; then +- +- if test "x$enable_ocamltools" = "xyes"; then : +- +- as_fn_error $? "Your version of OCaml: $OCAMLVERSION is not supported" "$LINENO" 5 +-fi +- ocamltools="n" +- +- fi +- +- +-fi +- +-fi +- +-if test "x$golang" = "xy"; then : +- +- +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}go", so it can be a program name with args. +-set dummy ${ac_tool_prefix}go; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_GO+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$GO"; then +- ac_cv_prog_GO="$GO" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_GO="${ac_tool_prefix}go" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-GO=$ac_cv_prog_GO +-if test -n "$GO"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GO" >&5 +-$as_echo "$GO" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_GO"; then +- ac_ct_GO=$GO +- # Extract the first word of "go", so it can be a program name with args. +-set dummy go; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_GO+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_GO"; then +- ac_cv_prog_ac_ct_GO="$ac_ct_GO" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_GO="go" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_GO=$ac_cv_prog_ac_ct_GO +-if test -n "$ac_ct_GO"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GO" >&5 +-$as_echo "$ac_ct_GO" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_GO" = x; then +- GO="no" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- GO=$ac_ct_GO +- fi +-else +- GO="$ac_cv_prog_GO" +-fi +- +- +- if test "$GO" != "no"; then +- GOVERSION=`$GO version | cut -d " " -f 3 | sed "s/go//"` +- fi +- +- if test "x$GO" = "xno"; then : +- +- if test "x$enable_golang" = "xyes"; then : +- +- as_fn_error $? "Go tools enabled, but missing go compiler" "$LINENO" 5 +- +-fi +- golang="n" +- +-else +- +- +- +- +- # Used to indicate true or false condition +- ax_compare_version=false +- +- # Convert the two version strings to be compared into a format that +- # allows a simple string comparison. The end result is that a version +- # string of the form 1.12.5-r617 will be converted to the form +- # 0001001200050617. In other words, each number is zero padded to four +- # digits, and non digits are removed. +- +- ax_compare_version_A=`echo "$GOVERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ +- -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ +- -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ +- -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ +- -e 's/[^0-9]//g'` +- +- +- ax_compare_version_B=`echo "1.11.1" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ +- -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ +- -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ +- -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ +- -e 's/[^0-9]//g'` +- +- +- ax_compare_version=`echo "x$ax_compare_version_A +-x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"` +- +- +- +- if test "$ax_compare_version" = "true" ; then +- +- if test "x$enable_golang" = "xyes"; then : +- +- as_fn_error $? "\"Your version of go: $GOVERSION is not supported\"" "$LINENO" 5 +- +-fi +- golang="n" +- +- fi +- +- +-fi +- +-fi +- +- +- +- +- +- +- +- +- +- +-if test "x$XENSTORE" = "x"; then : +- +- +-# Check whether --with-xenstored was given. +-if test "${with_xenstored+set}" = set; then : +- withval=$with_xenstored; +- if test "x$withval" = "xxenstored"; then : +- +- xenstore=$withval +- xenstored=$sbindir/xenstored +- +-fi +- if test "x$withval" = "xoxenstored"; then : +- +- xenstore=$withval +- xenstored=$sbindir/oxenstored +- +- if test "$ocamltools" = "n"; then : +- +- as_fn_error $? "Missing ocaml dependencies for oxenstored, try installing ocaml ocaml-compiler-libs ocaml-runtime ocaml-findlib" "$LINENO" 5 +- +-fi +- +- +-fi +- if test "x$withval" != "xoxenstored" && test "x$withval" != "xxenstored"; then : +- +- as_fn_error $? "Unsupported xenstored specified, supported types: oxenstored xenstored" "$LINENO" 5 +- +-fi +- +-else +- +- +- xenstore="oxenstored" +- xenstored=$sbindir/oxenstored +- if test "$ocamltools" = "n"; then : +- +- xenstore="xenstored" +- xenstored=$sbindir/xenstored +- +-fi +- +- +-fi +- +- +-fi +- +- +- XENSTORE=$xenstore +- +- if test "x$XENSTORED" = "x"; then : +- +- XENSTORED=$xenstored +- +-fi +- +- +- +-if test "x$xsmpolicy" = "xy"; then : +- +- # check for a checkpolicy binary with support for -t xen +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}checkpolicy", so it can be a program name with args. +-set dummy ${ac_tool_prefix}checkpolicy; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_CHECKPOLICY+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$CHECKPOLICY"; then +- ac_cv_prog_CHECKPOLICY="$CHECKPOLICY" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_CHECKPOLICY="${ac_tool_prefix}checkpolicy" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-CHECKPOLICY=$ac_cv_prog_CHECKPOLICY +-if test -n "$CHECKPOLICY"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECKPOLICY" >&5 +-$as_echo "$CHECKPOLICY" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_CHECKPOLICY"; then +- ac_ct_CHECKPOLICY=$CHECKPOLICY +- # Extract the first word of "checkpolicy", so it can be a program name with args. +-set dummy checkpolicy; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_ac_ct_CHECKPOLICY+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_CHECKPOLICY"; then +- ac_cv_prog_ac_ct_CHECKPOLICY="$ac_ct_CHECKPOLICY" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_ac_ct_CHECKPOLICY="checkpolicy" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-ac_ct_CHECKPOLICY=$ac_cv_prog_ac_ct_CHECKPOLICY +-if test -n "$ac_ct_CHECKPOLICY"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CHECKPOLICY" >&5 +-$as_echo "$ac_ct_CHECKPOLICY" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_CHECKPOLICY" = x; then +- CHECKPOLICY="no" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- CHECKPOLICY=$ac_ct_CHECKPOLICY +- fi +-else +- CHECKPOLICY="$ac_cv_prog_CHECKPOLICY" +-fi +- +- +- if test "$CHECKPOLICY" != "no"; then +- CHECKPOLICYHELP=`$CHECKPOLICY -h | grep xen` +- if test "$CHECKPOLICYHELP" = ""; then +- CHECKPOLICY=no +- fi +- fi +- +- if test "x$CHECKPOLICY" = "xno"; then : +- +- if test "x$enable_xsmpolicy" = "xyes"; then : +- +- as_fn_error $? "XSM policy compilation enabled, but unable to find checkpolicy" "$LINENO" 5 +-fi +- xsmpolicy="n" +- +-fi +- +-fi +-case "$host_os" in +- freebsd*) ;; +- *) # Extract the first word of "bash", so it can be a program name with args. +-set dummy bash; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_BASH+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $BASH in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_BASH="$BASH" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no" +- ;; +-esac +-fi +-BASH=$ac_cv_path_BASH +-if test -n "$BASH"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 +-$as_echo "$BASH" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-if test x"${BASH}" = x"no" +-then +- as_fn_error $? "Unable to find bash, please install bash" "$LINENO" 5 +-fi;; +-esac +-if test -z "$PYTHON"; then : +- for ac_prog in python3 python python2 +-do +- # Extract the first word of "$ac_prog", so it can be a program name with args. +-set dummy $ac_prog; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_prog_PYTHON+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$PYTHON"; then +- ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. +-else +-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_prog_PYTHON="$ac_prog" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +-fi +-fi +-PYTHON=$ac_cv_prog_PYTHON +-if test -n "$PYTHON"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 +-$as_echo "$PYTHON" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- test -n "$PYTHON" && break +-done +-test -n "$PYTHON" || PYTHON="err" +- +-fi +-if test "$PYTHON" = "err"; then : +- as_fn_error $? "No python interpreter found" "$LINENO" 5 +-fi +-if echo "$PYTHON" | grep -q "^/"; then : +- +-else +- # Extract the first word of "$PYTHON", so it can be a program name with args. +-set dummy $PYTHON; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_PYTHON+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $PYTHON in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-fi +-PYTHON=$ac_cv_path_PYTHON +-if test -n "$PYTHON"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 +-$as_echo "$PYTHON" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-PYTHONPATH=$PYTHON +-PYTHON=`basename $PYTHONPATH` +- +-# Extract the first word of "$PYTHON", so it can be a program name with args. +-set dummy $PYTHON; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_PYTHONPATH+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $PYTHONPATH in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_PYTHONPATH="$PYTHONPATH" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_PYTHONPATH="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- test -z "$ac_cv_path_PYTHONPATH" && ac_cv_path_PYTHONPATH="no" +- ;; +-esac +-fi +-PYTHONPATH=$ac_cv_path_PYTHONPATH +-if test -n "$PYTHONPATH"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHONPATH" >&5 +-$as_echo "$PYTHONPATH" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-if test x"${PYTHONPATH}" = x"no" +-then +- as_fn_error $? "Unable to find $PYTHON, please install $PYTHON" "$LINENO" 5 +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python version >= 2.6 " >&5 +-$as_echo_n "checking for python version >= 2.6 ... " >&6; } +-`$PYTHON -c 'import sys; sys.exit(eval("sys.version_info < (2, 6)"))'` +-if test "$?" != "0" +-then +- python_version=`$PYTHON -V 2>&1` +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- as_fn_error $? "$python_version is too old, minimum required version is 2.6" "$LINENO" 5 +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +-fi +- +-ac_ext=c +-ac_cpp='$CPP $CPPFLAGS' +-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +-ac_compiler_gnu=$ac_cv_c_compiler_gnu +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +-$as_echo_n "checking how to run the C preprocessor... " >&6; } +-# On Suns, sometimes $CPP names a directory. +-if test -n "$CPP" && test -d "$CPP"; then +- CPP= +-fi +-if test -z "$CPP"; then +- if ${ac_cv_prog_CPP+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- # Double quotes because CPP needs to be expanded +- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" +- do +- ac_preproc_ok=false +-for ac_c_preproc_warn_flag in '' yes +-do +- # Use a header file that comes with gcc, so configuring glibc +- # with a fresh cross-compiler works. +- # Prefer to if __STDC__ is defined, since +- # exists even on freestanding compilers. +- # On the NeXT, cc -E runs the code through the compiler's parser, +- # not just through cpp. "Syntax error" is here to catch this case. +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#ifdef __STDC__ +-# include +-#else +-# include +-#endif +- Syntax error +-_ACEOF +-if ac_fn_c_try_cpp "$LINENO"; then : +- +-else +- # Broken: fails on valid input. +-continue +-fi +-rm -f conftest.err conftest.i conftest.$ac_ext +- +- # OK, works on sane cases. Now check whether nonexistent headers +- # can be detected and how. +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include +-_ACEOF +-if ac_fn_c_try_cpp "$LINENO"; then : +- # Broken: success on invalid input. +-continue +-else +- # Passes both tests. +-ac_preproc_ok=: +-break +-fi +-rm -f conftest.err conftest.i conftest.$ac_ext +- +-done +-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +-rm -f conftest.i conftest.err conftest.$ac_ext +-if $ac_preproc_ok; then : +- break +-fi +- +- done +- ac_cv_prog_CPP=$CPP +- +-fi +- CPP=$ac_cv_prog_CPP +-else +- ac_cv_prog_CPP=$CPP +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +-$as_echo "$CPP" >&6; } +-ac_preproc_ok=false +-for ac_c_preproc_warn_flag in '' yes +-do +- # Use a header file that comes with gcc, so configuring glibc +- # with a fresh cross-compiler works. +- # Prefer to if __STDC__ is defined, since +- # exists even on freestanding compilers. +- # On the NeXT, cc -E runs the code through the compiler's parser, +- # not just through cpp. "Syntax error" is here to catch this case. +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#ifdef __STDC__ +-# include +-#else +-# include +-#endif +- Syntax error +-_ACEOF +-if ac_fn_c_try_cpp "$LINENO"; then : +- +-else +- # Broken: fails on valid input. +-continue +-fi +-rm -f conftest.err conftest.i conftest.$ac_ext +- +- # OK, works on sane cases. Now check whether nonexistent headers +- # can be detected and how. +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include +-_ACEOF +-if ac_fn_c_try_cpp "$LINENO"; then : +- # Broken: success on invalid input. +-continue +-else +- # Passes both tests. +-ac_preproc_ok=: +-break +-fi +-rm -f conftest.err conftest.i conftest.$ac_ext +- +-done +-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +-rm -f conftest.i conftest.err conftest.$ac_ext +-if $ac_preproc_ok; then : +- +-else +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +-See \`config.log' for more details" "$LINENO" 5; } +-fi +- +-ac_ext=c +-ac_cpp='$CPP $CPPFLAGS' +-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +-ac_compiler_gnu=$ac_cv_c_compiler_gnu +- +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +-$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +-if ${ac_cv_path_GREP+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -z "$GREP"; then +- ac_path_GREP_found=false +- # Loop through the user's path and test for each of PROGNAME-LIST +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_prog in grep ggrep; do +- for ac_exec_ext in '' $ac_executable_extensions; do +- ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" +- as_fn_executable_p "$ac_path_GREP" || continue +-# Check for GNU ac_path_GREP and select it if it is found. +- # Check for GNU $ac_path_GREP +-case `"$ac_path_GREP" --version 2>&1` in +-*GNU*) +- ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +-*) +- ac_count=0 +- $as_echo_n 0123456789 >"conftest.in" +- while : +- do +- cat "conftest.in" "conftest.in" >"conftest.tmp" +- mv "conftest.tmp" "conftest.in" +- cp "conftest.in" "conftest.nl" +- $as_echo 'GREP' >> "conftest.nl" +- "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break +- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break +- as_fn_arith $ac_count + 1 && ac_count=$as_val +- if test $ac_count -gt ${ac_path_GREP_max-0}; then +- # Best one so far, save it but keep looking for a better one +- ac_cv_path_GREP="$ac_path_GREP" +- ac_path_GREP_max=$ac_count +- fi +- # 10*(2^10) chars as input seems more than enough +- test $ac_count -gt 10 && break +- done +- rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +-esac +- +- $ac_path_GREP_found && break 3 +- done +- done +- done +-IFS=$as_save_IFS +- if test -z "$ac_cv_path_GREP"; then +- as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 +- fi +-else +- ac_cv_path_GREP=$GREP +-fi +- +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +-$as_echo "$ac_cv_path_GREP" >&6; } +- GREP="$ac_cv_path_GREP" +- +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +-$as_echo_n "checking for egrep... " >&6; } +-if ${ac_cv_path_EGREP+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 +- then ac_cv_path_EGREP="$GREP -E" +- else +- if test -z "$EGREP"; then +- ac_path_EGREP_found=false +- # Loop through the user's path and test for each of PROGNAME-LIST +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_prog in egrep; do +- for ac_exec_ext in '' $ac_executable_extensions; do +- ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" +- as_fn_executable_p "$ac_path_EGREP" || continue +-# Check for GNU ac_path_EGREP and select it if it is found. +- # Check for GNU $ac_path_EGREP +-case `"$ac_path_EGREP" --version 2>&1` in +-*GNU*) +- ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +-*) +- ac_count=0 +- $as_echo_n 0123456789 >"conftest.in" +- while : +- do +- cat "conftest.in" "conftest.in" >"conftest.tmp" +- mv "conftest.tmp" "conftest.in" +- cp "conftest.in" "conftest.nl" +- $as_echo 'EGREP' >> "conftest.nl" +- "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break +- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break +- as_fn_arith $ac_count + 1 && ac_count=$as_val +- if test $ac_count -gt ${ac_path_EGREP_max-0}; then +- # Best one so far, save it but keep looking for a better one +- ac_cv_path_EGREP="$ac_path_EGREP" +- ac_path_EGREP_max=$ac_count +- fi +- # 10*(2^10) chars as input seems more than enough +- test $ac_count -gt 10 && break +- done +- rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +-esac +- +- $ac_path_EGREP_found && break 3 +- done +- done +- done +-IFS=$as_save_IFS +- if test -z "$ac_cv_path_EGREP"; then +- as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 +- fi +-else +- ac_cv_path_EGREP=$EGREP +-fi +- +- fi +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +-$as_echo "$ac_cv_path_EGREP" >&6; } +- EGREP="$ac_cv_path_EGREP" +- +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +-$as_echo_n "checking for ANSI C header files... " >&6; } +-if ${ac_cv_header_stdc+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include +-#include +-#include +-#include +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_header_stdc=yes +-else +- ac_cv_header_stdc=no +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- +-if test $ac_cv_header_stdc = yes; then +- # SunOS 4.x string.h does not declare mem*, contrary to ANSI. +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include +- +-_ACEOF +-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +- $EGREP "memchr" >/dev/null 2>&1; then : +- +-else +- ac_cv_header_stdc=no +-fi +-rm -f conftest* +- +-fi +- +-if test $ac_cv_header_stdc = yes; then +- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include +- +-_ACEOF +-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +- $EGREP "free" >/dev/null 2>&1; then : +- +-else +- ac_cv_header_stdc=no +-fi +-rm -f conftest* +- +-fi +- +-if test $ac_cv_header_stdc = yes; then +- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. +- if test "$cross_compiling" = yes; then : +- : +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include +-#include +-#if ((' ' & 0x0FF) == 0x020) +-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +-#else +-# define ISLOWER(c) \ +- (('a' <= (c) && (c) <= 'i') \ +- || ('j' <= (c) && (c) <= 'r') \ +- || ('s' <= (c) && (c) <= 'z')) +-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +-#endif +- +-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +-int +-main () +-{ +- int i; +- for (i = 0; i < 256; i++) +- if (XOR (islower (i), ISLOWER (i)) +- || toupper (i) != TOUPPER (i)) +- return 2; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_run "$LINENO"; then : +- +-else +- ac_cv_header_stdc=no +-fi +-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +- conftest.$ac_objext conftest.beam conftest.$ac_ext +-fi +- +-fi +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +-$as_echo "$ac_cv_header_stdc" >&6; } +-if test $ac_cv_header_stdc = yes; then +- +-$as_echo "#define STDC_HEADERS 1" >>confdefs.h +- +-fi +- +-# On IRIX 5.3, sys/types and inttypes.h are conflicting. +-for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ +- inttypes.h stdint.h unistd.h +-do : +- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +-ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +-" +-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +- cat >>confdefs.h <<_ACEOF +-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +-_ACEOF +- +-fi +- +-done +- +- +-if test "$cross_compiling" != yes; then : +- +- +-ac_previous_cppflags=$CPPFLAGS +-ac_previous_ldflags=$LDFLAGS +-ac_previous_libs=$LIBS +-# Extract the first word of "$PYTHON-config", so it can be a program name with args. +-set dummy $PYTHON-config; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_pyconfig+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $pyconfig in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_pyconfig="$pyconfig" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_pyconfig="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- test -z "$ac_cv_path_pyconfig" && ac_cv_path_pyconfig="no" +- ;; +-esac +-fi +-pyconfig=$ac_cv_path_pyconfig +-if test -n "$pyconfig"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pyconfig" >&5 +-$as_echo "$pyconfig" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-if test x"$pyconfig" = x"no"; then : +- +- CPPFLAGS="$CFLAGS `$PYTHON -c 'import distutils.sysconfig; \ +- print("-I" + distutils.sysconfig.get_config_var("INCLUDEPY"))'`" +- CPPFLAGS="$CPPFLAGS `$PYTHON -c 'import distutils.sysconfig; \ +- print(distutils.sysconfig.get_config_var("CFLAGS"))'`" +- LDFLAGS="$LDFLAGS `$PYTHON -c 'import distutils.sysconfig; \ +- print("-L" + distutils.sysconfig.get_python_lib(plat_specific=1,\ +- standard_lib=1) + "/config")'`" +- LDFLAGS="$LDFLAGS `$PYTHON -c 'import distutils.sysconfig; \ +- print(distutils.sysconfig.get_config_var("LINKFORSHARED"))'`" +- LDFLAGS="$LDFLAGS `$PYTHON -c 'import distutils.sysconfig; \ +- print(distutils.sysconfig.get_config_var("LDFLAGS"))'`" +- LIBS="$LIBS `$PYTHON -c 'import distutils.sysconfig; \ +- print(distutils.sysconfig.get_config_var("LIBS"))'`" +- LIBS="$LIBS `$PYTHON -c 'import distutils.sysconfig; \ +- print(distutils.sysconfig.get_config_var("SYSLIBS"))'`" +- +-else +- +- CPPFLAGS="$CFLAGS `$PYTHON-config --cflags`" +- python_devel_embed="" +- if $PYTHON-config --embed >/dev/null 2>/dev/null; then +- python_devel_embed="--embed" +- fi +- LDFLAGS="$LDFLAGS `$PYTHON-config --ldflags $python_devel_embed`" +- LIBS="$LIBS `$PYTHON-config --libs $python_devel_embed`" +- unset python_devel_embed +- +-fi +- +-ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" +-if test "x$ac_cv_header_Python_h" = xyes; then : +- +-else +- as_fn_error $? "Unable to find Python development headers" "$LINENO" 5 +-fi +- +- +-ac_fn_c_check_func "$LINENO" "PyArg_ParseTuple" "ac_cv_func_PyArg_ParseTuple" +-if test "x$ac_cv_func_PyArg_ParseTuple" = xyes; then : +- +-else +- as_fn_error $? "Unable to find a suitable python development library" "$LINENO" 5 +-fi +- +- +-CPPFLAGS=$ac_previous_cppflags +-LDFLAGS=$ac_previous_ldflags +-LIBS=$ac_previous_libs +- +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Python setup.py brokenly enables -D_FORTIFY_SOURCE" >&5 +-$as_echo_n "checking whether Python setup.py brokenly enables -D_FORTIFY_SOURCE... " >&6; } +-if ${ax_cv_python_fortify+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- +- ax_cv_python_fortify=no +- for arg in $($PYTHON-config --cflags); do +- case "$arg" in +- -D_FORTIFY_SOURCE=0) ax_cv_python_fortify=no ;; +- -D_FORTIFY_SOURCE=*) ax_cv_python_fortify=yes ;; +- -Wp,-D_FORTIFY_SOURCE=0) ax_cv_python_fortify=no ;; +- -Wp,-D_FORTIFY_SOURCE=*) ax_cv_python_fortify=yes ;; +- *) ;; +- esac +- done +- +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_python_fortify" >&5 +-$as_echo "$ax_cv_python_fortify" >&6; } +- +- if test x$ax_cv_python_fortify = xyes; then : +- +- PY_NOOPT_CFLAGS=-O1 +- +-else +- +- PY_NOOPT_CFLAGS='' +- +-fi +- +- +- +- +-fi +- +-if ! $rump; then +- +-# Extract the first word of "xgettext", so it can be a program name with args. +-set dummy xgettext; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_XGETTEXT+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $XGETTEXT in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="no" +- ;; +-esac +-fi +-XGETTEXT=$ac_cv_path_XGETTEXT +-if test -n "$XGETTEXT"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 +-$as_echo "$XGETTEXT" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-if test x"${XGETTEXT}" = x"no" +-then +- as_fn_error $? "Unable to find xgettext, please install xgettext" "$LINENO" 5 +-fi +-case "$host_cpu" in +-i[3456]86|x86_64|aarch64) +- # Extract the first word of "iasl", so it can be a program name with args. +-set dummy iasl; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_IASL+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $IASL in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_IASL="$IASL" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_IASL="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- test -z "$ac_cv_path_IASL" && ac_cv_path_IASL="no" +- ;; +-esac +-fi +-IASL=$ac_cv_path_IASL +-if test -n "$IASL"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IASL" >&5 +-$as_echo "$IASL" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-if test x"${IASL}" = x"no" +-then +- as_fn_error $? "Unable to find iasl, please install iasl" "$LINENO" 5 +-fi +- ;; +-esac +- +-ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" +-if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_clear in -luuid" >&5 +-$as_echo_n "checking for uuid_clear in -luuid... " >&6; } +-if ${ac_cv_lib_uuid_uuid_clear+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-luuid $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char uuid_clear (); +-int +-main () +-{ +-return uuid_clear (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_uuid_uuid_clear=yes +-else +- ac_cv_lib_uuid_uuid_clear=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_clear" >&5 +-$as_echo "$ac_cv_lib_uuid_uuid_clear" >&6; } +-if test "x$ac_cv_lib_uuid_uuid_clear" = xyes; then : +- libuuid="y" +-fi +- +- +-fi +- +- +-ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default" +-if test "x$ac_cv_header_uuid_h" = xyes; then : +- libuuid="y" +-fi +- +- +-if test "$libuuid" != "y"; then : +- +- as_fn_error $? "cannot find a valid uuid library" "$LINENO" 5 +- +-fi +- +- +-ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" +-if test "x$ac_cv_header_curses_h" = xyes; then : +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clear in -lcurses" >&5 +-$as_echo_n "checking for clear in -lcurses... " >&6; } +-if ${ac_cv_lib_curses_clear+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lcurses $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char clear (); +-int +-main () +-{ +-return clear (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_curses_clear=yes +-else +- ac_cv_lib_curses_clear=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_clear" >&5 +-$as_echo "$ac_cv_lib_curses_clear" >&6; } +-if test "x$ac_cv_lib_curses_clear" = xyes; then : +- curses="y" +-else +- curses="n" +-fi +- +- +-else +- curses="n" +-fi +- +- +-ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" +-if test "x$ac_cv_header_ncurses_h" = xyes; then : +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clear in -lncurses" >&5 +-$as_echo_n "checking for clear in -lncurses... " >&6; } +-if ${ac_cv_lib_ncurses_clear+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lncurses $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char clear (); +-int +-main () +-{ +-return clear (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_ncurses_clear=yes +-else +- ac_cv_lib_ncurses_clear=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_clear" >&5 +-$as_echo "$ac_cv_lib_ncurses_clear" >&6; } +-if test "x$ac_cv_lib_ncurses_clear" = xyes; then : +- ncurses="y" +-else +- ncurses="n" +-fi +- +- +-else +- ncurses="n" +-fi +- +- +-if test "$curses" = "n" && test "$ncurses" = "n"; then : +- +- as_fn_error $? "Unable to find a suitable curses library" "$LINENO" 5 +- +-fi +-# Prefer ncurses over curses if both are present +-if test "$ncurses" = "y"; then : +- +- CURSES_LIBS="-lncurses" +- +-$as_echo "#define INCLUDE_CURSES_H " >>confdefs.h +- +- +-else +- +- CURSES_LIBS="-lcurses" +- +-$as_echo "#define INCLUDE_CURSES_H " >>confdefs.h +- +- +-fi +- +- +-if test "$ncurses" = "y"; then : +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for define_key in -ltinfo" >&5 +-$as_echo_n "checking for define_key in -ltinfo... " >&6; } +-if ${ac_cv_lib_tinfo_define_key+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-ltinfo $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char define_key (); +-int +-main () +-{ +-return define_key (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_tinfo_define_key=yes +-else +- ac_cv_lib_tinfo_define_key=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_define_key" >&5 +-$as_echo "$ac_cv_lib_tinfo_define_key" >&6; } +-if test "x$ac_cv_lib_tinfo_define_key" = xyes; then : +- TINFO_LIBS=-ltinfo +-fi +- +- +-fi +- +- +- +- +- +- +- +- +- +-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then +- if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. +-set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_PKG_CONFIG+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $PKG_CONFIG in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-fi +-PKG_CONFIG=$ac_cv_path_PKG_CONFIG +-if test -n "$PKG_CONFIG"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 +-$as_echo "$PKG_CONFIG" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_path_PKG_CONFIG"; then +- ac_pt_PKG_CONFIG=$PKG_CONFIG +- # Extract the first word of "pkg-config", so it can be a program name with args. +-set dummy pkg-config; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $ac_pt_PKG_CONFIG in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-fi +-ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG +-if test -n "$ac_pt_PKG_CONFIG"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 +-$as_echo "$ac_pt_PKG_CONFIG" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_pt_PKG_CONFIG" = x; then +- PKG_CONFIG="" +- else +- case $cross_compiling:$ac_tool_warned in +-yes:) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +-ac_tool_warned=yes ;; +-esac +- PKG_CONFIG=$ac_pt_PKG_CONFIG +- fi +-else +- PKG_CONFIG="$ac_cv_path_PKG_CONFIG" +-fi +- +-fi +-if test -n "$PKG_CONFIG"; then +- _pkg_min_version=0.9.0 +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 +-$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } +- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- PKG_CONFIG="" +- fi +-fi +-if test "x$qemu_xen" = "xy"; then : +- +- +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5 +-$as_echo_n "checking for glib... " >&6; } +- +-if test -n "$glib_CFLAGS"; then +- pkg_cv_glib_CFLAGS="$glib_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.12\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.12") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_glib_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.12" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$glib_LIBS"; then +- pkg_cv_glib_LIBS="$glib_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.12\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.12") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_glib_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.12" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- glib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.12" 2>&1` +- else +- glib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.12" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$glib_PKG_ERRORS" >&5 +- +- as_fn_error $? "Package requirements (glib-2.0 >= 2.12) were not met: +- +-$glib_PKG_ERRORS +- +-Consider adjusting the PKG_CONFIG_PATH environment variable if you +-installed software in a non-standard prefix. +- +-Alternatively, you may set the environment variables glib_CFLAGS +-and glib_LIBS to avoid the need to call pkg-config. +-See the pkg-config man page for more details." "$LINENO" 5 +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +-is in your PATH or set the PKG_CONFIG environment variable to the full +-path to pkg-config. +- +-Alternatively, you may set the environment variables glib_CFLAGS +-and glib_LIBS to avoid the need to call pkg-config. +-See the pkg-config man page for more details. +- +-To get pkg-config, see . +-See \`config.log' for more details" "$LINENO" 5; } +-else +- glib_CFLAGS=$pkg_cv_glib_CFLAGS +- glib_LIBS=$pkg_cv_glib_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- +-fi +- +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pixman" >&5 +-$as_echo_n "checking for pixman... " >&6; } +- +-if test -n "$pixman_CFLAGS"; then +- pkg_cv_pixman_CFLAGS="$pixman_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1 >= 0.21.8\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "pixman-1 >= 0.21.8") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_pixman_CFLAGS=`$PKG_CONFIG --cflags "pixman-1 >= 0.21.8" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$pixman_LIBS"; then +- pkg_cv_pixman_LIBS="$pixman_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1 >= 0.21.8\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "pixman-1 >= 0.21.8") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_pixman_LIBS=`$PKG_CONFIG --libs "pixman-1 >= 0.21.8" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- pixman_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pixman-1 >= 0.21.8" 2>&1` +- else +- pixman_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pixman-1 >= 0.21.8" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$pixman_PKG_ERRORS" >&5 +- +- as_fn_error $? "Package requirements (pixman-1 >= 0.21.8) were not met: +- +-$pixman_PKG_ERRORS +- +-Consider adjusting the PKG_CONFIG_PATH environment variable if you +-installed software in a non-standard prefix. +- +-Alternatively, you may set the environment variables pixman_CFLAGS +-and pixman_LIBS to avoid the need to call pkg-config. +-See the pkg-config man page for more details." "$LINENO" 5 +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +-is in your PATH or set the PKG_CONFIG environment variable to the full +-path to pkg-config. +- +-Alternatively, you may set the environment variables pixman_CFLAGS +-and pixman_LIBS to avoid the need to call pkg-config. +-See the pkg-config man page for more details. +- +-To get pkg-config, see . +-See \`config.log' for more details" "$LINENO" 5; } +-else +- pixman_CFLAGS=$pkg_cv_pixman_CFLAGS +- pixman_LIBS=$pkg_cv_pixman_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- +-fi +- +-fi +- +-# Extract the first word of "wget", so it can be a program name with args. +-set dummy wget; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_WGET+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $WGET in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_WGET="$WGET" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- test -z "$ac_cv_path_WGET" && ac_cv_path_WGET="no" +- ;; +-esac +-fi +-WGET=$ac_cv_path_WGET +-if test -n "$WGET"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5 +-$as_echo "$WGET" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-# Extract the first word of "false", so it can be a program name with args. +-set dummy false; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_FALSE+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $FALSE in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_FALSE="$FALSE" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_FALSE="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- test -z "$ac_cv_path_FALSE" && ac_cv_path_FALSE="/bin/false" +- ;; +-esac +-fi +-FALSE=$ac_cv_path_FALSE +-if test -n "$FALSE"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSE" >&5 +-$as_echo "$FALSE" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-if test x"$WGET" != x"no"; then : +- +- FETCHER="$WGET -c -O" +- +-else +- +- # Extract the first word of "ftp", so it can be a program name with args. +-set dummy ftp; ac_word=$2 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +-$as_echo_n "checking for $ac_word... " >&6; } +-if ${ac_cv_path_FTP+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- case $FTP in +- [\\/]* | ?:[\\/]*) +- ac_cv_path_FTP="$FTP" # Let the user override the test with a path. +- ;; +- *) +- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- for ac_exec_ext in '' $ac_executable_extensions; do +- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +- ac_cv_path_FTP="$as_dir/$ac_word$ac_exec_ext" +- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +- break 2 +- fi +-done +- done +-IFS=$as_save_IFS +- +- test -z "$ac_cv_path_FTP" && ac_cv_path_FTP="no" +- ;; +-esac +-fi +-FTP=$ac_cv_path_FTP +-if test -n "$FTP"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FTP" >&5 +-$as_echo "$FTP" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- if test x"$FTP" != x"no"; then : +- +- FETCHER="$FTP -o" +- +-else +- +- FETCHER="$FALSE" +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find wget or ftp" >&5 +-$as_echo "$as_me: WARNING: cannot find wget or ftp" >&2;} +- +-fi +- +-fi +- +- +- +-# Checks for libraries. +-ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" +-if test "x$ac_cv_header_bzlib_h" = xyes; then : +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5 +-$as_echo_n "checking for BZ2_bzDecompressInit in -lbz2... " >&6; } +-if ${ac_cv_lib_bz2_BZ2_bzDecompressInit+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lbz2 $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char BZ2_bzDecompressInit (); +-int +-main () +-{ +-return BZ2_bzDecompressInit (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_bz2_BZ2_bzDecompressInit=yes +-else +- ac_cv_lib_bz2_BZ2_bzDecompressInit=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5 +-$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; } +-if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes; then : +- zlib="$zlib -DHAVE_BZLIB -lbz2" +-fi +- +- +-fi +- +- +-ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" +-if test "x$ac_cv_header_lzma_h" = xyes; then : +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5 +-$as_echo_n "checking for lzma_stream_decoder in -llzma... " >&6; } +-if ${ac_cv_lib_lzma_lzma_stream_decoder+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-llzma $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char lzma_stream_decoder (); +-int +-main () +-{ +-return lzma_stream_decoder (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_lzma_lzma_stream_decoder=yes +-else +- ac_cv_lib_lzma_lzma_stream_decoder=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5 +-$as_echo "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; } +-if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes; then : +- zlib="$zlib -DHAVE_LZMA -llzma" +-fi +- +- +-fi +- +- +-ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default" +-if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then : +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_decompress in -llzo2" >&5 +-$as_echo_n "checking for lzo1x_decompress in -llzo2... " >&6; } +-if ${ac_cv_lib_lzo2_lzo1x_decompress+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-llzo2 $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char lzo1x_decompress (); +-int +-main () +-{ +-return lzo1x_decompress (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_lzo2_lzo1x_decompress=yes +-else +- ac_cv_lib_lzo2_lzo1x_decompress=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_decompress" >&5 +-$as_echo "$ac_cv_lib_lzo2_lzo1x_decompress" >&6; } +-if test "x$ac_cv_lib_lzo2_lzo1x_decompress" = xyes; then : +- zlib="$zlib -DHAVE_LZO1X -llzo2" +-fi +- +- +-fi +- +- +- +- +- +-ac_fn_c_check_header_mongrel "$LINENO" "ext2fs/ext2fs.h" "ac_cv_header_ext2fs_ext2fs_h" "$ac_includes_default" +-if test "x$ac_cv_header_ext2fs_ext2fs_h" = xyes; then : +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ext2fs_open2 in -lext2fs" >&5 +-$as_echo_n "checking for ext2fs_open2 in -lext2fs... " >&6; } +-if ${ac_cv_lib_ext2fs_ext2fs_open2+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lext2fs $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char ext2fs_open2 (); +-int +-main () +-{ +-return ext2fs_open2 (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_ext2fs_ext2fs_open2=yes +-else +- ac_cv_lib_ext2fs_ext2fs_open2=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ext2fs_ext2fs_open2" >&5 +-$as_echo "$ac_cv_lib_ext2fs_ext2fs_open2" >&6; } +-if test "x$ac_cv_lib_ext2fs_ext2fs_open2" = xyes; then : +- +- +-$as_echo "#define INCLUDE_EXTFS_H " >>confdefs.h +- +- EXTFS_LIBS="-lext2fs" +- +-fi +- +- +-fi +- +- +-ac_fn_c_check_header_mongrel "$LINENO" "ext4fs/ext2fs.h" "ac_cv_header_ext4fs_ext2fs_h" "$ac_includes_default" +-if test "x$ac_cv_header_ext4fs_ext2fs_h" = xyes; then : +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ext2fs_open2 in -lext4fs" >&5 +-$as_echo_n "checking for ext2fs_open2 in -lext4fs... " >&6; } +-if ${ac_cv_lib_ext4fs_ext2fs_open2+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lext4fs $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char ext2fs_open2 (); +-int +-main () +-{ +-return ext2fs_open2 (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_ext4fs_ext2fs_open2=yes +-else +- ac_cv_lib_ext4fs_ext2fs_open2=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ext4fs_ext2fs_open2" >&5 +-$as_echo "$ac_cv_lib_ext4fs_ext2fs_open2" >&6; } +-if test "x$ac_cv_lib_ext4fs_ext2fs_open2" = xyes; then : +- +- +-$as_echo "#define INCLUDE_EXTFS_H " >>confdefs.h +- +- EXTFS_LIBS="-lext4fs" +- +-fi +- +- +-fi +- +- +- +- +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread flag" >&5 +-$as_echo_n "checking for pthread flag... " >&6; } +-if ${ax_cv_pthread_flags+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- +- ax_cv_pthread_flags=-pthread +- +- PTHREAD_CFLAGS="$ax_cv_pthread_flags" +- PTHREAD_LDFLAGS="$ax_cv_pthread_flags" +- PTHREAD_LIBS="" +- +- +- saved_CFLAGS="$CFLAGS" +- +- saved_LDFLAGS="$LDFLAGS" +- +- saved_LIBS="$LIBS" +- +- +- CFLAGS="$CFLAGS $PTHREAD_CFLAGS" +- +- LDFLAGS="$LDFLAGS $PTHREAD_LDFLAGS" +- +- LIBS="$LIBS $PTHREAD_LIBS" +- +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-#include +-int main(void) { +- pthread_atfork(0,0,0); +- pthread_create(0,0,0,0); +-} +- +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- +-else +- ax_cv_pthread_flags=failed +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +- +- CFLAGS="$saved_CFLAGS" +- +- LDFLAGS="$saved_LDFLAGS" +- +- LIBS="$saved_LIBS" +- +- +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_pthread_flags" >&5 +-$as_echo "$ax_cv_pthread_flags" >&6; } +- if test "x$ax_cv_pthread_flags" = xfailed; then +- as_fn_error $? "-pthread does not work" "$LINENO" 5 +- fi +- +- PTHREAD_CFLAGS="$ax_cv_pthread_flags" +- PTHREAD_LDFLAGS="$ax_cv_pthread_flags" +- PTHREAD_LIBS="" +- +- +- +- +- +- saved_CPPFLAGS="$CPPFLAGS" +- +- CPPFLAGS="$CPPFLAGS -Werror" +- ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" +-if test "x$ac_cv_header_libutil_h" = xyes; then : +- +- +-$as_echo "#define INCLUDE_LIBUTIL_H " >>confdefs.h +- +- +-fi +- +- +- +- CPPFLAGS="$saved_CPPFLAGS" +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty et al" >&5 +-$as_echo_n "checking for openpty et al... " >&6; } +-if ${ax_cv_ptyfuncs_libs+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- +- for ax_cv_ptyfuncs_libs in -lutil "" NOT_FOUND; do +- if test "x$ax_cv_ptyfuncs_libs" = "xNOT_FOUND"; then +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "Unable to find library for openpty and login_tty +-See \`config.log' for more details" "$LINENO" 5; } +- fi +- +- saved_LIBS="$LIBS" +- +- LIBS="$LIBS $ax_cv_ptyfuncs_libs" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-#ifdef INCLUDE_LIBUTIL_H +-#include INCLUDE_LIBUTIL_H +-#endif +-int main(void) { +- openpty(0,0,0,0,0); +- login_tty(0); +-} +- +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- +- break +- +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +- +- LIBS="$saved_LIBS" +- +- done +- +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_ptyfuncs_libs" >&5 +-$as_echo "$ax_cv_ptyfuncs_libs" >&6; } +- PTYFUNCS_LIBS="$ax_cv_ptyfuncs_libs" +- +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yajl_alloc in -lyajl" >&5 +-$as_echo_n "checking for yajl_alloc in -lyajl... " >&6; } +-if ${ac_cv_lib_yajl_yajl_alloc+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lyajl $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char yajl_alloc (); +-int +-main () +-{ +-return yajl_alloc (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_yajl_yajl_alloc=yes +-else +- ac_cv_lib_yajl_yajl_alloc=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_yajl_yajl_alloc" >&5 +-$as_echo "$ac_cv_lib_yajl_yajl_alloc" >&6; } +-if test "x$ac_cv_lib_yajl_yajl_alloc" = xyes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBYAJL 1 +-_ACEOF +- +- LIBS="-lyajl $LIBS" +- +-else +- as_fn_error $? "Could not find yajl" "$LINENO" 5 +-fi +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateCopy in -lz" >&5 +-$as_echo_n "checking for deflateCopy in -lz... " >&6; } +-if ${ac_cv_lib_z_deflateCopy+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lz $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char deflateCopy (); +-int +-main () +-{ +-return deflateCopy (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_z_deflateCopy=yes +-else +- ac_cv_lib_z_deflateCopy=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateCopy" >&5 +-$as_echo "$ac_cv_lib_z_deflateCopy" >&6; } +-if test "x$ac_cv_lib_z_deflateCopy" = xyes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBZ 1 +-_ACEOF +- +- LIBS="-lz $LIBS" +- +-else +- as_fn_error $? "Could not find zlib" "$LINENO" 5 +-fi +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5 +-$as_echo_n "checking for libiconv_open in -liconv... " >&6; } +-if ${ac_cv_lib_iconv_libiconv_open+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-liconv $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char libiconv_open (); +-int +-main () +-{ +-return libiconv_open (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_iconv_libiconv_open=yes +-else +- ac_cv_lib_iconv_libiconv_open=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5 +-$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; } +-if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then : +- libiconv="y" +-else +- libiconv="n" +-fi +- +- +-ac_fn_c_check_header_mongrel "$LINENO" "argp.h" "ac_cv_header_argp_h" "$ac_includes_default" +-if test "x$ac_cv_header_argp_h" = xyes; then : +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for argp_usage in -largp" >&5 +-$as_echo_n "checking for argp_usage in -largp... " >&6; } +-if ${ac_cv_lib_argp_argp_usage+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-largp $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char argp_usage (); +-int +-main () +-{ +-return argp_usage (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_argp_argp_usage=yes +-else +- ac_cv_lib_argp_argp_usage=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_argp_argp_usage" >&5 +-$as_echo "$ac_cv_lib_argp_argp_usage" >&6; } +-if test "x$ac_cv_lib_argp_argp_usage" = xyes; then : +- argp_ldflags="-largp" +-fi +- +- +-else +- as_fn_error $? "Could not find argp" "$LINENO" 5 +-fi +- +- +- +- +-# FDT is needed only on ARM +-case "$host_cpu" in +-arm*|aarch64) +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdt_create in -lfdt" >&5 +-$as_echo_n "checking for fdt_create in -lfdt... " >&6; } +-if ${ac_cv_lib_fdt_fdt_create+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lfdt $LIBS" +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-/* Override any GCC internal prototype to avoid an error. +- Use char because int might match the return type of a GCC +- builtin and then its argument prototype would still apply. */ +-#ifdef __cplusplus +-extern "C" +-#endif +-char fdt_create (); +-int +-main () +-{ +-return fdt_create (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_fdt_fdt_create=yes +-else +- ac_cv_lib_fdt_fdt_create=no +-fi +-rm -f core conftest.err conftest.$ac_objext \ +- conftest$ac_exeext conftest.$ac_ext +-LIBS=$ac_check_lib_save_LIBS +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdt_fdt_create" >&5 +-$as_echo "$ac_cv_lib_fdt_fdt_create" >&6; } +-if test "x$ac_cv_lib_fdt_fdt_create" = xyes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBFDT 1 +-_ACEOF +- +- LIBS="-lfdt $LIBS" +- +-else +- as_fn_error $? "Could not find libfdt" "$LINENO" 5 +-fi +- +- +-# Check for libfdt >= 1.4.0. If present enable passthrough +-# Note that libfdt doesn't provide versionning. So we need to rely on +-# function present in new version. +-# Use fdt_first_property_offset which has been correctly exported since v1.4.0 +-ac_fn_c_check_func "$LINENO" "fdt_first_property_offset" "ac_cv_func_fdt_first_property_offset" +-if test "x$ac_cv_func_fdt_first_property_offset" = xyes; then : +- partial_dt="y" +-else +- partial_dt="n" +-fi +- +- +-if test "x$partial_dt" = "xy" ; then : +- +-$as_echo "#define ENABLE_PARTIAL_DEVICE_TREE 1" >>confdefs.h +- +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling support for partial device tree in libxl. +- Please install libfdt library - version 1.4.0 or higher" >&5 +-$as_echo "$as_me: WARNING: Disabling support for partial device tree in libxl. +- Please install libfdt library - version 1.4.0 or higher" >&2;} +-fi +- +-# The functions fdt_{first,next}_subnode may not be available because: +-# * It has been introduced in 2013 => Doesn't work on Wheezy +-# * The prototype exists but the functions are not exposed. Don't ask why... +-for ac_func in fdt_first_subnode fdt_next_subnode +-do : +- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +-if eval test \"x\$"$as_ac_var"\" = x"yes"; then : +- cat >>confdefs.h <<_ACEOF +-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +-_ACEOF +- +-fi +-done +- +-ac_fn_c_check_decl "$LINENO" "fdt_first_subnode" "ac_cv_have_decl_fdt_first_subnode" "#include +-" +-if test "x$ac_cv_have_decl_fdt_first_subnode" = xyes; then : +- ac_have_decl=1 +-else +- ac_have_decl=0 +-fi +- +-cat >>confdefs.h <<_ACEOF +-#define HAVE_DECL_FDT_FIRST_SUBNODE $ac_have_decl +-_ACEOF +-ac_fn_c_check_decl "$LINENO" "fdt_next_subnode" "ac_cv_have_decl_fdt_next_subnode" "#include +-" +-if test "x$ac_cv_have_decl_fdt_next_subnode" = xyes; then : +- ac_have_decl=1 +-else +- ac_have_decl=0 +-fi +- +-cat >>confdefs.h <<_ACEOF +-#define HAVE_DECL_FDT_NEXT_SUBNODE $ac_have_decl +-_ACEOF +- +- +-# The helper fdt_property_u32 is only present in libfdt >= 1.4.0 +-# It's an inline function, so only check if the declaration is present +-ac_fn_c_check_decl "$LINENO" "fdt_property_u32" "ac_cv_have_decl_fdt_property_u32" "#include +-" +-if test "x$ac_cv_have_decl_fdt_property_u32" = xyes; then : +- ac_have_decl=1 +-else +- ac_have_decl=0 +-fi +- +-cat >>confdefs.h <<_ACEOF +-#define HAVE_DECL_FDT_PROPERTY_U32 $ac_have_decl +-_ACEOF +- +-esac +- +-# Checks for header files. +-for ac_header in yajl/yajl_version.h sys/eventfd.h valgrind/memcheck.h utmp.h +-do : +- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +-ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +- cat >>confdefs.h <<_ACEOF +-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +-_ACEOF +- +-fi +- +-done +- +- +-# Check for libnl3 >=3.2.8. If present enable remus network buffering. +- +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNL3" >&5 +-$as_echo_n "checking for LIBNL3... " >&6; } +- +-if test -n "$LIBNL3_CFLAGS"; then +- pkg_cv_LIBNL3_CFLAGS="$LIBNL3_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0 >= 3.2.8 libnl-route-3.0 >= 3.2.8\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "libnl-3.0 >= 3.2.8 libnl-route-3.0 >= 3.2.8") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_LIBNL3_CFLAGS=`$PKG_CONFIG --cflags "libnl-3.0 >= 3.2.8 libnl-route-3.0 >= 3.2.8" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$LIBNL3_LIBS"; then +- pkg_cv_LIBNL3_LIBS="$LIBNL3_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-3.0 >= 3.2.8 libnl-route-3.0 >= 3.2.8\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "libnl-3.0 >= 3.2.8 libnl-route-3.0 >= 3.2.8") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_LIBNL3_LIBS=`$PKG_CONFIG --libs "libnl-3.0 >= 3.2.8 libnl-route-3.0 >= 3.2.8" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- LIBNL3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-3.0 >= 3.2.8 libnl-route-3.0 >= 3.2.8" 2>&1` +- else +- LIBNL3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-3.0 >= 3.2.8 libnl-route-3.0 >= 3.2.8" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$LIBNL3_PKG_ERRORS" >&5 +- +- libnl3_lib="n" +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- libnl3_lib="n" +-else +- LIBNL3_CFLAGS=$pkg_cv_LIBNL3_CFLAGS +- LIBNL3_LIBS=$pkg_cv_LIBNL3_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- libnl3_lib="y" +-fi +- +-if test "x$libnl3_lib" = "xn" ; then : +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling support for Remus network buffering and COLO. +- Please install libnl3 libraries (including libnl3-route), command line tools and devel +- headers - version 3.2.8 or higher" >&5 +-$as_echo "$as_me: WARNING: Disabling support for Remus network buffering and COLO. +- Please install libnl3 libraries (including libnl3-route), command line tools and devel +- headers - version 3.2.8 or higher" >&2;} +- libnl=n +- +- +-else +- +- libnl=y +- +- +-fi +- +- +- +- +-fi # ! $rump +- +- +- +- +-# Check whether --enable-systemd was given. +-if test "${enable_systemd+set}" = set; then : +- enableval=$enable_systemd; +-fi +- +- +-if test "x$enable_systemd" = "xno"; then : +- +- ax_cv_systemd="n" +- +-elif test "x$enable_systemd" = "xyes"; then : +- +- ax_cv_systemd="y" +- +-elif test -z $ax_cv_systemd; then : +- +- ax_cv_systemd="n" +- +-fi +-systemd=$ax_cv_systemd +- +- +- +- +-# Check whether --with-systemd was given. +-if test "${with_systemd+set}" = set; then : +- withval=$with_systemd; SYSTEMD_DIR="$withval" +-else +- SYSTEMD_DIR="" +-fi +- +- +- +- +-# Check whether --with-systemd-modules-load was given. +-if test "${with_systemd_modules_load+set}" = set; then : +- withval=$with_systemd_modules_load; SYSTEMD_MODULES_LOAD="$withval" +-else +- SYSTEMD_MODULES_LOAD="" +-fi +- +- +- +- +- +- +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 +-$as_echo_n "checking for SYSTEMD... " >&6; } +- +-if test -n "$SYSTEMD_CFLAGS"; then +- pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$SYSTEMD_LIBS"; then +- pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` +- else +- SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$SYSTEMD_PKG_ERRORS" >&5 +- +- +- +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 +-$as_echo_n "checking for SYSTEMD... " >&6; } +- +-if test -n "$SYSTEMD_CFLAGS"; then +- pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$SYSTEMD_LIBS"; then +- pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209" 2>&1` +- else +- SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$SYSTEMD_PKG_ERRORS" >&5 +- +- systemd="n" +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- systemd="n" +-else +- SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS +- SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- systemd="y" +-fi +- +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +- +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 +-$as_echo_n "checking for SYSTEMD... " >&6; } +- +-if test -n "$SYSTEMD_CFLAGS"; then +- pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$SYSTEMD_LIBS"; then +- pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209" 2>&1` +- else +- SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$SYSTEMD_PKG_ERRORS" >&5 +- +- systemd="n" +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- systemd="n" +-else +- SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS +- SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- systemd="y" +-fi +- +-else +- SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS +- SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- systemd="y" +-fi +- +- +- if test "x$enable_systemd" != "xno"; then : +- +- if test "x$systemd" = "xy" ; then : +- +- +-$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h +- +- systemd=y +- +- +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 +-$as_echo_n "checking for SYSTEMD... " >&6; } +- +-if test -n "$SYSTEMD_CFLAGS"; then +- pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$SYSTEMD_LIBS"; then +- pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` +- else +- SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$SYSTEMD_PKG_ERRORS" >&5 +- +- +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 +-$as_echo_n "checking for SYSTEMD... " >&6; } +- +-if test -n "$SYSTEMD_CFLAGS"; then +- pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$SYSTEMD_LIBS"; then +- pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209" 2>&1` +- else +- SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$SYSTEMD_PKG_ERRORS" >&5 +- +- as_fn_error $? "Package requirements (libsystemd >= 209) were not met: +- +-$SYSTEMD_PKG_ERRORS +- +-Consider adjusting the PKG_CONFIG_PATH environment variable if you +-installed software in a non-standard prefix. +- +-Alternatively, you may set the environment variables SYSTEMD_CFLAGS +-and SYSTEMD_LIBS to avoid the need to call pkg-config. +-See the pkg-config man page for more details." "$LINENO" 5 +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +-is in your PATH or set the PKG_CONFIG environment variable to the full +-path to pkg-config. +- +-Alternatively, you may set the environment variables SYSTEMD_CFLAGS +-and SYSTEMD_LIBS to avoid the need to call pkg-config. +-See the pkg-config man page for more details. +- +-To get pkg-config, see . +-See \`config.log' for more details" "$LINENO" 5; } +-else +- SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS +- SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- +-fi +- +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-pkg_failed=no +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 +-$as_echo_n "checking for SYSTEMD... " >&6; } +- +-if test -n "$SYSTEMD_CFLAGS"; then +- pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +-if test -n "$SYSTEMD_LIBS"; then +- pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" +- elif test -n "$PKG_CONFIG"; then +- if test -n "$PKG_CONFIG" && \ +- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 +- ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 +- ac_status=$? +- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +- test $ac_status = 0; }; then +- pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209" 2>/dev/null` +- test "x$?" != "x0" && pkg_failed=yes +-else +- pkg_failed=yes +-fi +- else +- pkg_failed=untried +-fi +- +- +- +-if test $pkg_failed = yes; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- +-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then +- _pkg_short_errors_supported=yes +-else +- _pkg_short_errors_supported=no +-fi +- if test $_pkg_short_errors_supported = yes; then +- SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209" 2>&1` +- else +- SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209" 2>&1` +- fi +- # Put the nasty error message in config.log where it belongs +- echo "$SYSTEMD_PKG_ERRORS" >&5 +- +- as_fn_error $? "Package requirements (libsystemd >= 209) were not met: +- +-$SYSTEMD_PKG_ERRORS +- +-Consider adjusting the PKG_CONFIG_PATH environment variable if you +-installed software in a non-standard prefix. +- +-Alternatively, you may set the environment variables SYSTEMD_CFLAGS +-and SYSTEMD_LIBS to avoid the need to call pkg-config. +-See the pkg-config man page for more details." "$LINENO" 5 +-elif test $pkg_failed = untried; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +-is in your PATH or set the PKG_CONFIG environment variable to the full +-path to pkg-config. +- +-Alternatively, you may set the environment variables SYSTEMD_CFLAGS +-and SYSTEMD_LIBS to avoid the need to call pkg-config. +-See the pkg-config man page for more details. +- +-To get pkg-config, see . +-See \`config.log' for more details" "$LINENO" 5; } +-else +- SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS +- SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- +-fi +- +-else +- SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS +- SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- +-fi +- +- +- +- if test "x$SYSTEMD_DIR" = x; then : +- +- SYSTEMD_DIR="\$(prefix)/lib/systemd/system/" +- +-fi +- +- if test "x$SYSTEMD_DIR" = x; then : +- +- as_fn_error $? "SYSTEMD_DIR is unset" "$LINENO" 5 +- +-fi +- +- if test "x$SYSTEMD_MODULES_LOAD" = x; then : +- +- SYSTEMD_MODULES_LOAD="\$(prefix)/lib/modules-load.d/" +- +-fi +- +- if test "x$SYSTEMD_MODULES_LOAD" = x; then : +- +- as_fn_error $? "SYSTEMD_MODULES_LOAD is unset" "$LINENO" 5 +- +-fi +- +- +-else +- +- if test "x$enable_systemd" = "xyes"; then : +- as_fn_error $? "Unable to find systemd development library" "$LINENO" 5 +-else +- systemd=n +-fi +- +-fi +- +-else +- systemd=n +-fi +- +- +- +-if test "x$systemd" = "xy"; then : +- +- ac_config_files="$ac_config_files hotplug/Linux/systemd/proc-xen.mount hotplug/Linux/systemd/var-lib-xenstored.mount hotplug/Linux/systemd/xen-init-dom0.service hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service hotplug/Linux/systemd/xen-watchdog.service hotplug/Linux/systemd/xenconsoled.service hotplug/Linux/systemd/xendomains.service hotplug/Linux/systemd/xendriverdomain.service hotplug/Linux/systemd/xenstored.service" +- +- +-fi +- +-# Check whether --enable-9pfs was given. +-if test "${enable_9pfs+set}" = set; then : +- enableval=$enable_9pfs; if test "x$enable_9pfs" = "xyes"; then : +- ninepfs=y +-else +- ninepfs=n +-fi +-fi +- +- +- +- +-# Check whether --enable-pvshim was given. +-if test "${enable_pvshim+set}" = set; then : +- enableval=$enable_pvshim; if test "x$enable_pvshim" = "xno"; then : +- pvshim=n +-else +- pvshim=y +-fi +-else +- +- cpu=`test -z "$target_cpu" && echo "$host_cpu" || echo "$target_cpu"` +- case "${XEN_COMPILE_ARCH-${XEN_TARGET_ARCH-$cpu}}" in +- x86_64) +- pvshim="y";; +- *) pvshim="n";; +- esac +- +-fi +- +- +- +-cat >confcache <<\_ACEOF +-# This file is a shell script that caches the results of configure +-# tests run on this system so they can be shared between configure +-# scripts and configure runs, see configure's option --config-cache. +-# It is not useful on other systems. If it contains results you don't +-# want to keep, you may remove or edit it. +-# +-# config.status only pays attention to the cache file if you give it +-# the --recheck option to rerun configure. +-# +-# `ac_cv_env_foo' variables (set or unset) will be overridden when +-# loading this file, other *unset* `ac_cv_foo' will be assigned the +-# following values. +- +-_ACEOF +- +-# The following way of writing the cache mishandles newlines in values, +-# but we know of no workaround that is simple, portable, and efficient. +-# So, we kill variables containing newlines. +-# Ultrix sh set writes to stderr and can't be redirected directly, +-# and sets the high bit in the cache file unless we assign to the vars. +-( +- for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do +- eval ac_val=\$$ac_var +- case $ac_val in #( +- *${as_nl}*) +- case $ac_var in #( +- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +-$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; +- esac +- case $ac_var in #( +- _ | IFS | as_nl) ;; #( +- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( +- *) { eval $ac_var=; unset $ac_var;} ;; +- esac ;; +- esac +- done +- +- (set) 2>&1 | +- case $as_nl`(ac_space=' '; set) 2>&1` in #( +- *${as_nl}ac_space=\ *) +- # `set' does not quote correctly, so add quotes: double-quote +- # substitution turns \\\\ into \\, and sed turns \\ into \. +- sed -n \ +- "s/'/'\\\\''/g; +- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" +- ;; #( +- *) +- # `set' quotes correctly as required by POSIX, so do not add quotes. +- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" +- ;; +- esac | +- sort +-) | +- sed ' +- /^ac_cv_env_/b end +- t clear +- :clear +- s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ +- t end +- s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ +- :end' >>confcache +-if diff "$cache_file" confcache >/dev/null 2>&1; then :; else +- if test -w "$cache_file"; then +- if test "x$cache_file" != "x/dev/null"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +-$as_echo "$as_me: updating cache $cache_file" >&6;} +- if test ! -f "$cache_file" || test -h "$cache_file"; then +- cat confcache >"$cache_file" +- else +- case $cache_file in #( +- */* | ?:*) +- mv -f confcache "$cache_file"$$ && +- mv -f "$cache_file"$$ "$cache_file" ;; #( +- *) +- mv -f confcache "$cache_file" ;; +- esac +- fi +- fi +- else +- { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +-$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} +- fi +-fi +-rm -f confcache +- +-test "x$prefix" = xNONE && prefix=$ac_default_prefix +-# Let make expand exec_prefix. +-test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' +- +-DEFS=-DHAVE_CONFIG_H +- +-ac_libobjs= +-ac_ltlibobjs= +-U= +-for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue +- # 1. Remove the extension, and $U if already installed. +- ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' +- ac_i=`$as_echo "$ac_i" | sed "$ac_script"` +- # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR +- # will be set to the directory where LIBOBJS objects are built. +- as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" +- as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +-done +-LIBOBJS=$ac_libobjs +- +-LTLIBOBJS=$ac_ltlibobjs +- +- +- +-: "${CONFIG_STATUS=./config.status}" +-ac_write_fail=0 +-ac_clean_files_save=$ac_clean_files +-ac_clean_files="$ac_clean_files $CONFIG_STATUS" +-{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +-$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +-as_write_fail=0 +-cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +-#! $SHELL +-# Generated by $as_me. +-# Run this file to recreate the current configuration. +-# Compiler output produced by configure, useful for debugging +-# configure, is in config.log if it exists. +- +-debug=false +-ac_cs_recheck=false +-ac_cs_silent=false +- +-SHELL=\${CONFIG_SHELL-$SHELL} +-export SHELL +-_ASEOF +-cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +-## -------------------- ## +-## M4sh Initialization. ## +-## -------------------- ## +- +-# Be more Bourne compatible +-DUALCASE=1; export DUALCASE # for MKS sh +-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +- emulate sh +- NULLCMD=: +- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which +- # is contrary to our usage. Disable this feature. +- alias -g '${1+"$@"}'='"$@"' +- setopt NO_GLOB_SUBST +-else +- case `(set -o) 2>/dev/null` in #( +- *posix*) : +- set -o posix ;; #( +- *) : +- ;; +-esac +-fi +- +- +-as_nl=' +-' +-export as_nl +-# Printing a long string crashes Solaris 7 /usr/bin/printf. +-as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +-as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +-# Prefer a ksh shell builtin over an external printf program on Solaris, +-# but without wasting forks for bash or zsh. +-if test -z "$BASH_VERSION$ZSH_VERSION" \ +- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then +- as_echo='print -r --' +- as_echo_n='print -rn --' +-elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then +- as_echo='printf %s\n' +- as_echo_n='printf %s' +-else +- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then +- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' +- as_echo_n='/usr/ucb/echo -n' +- else +- as_echo_body='eval expr "X$1" : "X\\(.*\\)"' +- as_echo_n_body='eval +- arg=$1; +- case $arg in #( +- *"$as_nl"*) +- expr "X$arg" : "X\\(.*\\)$as_nl"; +- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; +- esac; +- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" +- ' +- export as_echo_n_body +- as_echo_n='sh -c $as_echo_n_body as_echo' +- fi +- export as_echo_body +- as_echo='sh -c $as_echo_body as_echo' +-fi +- +-# The user is always right. +-if test "${PATH_SEPARATOR+set}" != set; then +- PATH_SEPARATOR=: +- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { +- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || +- PATH_SEPARATOR=';' +- } +-fi +- +- +-# IFS +-# We need space, tab and new line, in precisely that order. Quoting is +-# there to prevent editors from complaining about space-tab. +-# (If _AS_PATH_WALK were called with IFS unset, it would disable word +-# splitting by setting IFS to empty value.) +-IFS=" "" $as_nl" +- +-# Find who we are. Look in the path if we contain no directory separator. +-as_myself= +-case $0 in #(( +- *[\\/]* ) as_myself=$0 ;; +- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +-for as_dir in $PATH +-do +- IFS=$as_save_IFS +- test -z "$as_dir" && as_dir=. +- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +- done +-IFS=$as_save_IFS +- +- ;; +-esac +-# We did not find ourselves, most probably we were run as `sh COMMAND' +-# in which case we are not to be found in the path. +-if test "x$as_myself" = x; then +- as_myself=$0 +-fi +-if test ! -f "$as_myself"; then +- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 +- exit 1 +-fi +- +-# Unset variables that we do not need and which cause bugs (e.g. in +-# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +-# suppresses any "Segmentation fault" message there. '((' could +-# trigger a bug in pdksh 5.2.14. +-for as_var in BASH_ENV ENV MAIL MAILPATH +-do eval test x\${$as_var+set} = xset \ +- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +-done +-PS1='$ ' +-PS2='> ' +-PS4='+ ' +- +-# NLS nuisances. +-LC_ALL=C +-export LC_ALL +-LANGUAGE=C +-export LANGUAGE +- +-# CDPATH. +-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH +- +- +-# as_fn_error STATUS ERROR [LINENO LOG_FD] +-# ---------------------------------------- +-# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +-# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +-# script with STATUS, using 1 if that was 0. +-as_fn_error () +-{ +- as_status=$1; test $as_status -eq 0 && as_status=1 +- if test "$4"; then +- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 +- fi +- $as_echo "$as_me: error: $2" >&2 +- as_fn_exit $as_status +-} # as_fn_error +- +- +-# as_fn_set_status STATUS +-# ----------------------- +-# Set $? to STATUS, without forking. +-as_fn_set_status () +-{ +- return $1 +-} # as_fn_set_status +- +-# as_fn_exit STATUS +-# ----------------- +-# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +-as_fn_exit () +-{ +- set +e +- as_fn_set_status $1 +- exit $1 +-} # as_fn_exit +- +-# as_fn_unset VAR +-# --------------- +-# Portably unset VAR. +-as_fn_unset () +-{ +- { eval $1=; unset $1;} +-} +-as_unset=as_fn_unset +-# as_fn_append VAR VALUE +-# ---------------------- +-# Append the text in VALUE to the end of the definition contained in VAR. Take +-# advantage of any shell optimizations that allow amortized linear growth over +-# repeated appends, instead of the typical quadratic growth present in naive +-# implementations. +-if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +- eval 'as_fn_append () +- { +- eval $1+=\$2 +- }' +-else +- as_fn_append () +- { +- eval $1=\$$1\$2 +- } +-fi # as_fn_append +- +-# as_fn_arith ARG... +-# ------------------ +-# Perform arithmetic evaluation on the ARGs, and store the result in the +-# global $as_val. Take advantage of shells that can avoid forks. The arguments +-# must be portable across $(()) and expr. +-if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +- eval 'as_fn_arith () +- { +- as_val=$(( $* )) +- }' +-else +- as_fn_arith () +- { +- as_val=`expr "$@" || test $? -eq 1` +- } +-fi # as_fn_arith +- +- +-if expr a : '\(a\)' >/dev/null 2>&1 && +- test "X`expr 00001 : '.*\(...\)'`" = X001; then +- as_expr=expr +-else +- as_expr=false +-fi +- +-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then +- as_basename=basename +-else +- as_basename=false +-fi +- +-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then +- as_dirname=dirname +-else +- as_dirname=false +-fi +- +-as_me=`$as_basename -- "$0" || +-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ +- X"$0" : 'X\(//\)$' \| \ +- X"$0" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X/"$0" | +- sed '/^.*\/\([^/][^/]*\)\/*$/{ +- s//\1/ +- q +- } +- /^X\/\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\/\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- +-# Avoid depending upon Character Ranges. +-as_cr_letters='abcdefghijklmnopqrstuvwxyz' +-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +-as_cr_Letters=$as_cr_letters$as_cr_LETTERS +-as_cr_digits='0123456789' +-as_cr_alnum=$as_cr_Letters$as_cr_digits +- +-ECHO_C= ECHO_N= ECHO_T= +-case `echo -n x` in #((((( +--n*) +- case `echo 'xy\c'` in +- *c*) ECHO_T=' ';; # ECHO_T is single tab character. +- xy) ECHO_C='\c';; +- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null +- ECHO_T=' ';; +- esac;; +-*) +- ECHO_N='-n';; +-esac +- +-rm -f conf$$ conf$$.exe conf$$.file +-if test -d conf$$.dir; then +- rm -f conf$$.dir/conf$$.file +-else +- rm -f conf$$.dir +- mkdir conf$$.dir 2>/dev/null +-fi +-if (echo >conf$$.file) 2>/dev/null; then +- if ln -s conf$$.file conf$$ 2>/dev/null; then +- as_ln_s='ln -s' +- # ... but there are two gotchas: +- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. +- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. +- # In both cases, we have to default to `cp -pR'. +- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +- as_ln_s='cp -pR' +- elif ln conf$$.file conf$$ 2>/dev/null; then +- as_ln_s=ln +- else +- as_ln_s='cp -pR' +- fi +-else +- as_ln_s='cp -pR' +-fi +-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +-rmdir conf$$.dir 2>/dev/null +- +- +-# as_fn_mkdir_p +-# ------------- +-# Create "$as_dir" as a directory, including parents if necessary. +-as_fn_mkdir_p () +-{ +- +- case $as_dir in #( +- -*) as_dir=./$as_dir;; +- esac +- test -d "$as_dir" || eval $as_mkdir_p || { +- as_dirs= +- while :; do +- case $as_dir in #( +- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( +- *) as_qdir=$as_dir;; +- esac +- as_dirs="'$as_qdir' $as_dirs" +- as_dir=`$as_dirname -- "$as_dir" || +-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +- X"$as_dir" : 'X\(//\)[^/]' \| \ +- X"$as_dir" : 'X\(//\)$' \| \ +- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X"$as_dir" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)[^/].*/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- test -d "$as_dir" && break +- done +- test -z "$as_dirs" || eval "mkdir $as_dirs" +- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" +- +- +-} # as_fn_mkdir_p +-if mkdir -p . 2>/dev/null; then +- as_mkdir_p='mkdir -p "$as_dir"' +-else +- test -d ./-p && rmdir ./-p +- as_mkdir_p=false +-fi +- +- +-# as_fn_executable_p FILE +-# ----------------------- +-# Test if FILE is an executable regular file. +-as_fn_executable_p () +-{ +- test -f "$1" && test -x "$1" +-} # as_fn_executable_p +-as_test_x='test -x' +-as_executable_p=as_fn_executable_p +- +-# Sed expression to map a string onto a valid CPP name. +-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +- +-# Sed expression to map a string onto a valid variable name. +-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +- +- +-exec 6>&1 +-## ----------------------------------- ## +-## Main body of $CONFIG_STATUS script. ## +-## ----------------------------------- ## +-_ASEOF +-test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-# Save the log message, to keep $0 and so on meaningful, and to +-# report actual input values of CONFIG_FILES etc. instead of their +-# values after options handling. +-ac_log=" +-This file was extended by Xen Hypervisor Tools $as_me 4.14, which was +-generated by GNU Autoconf 2.69. Invocation command line was +- +- CONFIG_FILES = $CONFIG_FILES +- CONFIG_HEADERS = $CONFIG_HEADERS +- CONFIG_LINKS = $CONFIG_LINKS +- CONFIG_COMMANDS = $CONFIG_COMMANDS +- $ $0 $@ +- +-on `(hostname || uname -n) 2>/dev/null | sed 1q` +-" +- +-_ACEOF +- +-case $ac_config_files in *" +-"*) set x $ac_config_files; shift; ac_config_files=$*;; +-esac +- +-case $ac_config_headers in *" +-"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +-esac +- +- +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-# Files that config.status was made for. +-config_files="$ac_config_files" +-config_headers="$ac_config_headers" +- +-_ACEOF +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-ac_cs_usage="\ +-\`$as_me' instantiates files and other configuration actions +-from templates according to the current configuration. Unless the files +-and actions are specified as TAGs, all are instantiated by default. +- +-Usage: $0 [OPTION]... [TAG]... +- +- -h, --help print this help, then exit +- -V, --version print version number and configuration settings, then exit +- --config print configuration, then exit +- -q, --quiet, --silent +- do not print progress messages +- -d, --debug don't remove temporary files +- --recheck update $as_me by reconfiguring in the same conditions +- --file=FILE[:TEMPLATE] +- instantiate the configuration file FILE +- --header=FILE[:TEMPLATE] +- instantiate the configuration header FILE +- +-Configuration files: +-$config_files +- +-Configuration headers: +-$config_headers +- +-Report bugs to . +-Xen Hypervisor Tools home page: ." +- +-_ACEOF +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +-ac_cs_version="\\ +-Xen Hypervisor Tools config.status 4.14 +-configured by $0, generated by GNU Autoconf 2.69, +- with options \\"\$ac_cs_config\\" +- +-Copyright (C) 2012 Free Software Foundation, Inc. +-This config.status script is free software; the Free Software Foundation +-gives unlimited permission to copy, distribute and modify it." +- +-ac_pwd='$ac_pwd' +-srcdir='$srcdir' +-INSTALL='$INSTALL' +-AWK='$AWK' +-test -n "\$AWK" || AWK=awk +-_ACEOF +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-# The default lists apply if the user does not specify any file. +-ac_need_defaults=: +-while test $# != 0 +-do +- case $1 in +- --*=?*) +- ac_option=`expr "X$1" : 'X\([^=]*\)='` +- ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` +- ac_shift=: +- ;; +- --*=) +- ac_option=`expr "X$1" : 'X\([^=]*\)='` +- ac_optarg= +- ac_shift=: +- ;; +- *) +- ac_option=$1 +- ac_optarg=$2 +- ac_shift=shift +- ;; +- esac +- +- case $ac_option in +- # Handling of the options. +- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) +- ac_cs_recheck=: ;; +- --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) +- $as_echo "$ac_cs_version"; exit ;; +- --config | --confi | --conf | --con | --co | --c ) +- $as_echo "$ac_cs_config"; exit ;; +- --debug | --debu | --deb | --de | --d | -d ) +- debug=: ;; +- --file | --fil | --fi | --f ) +- $ac_shift +- case $ac_optarg in +- *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; +- '') as_fn_error $? "missing file argument" ;; +- esac +- as_fn_append CONFIG_FILES " '$ac_optarg'" +- ac_need_defaults=false;; +- --header | --heade | --head | --hea ) +- $ac_shift +- case $ac_optarg in +- *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; +- esac +- as_fn_append CONFIG_HEADERS " '$ac_optarg'" +- ac_need_defaults=false;; +- --he | --h) +- # Conflict between --help and --header +- as_fn_error $? "ambiguous option: \`$1' +-Try \`$0 --help' for more information.";; +- --help | --hel | -h ) +- $as_echo "$ac_cs_usage"; exit ;; +- -q | -quiet | --quiet | --quie | --qui | --qu | --q \ +- | -silent | --silent | --silen | --sile | --sil | --si | --s) +- ac_cs_silent=: ;; +- +- # This is an error. +- -*) as_fn_error $? "unrecognized option: \`$1' +-Try \`$0 --help' for more information." ;; +- +- *) as_fn_append ac_config_targets " $1" +- ac_need_defaults=false ;; +- +- esac +- shift +-done +- +-ac_configure_extra_args= +- +-if $ac_cs_silent; then +- exec 6>/dev/null +- ac_configure_extra_args="$ac_configure_extra_args --silent" +-fi +- +-_ACEOF +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-if \$ac_cs_recheck; then +- set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion +- shift +- \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 +- CONFIG_SHELL='$SHELL' +- export CONFIG_SHELL +- exec "\$@" +-fi +- +-_ACEOF +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-exec 5>>config.log +-{ +- echo +- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +-## Running $as_me. ## +-_ASBOX +- $as_echo "$ac_log" +-} >&5 +- +-_ACEOF +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-_ACEOF +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +- +-# Handling of arguments. +-for ac_config_target in $ac_config_targets +-do +- case $ac_config_target in +- "../config/Tools.mk") CONFIG_FILES="$CONFIG_FILES ../config/Tools.mk" ;; +- "hotplug/FreeBSD/rc.d/xencommons") CONFIG_FILES="$CONFIG_FILES hotplug/FreeBSD/rc.d/xencommons" ;; +- "hotplug/FreeBSD/rc.d/xendriverdomain") CONFIG_FILES="$CONFIG_FILES hotplug/FreeBSD/rc.d/xendriverdomain" ;; +- "hotplug/Linux/init.d/sysconfig.xencommons") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/init.d/sysconfig.xencommons" ;; +- "hotplug/Linux/init.d/sysconfig.xendomains") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/init.d/sysconfig.xendomains" ;; +- "hotplug/Linux/init.d/xen-watchdog") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/init.d/xen-watchdog" ;; +- "hotplug/Linux/init.d/xencommons") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/init.d/xencommons" ;; +- "hotplug/Linux/init.d/xendomains") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/init.d/xendomains" ;; +- "hotplug/Linux/init.d/xendriverdomain") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/init.d/xendriverdomain" ;; +- "hotplug/Linux/launch-xenstore") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/launch-xenstore" ;; +- "hotplug/Linux/vif-setup") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/vif-setup" ;; +- "hotplug/Linux/xen-hotplug-common.sh") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/xen-hotplug-common.sh" ;; +- "hotplug/Linux/xendomains") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/xendomains" ;; +- "hotplug/NetBSD/rc.d/xencommons") CONFIG_FILES="$CONFIG_FILES hotplug/NetBSD/rc.d/xencommons" ;; +- "hotplug/NetBSD/rc.d/xendriverdomain") CONFIG_FILES="$CONFIG_FILES hotplug/NetBSD/rc.d/xendriverdomain" ;; +- "ocaml/xenstored/oxenstored.conf") CONFIG_FILES="$CONFIG_FILES ocaml/xenstored/oxenstored.conf" ;; +- "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; +- "hotplug/Linux/systemd/proc-xen.mount") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/systemd/proc-xen.mount" ;; +- "hotplug/Linux/systemd/var-lib-xenstored.mount") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/systemd/var-lib-xenstored.mount" ;; +- "hotplug/Linux/systemd/xen-init-dom0.service") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/systemd/xen-init-dom0.service" ;; +- "hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service" ;; +- "hotplug/Linux/systemd/xen-watchdog.service") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/systemd/xen-watchdog.service" ;; +- "hotplug/Linux/systemd/xenconsoled.service") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/systemd/xenconsoled.service" ;; +- "hotplug/Linux/systemd/xendomains.service") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/systemd/xendomains.service" ;; +- "hotplug/Linux/systemd/xendriverdomain.service") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/systemd/xendriverdomain.service" ;; +- "hotplug/Linux/systemd/xenstored.service") CONFIG_FILES="$CONFIG_FILES hotplug/Linux/systemd/xenstored.service" ;; +- +- *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; +- esac +-done +- +- +-# If the user did not use the arguments to specify the items to instantiate, +-# then the envvar interface is used. Set only those that are not. +-# We use the long form for the default assignment because of an extremely +-# bizarre bug on SunOS 4.1.3. +-if $ac_need_defaults; then +- test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files +- test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers +-fi +- +-# Have a temporary directory for convenience. Make it in the build tree +-# simply because there is no reason against having it here, and in addition, +-# creating and moving files from /tmp can sometimes cause problems. +-# Hook for its removal unless debugging. +-# Note that there is a small window in which the directory will not be cleaned: +-# after its creation but before its name has been assigned to `$tmp'. +-$debug || +-{ +- tmp= ac_tmp= +- trap 'exit_status=$? +- : "${ac_tmp:=$tmp}" +- { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +-' 0 +- trap 'as_fn_exit 1' 1 2 13 15 +-} +-# Create a (secure) tmp directory for tmp files. +- +-{ +- tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && +- test -d "$tmp" +-} || +-{ +- tmp=./conf$$-$RANDOM +- (umask 077 && mkdir "$tmp") +-} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +-ac_tmp=$tmp +- +-# Set up the scripts for CONFIG_FILES section. +-# No need to generate them if there are no CONFIG_FILES. +-# This happens for instance with `./config.status config.h'. +-if test -n "$CONFIG_FILES"; then +- +- +-ac_cr=`echo X | tr X '\015'` +-# On cygwin, bash can eat \r inside `` if the user requested igncr. +-# But we know of no other shell where ac_cr would be empty at this +-# point, so we can use a bashism as a fallback. +-if test "x$ac_cr" = x; then +- eval ac_cr=\$\'\\r\' +-fi +-ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +-if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then +- ac_cs_awk_cr='\\r' +-else +- ac_cs_awk_cr=$ac_cr +-fi +- +-echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +-_ACEOF +- +- +-{ +- echo "cat >conf$$subs.awk <<_ACEOF" && +- echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && +- echo "_ACEOF" +-} >conf$$subs.sh || +- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +-ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +-ac_delim='%!_!# ' +-for ac_last_try in false false false false false :; do +- . ./conf$$subs.sh || +- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +- +- ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` +- if test $ac_delim_n = $ac_delim_num; then +- break +- elif $ac_last_try; then +- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +- else +- ac_delim="$ac_delim!$ac_delim _$ac_delim!! " +- fi +-done +-rm -f conf$$subs.sh +- +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +-_ACEOF +-sed -n ' +-h +-s/^/S["/; s/!.*/"]=/ +-p +-g +-s/^[^!]*!// +-:repl +-t repl +-s/'"$ac_delim"'$// +-t delim +-:nl +-h +-s/\(.\{148\}\)..*/\1/ +-t more1 +-s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +-p +-n +-b repl +-:more1 +-s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +-p +-g +-s/.\{148\}// +-t nl +-:delim +-h +-s/\(.\{148\}\)..*/\1/ +-t more2 +-s/["\\]/\\&/g; s/^/"/; s/$/"/ +-p +-b +-:more2 +-s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +-p +-g +-s/.\{148\}// +-t delim +-' >$CONFIG_STATUS || ac_write_fail=1 +-rm -f conf$$subs.awk +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-_ACAWK +-cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && +- for (key in S) S_is_set[key] = 1 +- FS = "" +- +-} +-{ +- line = $ 0 +- nfields = split(line, field, "@") +- substed = 0 +- len = length(field[1]) +- for (i = 2; i < nfields; i++) { +- key = field[i] +- keylen = length(key) +- if (S_is_set[key]) { +- value = S[key] +- line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) +- len += length(value) + length(field[++i]) +- substed = 1 +- } else +- len += 1 + keylen +- } +- +- print line +-} +- +-_ACAWK +-_ACEOF +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then +- sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +-else +- cat +-fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ +- || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +-_ACEOF +- +-# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +-# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +-# trailing colons and then remove the whole line if VPATH becomes empty +-# (actually we leave an empty line to preserve line numbers). +-if test "x$srcdir" = x.; then +- ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +-h +-s/// +-s/^/:/ +-s/[ ]*$/:/ +-s/:\$(srcdir):/:/g +-s/:\${srcdir}:/:/g +-s/:@srcdir@:/:/g +-s/^:*// +-s/:*$// +-x +-s/\(=[ ]*\).*/\1/ +-G +-s/\n// +-s/^[^=]*=[ ]*$// +-}' +-fi +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-fi # test -n "$CONFIG_FILES" +- +-# Set up the scripts for CONFIG_HEADERS section. +-# No need to generate them if there are no CONFIG_HEADERS. +-# This happens for instance with `./config.status Makefile'. +-if test -n "$CONFIG_HEADERS"; then +-cat >"$ac_tmp/defines.awk" <<\_ACAWK || +-BEGIN { +-_ACEOF +- +-# Transform confdefs.h into an awk script `defines.awk', embedded as +-# here-document in config.status, that substitutes the proper values into +-# config.h.in to produce config.h. +- +-# Create a delimiter string that does not exist in confdefs.h, to ease +-# handling of long lines. +-ac_delim='%!_!# ' +-for ac_last_try in false false :; do +- ac_tt=`sed -n "/$ac_delim/p" confdefs.h` +- if test -z "$ac_tt"; then +- break +- elif $ac_last_try; then +- as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 +- else +- ac_delim="$ac_delim!$ac_delim _$ac_delim!! " +- fi +-done +- +-# For the awk script, D is an array of macro values keyed by name, +-# likewise P contains macro parameters if any. Preserve backslash +-# newline sequences. +- +-ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +-sed -n ' +-s/.\{148\}/&'"$ac_delim"'/g +-t rset +-:rset +-s/^[ ]*#[ ]*define[ ][ ]*/ / +-t def +-d +-:def +-s/\\$// +-t bsnl +-s/["\\]/\\&/g +-s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +-D["\1"]=" \3"/p +-s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +-d +-:bsnl +-s/["\\]/\\&/g +-s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +-D["\1"]=" \3\\\\\\n"\\/p +-t cont +-s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +-t cont +-d +-:cont +-n +-s/.\{148\}/&'"$ac_delim"'/g +-t clear +-:clear +-s/\\$// +-t bsnlc +-s/["\\]/\\&/g; s/^/"/; s/$/"/p +-d +-:bsnlc +-s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +-b cont +-' >$CONFIG_STATUS || ac_write_fail=1 +- +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +- for (key in D) D_is_set[key] = 1 +- FS = "" +-} +-/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { +- line = \$ 0 +- split(line, arg, " ") +- if (arg[1] == "#") { +- defundef = arg[2] +- mac1 = arg[3] +- } else { +- defundef = substr(arg[1], 2) +- mac1 = arg[2] +- } +- split(mac1, mac2, "(") #) +- macro = mac2[1] +- prefix = substr(line, 1, index(line, defundef) - 1) +- if (D_is_set[macro]) { +- # Preserve the white space surrounding the "#". +- print prefix "define", macro P[macro] D[macro] +- next +- } else { +- # Replace #undef with comments. This is necessary, for example, +- # in the case of _POSIX_SOURCE, which is predefined and required +- # on some systems where configure will not decide to define it. +- if (defundef == "undef") { +- print "/*", prefix defundef, macro, "*/" +- next +- } +- } +-} +-{ print } +-_ACAWK +-_ACEOF +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +- as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +-fi # test -n "$CONFIG_HEADERS" +- +- +-eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " +-shift +-for ac_tag +-do +- case $ac_tag in +- :[FHLC]) ac_mode=$ac_tag; continue;; +- esac +- case $ac_mode$ac_tag in +- :[FHL]*:*);; +- :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; +- :[FH]-) ac_tag=-:-;; +- :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; +- esac +- ac_save_IFS=$IFS +- IFS=: +- set x $ac_tag +- IFS=$ac_save_IFS +- shift +- ac_file=$1 +- shift +- +- case $ac_mode in +- :L) ac_source=$1;; +- :[FH]) +- ac_file_inputs= +- for ac_f +- do +- case $ac_f in +- -) ac_f="$ac_tmp/stdin";; +- *) # Look for the file first in the build tree, then in the source tree +- # (if the path is not absolute). The absolute path cannot be DOS-style, +- # because $ac_f cannot contain `:'. +- test -f "$ac_f" || +- case $ac_f in +- [\\/$]*) false;; +- *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; +- esac || +- as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; +- esac +- case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac +- as_fn_append ac_file_inputs " '$ac_f'" +- done +- +- # Let's still pretend it is `configure' which instantiates (i.e., don't +- # use $as_me), people would be surprised to read: +- # /* config.h. Generated by config.status. */ +- configure_input='Generated from '` +- $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' +- `' by configure.' +- if test x"$ac_file" != x-; then +- configure_input="$ac_file. $configure_input" +- { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +-$as_echo "$as_me: creating $ac_file" >&6;} +- fi +- # Neutralize special characters interpreted by sed in replacement strings. +- case $configure_input in #( +- *\&* | *\|* | *\\* ) +- ac_sed_conf_input=`$as_echo "$configure_input" | +- sed 's/[\\\\&|]/\\\\&/g'`;; #( +- *) ac_sed_conf_input=$configure_input;; +- esac +- +- case $ac_tag in +- *:-:* | *:-) cat >"$ac_tmp/stdin" \ +- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; +- esac +- ;; +- esac +- +- ac_dir=`$as_dirname -- "$ac_file" || +-$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +- X"$ac_file" : 'X\(//\)[^/]' \| \ +- X"$ac_file" : 'X\(//\)$' \| \ +- X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +-$as_echo X"$ac_file" | +- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)[^/].*/{ +- s//\1/ +- q +- } +- /^X\(\/\/\)$/{ +- s//\1/ +- q +- } +- /^X\(\/\).*/{ +- s//\1/ +- q +- } +- s/.*/./; q'` +- as_dir="$ac_dir"; as_fn_mkdir_p +- ac_builddir=. +- +-case "$ac_dir" in +-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +-*) +- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` +- # A ".." for each directory in $ac_dir_suffix. +- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` +- case $ac_top_builddir_sub in +- "") ac_top_builddir_sub=. ac_top_build_prefix= ;; +- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; +- esac ;; +-esac +-ac_abs_top_builddir=$ac_pwd +-ac_abs_builddir=$ac_pwd$ac_dir_suffix +-# for backward compatibility: +-ac_top_builddir=$ac_top_build_prefix +- +-case $srcdir in +- .) # We are building in place. +- ac_srcdir=. +- ac_top_srcdir=$ac_top_builddir_sub +- ac_abs_top_srcdir=$ac_pwd ;; +- [\\/]* | ?:[\\/]* ) # Absolute name. +- ac_srcdir=$srcdir$ac_dir_suffix; +- ac_top_srcdir=$srcdir +- ac_abs_top_srcdir=$srcdir ;; +- *) # Relative name. +- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix +- ac_top_srcdir=$ac_top_build_prefix$srcdir +- ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +-esac +-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix +- +- +- case $ac_mode in +- :F) +- # +- # CONFIG_FILE +- # +- +- case $INSTALL in +- [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; +- *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; +- esac +-_ACEOF +- +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-# If the template does not know about datarootdir, expand it. +-# FIXME: This hack should be removed a few years after 2.60. +-ac_datarootdir_hack=; ac_datarootdir_seen= +-ac_sed_dataroot=' +-/datarootdir/ { +- p +- q +-} +-/@datadir@/p +-/@docdir@/p +-/@infodir@/p +-/@localedir@/p +-/@mandir@/p' +-case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +-*datarootdir*) ac_datarootdir_seen=yes;; +-*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +-$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +-_ACEOF +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +- ac_datarootdir_hack=' +- s&@datadir@&$datadir&g +- s&@docdir@&$docdir&g +- s&@infodir@&$infodir&g +- s&@localedir@&$localedir&g +- s&@mandir@&$mandir&g +- s&\\\${datarootdir}&$datarootdir&g' ;; +-esac +-_ACEOF +- +-# Neutralize VPATH when `$srcdir' = `.'. +-# Shell code in configure.ac might set extrasub. +-# FIXME: do we really want to maintain this feature? +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-ac_sed_extra="$ac_vpsub +-$extrasub +-_ACEOF +-cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +-:t +-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +-s|@configure_input@|$ac_sed_conf_input|;t t +-s&@top_builddir@&$ac_top_builddir_sub&;t t +-s&@top_build_prefix@&$ac_top_build_prefix&;t t +-s&@srcdir@&$ac_srcdir&;t t +-s&@abs_srcdir@&$ac_abs_srcdir&;t t +-s&@top_srcdir@&$ac_top_srcdir&;t t +-s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +-s&@builddir@&$ac_builddir&;t t +-s&@abs_builddir@&$ac_abs_builddir&;t t +-s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +-s&@INSTALL@&$ac_INSTALL&;t t +-$ac_datarootdir_hack +-" +-eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ +- >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 +- +-test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && +- { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && +- { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ +- "$ac_tmp/out"`; test -z "$ac_out"; } && +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +-which seems to be undefined. Please make sure it is defined" >&5 +-$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +-which seems to be undefined. Please make sure it is defined" >&2;} +- +- rm -f "$ac_tmp/stdin" +- case $ac_file in +- -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; +- *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; +- esac \ +- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 +- ;; +- :H) +- # +- # CONFIG_HEADER +- # +- if test x"$ac_file" != x-; then +- { +- $as_echo "/* $configure_input */" \ +- && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" +- } >"$ac_tmp/config.h" \ +- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 +- if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +-$as_echo "$as_me: $ac_file is unchanged" >&6;} +- else +- rm -f "$ac_file" +- mv "$ac_tmp/config.h" "$ac_file" \ +- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 +- fi +- else +- $as_echo "/* $configure_input */" \ +- && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ +- || as_fn_error $? "could not create -" "$LINENO" 5 +- fi +- ;; +- +- +- esac +- +-done # for ac_tag +- +- +-as_fn_exit 0 +-_ACEOF +-ac_clean_files=$ac_clean_files_save +- +-test $ac_write_fail = 0 || +- as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 +- +- +-# configure is writing to config.log, and then calls config.status. +-# config.status does its own redirection, appending to config.log. +-# Unfortunately, on DOS this fails, as config.log is still kept open +-# by configure, so config.status won't be able to write to it; its +-# output is simply discarded. So we exec the FD to /dev/null, +-# effectively closing config.log, so it can be properly (re)opened and +-# appended to by config.status. When coming back to configure, we +-# need to make the FD available again. +-if test "$no_create" != yes; then +- ac_cs_success=: +- ac_config_status_args= +- test "$silent" = yes && +- ac_config_status_args="$ac_config_status_args --quiet" +- exec 5>/dev/null +- $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false +- exec 5>>config.log +- # Use ||, not &&, to avoid exiting from the if with $? = 1, which +- # would make configure fail if this is the last instruction. +- $ac_cs_success || as_fn_exit 1 +-fi +-if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +-$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +-fi +- diff --git a/patches/0003-version.patch b/patches/0003-version.patch new file mode 100644 index 0000000000..97e4b2cf25 --- /dev/null +++ b/patches/0003-version.patch @@ -0,0 +1,176 @@ +From: Bastian Blank +Date: Sat, 5 Jul 2014 11:46:43 +0200 +Subject: version + +--- + xen/Makefile | 8 +++++--- + xen/common/kernel.c | 8 ++++---- + xen/common/version.c | 22 +++++++++++----------- + xen/drivers/char/console.c | 9 +++------ + xen/include/xen/compile.h.in | 8 ++++---- + xen/include/xen/version.h | 7 ++++--- + 6 files changed, 31 insertions(+), 31 deletions(-) + +diff --git a/xen/Makefile b/xen/Makefile +index 7c98e4a..2cf10a4 100644 +--- a/xen/Makefile ++++ b/xen/Makefile +@@ -382,7 +382,7 @@ delete-unfresh-files: + @mv -f $@.tmp $@ + + # compile.h contains dynamic build info. Rebuilt on every 'make' invocation. +-include/xen/compile.h: include/xen/compile.h.in .banner ++include/xen/compile.h: include/xen/compile.h.in + @sed -e 's/@@date@@/$(XEN_BUILD_DATE)/g' \ + -e 's/@@time@@/$(XEN_BUILD_TIME)/g' \ + -e 's/@@whoami@@/$(XEN_WHOAMI)/g' \ +@@ -393,9 +393,11 @@ include/xen/compile.h: include/xen/compile.h.in .banner + -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \ + -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \ + -e 's!@@changeset@@!$(shell tools/scmversion $(XEN_ROOT) || echo "unavailable")!g' \ ++ -e 's/@@system_distribution@@/$(shell lsb_release -is)/g' \ ++ -e 's/@@system_maintainer_domain@@/$(shell cd ../../../..; dpkg-parsechangelog | sed -ne 's,^Maintainer: .[^<]*<[^@>]*@\([^>]*\)>,\1,p')/g' \ ++ -e 's/@@system_maintainer_local@@/$(shell cd ../../../..; dpkg-parsechangelog | sed -ne 's,^Maintainer: .[^<]*<\([^@>]*\)@.*>,\1,p')/g' \ ++ -e 's/@@system_version@@/$(shell cd ../../../..; dpkg-parsechangelog | awk '/^Version:/ {print $$2}')/g' \ + < include/xen/compile.h.in > $@.new +- @cat .banner +- @sed -rf tools/process-banner.sed < .banner >> $@.new + @mv -f $@.new $@ + + include/asm-$(TARGET_ARCH)/asm-offsets.h: arch/$(TARGET_ARCH)/asm-offsets.s +diff --git a/xen/common/kernel.c b/xen/common/kernel.c +index c3a943f..12bdf9d 100644 +--- a/xen/common/kernel.c ++++ b/xen/common/kernel.c +@@ -398,9 +398,9 @@ static int __init buildinfo_init(void) + + hypfs_add_dir(&buildinfo, &compileinfo, true); + hypfs_string_set_reference(&compiler, xen_compiler()); +- hypfs_string_set_reference(&compile_by, xen_compile_by()); ++ hypfs_string_set_reference(&compile_by, xen_compile_system_maintainer_local()); + hypfs_string_set_reference(&compile_date, xen_compile_date()); +- hypfs_string_set_reference(&compile_domain, xen_compile_domain()); ++ hypfs_string_set_reference(&compile_domain, xen_compile_system_maintainer_domain()); + hypfs_add_leaf(&compileinfo, &compiler, true); + hypfs_add_leaf(&compileinfo, &compile_by, true); + hypfs_add_leaf(&compileinfo, &compile_date, true); +@@ -481,8 +481,8 @@ DO(xen_version)(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg) + + memset(&info, 0, sizeof(info)); + safe_strcpy(info.compiler, deny ? xen_deny() : xen_compiler()); +- safe_strcpy(info.compile_by, deny ? xen_deny() : xen_compile_by()); +- safe_strcpy(info.compile_domain, deny ? xen_deny() : xen_compile_domain()); ++ safe_strcpy(info.compile_by, deny ? xen_deny() : xen_compile_system_maintainer_local()); ++ safe_strcpy(info.compile_domain, deny ? xen_deny() : xen_compile_system_maintainer_domain()); + safe_strcpy(info.compile_date, deny ? xen_deny() : xen_compile_date()); + if ( copy_to_guest(arg, &info, 1) ) + return -EFAULT; +diff --git a/xen/common/version.c b/xen/common/version.c +index 937eb12..781cd03 100644 +--- a/xen/common/version.c ++++ b/xen/common/version.c +@@ -20,19 +20,24 @@ const char *xen_compile_time(void) + return XEN_COMPILE_TIME; + } + +-const char *xen_compile_by(void) ++const char *xen_compile_system_distribution(void) + { +- return XEN_COMPILE_BY; ++ return XEN_COMPILE_SYSTEM_DISTRIBUTION; + } + +-const char *xen_compile_domain(void) ++const char *xen_compile_system_maintainer_local(void) + { +- return XEN_COMPILE_DOMAIN; ++ return XEN_COMPILE_SYSTEM_MAINTAINER_LOCAL; + } + +-const char *xen_compile_host(void) ++const char *xen_compile_system_maintainer_domain(void) + { +- return XEN_COMPILE_HOST; ++ return XEN_COMPILE_SYSTEM_MAINTAINER_DOMAIN; ++} ++ ++const char *xen_compile_system_version(void) ++{ ++ return XEN_COMPILE_SYSTEM_VERSION; + } + + const char *xen_compiler(void) +@@ -60,11 +65,6 @@ const char *xen_changeset(void) + return XEN_CHANGESET; + } + +-const char *xen_banner(void) +-{ +- return XEN_BANNER; +-} +- + const char *xen_deny(void) + { + return ""; +diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c +index 861ad53..501362e 100644 +--- a/xen/drivers/char/console.c ++++ b/xen/drivers/char/console.c +@@ -999,14 +999,11 @@ void __init console_init_preirq(void) + pv_console_set_rx_handler(serial_rx); + + /* HELLO WORLD --- start-of-day banner text. */ +- spin_lock(&console_lock); +- __putstr(xen_banner()); +- spin_unlock(&console_lock); +- printk("Xen version %d.%d%s (%s@%s) (%s) debug=%c " gcov_string " %s\n", ++ printk("Xen version %d.%d%s (%s %s) (%s@%s) (%s) debug=%c " gcov_string " %s\n", + xen_major_version(), xen_minor_version(), xen_extra_version(), +- xen_compile_by(), xen_compile_domain(), ++ xen_compile_system_distribution(), xen_compile_system_version(), ++ xen_compile_system_maintainer_local(), xen_compile_system_maintainer_domain(), + xen_compiler(), debug_build() ? 'y' : 'n', xen_compile_date()); +- printk("Latest ChangeSet: %s\n", xen_changeset()); + + /* Locate and print the buildid, if applicable. */ + xen_build_init(); +diff --git a/xen/include/xen/compile.h.in b/xen/include/xen/compile.h.in +index 440ecb2..0c3ca58 100644 +--- a/xen/include/xen/compile.h.in ++++ b/xen/include/xen/compile.h.in +@@ -1,8 +1,9 @@ + #define XEN_COMPILE_DATE "@@date@@" + #define XEN_COMPILE_TIME "@@time@@" +-#define XEN_COMPILE_BY "@@whoami@@" +-#define XEN_COMPILE_DOMAIN "@@domain@@" +-#define XEN_COMPILE_HOST "@@hostname@@" ++#define XEN_COMPILE_SYSTEM_DISTRIBUTION "@@system_distribution@@" ++#define XEN_COMPILE_SYSTEM_MAINTAINER_DOMAIN "@@system_maintainer_domain@@" ++#define XEN_COMPILE_SYSTEM_MAINTAINER_LOCAL "@@system_maintainer_local@@" ++#define XEN_COMPILE_SYSTEM_VERSION "@@system_version@@" + #define XEN_COMPILER "@@compiler@@" + + #define XEN_VERSION @@version@@ +@@ -10,4 +11,3 @@ + #define XEN_EXTRAVERSION "@@extraversion@@" + + #define XEN_CHANGESET "@@changeset@@" +-#define XEN_BANNER \ +diff --git a/xen/include/xen/version.h b/xen/include/xen/version.h +index 9ac926d..1553f22 100644 +--- a/xen/include/xen/version.h ++++ b/xen/include/xen/version.h +@@ -6,9 +6,10 @@ + + const char *xen_compile_date(void); + const char *xen_compile_time(void); +-const char *xen_compile_by(void); +-const char *xen_compile_domain(void); +-const char *xen_compile_host(void); ++const char *xen_compile_system_distribution(void); ++const char *xen_compile_system_maintainer_domain(void); ++const char *xen_compile_system_maintainer_local(void); ++const char *xen_compile_system_version(void); + const char *xen_compiler(void); + unsigned int xen_major_version(void); + unsigned int xen_minor_version(void); diff --git a/patches/0005-Do-not-ship-COPYING-into-usr-include.patch b/patches/0005-Do-not-ship-COPYING-into-usr-include.patch new file mode 100644 index 0000000000..91f00c82e4 --- /dev/null +++ b/patches/0005-Do-not-ship-COPYING-into-usr-include.patch @@ -0,0 +1,34 @@ +From: Bastian Blank +Date: Sat, 5 Jul 2014 11:47:30 +0200 +Subject: Do not ship COPYING into /usr/include + +This is not wanted in Debian. COPYING ends up in +/usr/share/doc/xen-*copyright. + +Patch-Name: tools-include-no-COPYING.diff + +Signed-off-by: Ian Jackson +--- + tools/include/Makefile | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/tools/include/Makefile b/tools/include/Makefile +index 3d0192f..edfb35e 100644 +--- a/tools/include/Makefile ++++ b/tools/include/Makefile +@@ -18,7 +18,6 @@ XEN_LIB_X86_INCLUDES = $(filter-out %autogen.h, $(XEN_ROOT)/xen/include/xen/lib/ + xen/.dir: $(XEN_PUBLIC_INCLUDES) $(XEN_LIB_X86_INCLUDES) + @rm -rf xen + mkdir -p xen/libelf +- ln -sf $(XEN_ROOT)/xen/include/public/COPYING xen + ln -sf $(XEN_PUBLIC_INCLUDES) xen + ln -sf $(addprefix $(XEN_ROOT)/xen/include/public/,arch-x86 arch-arm hvm io xsm) xen + ln -sf ../xen-sys/$(XEN_OS) xen/sys +@@ -57,7 +56,6 @@ install: all + $(INSTALL_DIR) $(DESTDIR)$(includedir)/xen/io + $(INSTALL_DIR) $(DESTDIR)$(includedir)/xen/sys + $(INSTALL_DIR) $(DESTDIR)$(includedir)/xen/xsm +- $(INSTALL_DATA) xen/COPYING $(DESTDIR)$(includedir)/xen + $(INSTALL_DATA) xen/*.h $(DESTDIR)$(includedir)/xen + $(INSTALL_DATA) xen/arch-x86/*.h $(DESTDIR)$(includedir)/xen/arch-x86 + $(INSTALL_DATA) xen/arch-x86/hvm/*.h $(DESTDIR)$(includedir)/xen/arch-x86/hvm diff --git a/patches/0008-Do-not-build-the-instruction-emulator.patch b/patches/0008-Do-not-build-the-instruction-emulator.patch new file mode 100644 index 0000000000..d879d5ca81 --- /dev/null +++ b/patches/0008-Do-not-build-the-instruction-emulator.patch @@ -0,0 +1,25 @@ +From: Ian Jackson +Date: Thu, 20 Sep 2018 18:10:14 +0100 +Subject: Do not build the instruction emulator + +Signed-off-by: Ian Jackson +--- + tools/fuzz/Makefile | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/tools/fuzz/Makefile b/tools/fuzz/Makefile +index 85213dc..6b7970b 100644 +--- a/tools/fuzz/Makefile ++++ b/tools/fuzz/Makefile +@@ -3,7 +3,10 @@ include $(XEN_ROOT)/tools/Rules.mk + + SUBDIRS-y := + SUBDIRS-y += libelf +-SUBDIRS-y += x86_instruction_emulator ++ ++#SUBDIRS-y += x86_instruction_emulator ++# This does not compile with Debian's userland compile options, ++# which include fortify etc. + + .PHONY: all clean distclean install uninstall + all clean distclean install uninstall: %: subdirs-% diff --git a/patches/0009-tools-libfsimage-prefix.diff.patch b/patches/0009-tools-libfsimage-prefix.diff.patch new file mode 100644 index 0000000000..20ac51fd5d --- /dev/null +++ b/patches/0009-tools-libfsimage-prefix.diff.patch @@ -0,0 +1,83 @@ +From: Hans van Kranenburg +Date: Mon, 25 May 2020 17:08:18 +0200 +Subject: tools-libfsimage-prefix.diff + +\o/ +--- + tools/Rules.mk | 2 ++ + tools/libfsimage/Rules.mk | 3 ++- + tools/libfsimage/common/Makefile | 16 +++++++++------- + 3 files changed, 13 insertions(+), 8 deletions(-) + +diff --git a/tools/Rules.mk b/tools/Rules.mk +index 6774711..96dfe65 100644 +--- a/tools/Rules.mk ++++ b/tools/Rules.mk +@@ -11,6 +11,8 @@ INSTALL = $(XEN_ROOT)/tools/cross-install + + LDFLAGS += $(PREPEND_LDFLAGS_XEN_TOOLS) + ++LDFLAGS_RPATH = -Wl,-rpath,'$${ORIGIN}$(if $(1),/$(1))' ++ + XEN_INCLUDE = $(XEN_ROOT)/tools/include + XEN_LIBXENTOOLCORE = $(XEN_ROOT)/tools/libs/toolcore + XEN_LIBXENTOOLLOG = $(XEN_ROOT)/tools/libs/toollog +diff --git a/tools/libfsimage/Rules.mk b/tools/libfsimage/Rules.mk +index bb6d42a..38cc539 100644 +--- a/tools/libfsimage/Rules.mk ++++ b/tools/libfsimage/Rules.mk +@@ -3,10 +3,11 @@ include $(XEN_ROOT)/tools/Rules.mk + CFLAGS += -Wno-unknown-pragmas -I$(XEN_ROOT)/tools/libfsimage/common/ -DFSIMAGE_FSDIR=\"$(FSDIR)\" + CFLAGS += -Werror -D_GNU_SOURCE + LDFLAGS += -L../common/ ++LDFLAGS += $(call LDFLAGS_RPATH,../..) + + PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y)) + +-FSDIR = $(libdir)/xenfsimage ++FSDIR = $(LIBEXEC_LIB)/xenfsimage + + FSLIB = fsimage.so + +diff --git a/tools/libfsimage/common/Makefile b/tools/libfsimage/common/Makefile +index 8c8ba09..cb5fe56 100644 +--- a/tools/libfsimage/common/Makefile ++++ b/tools/libfsimage/common/Makefile +@@ -4,6 +4,8 @@ include $(XEN_ROOT)/tools/libfsimage/Rules.mk + MAJOR = 4.14 + MINOR = 0 + ++CFLAGS += -DFSDIR="\"$(LIBEXEC_LIB)/fs\"" ++ + LDFLAGS-$(CONFIG_SunOS) = -Wl,-M -Wl,mapfile-SunOS + LDFLAGS-$(CONFIG_Linux) = -Wl,mapfile-GNU + LDFLAGS += $(LDFLAGS-y) +@@ -22,11 +24,11 @@ all: $(LIB) + + .PHONY: install + install: all +- $(INSTALL_DIR) $(DESTDIR)$(libdir) ++ $(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_LIB) + $(INSTALL_DIR) $(DESTDIR)$(includedir) +- $(INSTALL_PROG) libxenfsimage.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir) +- ln -sf libxenfsimage.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)/libxenfsimage.so.$(MAJOR) +- ln -sf libxenfsimage.so.$(MAJOR) $(DESTDIR)$(libdir)/libxenfsimage.so ++ $(INSTALL_PROG) libxenfsimage.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBEXEC_LIB) ++ ln -sf libxenfsimage.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBEXEC_LIB)/libxenfsimage.so.$(MAJOR) ++ ln -sf libxenfsimage.so.$(MAJOR) $(DESTDIR)$(LIBEXEC_LIB)/libxenfsimage.so + $(INSTALL_DATA) xenfsimage.h $(DESTDIR)$(includedir) + $(INSTALL_DATA) xenfsimage_plugin.h $(DESTDIR)$(includedir) + $(INSTALL_DATA) xenfsimage_grub.h $(DESTDIR)$(includedir) +@@ -36,9 +38,9 @@ uninstall: + rm -f $(DESTDIR)$(includedir)/xenfsimage_grub.h + rm -f $(DESTDIR)$(includedir)/xenfsimage_plugin.h + rm -f $(DESTDIR)$(includedir)/xenfsimage.h +- rm -f $(DESTDIR)$(libdir)/libxenfsimage.so +- rm -f $(DESTDIR)$(libdir)/libxenfsimage.so.$(MAJOR) +- rm -f $(DESTDIR)$(libdir)/libxenfsimage.so.$(MAJOR).$(MINOR) ++ rm -f $(DESTDIR)$(LIBEXEC_LIB)/libxenfsimage.so ++ rm -f $(DESTDIR)$(LIBEXEC_LIB)/libxenfsimage.so.$(MAJOR) ++ rm -f $(DESTDIR)$(LIBEXEC_LIB)/libxenfsimage.so.$(MAJOR).$(MINOR) + + clean distclean:: + rm -f $(LIB) diff --git a/patches/0010-autoconf-Provide-libexec_libdir_suffix.patch b/patches/0010-autoconf-Provide-libexec_libdir_suffix.patch new file mode 100644 index 0000000000..5f830948a8 --- /dev/null +++ b/patches/0010-autoconf-Provide-libexec_libdir_suffix.patch @@ -0,0 +1,39 @@ +From: Ian Jackson +Date: Wed, 3 Oct 2018 16:25:58 +0100 +Subject: autoconf: Provide libexec_libdir_suffix + +This is going to be used to put libfsimage.so into a path containing +the multiarch triplet. + +Signed-off-by: Ian Jackson +--- + m4/paths.m4 | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +diff --git a/m4/paths.m4 b/m4/paths.m4 +index 89d3bb8..42b4970 100644 +--- a/m4/paths.m4 ++++ b/m4/paths.m4 +@@ -70,6 +70,13 @@ AC_ARG_WITH([libexec-leaf-dir], + [libexec_subdir=$withval], + [libexec_subdir=$PACKAGE_TARNAME]) + ++dnl Allows .../libexec/lib (used for libfsimage) to have a multiarch path ++AC_ARG_WITH([libexec-libdir-suffix], ++ AS_HELP_STRING([--with-libexec-libdir-suffix=/SUFFIX], ++ [Name of subdirectory or suffix to use after ...LIBEXEC/lib.]), ++ [libexec_libdir_suffix=$withval], ++ [libexec_libdir_suffix='']) ++ + AC_ARG_WITH([xen-dumpdir], + AS_HELP_STRING([--with-xen-dumpdir=DIR], + [Path to directory for domU crash dumps. [LOCALSTATEDIR/lib/xen/dump]]), +@@ -103,7 +110,7 @@ AC_SUBST(LIBEXEC) + dnl These variables will be substituted in various .in files + LIBEXEC_BIN=${LIBEXEC}/bin + AC_SUBST(LIBEXEC_BIN) +-LIBEXEC_LIB=${LIBEXEC}/lib ++LIBEXEC_LIB=${LIBEXEC}/lib${libexec_libdir_suffix} + AC_SUBST(LIBEXEC_LIB) + LIBEXEC_INC=${LIBEXEC}/include + AC_SUBST(LIBEXEC_INC) diff --git a/patches/0011-.gitignore-Add-configure-output-which-we-always-dele.patch b/patches/0011-.gitignore-Add-configure-output-which-we-always-dele.patch new file mode 100644 index 0000000000..8cfdefe6f0 --- /dev/null +++ b/patches/0011-.gitignore-Add-configure-output-which-we-always-dele.patch @@ -0,0 +1,24 @@ +From: Ian Jackson +Date: Fri, 5 Oct 2018 18:05:48 +0100 +Subject: .gitignore: Add configure output which we always delete and + regenerate + +Signed-off-by: Ian Jackson +--- + .gitignore | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/.gitignore b/.gitignore +index 36ce2ea..98cb39e 100644 +--- a/.gitignore ++++ b/.gitignore +@@ -416,3 +416,9 @@ tools/xl/xl + docs/txt/misc/*.txt + docs/txt/man/*.txt + docs/figs/*.png ++ ++configure ++docs/configure ++tools/configure ++config.sub ++config.guess diff --git a/patches/0012-Revert-pvshim-make-PV-shim-build-selectable-from-con.patch b/patches/0012-Revert-pvshim-make-PV-shim-build-selectable-from-con.patch new file mode 100644 index 0000000000..9a9aa5dfc0 --- /dev/null +++ b/patches/0012-Revert-pvshim-make-PV-shim-build-selectable-from-con.patch @@ -0,0 +1,70 @@ +From: Hans van Kranenburg +Date: Sun, 22 Nov 2020 00:40:58 +0100 +Subject: Revert "pvshim: make PV shim build selectable from configure" + +This reverts commit 8845155c831c59e867ee3dd31ee63e0cc6c7dcf2. + +This upstream change changes stuff that breaks our very fragile mess +that builds the shim when it needs to, and doesn't when it should not. + +The result is that it's missing in the end for the i386 build... :| + + dh_install: warning: Cannot find (any matches for) + "usr/lib/debug/usr/lib/xen-*/boot/*" (tried in ., debian/tmp) + + dh_install: warning: xen-utils-4.14 missing files: + usr/lib/debug/usr/lib/xen-*/boot/* + dh_install: error: missing files, aborting +--- + config/Tools.mk.in | 2 -- + tools/configure.ac | 13 ------------- + tools/firmware/Makefile | 4 ++++ + 3 files changed, 4 insertions(+), 15 deletions(-) + +diff --git a/config/Tools.mk.in b/config/Tools.mk.in +index 23df47a..6408e42 100644 +--- a/config/Tools.mk.in ++++ b/config/Tools.mk.in +@@ -75,5 +75,3 @@ TINFO_LIBS := @TINFO_LIBS@ + ARGP_LDFLAGS := @argp_ldflags@ + + FILE_OFFSET_BITS := @FILE_OFFSET_BITS@ +- +-CONFIG_PV_SHIM := @pvshim@ +diff --git a/tools/configure.ac b/tools/configure.ac +index 9d126b7..88e66d1 100644 +--- a/tools/configure.ac ++++ b/tools/configure.ac +@@ -503,17 +503,4 @@ AC_ARG_ENABLE([9pfs], + + AC_SUBST(ninepfs) + +-AC_ARG_ENABLE([pvshim], +- AS_HELP_STRING([--disable-pvshim], +- [Disable pvshim build (enabled by default on 64bit x86)]), +- [AS_IF([test "x$enable_pvshim" = "xno"], [pvshim=n], [pvshim=y])], [ +- cpu=`test -z "$target_cpu" && echo "$host_cpu" || echo "$target_cpu"` +- case "${XEN_COMPILE_ARCH-${XEN_TARGET_ARCH-$cpu}}" in +- x86_64) +- pvshim="y";; +- *) pvshim="n";; +- esac +-]) +-AC_SUBST(pvshim) +- + AC_OUTPUT() +diff --git a/tools/firmware/Makefile b/tools/firmware/Makefile +index 809a5fd..cf304fc 100644 +--- a/tools/firmware/Makefile ++++ b/tools/firmware/Makefile +@@ -1,6 +1,10 @@ + XEN_ROOT = $(CURDIR)/../.. + include $(XEN_ROOT)/tools/Rules.mk + ++ifneq ($(XEN_TARGET_ARCH),x86_32) ++CONFIG_PV_SHIM := y ++endif ++ + # hvmloader is a 32-bit protected mode binary. + TARGET := hvmloader/hvmloader + INST_DIR := $(DESTDIR)$(XENFIRMWAREDIR) diff --git a/patches/0013-tools-firmware-Makfile-Respect-caller-s-CONFIG_PV_SH.patch b/patches/0013-tools-firmware-Makfile-Respect-caller-s-CONFIG_PV_SH.patch new file mode 100644 index 0000000000..dea48225dc --- /dev/null +++ b/patches/0013-tools-firmware-Makfile-Respect-caller-s-CONFIG_PV_SH.patch @@ -0,0 +1,26 @@ +From: Ian Jackson +Date: Fri, 12 Oct 2018 16:00:16 +0000 +Subject: tools/firmware/Makfile: Respect caller's CONFIG_PV_SHIM + +This makes it easier to disable the shim build. (In Debian we need to +build the shim separately because it needs different compiler flags +and a different XEN_COMPILE_ARCH. + +Signed-off-by: Ian Jackson +--- + tools/firmware/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/firmware/Makefile b/tools/firmware/Makefile +index cf304fc..69f63b1 100644 +--- a/tools/firmware/Makefile ++++ b/tools/firmware/Makefile +@@ -2,7 +2,7 @@ XEN_ROOT = $(CURDIR)/../.. + include $(XEN_ROOT)/tools/Rules.mk + + ifneq ($(XEN_TARGET_ARCH),x86_32) +-CONFIG_PV_SHIM := y ++CONFIG_PV_SHIM ?= y + endif + + # hvmloader is a 32-bit protected mode binary. diff --git a/patches/0014-tools-firmware-Makefile-CONFIG_PV_SHIM-enable-only-o.patch b/patches/0014-tools-firmware-Makefile-CONFIG_PV_SHIM-enable-only-o.patch new file mode 100644 index 0000000000..9f23f3b783 --- /dev/null +++ b/patches/0014-tools-firmware-Makefile-CONFIG_PV_SHIM-enable-only-o.patch @@ -0,0 +1,26 @@ +From: Ian Jackson +Date: Fri, 12 Oct 2018 17:56:04 +0000 +Subject: tools/firmware/Makefile: CONFIG_PV_SHIM: enable only on x86_64 + +Previously this was *dis*abled for x86_*32*. But if someone should +run some of this Makefile on ARM, say, it ought not to be built +either. + +Signed-off-by: Ian Jackson +--- + tools/firmware/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/firmware/Makefile b/tools/firmware/Makefile +index 69f63b1..6f9034f 100644 +--- a/tools/firmware/Makefile ++++ b/tools/firmware/Makefile +@@ -1,7 +1,7 @@ + XEN_ROOT = $(CURDIR)/../.. + include $(XEN_ROOT)/tools/Rules.mk + +-ifneq ($(XEN_TARGET_ARCH),x86_32) ++ifeq ($(XEN_TARGET_ARCH),x86_64) + CONFIG_PV_SHIM ?= y + endif + diff --git a/patches/0015-shim-Provide-separate-install-shim-target.patch b/patches/0015-shim-Provide-separate-install-shim-target.patch new file mode 100644 index 0000000000..854388c11c --- /dev/null +++ b/patches/0015-shim-Provide-separate-install-shim-target.patch @@ -0,0 +1,78 @@ +From: Ian Jackson +Date: Fri, 12 Oct 2018 17:17:10 +0000 +Subject: shim: Provide separate install-shim target + +When building on a 32-bit userland, the user wants to build 32-bit +tools and a 64-bit hypervisor. This involves setting XEN_TARGET_ARCH +to different values for the tools build and the hypervisor build. + +So the user must invoke the tools build and the hypervisor build +separately. + +However, although the shim is done by the tools/firmware Makefile, its +bitness needs to be the same as the hypervisor, not the same as the +tools. When run with XEN_TARGET_ARCH=x86_32, it it skipped, which is +wrong. + +So the user must invoke the shim build separately. This can be done +with + make -C tools/firmware/xen-dir XEN_TARGET_ARCH=x86_64 + +However, tools/firmware/xen-dir has no `install' target. The +installation of all `firmware' is done in tools/firmware/Makefile. It +might be possible to fix this, but it is not trivial. For example, +the definitions of INST_DIR and DEBG_DIR would need to be copied, as +would an appropriate $(INSTALL_DIR) call. + +For now, provide an `install-shim' target in tools/firmware/Makefile. + +This has to be called from `install' of course. We can't make it +a dependency of `install' because it might be run before `all' has +completed. We could make it depend on a `shim' target but such +a target is nearly impossible to write because everything is done by +the inflexible subdir-$@ machinery. + +The overally result of this patch is that existing make invocations +work as before. But additionally, the user can say + make -C tools/firmware install-shim XEN_TARGET_ARCH=x86_64 +to install the shim. The user must have built it already. +Unlike the build rune, this install-rune is properly conditional +so it is OK to call on ARM. + +What a mess. + +Signed-off-by: Ian Jackson +--- + tools/firmware/Makefile | 12 ++++++++---- + 1 file changed, 8 insertions(+), 4 deletions(-) + +diff --git a/tools/firmware/Makefile b/tools/firmware/Makefile +index 6f9034f..737a709 100644 +--- a/tools/firmware/Makefile ++++ b/tools/firmware/Makefile +@@ -47,6 +47,13 @@ ifeq ($(CONFIG_ROMBIOS),y) + endif + $(MAKE) CC=$(CC) PYTHON=$(PYTHON) subdirs-$@ + ++.PHONY: install-shim ++install-shim: ++ifeq ($(CONFIG_PV_SHIM),y) ++ $(INSTALL_DATA) xen-dir/xen-shim $(INST_DIR)/xen-shim ++ $(INSTALL_DATA) xen-dir/xen-shim-syms $(DEBG_DIR)/xen-shim-syms ++endif ++ + .PHONY: install + install: all + [ -d $(INST_DIR) ] || $(INSTALL_DIR) $(INST_DIR) +@@ -61,10 +68,7 @@ endif + ifeq ($(CONFIG_IPXE),y) + $(INSTALL_DATA) etherboot/ipxe/src/bin/ipxe.bin $(INST_DIR)/ipxe.bin + endif +-ifeq ($(CONFIG_PV_SHIM),y) +- $(INSTALL_DATA) xen-dir/xen-shim $(INST_DIR)/xen-shim +- $(INSTALL_DATA) xen-dir/xen-shim-syms $(DEBG_DIR)/xen-shim-syms +-endif ++ $(MAKE) install-shim + + .PHONY: uninstall + uninstall: diff --git a/patches/0016-docs-man-xen-vbd-interface.7-Provide-properly-format.patch b/patches/0016-docs-man-xen-vbd-interface.7-Provide-properly-format.patch new file mode 100644 index 0000000000..8693a89e6c --- /dev/null +++ b/patches/0016-docs-man-xen-vbd-interface.7-Provide-properly-format.patch @@ -0,0 +1,27 @@ +From: Ian Jackson +Date: Fri, 12 Oct 2018 17:56:56 +0100 +Subject: docs/man/xen-vbd-interface.7: Provide properly-formatted NAME + section + +This manpage was omitted from + docs/man: Provide properly-formatted NAME sections +because I was previously building with markdown not installed. + +Signed-off-by: Ian Jackson +--- + docs/man/xen-vbd-interface.7.pandoc | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/docs/man/xen-vbd-interface.7.pandoc b/docs/man/xen-vbd-interface.7.pandoc +index ba0d159..2f18d5b 100644 +--- a/docs/man/xen-vbd-interface.7.pandoc ++++ b/docs/man/xen-vbd-interface.7.pandoc +@@ -1,3 +1,8 @@ ++Name ++---- ++ ++xen-vbd-interface - Xen paravirtualised block device protocol ++ + Xen guest interface + ------------------- + diff --git a/patches/0017-Fix-empty-fields-in-first-hypervisor-log-line.patch b/patches/0017-Fix-empty-fields-in-first-hypervisor-log-line.patch new file mode 100644 index 0000000000..b62f5cf48c --- /dev/null +++ b/patches/0017-Fix-empty-fields-in-first-hypervisor-log-line.patch @@ -0,0 +1,46 @@ +From: Hans van Kranenburg +Date: Thu, 3 Jan 2019 22:03:06 +0100 +Subject: Fix empty fields in first hypervisor log line + +Instead of: + + (XEN) Xen version 4.11.1 (Debian ) + (@) + (gcc (Debian 8.2.0-13) 8.2.0) debug=n + Thu Jan 3 19:08:37 UTC 2019 + +I'd like to see: + + (XEN) Xen version 4.11.1 (Debian 4.11.1-1~) + (pkg-xen-devel@lists.alioth.debian.org) + (gcc (Debian 8.2.0-13) 8.2.0) debug=n + Thu Jan 3 22:44:00 CET 2019 + +The substitution was broken since the great packaging refactoring, +because the directory in which the build is done changed. + +Also, use the Maintainer address from debian/control instead of the most +recent changelog entry. If someone wants to use the address to ask a +question, they will end up at the team mailing list, which is better +than an individual person. +--- + xen/Makefile | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/xen/Makefile b/xen/Makefile +index 2cf10a4..3d6f733 100644 +--- a/xen/Makefile ++++ b/xen/Makefile +@@ -394,9 +394,9 @@ include/xen/compile.h: include/xen/compile.h.in + -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \ + -e 's!@@changeset@@!$(shell tools/scmversion $(XEN_ROOT) || echo "unavailable")!g' \ + -e 's/@@system_distribution@@/$(shell lsb_release -is)/g' \ +- -e 's/@@system_maintainer_domain@@/$(shell cd ../../../..; dpkg-parsechangelog | sed -ne 's,^Maintainer: .[^<]*<[^@>]*@\([^>]*\)>,\1,p')/g' \ +- -e 's/@@system_maintainer_local@@/$(shell cd ../../../..; dpkg-parsechangelog | sed -ne 's,^Maintainer: .[^<]*<\([^@>]*\)@.*>,\1,p')/g' \ +- -e 's/@@system_version@@/$(shell cd ../../../..; dpkg-parsechangelog | awk '/^Version:/ {print $$2}')/g' \ ++ -e 's/@@system_maintainer_domain@@/$(shell grep Maintainer ../debian/control | sed -ne 's,^Maintainer: .[^<]*<[^@>]*@\([^>]*\)>,\1,p')/g' \ ++ -e 's/@@system_maintainer_local@@/$(shell grep Maintainer ../debian/control | sed -ne 's,^Maintainer: .[^<]*<\([^@>]*\)@.*>,\1,p')/g' \ ++ -e 's/@@system_version@@/$(shell cd ..; dpkg-parsechangelog | awk '/^Version:/ {print $$2}')/g' \ + < include/xen/compile.h.in > $@.new + @mv -f $@.new $@ + diff --git a/patches/0018-vif-common-disable-handle_iptable.patch b/patches/0018-vif-common-disable-handle_iptable.patch new file mode 100644 index 0000000000..4fccdbb268 --- /dev/null +++ b/patches/0018-vif-common-disable-handle_iptable.patch @@ -0,0 +1,38 @@ +From: Hans van Kranenburg +Date: Fri, 4 Jan 2019 00:35:45 +0100 +Subject: vif-common: disable handle_iptable + +Also see Debian bug #894013. The current attempt at providing +anti-spoofing rules results in a situation that does not have any +effect. Also note that forwarding bridged traffic to iptables is not +enabled by default, and that for openvswitch users it does not make any +sense. + +So, stop cluttering the live iptables ruleset. + +This functionality seems to be introduced before 2004 and since then it +has never got some additional love. + +It would be nice to have a proper discussion upstream about how Xen +could provide some anti mac/ip spoofing in the dom0. It does not seem to +be a trivial thing to do, since it requires having quite some knowledge +about what the domU is allowed to do or not (e.g. a domU can be a +router...). +--- + tools/hotplug/Linux/vif-common.sh | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/tools/hotplug/Linux/vif-common.sh b/tools/hotplug/Linux/vif-common.sh +index a8e6517..14cd44c 100644 +--- a/tools/hotplug/Linux/vif-common.sh ++++ b/tools/hotplug/Linux/vif-common.sh +@@ -182,6 +182,9 @@ frob_iptable() + # + handle_iptable() + { ++ # This function is disabled in Debian packaging. See Debian bug #894013. ++ return ++ + # Check for a working iptables installation. Checking for the iptables + # binary is not sufficient, because the user may not have the appropriate + # modules installed. If iptables is not working, then there's no need to do diff --git a/patches/0019-sysconfig.xencommons.in-Strip-and-debianize.patch b/patches/0019-sysconfig.xencommons.in-Strip-and-debianize.patch new file mode 100644 index 0000000000..eada339b06 --- /dev/null +++ b/patches/0019-sysconfig.xencommons.in-Strip-and-debianize.patch @@ -0,0 +1,118 @@ +From: Hans van Kranenburg +Date: Sat, 9 Feb 2019 17:27:26 +0100 +Subject: sysconfig.xencommons.in: Strip and debianize + +Strip all options that are for stuff we don't ship, which is 1) +xenstored as stubdom and 2) xenbackendd, which seems to be dead code +anyway. [1] + +It seems useful to give the user the option to revert to xenstored +instead of the default oxenstored if they really want. + +[1] https://lists.xen.org/archives/html/xen-devel/2015-07/msg04427.html + +Signed-off-by: Hans van Kranenburg +Acked-by: Ian Jackson +--- + tools/hotplug/Linux/init.d/sysconfig.xencommons.in | 73 +--------------------- + 1 file changed, 3 insertions(+), 70 deletions(-) + +diff --git a/tools/hotplug/Linux/init.d/sysconfig.xencommons.in b/tools/hotplug/Linux/init.d/sysconfig.xencommons.in +index 0fc6557..e948543 100644 +--- a/tools/hotplug/Linux/init.d/sysconfig.xencommons.in ++++ b/tools/hotplug/Linux/init.d/sysconfig.xencommons.in +@@ -6,26 +6,9 @@ + #XENCONSOLED_TRACE=[none|guest|hv|all] + + ## Type: string +-## Default: daemon ++## Default: oxenstored + # +-# Select type of xentore service. +-# +-# This can be either of: +-# * daemon +-# * domain +-# +-# Changing this requires a reboot to take effect. +-# +-#XENSTORETYPE=daemon +- +-## Type: string +-## Default: xenstored +-# +-# Select xenstore implementation, this can be either +-# of these below. +-# Only evaluated if XENSTORETYPE is "daemon". +-# +-# This can be either of: ++# Select xenstore implementation. This can be either of: + # * @sbindir@/oxenstored + # * @sbindir@/xenstored + # +@@ -37,64 +20,14 @@ + # + # Additional commandline arguments to start xenstored, + # like "--trace-file @XEN_LOG_DIR@/xenstored-trace.log" +-# See "@sbindir@/xenstored --help" for possible options. +-# Only evaluated if XENSTORETYPE is "daemon". ++# See "@sbindir@/oxenstored --help" for possible options. + XENSTORED_ARGS= + + ## Type: string + ## Default: Not defined, tracing off + # + # Log xenstored messages +-# Only evaluated if XENSTORETYPE is "daemon". + #XENSTORED_TRACE=[yes|on|1] + +-## Type: string +-## Default: "@XEN_LIB_STORED@" +-# +-# Running xenstored on XENSTORED_ROOTDIR +-# Only evaluated if XENSTORETYPE is "daemon". +-#XENSTORED_ROOTDIR=@XEN_LIB_STORED@ +- +-## Type: string +-## Default: @LIBEXEC@/boot/xenstore-stubdom.gz +-# +-# xenstore domain kernel. +-# Only evaluated if XENSTORETYPE is "domain". +-#XENSTORE_DOMAIN_KERNEL=@LIBEXEC@/boot/xenstore-stubdom.gz +- +-## Type: integer +-## Default: 8 +-# +-# xenstore domain memory size in MiB. +-# Only evaluated if XENSTORETYPE is "domain". +-#XENSTORE_DOMAIN_SIZE=8 +- +-## Type: string +-## Default: not set, no autoballooning of xenstore domain +-# +-# Maximum xenstore domain memory size. Can be specified as: +-# - plain integer value for max size in MiB +-# - fraction of host memory, e.g. 1/100 +-# - combination of both in form of : (e.g. 8:1/100), resulting +-# value will be the higher of both specifications +-# Only evaluated if XENSTORETYPE is "domain". +-#XENSTORE_MAX_DOMAIN_SIZE= +- +-## Type: string +-## Default: "" +-# +-# Additional arguments for starting the xenstore domain. +-# Only evaluated if XENSTORETYPE is "domain". +-XENSTORE_DOMAIN_ARGS= +- +-## Type: string +-## Default: Not defined, xenbackendd debug mode off +-# +-# Running xenbackendd in debug mode +-#XENBACKENDD_DEBUG=[yes|on|1] +- +-# qemu path +-#QEMU_XEN=@qemu_xen_path@ +- + # Dom0 UUID + #XEN_DOM0_UUID=00000000-0000-0000-0000-000000000000 diff --git a/patches/0020-hotplug-common-Do-not-adjust-LD_LIBRARY_PATH.patch b/patches/0020-hotplug-common-Do-not-adjust-LD_LIBRARY_PATH.patch new file mode 100644 index 0000000000..9258264108 --- /dev/null +++ b/patches/0020-hotplug-common-Do-not-adjust-LD_LIBRARY_PATH.patch @@ -0,0 +1,36 @@ +From: Ian Jackson +Date: Thu, 21 Feb 2019 16:05:40 +0000 +Subject: hotplug-common: Do not adjust LD_LIBRARY_PATH + +This is in the upstream script because on non-Debian systems, the +default install locations in /usr/local/lib might not be on the linker +path, and as a result the hotplug scripts would break. + +A reason we might need it in Debian is our multiple version +coinstallation scheme. However, the hotplug scripts all call the +utilities via the wrappers, and the binaries are configured to load +from the right place anyway. + +This setting is an annoyance because it requires libdir, which is an +arch-specific path but comes from a file we want to put in +xen-utils-common, an arch:all package. + +So drop this setting. + +Signed-off-by: Ian Jackson +--- + tools/hotplug/Linux/xen-hotplug-common.sh.in | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/tools/hotplug/Linux/xen-hotplug-common.sh.in b/tools/hotplug/Linux/xen-hotplug-common.sh.in +index 8c2cb9e..72cb7f6 100644 +--- a/tools/hotplug/Linux/xen-hotplug-common.sh.in ++++ b/tools/hotplug/Linux/xen-hotplug-common.sh.in +@@ -23,7 +23,6 @@ dir=$(dirname "$0") + exec 2>>@XEN_LOG_DIR@/xen-hotplug.log + + export PATH="${bindir}:${sbindir}:${LIBEXEC_BIN}:/sbin:/bin:/usr/bin:/usr/sbin:$PATH" +-export LD_LIBRARY_PATH="${libdir}${LD_LIBRARY_PATH+:}$LD_LIBRARY_PATH" + export LANG="POSIX" + unset $(set | grep ^LC_ | cut -d= -f1) + diff --git a/patches/0021-pygrub-Set-sys.path.patch b/patches/0021-pygrub-Set-sys.path.patch new file mode 100644 index 0000000000..8e8b7e97b1 --- /dev/null +++ b/patches/0021-pygrub-Set-sys.path.patch @@ -0,0 +1,35 @@ +From: Bastian Blank +Date: Sat, 5 Jul 2014 11:47:01 +0200 +Subject: pygrub: Set sys.path + +We install libfsimage in a non-standard path for Reasons. +(See debian/rules.) + +This patch was originally part of `tools-pygrub-prefix.diff' +(eg commit 51657319be54) and included changes to the Makefile to +change the installation arrangements (we do that part in the rules now +since that is a lot less prone to conflicts when we update) and to +shared library rpath (which is now done in a separate patch). + +(Commit message rewritten by Ian Jackson.) + +Signed-off-by: Ian Jackson + +squash! pygrub: Set sys.path and rpath +--- + tools/pygrub/src/pygrub | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub +index 8d48cf4..46b394c 100755 +--- a/tools/pygrub/src/pygrub ++++ b/tools/pygrub/src/pygrub +@@ -22,6 +22,8 @@ import platform + import curses, _curses, curses.textpad, curses.ascii + import getopt + ++sys.path.insert(1, sys.path[0] + '/../lib/python') ++ + import xenfsimage + import grub.GrubConf + import grub.LiloConf diff --git a/patches/0022-pygrub-Specify-rpath-LIBEXEC_LIB-when-building-fsima.patch b/patches/0022-pygrub-Specify-rpath-LIBEXEC_LIB-when-building-fsima.patch new file mode 100644 index 0000000000..8923d57e78 --- /dev/null +++ b/patches/0022-pygrub-Specify-rpath-LIBEXEC_LIB-when-building-fsima.patch @@ -0,0 +1,59 @@ +From: Ian Jackson +Date: Fri, 22 Feb 2019 12:24:35 +0000 +Subject: pygrub: Specify -rpath LIBEXEC_LIB when building fsimage.so + +If LIBEXEC_LIB is not on the default linker search path, the python +fsimage.so module fails to find libfsimage.so. + +Add the relevant directory to the rpath explicitly. + +(This situation occurs in the Debian package, where +--with-libexec-libdir is used to put each Xen version's libraries and +utilities in their own directory, to allow them to be coinstalled.) + +Signed-off-by: Ian Jackson +--- + tools/pygrub/Makefile | 5 +++-- + tools/pygrub/setup.py | 5 +++++ + 2 files changed, 8 insertions(+), 2 deletions(-) + +diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile +index 3063c49..4cd1a95 100644 +--- a/tools/pygrub/Makefile ++++ b/tools/pygrub/Makefile +@@ -10,12 +10,13 @@ INSTALL_LOG = build/installed_files.txt + all: build + .PHONY: build + build: +- CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build ++ CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDFLAGS="$(PY_LDFLAGS)" LIBEXEC_LIB=$(LIBEXEC_LIB) $(PYTHON) setup.py build + + .PHONY: install + install: all + $(INSTALL_DIR) $(DESTDIR)/$(bindir) +- CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) \ ++ CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDFLAGS="$(PY_LDFLAGS)" \ ++ LIBEXEC_LIB=$(LIBEXEC_LIB) $(PYTHON) \ + setup.py install --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \ + --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force + set -e; if [ $(bindir) != $(LIBEXEC_BIN) -a \ +diff --git a/tools/pygrub/setup.py b/tools/pygrub/setup.py +index b8f1dc4..91019e9 100644 +--- a/tools/pygrub/setup.py ++++ b/tools/pygrub/setup.py +@@ -5,10 +5,15 @@ import sys + + extra_compile_args = [ "-fno-strict-aliasing", "-Werror" ] + ++extra_link_args = [] ++try: extra_link_args += [ "-Wl,-rpath," + os.environ['LIBEXEC_LIB'] ] ++except KeyError: pass ++ + XEN_ROOT = "../.." + + xenfsimage = Extension("xenfsimage", + extra_compile_args = extra_compile_args, ++ extra_link_args = extra_link_args, + include_dirs = [ XEN_ROOT + "/tools/libfsimage/common/" ], + library_dirs = [ XEN_ROOT + "/tools/libfsimage/common/" ], + libraries = ["xenfsimage"], diff --git a/patches/0023-tools-xl-bash-completion-also-complete-xen.patch b/patches/0023-tools-xl-bash-completion-also-complete-xen.patch new file mode 100644 index 0000000000..f4285e8a7e --- /dev/null +++ b/patches/0023-tools-xl-bash-completion-also-complete-xen.patch @@ -0,0 +1,27 @@ +From: Hans van Kranenburg +Date: Sun, 10 Feb 2019 18:26:45 +0100 +Subject: tools/xl/bash-completion: also complete 'xen' + +We have the `xen` alias for xl in Debian, since in the past it was a +command that could execute either xl or xm. + +Now, it always does xl, so, complete the same stuff for it as we have +for xl. + +Signed-off-by: Hans van Kranenburg + +[git-debrebase split: mixed commit: upstream part] +--- + tools/xl/bash-completion | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/xl/bash-completion b/tools/xl/bash-completion +index b7cd6b3..a520b07 100644 +--- a/tools/xl/bash-completion ++++ b/tools/xl/bash-completion +@@ -17,4 +17,4 @@ _xl() + return 0 + } + +-complete -F _xl -o nospace -o default xl ++complete -F _xl -o nospace -o default xl xen diff --git a/patches/0024-tools-don-t-build-ship-xenmon.patch b/patches/0024-tools-don-t-build-ship-xenmon.patch new file mode 100644 index 0000000000..d1d53b9167 --- /dev/null +++ b/patches/0024-tools-don-t-build-ship-xenmon.patch @@ -0,0 +1,23 @@ +From: Hans van Kranenburg +Date: Sat, 5 Sep 2020 22:43:19 +0200 +Subject: tools: don't build/ship xenmon + +It can't run with Python 3, and I'm not going to fix it. + +Signed-off-by: Hans van Kranenburg +--- + tools/Makefile | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/tools/Makefile b/tools/Makefile +index c10946e..c5a6f5c 100644 +--- a/tools/Makefile ++++ b/tools/Makefile +@@ -17,7 +17,6 @@ SUBDIRS-y += xentrace + SUBDIRS-$(CONFIG_XCUTILS) += xcutils + SUBDIRS-$(CONFIG_X86) += firmware + SUBDIRS-y += console +-SUBDIRS-y += xenmon + SUBDIRS-y += xenstat + SUBDIRS-$(CONFIG_NetBSD) += xenbackendd + SUBDIRS-y += libfsimage diff --git a/patches/0025-tools-Partially-revert-Cross-compilation-fixes.patch b/patches/0025-tools-Partially-revert-Cross-compilation-fixes.patch new file mode 100644 index 0000000000..b849cc0acd --- /dev/null +++ b/patches/0025-tools-Partially-revert-Cross-compilation-fixes.patch @@ -0,0 +1,40 @@ +From: Elliott Mitchell +Date: Fri, 17 Jul 2020 20:31:21 -0700 +Subject: tools: Partially revert "Cross-compilation fixes." + +This partially reverts commit 16504669c5cbb8b195d20412aadc838da5c428f7. + +Doesn't look like much of 16504669c5cbb8b195d20412aadc838da5c428f7 +actually remains due to passage of time. + +Of the 3, both Python and pygrub appear to mostly be building just fine +cross-compiling. The OCAML portion is being troublesome, this is going +to cause bug reports elsewhere soon. The OCAML portion though can +already be disabled by setting OCAML_TOOLS=n and shouldn't have this +extra form of disabling. + +Signed-off-by: Elliott Mitchell +Acked-by: Christian Lindig +Acked-by: Wei Liu +(cherry picked from commit 69953e2856382274749b617125cc98ce38198463) +--- + tools/Makefile | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/tools/Makefile b/tools/Makefile +index c5a6f5c..e8d6022 100644 +--- a/tools/Makefile ++++ b/tools/Makefile +@@ -38,12 +38,9 @@ SUBDIRS-$(CONFIG_X86) += debugger/gdbsx + SUBDIRS-$(CONFIG_X86) += debugger/kdd + SUBDIRS-$(CONFIG_TESTS) += tests + +-# These don't cross-compile +-ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH)) + SUBDIRS-y += python + SUBDIRS-y += pygrub + SUBDIRS-$(OCAML_TOOLS) += ocaml +-endif + + ifeq ($(CONFIG_RUMP),y) + SUBDIRS-y := libs libxc xenstore diff --git a/patches/0026-t-h-L-vif-common.sh-fix-handle_iptable-return-value.patch b/patches/0026-t-h-L-vif-common.sh-fix-handle_iptable-return-value.patch new file mode 100644 index 0000000000..c17798c227 --- /dev/null +++ b/patches/0026-t-h-L-vif-common.sh-fix-handle_iptable-return-value.patch @@ -0,0 +1,30 @@ +From: Hans van Kranenburg +Date: Thu, 26 Nov 2020 16:06:03 +0100 +Subject: t/h/L/vif-common.sh: fix handle_iptable return value + +A return statement without explicit value will return the value of the +last command executed before this line with return was encountered. + +This is not what we want. return 0. + +Closes: #955994 +Fixes: 2e0814f971dd ("vif-common: disable handle_iptable") +Reported-by: Samuel Thibault +Signed-off-by: Hans van Kranenburg +--- + tools/hotplug/Linux/vif-common.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/hotplug/Linux/vif-common.sh b/tools/hotplug/Linux/vif-common.sh +index 14cd44c..99ff1ba 100644 +--- a/tools/hotplug/Linux/vif-common.sh ++++ b/tools/hotplug/Linux/vif-common.sh +@@ -183,7 +183,7 @@ frob_iptable() + handle_iptable() + { + # This function is disabled in Debian packaging. See Debian bug #894013. +- return ++ return 0 + + # Check for a working iptables installation. Checking for the iptables + # binary is not sufficient, because the user may not have the appropriate diff --git a/patches/0027-xen-rpi4-implement-watchdog-based-reset.patch b/patches/0027-xen-rpi4-implement-watchdog-based-reset.patch new file mode 100644 index 0000000000..6d5a671b9d --- /dev/null +++ b/patches/0027-xen-rpi4-implement-watchdog-based-reset.patch @@ -0,0 +1,105 @@ +From: Stefano Stabellini +Date: Fri, 2 Oct 2020 13:47:17 -0700 +Subject: xen/rpi4: implement watchdog-based reset + +The preferred method to reboot RPi4 is PSCI. If it is not available, +touching the watchdog is required to be able to reboot the board. + +The implementation is based on +drivers/watchdog/bcm2835_wdt.c:__bcm2835_restart in Linux v5.9-rc7. + +Signed-off-by: Stefano Stabellini +Acked-by: Julien Grall +Reviewed-by: Bertrand Marquis +Tested-by: Roman Shaposhnik +CC: roman@zededa.com +(cherry picked from commit 25849c8b16f2a5b7fcd0a823e80a5f1b590291f9) +--- + xen/arch/arm/platforms/brcm-raspberry-pi.c | 61 ++++++++++++++++++++++++++++++ + 1 file changed, 61 insertions(+) + +diff --git a/xen/arch/arm/platforms/brcm-raspberry-pi.c b/xen/arch/arm/platforms/brcm-raspberry-pi.c +index f5ae58a..811b40b 100644 +--- a/xen/arch/arm/platforms/brcm-raspberry-pi.c ++++ b/xen/arch/arm/platforms/brcm-raspberry-pi.c +@@ -17,6 +17,10 @@ + * GNU General Public License for more details. + */ + ++#include ++#include ++#include ++#include + #include + + static const char *const rpi4_dt_compat[] __initconst = +@@ -37,12 +41,69 @@ static const struct dt_device_match rpi4_blacklist_dev[] __initconst = + * The aux peripheral also shares a page with the aux UART. + */ + DT_MATCH_COMPATIBLE("brcm,bcm2835-aux"), ++ /* Special device used for rebooting */ ++ DT_MATCH_COMPATIBLE("brcm,bcm2835-pm"), + { /* sentinel */ }, + }; + ++ ++#define PM_PASSWORD 0x5a000000 ++#define PM_RSTC 0x1c ++#define PM_WDOG 0x24 ++#define PM_RSTC_WRCFG_FULL_RESET 0x00000020 ++#define PM_RSTC_WRCFG_CLR 0xffffffcf ++ ++static void __iomem *rpi4_map_watchdog(void) ++{ ++ void __iomem *base; ++ struct dt_device_node *node; ++ paddr_t start, len; ++ int ret; ++ ++ node = dt_find_compatible_node(NULL, NULL, "brcm,bcm2835-pm"); ++ if ( !node ) ++ return NULL; ++ ++ ret = dt_device_get_address(node, 0, &start, &len); ++ if ( ret ) ++ { ++ printk("Cannot read watchdog register address\n"); ++ return NULL; ++ } ++ ++ base = ioremap_nocache(start & PAGE_MASK, PAGE_SIZE); ++ if ( !base ) ++ { ++ printk("Unable to map watchdog register!\n"); ++ return NULL; ++ } ++ ++ return base; ++} ++ ++static void rpi4_reset(void) ++{ ++ uint32_t val; ++ void __iomem *base = rpi4_map_watchdog(); ++ ++ if ( !base ) ++ return; ++ ++ /* use a timeout of 10 ticks (~150us) */ ++ writel(10 | PM_PASSWORD, base + PM_WDOG); ++ val = readl(base + PM_RSTC); ++ val &= PM_RSTC_WRCFG_CLR; ++ val |= PM_PASSWORD | PM_RSTC_WRCFG_FULL_RESET; ++ writel(val, base + PM_RSTC); ++ ++ /* No sleeping, possibly atomic. */ ++ mdelay(1); ++} ++ + PLATFORM_START(rpi4, "Raspberry Pi 4") + .compatible = rpi4_dt_compat, + .blacklist_dev = rpi4_blacklist_dev, ++ .reset = rpi4_reset, + .dma_bitsize = 30, + PLATFORM_END + diff --git a/patches/0028-tools-python-Pass-linker-to-Python-build-process.patch b/patches/0028-tools-python-Pass-linker-to-Python-build-process.patch new file mode 100644 index 0000000000..fde9bee76e --- /dev/null +++ b/patches/0028-tools-python-Pass-linker-to-Python-build-process.patch @@ -0,0 +1,91 @@ +From: Elliott Mitchell +Date: Sun, 11 Oct 2020 18:11:39 -0700 +Subject: tools/python: Pass linker to Python build process +MIME-Version: 1.0 +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit + +Unexpectedly the environment variable which needs to be passed is +$LDSHARED and not $LD. Otherwise Python may find the build `ld` instead +of the host `ld`. + +Replace $(LDFLAGS) with $(SHLIB_LDFLAGS) as Python needs shared objects +it can load at runtime, not executables. + +This uses $(CC) instead of $(LD) since Python distutils appends $CFLAGS +to $LDFLAGS which breaks many linkers. + +Signed-off-by: Elliott Mitchell +Acked-by: Marek Marczykowski-Górecki +(cherry picked from commit 17d192e0238d6c714e9f04593b59597b7090be38) + +[ Hans van Kranenburg ] +Fixed cherry-pick conflict because we have LIBEXEC_LIB=$(LIBEXEC_LIB) in +between in the same lines. The line wrap mess makes it a bit hard to +follow. +--- + tools/pygrub/Makefile | 11 ++++++----- + tools/python/Makefile | 9 +++++---- + 2 files changed, 11 insertions(+), 9 deletions(-) + +diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile +index 4cd1a95..2950f37 100644 +--- a/tools/pygrub/Makefile ++++ b/tools/pygrub/Makefile +@@ -3,21 +3,22 @@ XEN_ROOT = $(CURDIR)/../.. + include $(XEN_ROOT)/tools/Rules.mk + + PY_CFLAGS = $(CFLAGS) $(PY_NOOPT_CFLAGS) +-PY_LDFLAGS = $(LDFLAGS) $(APPEND_LDFLAGS) ++PY_LDFLAGS = $(SHLIB_LDFLAGS) $(APPEND_LDFLAGS) + INSTALL_LOG = build/installed_files.txt + + .PHONY: all + all: build + .PHONY: build + build: +- CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDFLAGS="$(PY_LDFLAGS)" LIBEXEC_LIB=$(LIBEXEC_LIB) $(PYTHON) setup.py build ++ CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLAGS)" \ ++ LIBEXEC_LIB=$(LIBEXEC_LIB) $(PYTHON) setup.py build + + .PHONY: install + install: all + $(INSTALL_DIR) $(DESTDIR)/$(bindir) +- CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDFLAGS="$(PY_LDFLAGS)" \ +- LIBEXEC_LIB=$(LIBEXEC_LIB) $(PYTHON) \ +- setup.py install --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \ ++ CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" \ ++ LDFLAGS="$(PY_LDFLAGS)" LIBEXEC_LIB=$(LIBEXEC_LIB) $(PYTHON) setup.py install \ ++ --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \ + --root="$(DESTDIR)" --install-scripts=$(LIBEXEC_BIN) --force + set -e; if [ $(bindir) != $(LIBEXEC_BIN) -a \ + "`readlink -f $(DESTDIR)/$(bindir)`" != \ +diff --git a/tools/python/Makefile b/tools/python/Makefile +index 8d22c03..b675f5b 100644 +--- a/tools/python/Makefile ++++ b/tools/python/Makefile +@@ -5,19 +5,20 @@ include $(XEN_ROOT)/tools/Rules.mk + all: build + + PY_CFLAGS = $(CFLAGS) $(PY_NOOPT_CFLAGS) +-PY_LDFLAGS = $(LDFLAGS) $(APPEND_LDFLAGS) ++PY_LDFLAGS = $(SHLIB_LDFLAGS) $(APPEND_LDFLAGS) + INSTALL_LOG = build/installed_files.txt + + .PHONY: build + build: +- CC="$(CC)" CFLAGS="$(PY_CFLAGS)" $(PYTHON) setup.py build ++ CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py build + + .PHONY: install + install: + $(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN) + +- CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) \ +- setup.py install --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \ ++ CC="$(CC)" CFLAGS="$(PY_CFLAGS)" LDSHARED="$(CC)" \ ++ LDFLAGS="$(PY_LDFLAGS)" $(PYTHON) setup.py install \ ++ --record $(INSTALL_LOG) $(PYTHON_PREFIX_ARG) \ + --root="$(DESTDIR)" --force + + $(INSTALL_PYTHON_PROG) scripts/convert-legacy-stream $(DESTDIR)$(LIBEXEC_BIN) diff --git a/patches/0029-xen-arm-acpi-Don-t-fail-if-SPCR-table-is-absent.patch b/patches/0029-xen-arm-acpi-Don-t-fail-if-SPCR-table-is-absent.patch new file mode 100644 index 0000000000..5881a7f162 --- /dev/null +++ b/patches/0029-xen-arm-acpi-Don-t-fail-if-SPCR-table-is-absent.patch @@ -0,0 +1,47 @@ +From: Elliott Mitchell +Date: Wed, 21 Oct 2020 15:12:53 -0700 +Subject: xen/arm: acpi: Don't fail if SPCR table is absent + +Absence of a SPCR table likely means the console is a framebuffer. In +such case acpi_iomem_deny_access() should NOT fail. + +Signed-off-by: Elliott Mitchell +Acked-by: Julien Grall +Reviewed-by: Stefano Stabellini +(cherry picked from commit 861f0c110976fa8879b7bf63d9478b6be83d4ab6) +--- + xen/arch/arm/acpi/domain_build.c | 19 ++++++++++--------- + 1 file changed, 10 insertions(+), 9 deletions(-) + +diff --git a/xen/arch/arm/acpi/domain_build.c b/xen/arch/arm/acpi/domain_build.c +index 1b1cfab..bbdc90f 100644 +--- a/xen/arch/arm/acpi/domain_build.c ++++ b/xen/arch/arm/acpi/domain_build.c +@@ -42,17 +42,18 @@ static int __init acpi_iomem_deny_access(struct domain *d) + status = acpi_get_table(ACPI_SIG_SPCR, 0, + (struct acpi_table_header **)&spcr); + +- if ( ACPI_FAILURE(status) ) ++ if ( ACPI_SUCCESS(status) ) + { +- printk("Failed to get SPCR table\n"); +- return -EINVAL; ++ mfn = spcr->serial_port.address >> PAGE_SHIFT; ++ /* Deny MMIO access for UART */ ++ rc = iomem_deny_access(d, mfn, mfn + 1); ++ if ( rc ) ++ return rc; ++ } ++ else ++ { ++ printk("Failed to get SPCR table, Xen console may be unavailable\n"); + } +- +- mfn = spcr->serial_port.address >> PAGE_SHIFT; +- /* Deny MMIO access for UART */ +- rc = iomem_deny_access(d, mfn, mfn + 1); +- if ( rc ) +- return rc; + + /* Deny MMIO access for GIC regions */ + return gic_iomem_deny_access(d); diff --git a/patches/0030-xen-acpi-Rework-acpi_os_map_memory-and-acpi_os_unmap.patch b/patches/0030-xen-acpi-Rework-acpi_os_map_memory-and-acpi_os_unmap.patch new file mode 100644 index 0000000000..1852484072 --- /dev/null +++ b/patches/0030-xen-acpi-Rework-acpi_os_map_memory-and-acpi_os_unmap.patch @@ -0,0 +1,163 @@ +From: Julien Grall +Date: Sat, 26 Sep 2020 17:44:29 +0100 +Subject: xen/acpi: Rework acpi_os_map_memory() and acpi_os_unmap_memory() + +The functions acpi_os_{un,}map_memory() are meant to be arch-agnostic +while the __acpi_os_{un,}map_memory() are meant to be arch-specific. + +Currently, the former are still containing x86 specific code. + +To avoid this rather strange split, the generic helpers are reworked so +they are arch-agnostic. This requires the introduction of a new helper +__acpi_os_unmap_memory() that will undo any mapping done by +__acpi_os_map_memory(). + +Currently, the arch-helper for unmap is basically a no-op so it only +returns whether the mapping was arch specific. But this will change +in the future. + +Note that the x86 version of acpi_os_map_memory() was already able to +able the 1MB region. Hence why there is no addition of new code. + +Signed-off-by: Julien Grall +Reviewed-by: Rahul Singh +Reviewed-by: Jan Beulich +Acked-by: Stefano Stabellini +Tested-by: Rahul Singh +Tested-by: Elliott Mitchell +(cherry picked from commit 1c4aa69ca1e1fad20b2158051eb152276d1eb973) +--- + xen/arch/arm/acpi/lib.c | 12 ++++++++++++ + xen/arch/x86/acpi/lib.c | 18 ++++++++++++++++++ + xen/drivers/acpi/osl.c | 34 ++++++++++++++++++---------------- + xen/include/xen/acpi.h | 1 + + 4 files changed, 49 insertions(+), 16 deletions(-) + +diff --git a/xen/arch/arm/acpi/lib.c b/xen/arch/arm/acpi/lib.c +index 4fc6e17..fcc186b 100644 +--- a/xen/arch/arm/acpi/lib.c ++++ b/xen/arch/arm/acpi/lib.c +@@ -30,6 +30,10 @@ char *__acpi_map_table(paddr_t phys, unsigned long size) + unsigned long base, offset, mapped_size; + int idx; + ++ /* No arch specific implementation after early boot */ ++ if ( system_state >= SYS_STATE_boot ) ++ return NULL; ++ + offset = phys & (PAGE_SIZE - 1); + mapped_size = PAGE_SIZE - offset; + set_fixmap(FIXMAP_ACPI_BEGIN, maddr_to_mfn(phys), PAGE_HYPERVISOR); +@@ -49,6 +53,14 @@ char *__acpi_map_table(paddr_t phys, unsigned long size) + return ((char *) base + offset); + } + ++bool __acpi_unmap_table(const void *ptr, unsigned long size) ++{ ++ vaddr_t vaddr = (vaddr_t)ptr; ++ ++ return ((vaddr >= FIXMAP_ADDR(FIXMAP_ACPI_BEGIN)) && ++ (vaddr < (FIXMAP_ADDR(FIXMAP_ACPI_END) + PAGE_SIZE))); ++} ++ + /* True to indicate PSCI 0.2+ is implemented */ + bool __init acpi_psci_present(void) + { +diff --git a/xen/arch/x86/acpi/lib.c b/xen/arch/x86/acpi/lib.c +index 265b9ad..a22414a 100644 +--- a/xen/arch/x86/acpi/lib.c ++++ b/xen/arch/x86/acpi/lib.c +@@ -46,6 +46,10 @@ char *__acpi_map_table(paddr_t phys, unsigned long size) + if ((phys + size) <= (1 * 1024 * 1024)) + return __va(phys); + ++ /* No further arch specific implementation after early boot */ ++ if (system_state >= SYS_STATE_boot) ++ return NULL; ++ + offset = phys & (PAGE_SIZE - 1); + mapped_size = PAGE_SIZE - offset; + set_fixmap(FIX_ACPI_END, phys); +@@ -66,6 +70,20 @@ char *__acpi_map_table(paddr_t phys, unsigned long size) + return ((char *) base + offset); + } + ++bool __acpi_unmap_table(const void *ptr, unsigned long size) ++{ ++ unsigned long vaddr = (unsigned long)ptr; ++ ++ if ((vaddr >= DIRECTMAP_VIRT_START) && ++ (vaddr < DIRECTMAP_VIRT_END)) { ++ ASSERT(!((__pa(ptr) + size - 1) >> 20)); ++ return true; ++ } ++ ++ return ((vaddr >= __fix_to_virt(FIX_ACPI_END)) && ++ (vaddr < (__fix_to_virt(FIX_ACPI_BEGIN) + PAGE_SIZE))); ++} ++ + unsigned int acpi_get_processor_id(unsigned int cpu) + { + unsigned int acpiid, apicid; +diff --git a/xen/drivers/acpi/osl.c b/xen/drivers/acpi/osl.c +index 4c8bb78..389505f 100644 +--- a/xen/drivers/acpi/osl.c ++++ b/xen/drivers/acpi/osl.c +@@ -92,27 +92,29 @@ acpi_physical_address __init acpi_os_get_root_pointer(void) + void __iomem * + acpi_os_map_memory(acpi_physical_address phys, acpi_size size) + { +- if (system_state >= SYS_STATE_boot) { +- mfn_t mfn = _mfn(PFN_DOWN(phys)); +- unsigned int offs = phys & (PAGE_SIZE - 1); +- +- /* The low first Mb is always mapped on x86. */ +- if (IS_ENABLED(CONFIG_X86) && !((phys + size - 1) >> 20)) +- return __va(phys); +- return __vmap(&mfn, PFN_UP(offs + size), 1, 1, +- ACPI_MAP_MEM_ATTR, VMAP_DEFAULT) + offs; +- } +- return __acpi_map_table(phys, size); ++ void *ptr; ++ mfn_t mfn = _mfn(PFN_DOWN(phys)); ++ unsigned int offs = PAGE_OFFSET(phys); ++ ++ /* Try the arch specific implementation first */ ++ ptr = __acpi_map_table(phys, size); ++ if (ptr) ++ return ptr; ++ ++ /* No common implementation for early boot map */ ++ if (unlikely(system_state < SYS_STATE_boot)) ++ return NULL; ++ ++ ptr = __vmap(&mfn, PFN_UP(offs + size), 1, 1, ++ ACPI_MAP_MEM_ATTR, VMAP_DEFAULT); ++ ++ return !ptr ? NULL : (ptr + offs); + } + + void acpi_os_unmap_memory(void __iomem * virt, acpi_size size) + { +- if (IS_ENABLED(CONFIG_X86) && +- (unsigned long)virt >= DIRECTMAP_VIRT_START && +- (unsigned long)virt < DIRECTMAP_VIRT_END) { +- ASSERT(!((__pa(virt) + size - 1) >> 20)); ++ if (__acpi_unmap_table(virt, size)) + return; +- } + + if (system_state >= SYS_STATE_boot) + vunmap((void *)((unsigned long)virt & PAGE_MASK)); +diff --git a/xen/include/xen/acpi.h b/xen/include/xen/acpi.h +index c945ab0..21d5e9f 100644 +--- a/xen/include/xen/acpi.h ++++ b/xen/include/xen/acpi.h +@@ -68,6 +68,7 @@ typedef int (*acpi_table_entry_handler) (struct acpi_subtable_header *header, co + + unsigned int acpi_get_processor_id (unsigned int cpu); + char * __acpi_map_table (paddr_t phys_addr, unsigned long size); ++bool __acpi_unmap_table(const void *ptr, unsigned long size); + int acpi_boot_init (void); + int acpi_boot_table_init (void); + int acpi_numa_init (void); diff --git a/patches/0031-xen-arm-acpi-The-fixmap-area-should-always-be-cleare.patch b/patches/0031-xen-arm-acpi-The-fixmap-area-should-always-be-cleare.patch new file mode 100644 index 0000000000..4c83fb1008 --- /dev/null +++ b/patches/0031-xen-arm-acpi-The-fixmap-area-should-always-be-cleare.patch @@ -0,0 +1,131 @@ +From: Julien Grall +Date: Sat, 26 Sep 2020 19:53:27 +0100 +Subject: xen/arm: acpi: The fixmap area should always be cleared during + failure/unmap + +Commit 022387ee1ad3 "xen/arm: mm: Don't open-code Xen PT update in +{set, clear}_fixmap()" enforced that each set_fixmap() should be +paired with a clear_fixmap(). Any failure to follow the model would +result to a platform crash. + +Unfortunately, the use of fixmap in the ACPI code was overlooked as it +is calling set_fixmap() but not clear_fixmap(). + +The function __acpi_os_map_table() is reworked so: + - We know before the mapping whether the fixmap region is big + enough for the mapping. + - It will fail if the fixmap is already in use. This is not a + change of behavior but clarifying the current expectation to avoid + hitting a BUG(). + +The function __acpi_os_unmap_table() will now call clear_fixmap(). + +Reported-by: Wei Xu +Signed-off-by: Julien Grall +Reviewed-by: Stefano Stabellini +(cherry picked from commit 4d625ff3c3a939dc270b03654337568c30c5ab6e) +--- + xen/arch/arm/acpi/lib.c | 73 +++++++++++++++++++++++++++++++++++++------------ + 1 file changed, 56 insertions(+), 17 deletions(-) + +diff --git a/xen/arch/arm/acpi/lib.c b/xen/arch/arm/acpi/lib.c +index fcc186b..a59cc40 100644 +--- a/xen/arch/arm/acpi/lib.c ++++ b/xen/arch/arm/acpi/lib.c +@@ -25,40 +25,79 @@ + #include + #include + ++static bool fixmap_inuse; ++ + char *__acpi_map_table(paddr_t phys, unsigned long size) + { +- unsigned long base, offset, mapped_size; +- int idx; ++ unsigned long base, offset; ++ mfn_t mfn; ++ unsigned int idx; + + /* No arch specific implementation after early boot */ + if ( system_state >= SYS_STATE_boot ) + return NULL; + + offset = phys & (PAGE_SIZE - 1); +- mapped_size = PAGE_SIZE - offset; +- set_fixmap(FIXMAP_ACPI_BEGIN, maddr_to_mfn(phys), PAGE_HYPERVISOR); +- base = FIXMAP_ADDR(FIXMAP_ACPI_BEGIN); ++ base = FIXMAP_ADDR(FIXMAP_ACPI_BEGIN) + offset; ++ ++ /* Check the fixmap is big enough to map the region */ ++ if ( (FIXMAP_ADDR(FIXMAP_ACPI_END) + PAGE_SIZE - base) < size ) ++ return NULL; ++ ++ /* With the fixmap, we can only map one region at the time */ ++ if ( fixmap_inuse ) ++ return NULL; + +- /* Most cases can be covered by the below. */ ++ fixmap_inuse = true; ++ ++ size += offset; ++ mfn = maddr_to_mfn(phys); + idx = FIXMAP_ACPI_BEGIN; +- while ( mapped_size < size ) +- { +- if ( ++idx > FIXMAP_ACPI_END ) +- return NULL; /* cannot handle this */ +- phys += PAGE_SIZE; +- set_fixmap(idx, maddr_to_mfn(phys), PAGE_HYPERVISOR); +- mapped_size += PAGE_SIZE; +- } + +- return ((char *) base + offset); ++ do { ++ set_fixmap(idx, mfn, PAGE_HYPERVISOR); ++ size -= min(size, (unsigned long)PAGE_SIZE); ++ mfn = mfn_add(mfn, 1); ++ idx++; ++ } while ( size > 0 ); ++ ++ return (char *)base; + } + + bool __acpi_unmap_table(const void *ptr, unsigned long size) + { + vaddr_t vaddr = (vaddr_t)ptr; ++ unsigned int idx; ++ ++ /* We are only handling fixmap address in the arch code */ ++ if ( (vaddr < FIXMAP_ADDR(FIXMAP_ACPI_BEGIN)) || ++ (vaddr >= (FIXMAP_ADDR(FIXMAP_ACPI_END) + PAGE_SIZE)) ) ++ return false; ++ ++ /* ++ * __acpi_map_table() will always return a pointer in the first page ++ * for the ACPI fixmap region. The caller is expected to free with ++ * the same address. ++ */ ++ ASSERT((vaddr & PAGE_MASK) == FIXMAP_ADDR(FIXMAP_ACPI_BEGIN)); ++ ++ /* The region allocated fit in the ACPI fixmap region. */ ++ ASSERT(size < (FIXMAP_ADDR(FIXMAP_ACPI_END) + PAGE_SIZE - vaddr)); ++ ASSERT(fixmap_inuse); ++ ++ fixmap_inuse = false; ++ ++ size += vaddr - FIXMAP_ADDR(FIXMAP_ACPI_BEGIN); ++ idx = FIXMAP_ACPI_BEGIN; ++ ++ do ++ { ++ clear_fixmap(idx); ++ size -= min(size, (unsigned long)PAGE_SIZE); ++ idx++; ++ } while ( size > 0 ); + +- return ((vaddr >= FIXMAP_ADDR(FIXMAP_ACPI_BEGIN)) && +- (vaddr < (FIXMAP_ADDR(FIXMAP_ACPI_END) + PAGE_SIZE))); ++ return true; + } + + /* True to indicate PSCI 0.2+ is implemented */ diff --git a/patches/0032-xen-arm-Check-if-the-platform-is-not-using-ACPI-befo.patch b/patches/0032-xen-arm-Check-if-the-platform-is-not-using-ACPI-befo.patch new file mode 100644 index 0000000000..c97b402ff6 --- /dev/null +++ b/patches/0032-xen-arm-Check-if-the-platform-is-not-using-ACPI-befo.patch @@ -0,0 +1,39 @@ +From: Julien Grall +Date: Sat, 26 Sep 2020 21:16:55 +0100 +Subject: xen/arm: Check if the platform is not using ACPI before initializing + Dom0less + +Dom0less requires a device-tree. However, since commit 6e3e77120378 +"xen/arm: setup: Relocate the Device-Tree later on in the boot", the +device-tree will not get unflatten when using ACPI. + +This will lead to a crash during boot. + +Given the complexity to setup dom0less with ACPI (for instance how to +assign device?), we should skip any code related to Dom0less when using +ACPI. + +Signed-off-by: Julien Grall +Tested-by: Rahul Singh +Reviewed-by: Rahul Singh +Reviewed-by: Stefano Stabellini +Tested-by: Elliott Mitchell +(cherry picked from commit dac867bf9adc1562a4cf9db5f89726597af13ef8) +--- + xen/arch/arm/setup.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c +index 34b1c1a..fb2f45e 100644 +--- a/xen/arch/arm/setup.c ++++ b/xen/arch/arm/setup.c +@@ -961,7 +961,8 @@ void __init start_xen(unsigned long boot_phys_offset, + if ( construct_dom0(dom0) != 0) + panic("Could not set up DOM0 guest OS\n"); + +- create_domUs(); ++ if ( acpi_disabled ) ++ create_domUs(); + + /* + * This needs to be called **before** heap_init_late() so modules diff --git a/patches/0033-xen-arm-Introduce-fw_unreserved_regions-and-use-it.patch b/patches/0033-xen-arm-Introduce-fw_unreserved_regions-and-use-it.patch new file mode 100644 index 0000000000..002f675e82 --- /dev/null +++ b/patches/0033-xen-arm-Introduce-fw_unreserved_regions-and-use-it.patch @@ -0,0 +1,124 @@ +From: Julien Grall +Date: Sat, 26 Sep 2020 21:30:14 +0100 +Subject: xen/arm: Introduce fw_unreserved_regions() and use it + +Since commit 6e3e77120378 "xen/arm: setup: Relocate the Device-Tree +later on in the boot", the device-tree will not be kept mapped when +using ACPI. + +However, a few places are calling dt_unreserved_regions() which expects +a valid DT. This will lead to a crash. + +As the DT should not be used for ACPI (other than for detecting the +modules), a new function fw_unreserved_regions() is introduced. + +It will behave the same way on DT system. On ACPI system, it will +unreserve the whole region. + +Take the opportunity to clarify that bootinfo.reserved_mem is only used +when booting using Device-Tree. + +Signed-off-by: Julien Grall +Reviewed-by: Stefano Stabellini +(cherry picked from commit 9c2bc0f24b2ba7082df408b3c33ec9a86bf20cf0) +--- + xen/arch/arm/kernel.c | 2 +- + xen/arch/arm/setup.c | 22 +++++++++++++++++----- + xen/include/asm-arm/setup.h | 3 ++- + 3 files changed, 20 insertions(+), 7 deletions(-) + +diff --git a/xen/arch/arm/kernel.c b/xen/arch/arm/kernel.c +index 8eff074..27dace0 100644 +--- a/xen/arch/arm/kernel.c ++++ b/xen/arch/arm/kernel.c +@@ -307,7 +307,7 @@ static __init int kernel_decompress(struct bootmodule *mod) + * Free the original kernel, update the pointers to the + * decompressed kernel + */ +- dt_unreserved_regions(addr, addr + size, init_domheap_pages, 0); ++ fw_unreserved_regions(addr, addr + size, init_domheap_pages, 0); + + return 0; + } +diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c +index fb2f45e..c94827e 100644 +--- a/xen/arch/arm/setup.c ++++ b/xen/arch/arm/setup.c +@@ -183,8 +183,9 @@ static void __init processor_id(void) + processor_setup(); + } + +-void __init dt_unreserved_regions(paddr_t s, paddr_t e, +- void (*cb)(paddr_t, paddr_t), int first) ++static void __init dt_unreserved_regions(paddr_t s, paddr_t e, ++ void (*cb)(paddr_t, paddr_t), ++ int first) + { + int i, nr = fdt_num_mem_rsv(device_tree_flattened); + +@@ -231,6 +232,17 @@ void __init dt_unreserved_regions(paddr_t s, paddr_t e, + cb(s, e); + } + ++void __init fw_unreserved_regions(paddr_t s, paddr_t e, ++ void (*cb)(paddr_t, paddr_t), int first) ++{ ++ if ( acpi_disabled ) ++ dt_unreserved_regions(s, e, cb, first); ++ else ++ cb(s, e); ++} ++ ++ ++ + struct bootmodule __init *add_boot_module(bootmodule_kind kind, + paddr_t start, paddr_t size, + bool domU) +@@ -392,7 +404,7 @@ void __init discard_initial_modules(void) + !mfn_valid(maddr_to_mfn(e)) ) + continue; + +- dt_unreserved_regions(s, e, init_domheap_pages, 0); ++ fw_unreserved_regions(s, e, init_domheap_pages, 0); + } + + mi->nr_mods = 0; +@@ -699,7 +711,7 @@ static void __init setup_mm(void) + n = mfn_to_maddr(mfn_add(xenheap_mfn_start, xenheap_pages)); + } + +- dt_unreserved_regions(s, e, init_boot_pages, 0); ++ fw_unreserved_regions(s, e, init_boot_pages, 0); + + s = n; + } +@@ -752,7 +764,7 @@ static void __init setup_mm(void) + if ( e > bank_end ) + e = bank_end; + +- dt_unreserved_regions(s, e, init_boot_pages, 0); ++ fw_unreserved_regions(s, e, init_boot_pages, 0); + s = n; + } + } +diff --git a/xen/include/asm-arm/setup.h b/xen/include/asm-arm/setup.h +index 2f8f24e..28bf622 100644 +--- a/xen/include/asm-arm/setup.h ++++ b/xen/include/asm-arm/setup.h +@@ -67,6 +67,7 @@ struct bootcmdlines { + + struct bootinfo { + struct meminfo mem; ++ /* The reserved regions are only used when booting using Device-Tree */ + struct meminfo reserved_mem; + struct bootmodules modules; + struct bootcmdlines cmdlines; +@@ -96,7 +97,7 @@ int construct_dom0(struct domain *d); + void create_domUs(void); + + void discard_initial_modules(void); +-void dt_unreserved_regions(paddr_t s, paddr_t e, ++void fw_unreserved_regions(paddr_t s, paddr_t e, + void (*cb)(paddr_t, paddr_t), int first); + + size_t boot_fdt_info(const void *fdt, paddr_t paddr); diff --git a/patches/0034-xen-arm-acpi-add-BAD_MADT_GICC_ENTRY-macro.patch b/patches/0034-xen-arm-acpi-add-BAD_MADT_GICC_ENTRY-macro.patch new file mode 100644 index 0000000000..c7562c5d5a --- /dev/null +++ b/patches/0034-xen-arm-acpi-add-BAD_MADT_GICC_ENTRY-macro.patch @@ -0,0 +1,60 @@ +From: Julien Grall +Date: Wed, 30 Sep 2020 12:25:04 +0100 +Subject: xen/arm: acpi: add BAD_MADT_GICC_ENTRY() macro + +Imported from Linux commit b6cfb277378ef831c0fa84bcff5049307294adc6: + + The BAD_MADT_ENTRY() macro is designed to work for all of the subtables + of the MADT. In the ACPI 5.1 version of the spec, the struct for the + GICC subtable (struct acpi_madt_generic_interrupt) is 76 bytes long; in + ACPI 6.0, the struct is 80 bytes long. But, there is only one definition + in ACPICA for this struct -- and that is the 6.0 version. Hence, when + BAD_MADT_ENTRY() compares the struct size to the length in the GICC + subtable, it fails if 5.1 structs are in use, and there are systems in + the wild that have them. + + This patch adds the BAD_MADT_GICC_ENTRY() that checks the GICC subtable + only, accounting for the difference in specification versions that are + possible. The BAD_MADT_ENTRY() will continue to work as is for all other + MADT subtables. + + This code is being added to an arm64 header file since that is currently + the only architecture using the GICC subtable of the MADT. As a GIC is + specific to ARM, it is also unlikely the subtable will be used elsewhere. + + Fixes: aeb823bbacc2 ("ACPICA: ACPI 6.0: Add changes for FADT table.") + Signed-off-by: Al Stone + Acked-by: Will Deacon + Acked-by: "Rafael J. Wysocki" + [catalin.marinas@arm.com: extra brackets around macro arguments] + Signed-off-by: Catalin Marinas + +Signed-off-by: Julien Grall +Signed-off-by: Andre Przywara +Signed-off-by: Julien Grall +Acked-by: Stefano Stabellini +Tested-by: Elliott Mitchell +(cherry picked from commit 7056f2f89f03f2f804ac7e776c7b2b000cd716cd) +--- + xen/include/asm-arm/acpi.h | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/xen/include/asm-arm/acpi.h b/xen/include/asm-arm/acpi.h +index 5034028..b52ae2d 100644 +--- a/xen/include/asm-arm/acpi.h ++++ b/xen/include/asm-arm/acpi.h +@@ -54,6 +54,14 @@ void acpi_smp_init_cpus(void); + */ + paddr_t acpi_get_table_offset(struct membank tbl_add[], EFI_MEM_RES index); + ++/* Macros for consistency checks of the GICC subtable of MADT */ ++#define ACPI_MADT_GICC_LENGTH \ ++ (acpi_gbl_FADT.header.revision < 6 ? 76 : 80) ++ ++#define BAD_MADT_GICC_ENTRY(entry, end) \ ++ (!(entry) || (unsigned long)(entry) + sizeof(*(entry)) > (end) || \ ++ (entry)->header.length != ACPI_MADT_GICC_LENGTH) ++ + #ifdef CONFIG_ACPI + extern bool acpi_disabled; + /* Basic configuration for ACPI */ diff --git a/patches/0035-xen-arm-traps-Don-t-panic-when-receiving-an-unknown-.patch b/patches/0035-xen-arm-traps-Don-t-panic-when-receiving-an-unknown-.patch new file mode 100644 index 0000000000..07d2a91121 --- /dev/null +++ b/patches/0035-xen-arm-traps-Don-t-panic-when-receiving-an-unknown-.patch @@ -0,0 +1,29 @@ +From: Julien Grall +Date: Thu, 5 Nov 2020 22:31:06 +0000 +Subject: xen/arm: traps: Don't panic when receiving an unknown debug trap + +Even if debug trap are only meant for debugging purpose, it is quite +harsh to crash Xen if one of the trap sent by the guest is not handled. + +So switch from a panic() to a printk(). + +Signed-off-by: Julien Grall +Reviewed-by: Stefano Stabellini +(cherry picked from commit 957708c2d1ae25d7375abd5e5e70c3043d64f1f1) +--- + xen/arch/arm/traps.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c +index 2197df2..22bd1bd 100644 +--- a/xen/arch/arm/traps.c ++++ b/xen/arch/arm/traps.c +@@ -1411,7 +1411,7 @@ static void do_debug_trap(struct cpu_user_regs *regs, unsigned int code) + show_execution_state(regs); + break; + default: +- panic("DOM%d: Unhandled debug trap %#x\n", domid, code); ++ printk("DOM%d: Unhandled debug trap %#x\n", domid, code); + break; + } + } diff --git a/patches/0036-fix-spelling-errors.patch b/patches/0036-fix-spelling-errors.patch new file mode 100644 index 0000000000..d4be90da83 --- /dev/null +++ b/patches/0036-fix-spelling-errors.patch @@ -0,0 +1,211 @@ +From: Diederik de Haas +Date: Fri, 4 Dec 2020 08:28:21 +0100 +Subject: fix spelling errors + +Only spelling errors; no functional changes. + +In docs/misc/dump-core-format.txt there are a few more instances of +'informations'. I'll leave that up to someone who can properly determine +how those sentences should be constructed. + +Signed-off-by: Diederik de Haas +Reviewed-by: Stefano Stabellini +Acked-by: Jan Beulich +(cherry picked from commit ba6e78f0db820fbeea4df41fde4655020ca05928) +--- + docs/man/xl.1.pod.in | 2 +- + docs/man/xl.cfg.5.pod.in | 2 +- + docs/man/xlcpupool.cfg.5.pod | 2 +- + tools/firmware/rombios/rombios.c | 2 +- + tools/libxl/libxl_stream_read.c | 2 +- + tools/xl/xl_cmdtable.c | 2 +- + xen/arch/x86/boot/video.S | 2 +- + xen/arch/x86/cpu/vpmu.c | 2 +- + xen/arch/x86/mpparse.c | 2 +- + xen/arch/x86/x86_emulate/x86_emulate.c | 2 +- + xen/common/libelf/libelf-dominfo.c | 2 +- + xen/drivers/passthrough/arm/smmu.c | 2 +- + xen/tools/gen-cpuid.py | 2 +- + xen/xsm/flask/policy/access_vectors | 2 +- + 14 files changed, 14 insertions(+), 14 deletions(-) + +diff --git a/docs/man/xl.1.pod.in b/docs/man/xl.1.pod.in +index 52a47a6..3480707 100644 +--- a/docs/man/xl.1.pod.in ++++ b/docs/man/xl.1.pod.in +@@ -1578,7 +1578,7 @@ List vsnd devices for a domain. + Creates a new keyboard device in the domain specified by I. + I describes the device to attach, using the same format as the + B string in the domain config file. See L +-for more informations. ++for more information. + + =item B I I + +diff --git a/docs/man/xl.cfg.5.pod.in b/docs/man/xl.cfg.5.pod.in +index 0532739..b4625f5 100644 +--- a/docs/man/xl.cfg.5.pod.in ++++ b/docs/man/xl.cfg.5.pod.in +@@ -2385,7 +2385,7 @@ If B is set less than 128MB, an error will be triggered. + + =item B + +-Speficies a standard VGA card with VBE (VESA BIOS Extensions) as the ++Specifies a standard VGA card with VBE (VESA BIOS Extensions) as the + emulated graphics device. If your guest supports VBE 2.0 or + later (e.g. Windows XP onwards) then you should enable this. + stdvga supports more video ram and bigger resolutions than Cirrus. +diff --git a/docs/man/xlcpupool.cfg.5.pod b/docs/man/xlcpupool.cfg.5.pod +index 3c9ddf7..c577c7c 100644 +--- a/docs/man/xlcpupool.cfg.5.pod ++++ b/docs/man/xlcpupool.cfg.5.pod +@@ -106,7 +106,7 @@ means that cpus 2,3,5 will be member of the cpupool. + means that cpus 0,2,3 and 5 will be member of the cpupool. A "node:" or + "nodes:" modifier can be used. E.g., "0,node:1,nodes:2-3,^10-13" means + that pcpus 0, plus all the cpus of NUMA nodes 1,2,3 with the exception +-of cpus 10,11,12,13 will be memeber of the cpupool. ++of cpus 10,11,12,13 will be members of the cpupool. + + =back + +diff --git a/tools/firmware/rombios/rombios.c b/tools/firmware/rombios/rombios.c +index 51558ee..5cda227 100644 +--- a/tools/firmware/rombios/rombios.c ++++ b/tools/firmware/rombios/rombios.c +@@ -2607,7 +2607,7 @@ void ata_detect( ) + write_byte(ebda_seg,&EbdaData->ata.channels[3].irq,11); + #endif + #if BX_MAX_ATA_INTERFACES > 4 +-#error Please fill the ATA interface informations ++#error Please fill the ATA interface information + #endif + + // Device detection +diff --git a/tools/libxl/libxl_stream_read.c b/tools/libxl/libxl_stream_read.c +index 514f6d9..99a6714 100644 +--- a/tools/libxl/libxl_stream_read.c ++++ b/tools/libxl/libxl_stream_read.c +@@ -459,7 +459,7 @@ static void stream_continue(libxl__egc *egc, + while (process_record(egc, stream)) + ; /* + * Nothing! process_record() helpfully tells us if no specific +- * futher actions have been set up, in which case we want to go ++ * further actions have been set up, in which case we want to go + * ahead and process the next record. + */ + break; +diff --git a/tools/xl/xl_cmdtable.c b/tools/xl/xl_cmdtable.c +index 0833539..9ad31a6 100644 +--- a/tools/xl/xl_cmdtable.c ++++ b/tools/xl/xl_cmdtable.c +@@ -154,7 +154,7 @@ struct cmd_spec cmd_table[] = { + "-h Print this help.\n" + "-c Leave domain running after creating the snapshot.\n" + "-p Leave domain paused after creating the snapshot.\n" +- "-D Store the domain id in the configration." ++ "-D Store the domain id in the configuration." + }, + { "migrate", + &main_migrate, 0, 1, +diff --git a/xen/arch/x86/boot/video.S b/xen/arch/x86/boot/video.S +index a485779..0efbe8d 100644 +--- a/xen/arch/x86/boot/video.S ++++ b/xen/arch/x86/boot/video.S +@@ -177,7 +177,7 @@ dac_set: + movb $0, _param(PARAM_LFB_COLORS+7) + + dac_done: +-# get protected mode interface informations ++# get protected mode interface information + movw $0x4f0a, %ax + xorw %bx, %bx + xorw %di, %di +diff --git a/xen/arch/x86/cpu/vpmu.c b/xen/arch/x86/cpu/vpmu.c +index 0c3f378..fb1b296 100644 +--- a/xen/arch/x86/cpu/vpmu.c ++++ b/xen/arch/x86/cpu/vpmu.c +@@ -680,7 +680,7 @@ static void pvpmu_finish(struct domain *d, xen_pmu_params_t *params) + vcpu_unpause(v); + } + +-/* Dump some vpmu informations on console. Used in keyhandler dump_domains(). */ ++/* Dump some vpmu information to console. Used in keyhandler dump_domains(). */ + void vpmu_dump(struct vcpu *v) + { + struct vpmu_struct *vpmu = vcpu_vpmu(v); +diff --git a/xen/arch/x86/mpparse.c b/xen/arch/x86/mpparse.c +index 3e0ec3c..91fa580 100644 +--- a/xen/arch/x86/mpparse.c ++++ b/xen/arch/x86/mpparse.c +@@ -175,7 +175,7 @@ static int MP_processor_info_x(struct mpc_config_processor *m, + if (num_processors >= 8 && hotplug + && genapic.name == apic_default.name) { + printk_once(XENLOG_WARNING +- "WARNING: CPUs limit of 8 reached - ignoring futher processors\n"); ++ "WARNING: CPUs limit of 8 reached - ignoring further processors\n"); + unaccounted_cpus = true; + return -ENOSPC; + } +diff --git a/xen/arch/x86/x86_emulate/x86_emulate.c b/xen/arch/x86/x86_emulate/x86_emulate.c +index c0f91dd..ed511de 100644 +--- a/xen/arch/x86/x86_emulate/x86_emulate.c ++++ b/xen/arch/x86/x86_emulate/x86_emulate.c +@@ -3244,7 +3244,7 @@ x86_decode( + case 0x23: /* mov reg,dr */ + /* + * Mov to/from cr/dr ignore the encoding of Mod, and behave as +- * if they were encoded as reg/reg instructions. No futher ++ * if they were encoded as reg/reg instructions. No further + * disp/SIB bytes are fetched. + */ + modrm_mod = 3; +diff --git a/xen/common/libelf/libelf-dominfo.c b/xen/common/libelf/libelf-dominfo.c +index 508f08d..69c94b6 100644 +--- a/xen/common/libelf/libelf-dominfo.c ++++ b/xen/common/libelf/libelf-dominfo.c +@@ -1,5 +1,5 @@ + /* +- * parse xen-specific informations out of elf kernel binaries. ++ * parse xen-specific information out of elf kernel binaries. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public +diff --git a/xen/drivers/passthrough/arm/smmu.c b/xen/drivers/passthrough/arm/smmu.c +index 4ba6d3a..5c95131 100644 +--- a/xen/drivers/passthrough/arm/smmu.c ++++ b/xen/drivers/passthrough/arm/smmu.c +@@ -214,7 +214,7 @@ struct iommu_domain + struct list_head list; + }; + +-/* Xen: Describes informations required for a Xen domain */ ++/* Xen: Describes information required for a Xen domain */ + struct arm_smmu_xen_domain { + spinlock_t lock; + /* List of context (i.e iommu_domain) associated to this domain */ +diff --git a/xen/tools/gen-cpuid.py b/xen/tools/gen-cpuid.py +index e77672d..1cbd81a 100755 +--- a/xen/tools/gen-cpuid.py ++++ b/xen/tools/gen-cpuid.py +@@ -192,7 +192,7 @@ def crunch_numbers(state): + FXSR: [FFXSR, SSE], + + # SSE is taken to mean support for the %XMM registers as well as the +- # instructions. Several futher instruction sets are built on core ++ # instructions. Several further instruction sets are built on core + # %XMM support, without specific inter-dependencies. Additionally + # AMD has a special mis-alignment sub-mode. + SSE: [SSE2, MISALIGNSSE], +diff --git a/xen/xsm/flask/policy/access_vectors b/xen/xsm/flask/policy/access_vectors +index b87c99e..5371196 100644 +--- a/xen/xsm/flask/policy/access_vectors ++++ b/xen/xsm/flask/policy/access_vectors +@@ -509,7 +509,7 @@ class security + # + class version + { +-# Extra informations (-unstable). ++# Extra information (-unstable). + xen_extraversion + # Compile information of the hypervisor. + xen_compile_info diff --git a/patches/0037-xen-don-t-have-timestamp-inserted-in-config.gz.patch b/patches/0037-xen-don-t-have-timestamp-inserted-in-config.gz.patch new file mode 100644 index 0000000000..f9924bbff7 --- /dev/null +++ b/patches/0037-xen-don-t-have-timestamp-inserted-in-config.gz.patch @@ -0,0 +1,30 @@ +From: =?utf-8?b?IkZyw6lkw6lyaWMgUGllcnJldCAoZmVwaXRyZSki?= + +Date: Wed, 4 Nov 2020 09:24:40 +0100 +Subject: xen: don't have timestamp inserted in config.gz +MIME-Version: 1.0 +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit + +This is for improving reproducible builds. + +Signed-off-by: Frédéric Pierret (fepitre) +Acked-by: Jan Beulich +(cherry picked from commit 5816d327e44ab37ae08730f4c54a80835998f31f) +--- + xen/common/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/xen/common/Makefile b/xen/common/Makefile +index 06881d0..32cd650 100644 +--- a/xen/common/Makefile ++++ b/xen/common/Makefile +@@ -77,7 +77,7 @@ obj-$(CONFIG_HAS_DEVICE_TREE) += libfdt/ + + CONF_FILE := $(if $(patsubst /%,,$(KCONFIG_CONFIG)),$(XEN_ROOT)/xen/)$(KCONFIG_CONFIG) + config.gz: $(CONF_FILE) +- gzip -c $< >$@ ++ gzip -n -c $< >$@ + + config_data.o: config.gz + diff --git a/patches/0038-x86-EFI-don-t-insert-timestamp-when-SOURCE_DATE_EPOC.patch b/patches/0038-x86-EFI-don-t-insert-timestamp-when-SOURCE_DATE_EPOC.patch new file mode 100644 index 0000000000..1e4cfeaa3d --- /dev/null +++ b/patches/0038-x86-EFI-don-t-insert-timestamp-when-SOURCE_DATE_EPOC.patch @@ -0,0 +1,39 @@ +From: Maximilian Engelhardt +Date: Tue, 22 Dec 2020 08:59:14 +0100 +Subject: x86/EFI: don't insert timestamp when SOURCE_DATE_EPOCH is defined + +By default a timestamp gets added to the xen efi binary. Unfortunately +ld doesn't seem to provide a way to set a custom date, like from +SOURCE_DATE_EPOCH, so set a zero value for the timestamp (option +--no-insert-timestamp) if SOURCE_DATE_EPOCH is defined. This makes +reproducible builds possible. + +This is an alternative to the patch suggested in [1]. This patch only +omits the timestamp when SOURCE_DATE_EPOCH is defined. + +[1] https://lists.xenproject.org/archives/html/xen-devel/2020-10/msg02161.html + +Signed-off-by: Maximilian Engelhardt +Acked-by: Jan Beulich +(cherry picked from commit ee41b5c450032ae7f2531e18cd0a73bf5fb48803) +--- + xen/arch/x86/Makefile | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/xen/arch/x86/Makefile b/xen/arch/x86/Makefile +index fd0acd5..45a8c8f 100644 +--- a/xen/arch/x86/Makefile ++++ b/xen/arch/x86/Makefile +@@ -172,6 +172,12 @@ EFI_LDFLAGS += --major-image-version=$(XEN_VERSION) + EFI_LDFLAGS += --minor-image-version=$(XEN_SUBVERSION) + EFI_LDFLAGS += --major-os-version=2 --minor-os-version=0 + EFI_LDFLAGS += --major-subsystem-version=2 --minor-subsystem-version=0 ++# It seems ld unfortunately can't set a custom timestamp, so add a zero value ++# for the timestamp (option --no-insert-timestamp) if SOURCE_DATE_EPOCH is ++# defined to make reproducible builds possible. ++ifdef SOURCE_DATE_EPOCH ++EFI_LDFLAGS += --no-insert-timestamp ++endif + + # Check if the compiler supports the MS ABI. + export XEN_BUILD_EFI := $(shell $(CC) $(XEN_CFLAGS) -c efi/check.c -o efi/check.o 2>/dev/null && echo y) diff --git a/patches/0039-docs-use-predictable-ordering-in-generated-documenta.patch b/patches/0039-docs-use-predictable-ordering-in-generated-documenta.patch new file mode 100644 index 0000000000..4318f7721e --- /dev/null +++ b/patches/0039-docs-use-predictable-ordering-in-generated-documenta.patch @@ -0,0 +1,27 @@ +From: Maximilian Engelhardt +Date: Fri, 18 Dec 2020 21:42:34 +0100 +Subject: docs: use predictable ordering in generated documentation + +When the seq number is equal, sort by the title to get predictable +output ordering. This is useful for reproducible builds. + +Signed-off-by: Maximilian Engelhardt +Acked-by: Andrew Cooper +(cherry picked from commit e18dadc5b709290b8038a1cacb52bc3b3b69cf21) +--- + docs/xen-headers | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/docs/xen-headers b/docs/xen-headers +index 5415563..8c434d7 100755 +--- a/docs/xen-headers ++++ b/docs/xen-headers +@@ -331,7 +331,7 @@ sub output_index () { +

Starting points

+
    + END +- foreach my $ic (sort { $a->{Seq} <=> $b->{Seq} } @incontents) { ++ foreach my $ic (sort { $a->{Seq} <=> $b->{Seq} or $a->{Title} cmp $b->{Title} } @incontents) { + $o .= "
  • {Href}\">$ic->{Title}
  • \n"; + } + $o .= "
\n"; diff --git a/patches/0040-docs-set-date-to-SOURCE_DATE_EPOCH-if-available.patch b/patches/0040-docs-set-date-to-SOURCE_DATE_EPOCH-if-available.patch new file mode 100644 index 0000000000..cd1eb48a5e --- /dev/null +++ b/patches/0040-docs-set-date-to-SOURCE_DATE_EPOCH-if-available.patch @@ -0,0 +1,39 @@ +From: Maximilian Engelhardt +Date: Fri, 18 Dec 2020 21:42:35 +0100 +Subject: docs: set date to SOURCE_DATE_EPOCH if available + +Use the solution described in [1] to replace the call to the 'date' +command with a version that uses SOURCE_DATE_EPOCH if available. This +is needed for reproducible builds. + +[1] https://reproducible-builds.org/docs/source-date-epoch/ + +Signed-off-by: Maximilian Engelhardt + +[Hans van Kranenburg] +Note: this patch is submitted upstream but not committed yet. We +expect that it gets in. Otherwise, we don't wait and already have it +here because I want to have the reproducible build work completed. +--- + docs/Makefile | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/docs/Makefile b/docs/Makefile +index 8de1efb..ac6792f 100644 +--- a/docs/Makefile ++++ b/docs/Makefile +@@ -3,7 +3,13 @@ include $(XEN_ROOT)/Config.mk + -include $(XEN_ROOT)/config/Docs.mk + + VERSION := $(shell $(MAKE) -C $(XEN_ROOT)/xen --no-print-directory xenversion) +-DATE := $(shell date +%Y-%m-%d) ++ ++DATE_FMT := +%Y-%m-%d ++ifdef SOURCE_DATE_EPOCH ++DATE := $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "$(DATE_FMT)" 2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "$(DATE_FMT)" 2>/dev/null || date -u "$(DATE_FMT)") ++else ++DATE := $(shell date "$(DATE_FMT)") ++endif + + DOC_ARCHES := arm x86_32 x86_64 + MAN_SECTIONS := 1 5 7 8 diff --git a/patches/0041-x86-ACPI-fix-mapping-of-FACS.patch b/patches/0041-x86-ACPI-fix-mapping-of-FACS.patch new file mode 100644 index 0000000000..020ee325e0 --- /dev/null +++ b/patches/0041-x86-ACPI-fix-mapping-of-FACS.patch @@ -0,0 +1,52 @@ +From: Jan Beulich +Date: Tue, 24 Nov 2020 11:26:02 +0100 +Subject: x86/ACPI: fix mapping of FACS +MIME-Version: 1.0 +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit + +acpi_fadt_parse_sleep_info() runs when the system is already in +SYS_STATE_boot. Hence its direct call to __acpi_map_table() won't work +anymore. This call should probably have been replaced long ago already, +as the layering violation hasn't been necessary for quite some time. + +Fixes: 1c4aa69ca1e1 ("xen/acpi: Rework acpi_os_map_memory() and acpi_os_unmap_memory()") +Signed-off-by: Jan Beulich +Acked-by: Roger Pau Monné +(cherry picked from commit 8b6d55c1261820bb9db8d867ce9ee77397d05203) +--- + xen/arch/x86/acpi/boot.c | 10 +++++++--- + 1 file changed, 7 insertions(+), 3 deletions(-) + +diff --git a/xen/arch/x86/acpi/boot.c b/xen/arch/x86/acpi/boot.c +index 38c2b76..3ad4105 100644 +--- a/xen/arch/x86/acpi/boot.c ++++ b/xen/arch/x86/acpi/boot.c +@@ -422,8 +422,7 @@ acpi_fadt_parse_sleep_info(const struct acpi_table_fadt *fadt) + if (!facs_pa) + goto bad; + +- facs = (struct acpi_table_facs *) +- __acpi_map_table(facs_pa, sizeof(struct acpi_table_facs)); ++ facs = acpi_os_map_memory(facs_pa, sizeof(*facs)); + if (!facs) + goto bad; + +@@ -448,11 +447,16 @@ acpi_fadt_parse_sleep_info(const struct acpi_table_fadt *fadt) + offsetof(struct acpi_table_facs, firmware_waking_vector); + acpi_sinfo.vector_width = 32; + ++ acpi_os_unmap_memory(facs, sizeof(*facs)); ++ + printk(KERN_INFO PREFIX + " wakeup_vec[%"PRIx64"], vec_size[%x]\n", + acpi_sinfo.wakeup_vector, acpi_sinfo.vector_width); + return; +-bad: ++ ++ bad: ++ if (facs) ++ acpi_os_unmap_memory(facs, sizeof(*facs)); + memset(&acpi_sinfo, 0, + offsetof(struct acpi_sleep_info, sleep_control)); + memset(&acpi_sinfo.sleep_status + 1, 0, diff --git a/patches/0042-x86-DMI-fix-table-mapping-when-one-lives-above-1Mb.patch b/patches/0042-x86-DMI-fix-table-mapping-when-one-lives-above-1Mb.patch new file mode 100644 index 0000000000..e7a20f6e2f --- /dev/null +++ b/patches/0042-x86-DMI-fix-table-mapping-when-one-lives-above-1Mb.patch @@ -0,0 +1,149 @@ +From: Jan Beulich +Date: Tue, 24 Nov 2020 11:26:34 +0100 +Subject: x86/DMI: fix table mapping when one lives above 1Mb +MIME-Version: 1.0 +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit + +Use of __acpi_map_table() is kind of an abuse here, and doesn't work +anymore for the majority of cases if any of the tables lives outside the +low first Mb. Keep this (ab)use only prior to reaching SYS_STATE_boot, +primarily to avoid needing to audit whether any of the calls here can +happen this early in the first place; quite likely this isn't necessary +at all - at least dmi_scan_machine() gets called late enough. + +For the "normal" case, call __vmap() directly, despite effectively +duplicating acpi_os_map_memory(). There's one difference though: We +shouldn't need to establish UC- mappings, WP or r/o WB mappings ought to +be fine, as the tables are going to live in either RAM or ROM. Short of +having PAGE_HYPERVISOR_WP and wanting to map the tables r/o anyway, use +the latter of the two options. The r/o mapping implies some +constification of code elsewhere in the file. For code touched anyway +also switch to void (where possible) or uint8_t. + +Fixes: 1c4aa69ca1e1 ("xen/acpi: Rework acpi_os_map_memory() and acpi_os_unmap_memory()") +Signed-off-by: Jan Beulich +Acked-by: Roger Pau Monné +(cherry picked from commit f390941a92f102ebbbbce1b54be206a602187fd7) +--- + xen/arch/x86/dmi_scan.c | 53 ++++++++++++++++++++++++++++++++++--------------- + 1 file changed, 37 insertions(+), 16 deletions(-) + +diff --git a/xen/arch/x86/dmi_scan.c b/xen/arch/x86/dmi_scan.c +index e5930d2..d27cd34 100644 +--- a/xen/arch/x86/dmi_scan.c ++++ b/xen/arch/x86/dmi_scan.c +@@ -12,8 +12,6 @@ + #include + #include + +-#define bt_ioremap(b,l) ((void *)__acpi_map_table(b,l)) +-#define bt_iounmap(b,l) ((void)0) + #define memcpy_fromio memcpy + #define alloc_bootmem(l) xmalloc_bytes(l) + +@@ -111,9 +109,32 @@ enum dmi_entry_type { + #define dmi_printk(x) + #endif + +-static char * __init dmi_string(struct dmi_header *dm, u8 s) ++static const void *__init bt_ioremap(paddr_t addr, unsigned int len) + { +- char *bp=(char *)dm; ++ mfn_t mfn = _mfn(PFN_DOWN(addr)); ++ unsigned int offs = PAGE_OFFSET(addr); ++ ++ if ( addr + len <= MB(1) ) ++ return __va(addr); ++ ++ if ( system_state < SYS_STATE_boot ) ++ return __acpi_map_table(addr, len); ++ ++ return __vmap(&mfn, PFN_UP(offs + len), 1, 1, PAGE_HYPERVISOR_RO, ++ VMAP_DEFAULT) + offs; ++} ++ ++static void __init bt_iounmap(const void *ptr, unsigned int len) ++{ ++ if ( (unsigned long)ptr < DIRECTMAP_VIRT_START && ++ system_state >= SYS_STATE_boot ) ++ vunmap(ptr); ++} ++ ++static const char *__init dmi_string(const struct dmi_header *dm, uint8_t s) ++{ ++ const char *bp = (const void *)dm; ++ + bp+=dm->length; + if(!s) + return ""; +@@ -133,11 +154,10 @@ static char * __init dmi_string(struct dmi_header *dm, u8 s) + */ + + static int __init dmi_table(paddr_t base, u32 len, int num, +- void (*decode)(struct dmi_header *)) ++ void (*decode)(const struct dmi_header *)) + { +- u8 *buf; +- struct dmi_header *dm; +- u8 *data; ++ const uint8_t *buf, *data; ++ const struct dmi_header *dm; + int i=0; + + buf = bt_ioremap(base, len); +@@ -301,7 +321,7 @@ typedef union { + + static int __init _dmi_iterate(const struct dmi_eps *dmi, + const smbios_eps_u smbios, +- void (*decode)(struct dmi_header *)) ++ void (*decode)(const struct dmi_header *)) + { + int num; + u32 len; +@@ -335,7 +355,7 @@ static int __init _dmi_iterate(const struct dmi_eps *dmi, + return dmi_table(base, len, num, decode); + } + +-static int __init dmi_iterate(void (*decode)(struct dmi_header *)) ++static int __init dmi_iterate(void (*decode)(const struct dmi_header *)) + { + struct dmi_eps dmi; + struct smbios3_eps smbios3; +@@ -370,7 +390,7 @@ static int __init dmi_iterate(void (*decode)(struct dmi_header *)) + return -1; + } + +-static int __init dmi_efi_iterate(void (*decode)(struct dmi_header *)) ++static int __init dmi_efi_iterate(void (*decode)(const struct dmi_header *)) + { + int ret = -1; + +@@ -433,10 +453,11 @@ static char *__initdata dmi_ident[DMI_STRING_MAX]; + * Save a DMI string + */ + +-static void __init dmi_save_ident(struct dmi_header *dm, int slot, int string) ++static void __init dmi_save_ident(const struct dmi_header *dm, int slot, int string) + { +- char *d = (char*)dm; +- char *p = dmi_string(dm, d[string]); ++ const char *d = (const void *)dm; ++ const char *p = dmi_string(dm, d[string]); ++ + if(p==NULL || *p == 0) + return; + if (dmi_ident[slot]) +@@ -629,10 +650,10 @@ static const struct dmi_blacklist __initconstrel dmi_blacklist[] = { + * out of here. + */ + +-static void __init dmi_decode(struct dmi_header *dm) ++static void __init dmi_decode(const struct dmi_header *dm) + { + #ifdef DMI_DEBUG +- u8 *data = (u8 *)dm; ++ const uint8_t *data = (const void *)dm; + #endif + + switch(dm->type) diff --git a/patches/0043-x86-ACPI-fix-S3-wakeup-vector-mapping.patch b/patches/0043-x86-ACPI-fix-S3-wakeup-vector-mapping.patch new file mode 100644 index 0000000000..3bd6ab85bb --- /dev/null +++ b/patches/0043-x86-ACPI-fix-S3-wakeup-vector-mapping.patch @@ -0,0 +1,83 @@ +From: Jan Beulich +Date: Tue, 5 Jan 2021 13:09:55 +0100 +Subject: x86/ACPI: fix S3 wakeup vector mapping +MIME-Version: 1.0 +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit + +Use of __acpi_map_table() here was at least close to an abuse already +before, but it will now consistently return NULL here. Drop the layering +violation and use set_fixmap() directly. Re-use of the ACPI fixmap area +is hopefully going to remain "fine" for the time being. + +Add checks to acpi_enter_sleep(): The vector now needs to be contained +within a single page, but the ACPI spec requires 64-byte alignment of +FACS anyway. Also bail if no wakeup vector was determined in the first +place, in part as preparation for a subsequent relaxation change. + +Fixes: 1c4aa69ca1e1 ("xen/acpi: Rework acpi_os_map_memory() and acpi_os_unmap_memory()") +Signed-off-by: Jan Beulich +Acked-by: Roger Pau Monné +(cherry picked from commit 0f089bbf43ecce6f27576cb548ba4341d0ec46a8) +--- + xen/arch/x86/acpi/boot.c | 5 +++++ + xen/arch/x86/acpi/power.c | 15 ++++++++++++--- + 2 files changed, 17 insertions(+), 3 deletions(-) + +diff --git a/xen/arch/x86/acpi/boot.c b/xen/arch/x86/acpi/boot.c +index 3ad4105..7994228 100644 +--- a/xen/arch/x86/acpi/boot.c ++++ b/xen/arch/x86/acpi/boot.c +@@ -443,6 +443,11 @@ acpi_fadt_parse_sleep_info(const struct acpi_table_fadt *fadt) + "FACS is shorter than ACPI spec allow: %#x", + facs->length); + ++ if (facs_pa % 64) ++ printk(KERN_WARNING PREFIX ++ "FACS is not 64-byte aligned: %#lx", ++ facs_pa); ++ + acpi_sinfo.wakeup_vector = facs_pa + + offsetof(struct acpi_table_facs, firmware_waking_vector); + acpi_sinfo.vector_width = 32; +diff --git a/xen/arch/x86/acpi/power.c b/xen/arch/x86/acpi/power.c +index 774e0fc..dfd8611 100644 +--- a/xen/arch/x86/acpi/power.c ++++ b/xen/arch/x86/acpi/power.c +@@ -174,17 +174,20 @@ static void acpi_sleep_prepare(u32 state) + if ( state != ACPI_STATE_S3 ) + return; + +- wakeup_vector_va = __acpi_map_table( +- acpi_sinfo.wakeup_vector, sizeof(uint64_t)); +- + /* TBoot will set resume vector itself (when it is safe to do so). */ + if ( tboot_in_measured_env() ) + return; + ++ set_fixmap(FIX_ACPI_END, acpi_sinfo.wakeup_vector); ++ wakeup_vector_va = fix_to_virt(FIX_ACPI_END) + ++ PAGE_OFFSET(acpi_sinfo.wakeup_vector); ++ + if ( acpi_sinfo.vector_width == 32 ) + *(uint32_t *)wakeup_vector_va = bootsym_phys(wakeup_start); + else + *(uint64_t *)wakeup_vector_va = bootsym_phys(wakeup_start); ++ ++ clear_fixmap(FIX_ACPI_END); + } + + static void acpi_sleep_post(u32 state) {} +@@ -336,6 +339,12 @@ static long enter_state_helper(void *data) + */ + int acpi_enter_sleep(struct xenpf_enter_acpi_sleep *sleep) + { ++ if ( sleep->sleep_state == ACPI_STATE_S3 && ++ (!acpi_sinfo.wakeup_vector || !acpi_sinfo.vector_width || ++ (PAGE_OFFSET(acpi_sinfo.wakeup_vector) > ++ PAGE_SIZE - acpi_sinfo.vector_width / 8)) ) ++ return -EOPNOTSUPP; ++ + if ( sleep->flags & XENPF_ACPI_SLEEP_EXTENDED ) + { + if ( !acpi_sinfo.sleep_control.address || diff --git a/patches/0044-x86-ACPI-don-t-invalidate-S5-data-when-S3-wakeup-vec.patch b/patches/0044-x86-ACPI-don-t-invalidate-S5-data-when-S3-wakeup-vec.patch new file mode 100644 index 0000000000..899002c38f --- /dev/null +++ b/patches/0044-x86-ACPI-don-t-invalidate-S5-data-when-S3-wakeup-vec.patch @@ -0,0 +1,58 @@ +From: Jan Beulich +Date: Tue, 5 Jan 2021 13:11:04 +0100 +Subject: x86/ACPI: don't invalidate S5 data when S3 wakeup vector cannot be + determined +MIME-Version: 1.0 +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit + +We can be more tolerant as long as the data collected from FACS is only +needed to enter S3. A prior change already added suitable checking to +acpi_enter_sleep(). + +Signed-off-by: Jan Beulich +Acked-by: Roger Pau Monné +(cherry picked from commit 16ca5b3f873f17f4fbdaecf46c133e1aa3d623b2) +--- + xen/arch/x86/acpi/boot.c | 9 +++++---- + 1 file changed, 5 insertions(+), 4 deletions(-) + +diff --git a/xen/arch/x86/acpi/boot.c b/xen/arch/x86/acpi/boot.c +index 7994228..9e857c3 100644 +--- a/xen/arch/x86/acpi/boot.c ++++ b/xen/arch/x86/acpi/boot.c +@@ -420,22 +420,22 @@ acpi_fadt_parse_sleep_info(const struct acpi_table_fadt *fadt) + facs_pa = (uint64_t)fadt->facs; + } + if (!facs_pa) +- goto bad; ++ return; + + facs = acpi_os_map_memory(facs_pa, sizeof(*facs)); + if (!facs) +- goto bad; ++ return; + + if (strncmp(facs->signature, "FACS", 4)) { + printk(KERN_ERR PREFIX "Invalid FACS signature %.4s\n", + facs->signature); +- goto bad; ++ goto done; + } + + if (facs->length < 24) { + printk(KERN_ERR PREFIX "Invalid FACS table length: %#x", + facs->length); +- goto bad; ++ goto done; + } + + if (facs->length < 64) +@@ -452,6 +452,7 @@ acpi_fadt_parse_sleep_info(const struct acpi_table_fadt *fadt) + offsetof(struct acpi_table_facs, firmware_waking_vector); + acpi_sinfo.vector_width = 32; + ++ done: + acpi_os_unmap_memory(facs, sizeof(*facs)); + + printk(KERN_INFO PREFIX diff --git a/patches/misc/tools-pygrub-remove-static-solaris-support b/patches/misc/tools-pygrub-remove-static-solaris-support new file mode 100644 index 0000000000..b30aa81500 --- /dev/null +++ b/patches/misc/tools-pygrub-remove-static-solaris-support @@ -0,0 +1,85 @@ +From: Bastian Blank +Date: Sat, 5 Jul 2014 11:47:29 +0200 +Subject: Remove static solaris support from pygrub + +Patch-Name: tools-pygrub-remove-static-solaris-support +--- + tools/pygrub/src/pygrub | 51 +------------------------------------------------ + 1 file changed, 1 insertion(+), 50 deletions(-) + +diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub +index ce7ab0e..8d48cf4 100755 +--- a/tools/pygrub/src/pygrub ++++ b/tools/pygrub/src/pygrub +@@ -18,7 +18,6 @@ import os, sys, string, struct, tempfile, re, traceback, stat, errno + import copy + import logging + import platform +-import xen.lowlevel.xc + + import curses, _curses, curses.textpad, curses.ascii + import getopt +@@ -668,51 +667,6 @@ def run_grub(file, entry, fs, cfg_args): + + return grubcfg + +-def supports64bitPVguest(): +- xc = xen.lowlevel.xc.xc() +- caps = xc.xeninfo()['xen_caps'].split(" ") +- for cap in caps: +- if cap == "xen-3.0-x86_64": +- return True +- return False +- +-# If nothing has been specified, look for a Solaris domU. If found, perform the +-# necessary tweaks. +-def sniff_solaris(fs, cfg): +- if not fs.file_exists("/platform/i86xpv/kernel/unix") and \ +- not fs.file_exists("/platform/i86xpv/kernel/amd64/unix"): +- return cfg +- +- if not cfg["kernel"]: +- if supports64bitPVguest() and \ +- fs.file_exists("/platform/i86xpv/kernel/amd64/unix"): +- cfg["kernel"] = "/platform/i86xpv/kernel/amd64/unix" +- cfg["ramdisk"] = "/platform/i86pc/amd64/boot_archive" +- elif fs.file_exists("/platform/i86xpv/kernel/unix"): +- cfg["kernel"] = "/platform/i86xpv/kernel/unix" +- cfg["ramdisk"] = "/platform/i86pc/boot_archive" +- else: +- return cfg +- +- # Unpleasant. Typically we'll have 'root=foo -k' or 'root=foo /kernel -k', +- # and we need to maintain Xen properties (root= and ip=) and the kernel +- # before any user args. +- +- xenargs = "" +- userargs = "" +- +- if not cfg["args"]: +- cfg["args"] = cfg["kernel"] +- else: +- for arg in cfg["args"].split(): +- if re.match("^root=", arg) or re.match("^ip=", arg): +- xenargs += arg + " " +- elif arg != cfg["kernel"]: +- userargs += arg + " " +- cfg["args"] = xenargs + " " + cfg["kernel"] + " " + userargs +- +- return cfg +- + def sniff_netware(fs, cfg): + if not fs.file_exists("/nwserver/xnloader.sys"): + return cfg +@@ -901,10 +855,7 @@ if __name__ == "__main__": + try: + fs = xenfsimage.open(file, offset, bootfsoptions) + +- chosencfg = sniff_solaris(fs, incfg) +- +- if not chosencfg["kernel"]: +- chosencfg = sniff_netware(fs, incfg) ++ chosencfg = sniff_netware(fs, incfg) + + if not chosencfg["kernel"]: + chosencfg = run_grub(file, entry, fs, incfg["args"]) diff --git a/patches/misc/toolstestsx86_emulator-pass--no-pie--fno.patch b/patches/misc/toolstestsx86_emulator-pass--no-pie--fno.patch new file mode 100644 index 0000000000..a8d5b64d9c --- /dev/null +++ b/patches/misc/toolstestsx86_emulator-pass--no-pie--fno.patch @@ -0,0 +1,46 @@ +From: Ian Jackson +Date: Tue, 1 Nov 2016 16:20:27 +0000 +Subject: tools/tests/x86_emulator: Pass -no-pie -fno-pic to gcc on x86_32 + +The current build fails with GCC6 on Debian sid i386 (unstable): + + /tmp/ccqjaueF.s: Assembler messages: + /tmp/ccqjaueF.s:3713: Error: missing or invalid displacement expression `vmovd_to_reg_len@GOT' + +This is due to the combination of GCC6, and Debian's decision to +enable some hardening flags by default (to try to make runtime +addresses less predictable): + https://wiki.debian.org/Hardening/PIEByDefaultTransition + +This is of no benefit for the x86 instruction emulator test, which is +a rebuild of the emulator code for testing purposes only. So pass +options to disable this. + +These options will be no-ops if they are the same as the compiler +default. + +On amd64, the -fno-pic breaks the build in a different way. So do +this only on i386. + +Signed-off-by: Ian Jackson +CC: Jan Beulich +CC: Andrew Cooper +--- + tools/tests/x86_emulator/Makefile | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/tools/tests/x86_emulator/Makefile b/tools/tests/x86_emulator/Makefile +index 48b3e6d..83bc757 100644 +--- a/tools/tests/x86_emulator/Makefile ++++ b/tools/tests/x86_emulator/Makefile +@@ -283,6 +283,10 @@ HOSTCFLAGS-x86_64 := -fno-PIE + $(call cc-option-add,HOSTCFLAGS-x86_64,HOSTCC,-no-pie) + HOSTCFLAGS += $(CFLAGS_xeninclude) -I. $(HOSTCFLAGS-$(XEN_COMPILE_ARCH)) + ++ifeq ($(XEN_TARGET_ARCH),x86_32) ++HOSTCFLAGS += -no-pie -fno-pic ++endif ++ + x86.h := $(addprefix $(XEN_ROOT)/tools/include/xen/asm/,\ + x86-vendors.h x86-defns.h msr-index.h) \ + $(addprefix $(XEN_ROOT)/tools/include/xen/lib/x86/, \ diff --git a/patches/prefix-abiname/config-prefix.diff b/patches/prefix-abiname/config-prefix.diff new file mode 100644 index 0000000000..27c5ed2436 --- /dev/null +++ b/patches/prefix-abiname/config-prefix.diff @@ -0,0 +1,35 @@ +From: Bastian Blank +Date: Sat, 5 Jul 2014 11:46:45 +0200 +Subject: config-prefix.diff + +Patch-Name: config-prefix.diff +--- + Config.mk | 2 +- + config/Paths.mk.in | 1 + + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Config.mk b/Config.mk +index 51910c5..8655152 100644 +--- a/Config.mk ++++ b/Config.mk +@@ -74,7 +74,7 @@ EXTRA_LIB += $(EXTRA_PREFIX)/lib + endif + + PYTHON ?= python +-PYTHON_PREFIX_ARG ?= --prefix="$(prefix)" ++PYTHON_PREFIX_ARG ?= --home="$(LIBEXEC)" + # The above requires that prefix contains *no spaces*. This variable is here + # to permit the user to set PYTHON_PREFIX_ARG to '' to workaround this bug: + # https://bugs.launchpad.net/ubuntu/+bug/362570 +diff --git a/config/Paths.mk.in b/config/Paths.mk.in +index 416fc7a..a38db67 100644 +--- a/config/Paths.mk.in ++++ b/config/Paths.mk.in +@@ -13,6 +13,7 @@ + # https://wiki.xen.org/wiki/Category:Host_Configuration#System_wide_xen_configuration + + PACKAGE_TARNAME := @PACKAGE_TARNAME@ ++PACKAGE_VERSION := @PACKAGE_VERSION@ + prefix := @prefix@ + bindir := @bindir@ + sbindir := @sbindir@ diff --git a/patches/series b/patches/series new file mode 100644 index 0000000000..87a7cd0ec5 --- /dev/null +++ b/patches/series @@ -0,0 +1,44 @@ +0001-Delete-config.sub-and-config.guess.patch +0002-Delete-configure-output.patch +0003-version.patch +prefix-abiname/config-prefix.diff +0005-Do-not-ship-COPYING-into-usr-include.patch +misc/tools-pygrub-remove-static-solaris-support +misc/toolstestsx86_emulator-pass--no-pie--fno.patch +0008-Do-not-build-the-instruction-emulator.patch +0009-tools-libfsimage-prefix.diff.patch +0010-autoconf-Provide-libexec_libdir_suffix.patch +0011-.gitignore-Add-configure-output-which-we-always-dele.patch +0012-Revert-pvshim-make-PV-shim-build-selectable-from-con.patch +0013-tools-firmware-Makfile-Respect-caller-s-CONFIG_PV_SH.patch +0014-tools-firmware-Makefile-CONFIG_PV_SHIM-enable-only-o.patch +0015-shim-Provide-separate-install-shim-target.patch +0016-docs-man-xen-vbd-interface.7-Provide-properly-format.patch +0017-Fix-empty-fields-in-first-hypervisor-log-line.patch +0018-vif-common-disable-handle_iptable.patch +0019-sysconfig.xencommons.in-Strip-and-debianize.patch +0020-hotplug-common-Do-not-adjust-LD_LIBRARY_PATH.patch +0021-pygrub-Set-sys.path.patch +0022-pygrub-Specify-rpath-LIBEXEC_LIB-when-building-fsima.patch +0023-tools-xl-bash-completion-also-complete-xen.patch +0024-tools-don-t-build-ship-xenmon.patch +0025-tools-Partially-revert-Cross-compilation-fixes.patch +0026-t-h-L-vif-common.sh-fix-handle_iptable-return-value.patch +0027-xen-rpi4-implement-watchdog-based-reset.patch +0028-tools-python-Pass-linker-to-Python-build-process.patch +0029-xen-arm-acpi-Don-t-fail-if-SPCR-table-is-absent.patch +0030-xen-acpi-Rework-acpi_os_map_memory-and-acpi_os_unmap.patch +0031-xen-arm-acpi-The-fixmap-area-should-always-be-cleare.patch +0032-xen-arm-Check-if-the-platform-is-not-using-ACPI-befo.patch +0033-xen-arm-Introduce-fw_unreserved_regions-and-use-it.patch +0034-xen-arm-acpi-add-BAD_MADT_GICC_ENTRY-macro.patch +0035-xen-arm-traps-Don-t-panic-when-receiving-an-unknown-.patch +0036-fix-spelling-errors.patch +0037-xen-don-t-have-timestamp-inserted-in-config.gz.patch +0038-x86-EFI-don-t-insert-timestamp-when-SOURCE_DATE_EPOC.patch +0039-docs-use-predictable-ordering-in-generated-documenta.patch +0040-docs-set-date-to-SOURCE_DATE_EPOCH-if-available.patch +0041-x86-ACPI-fix-mapping-of-FACS.patch +0042-x86-DMI-fix-table-mapping-when-one-lives-above-1Mb.patch +0043-x86-ACPI-fix-S3-wakeup-vector-mapping.patch +0044-x86-ACPI-don-t-invalidate-S5-data-when-S3-wakeup-vec.patch diff --git a/rules b/rules new file mode 100755 index 0000000000..222e012cf8 --- /dev/null +++ b/rules @@ -0,0 +1,341 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +SHELL := bash -e + +# This influences dpkg-buildflags to specify better linker +# options. See https://wiki.debian.org/Hardening +# Apparently some of these might incur silent breakage +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939560#5 +# but we don't think this is relevant to us. +# +# Note that we don't use the dpkg-buildflags output for the +# hypervisor build. This because I haven't investigated which +# of them are sane to use in the hypervisor context, rather than +# simply in userland binaries. +# +# Inexplicably, if you tell make `export V=value' and `$(shell ...)' +# it does not pass V to the shell. WTF. So we set a variable +# dbmo which we include in the relevant $(shell ...) invocations. +dbmo= DEB_BUILD_MAINT_OPTIONS="hardening=+all reproducible=+fixfilepath" + +# Architecture handling. +# +# We need to explicitly specify the architecture because the Xen +# upstream build system likes to use `uname' which can produce wrong +# answers it other-bitness chroots, and because we need to build a +# 64-bit hypervisor even on i386 (since there is no 32-bit hypervisor +# anymore). + +# Also there is terminological confusion. The DEB_* variables follow +# GNU GCC terminology: +# +# dpkg / GNU Xen Meaning +# BUILD COMPILE Host: where this build is running +# HOST TARGET Target: where the binaries we build now will run + +include /usr/share/dpkg/architecture.mk + +# Xen has its own different architecture names, which are nither +# Debian nor GNU names. + +flavour_amd64 = amd64 +flavour_i386 = amd64 +flavour_armhf = armhf +flavour_arm64 = arm64 + +xen_arch_amd64 = x86_64 +xen_arch_i386 = x86_32 +xen_arch_armhf = arm32 +xen_arch_arm64 = arm64 + +flavour=$(flavour_$(DEB_HOST_ARCH)) + +# Much of the work here is to make different upstream versions of Xen +# coinstallable, and arrange to run which ever version of the tools +# corresponds to the running hypervisor. +# +# This packaging produces one version. The nominal upstream version +# represents the control ABI used by hypervisor management utilities. +# +# In this package that version number appears in (i) debian/control +# and (ii) the first two numbers in the package version in +# debian/changelog. These must both be updated when a new major +# upstream version is packaged (eg 4.10 -> 4.11). +# (Everywhere else, it is handled dynamically.) +# +upstream_version := \ + $(shell dpkg-parsechangelog -SVersion | sed 's/\(\.[0-9]*\)\..*/\1/' ) + +# Many of the debhelper files are most conveniently provided as +# templates which depend on the flavour and the upstream version. +# Since even some package names depend on the version, so do some +# dh input filenames. We support this as follows: +# +# These runes take all files named debian/*.vsn-in +# and do these three things: +# 1. in the file contents +# (a) substitute @version@ @flavour@ +# (b) interpret lines like +# ? flavour = [ | ...] +# ? flavour != [ | ...] +# as conditional output lasting until the next ? on is own. +# 2. replace any V in the file *name* with that same version +# and any F with the flavour +# 3. strip .vsn-in from the end +# The resulting files are then consumed by dh. +# +# (debhelper has a shell script control file facility, but that cannot +# handle the need to vary the actual filename seen by debhelper.) + +TEMPLATE_FILES := $(wildcard debian/*.vsn-in) + +define template_rule_template = + TEMPLATED_FILES += $(2) + $(2): $(1) debian/rules debian/changelog debian/template-subst + debian/template-subst $(upstream_version) $(flavour) <$$< >$$@.tmp \ + && mv -f $$@{.tmp,} +endef + +$(foreach t,$(TEMPLATE_FILES), $(eval \ + $(call \ + template_rule_template, $t, \ + $(subst F,$(flavour), \ + $(subst V,$(upstream_version), \ + $(basename $t) \ + )) \ + ))) + +templated-files: $(TEMPLATED_FILES) + : + +# Work around bug in dpkg-buildpackage: between dpkg 1.14.17 and 1.16.1 +# it exports these. This is a problem because we need to pass different +# options to the hypervisor build - the default options from dpkg +# et al are suitable for dom0 binaries but not for the hypervisor. +undefine CFLAGS +undefine CXXFLAGS +undefine FFLAGS +undefine CPPFLAGS +undefine LDFLAGS + +# The Xen build system likes to download things at build-time. We +# think we have disabled all of that with appropriate configure +# options. But, set these too, so we spot if we miss any. +export WGET=/bin/false GIT=/bin/false + +# Other build flags etc. + +t=$(CURDIR)/debian/tmp + +dpkg_CFLAGS := $(shell $(dbmo) dpkg-buildflags --get CFLAGS) +dpkg_CPPFLAGS := $(shell $(dbmo) dpkg-buildflags --get CPPFLAGS) +dpkg_LDFLAGS := $(shell $(dbmo) dpkg-buildflags --get LDFLAGS) + +make_args_common := \ + CC=$(DEB_HOST_GNU_TYPE)-gcc \ + LD=$(DEB_HOST_GNU_TYPE)-ld \ + XEN_COMPILE_ARCH=$(xen_arch_$(DEB_BUILD_ARCH)) \ + V=1 + +# Passing -ffile-prefix-map is needed for reproducible builds. +# Additionally passing -fdebug-prefix-map in necessary to work around a gcc bug +# where -ffile-prefix-map is ignored with assembly files. See +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93371 +make_args_xen := $(make_args_common) \ + XEN_TARGET_ARCH=$(xen_arch_$(flavour)) \ + EXTRA_CFLAGS_XEN_CORE='-ffile-prefix-map=$(shell pwd)=. -fdebug-prefix-map=$(shell pwd)=.' + +# (Xen upstream does not offer a separate CPPFLAGS, +# so we pass those in CFLAGS.) +# The BUILD_PATH_PREFIX_MAP is needed for ocaml to reproducibly build +# oxenstored +make_args_tools := $(make_args_common) \ + XEN_TARGET_ARCH=$(xen_arch_$(DEB_HOST_ARCH)) \ + EXTRA_CFLAGS_XEN_TOOLS='$(dpkg_CFLAGS) $(dpkg_CPPFLAGS)' \ + PREPEND_LDFLAGS_XEN_TOOLS='$(dpkg_LDFLAGS)' \ + BUILD_PATH_PREFIX_MAP='.=$(shell pwd)' + +# use the date from SOURCE_DATE_EPOCH for reproducible builds +export XEN_BUILD_DATE=$(shell LC_ALL=C date -u -d "@$(SOURCE_DATE_EPOCH)") +export XEN_BUILD_TIME=$(shell LC_ALL=C date -u -d "@$(SOURCE_DATE_EPOCH)" "+%T") +export SMBIOS_REL_DATE=$(shell LC_ALL=C date -u -d "@$(SOURCE_DATE_EPOCH)" "+%m/%d/%Y") +export VGABIOS_REL_DATE=$(shell LC_ALL=C date -u -d "@$(SOURCE_DATE_EPOCH)" "+%d %b %Y") + +export PYBUILD_NAME=xen +export PYBUILD_DISABLE=test +export PYBUILD_SYSTEM=distutils + +%: + dh $@ --with=python3 --buildsystem=pybuild + +# Without this, something on stretch passes CFLAGS in the environment +# to the Xen build system, which then (with 4.11) chokes printing +# /bin/sh: 1: Syntax error: Unterminated quoted string +# probably because the CFLAGS value contains multiple options and +# therefore spaces. See also the note by `undefine CFLAGS', above. +override_dh_auto_clean: + rm -f debian/xen-tools-built.stamp + $(MAKE) -j1 distclean + +# To avoid that the build dirties the tree, our delta queue deletes +# config.sub and config.guess. dh_update_autotools_config can get +# us fresh ones for each build, but it expects to find some there +# already with some weird properties. Instead, just copy them +# from /usr/share/misc (which is where it gets them anyway) +override_dh_update_autotools_config: + cp /usr/share/misc/{config.sub,config.guess} . + +# Upstream has both a kconfig style configure for the hypervisor +# and autoconfery for the tools (what we call the `utils'). +override_dh_auto_configure: + cp debian/xen-kconfig xen/.config + make -C xen olddefconfig $(make_args_xen) + : + $(make_args_tools) ./configure \ + --disable-stubdom \ + --prefix=/usr \ + --includedir=/usr/include \ + --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \ + --with-libexec-libdir-suffix=/$(DEB_HOST_MULTIARCH) \ + --host=$(DEB_HOST_MULTIARCH) \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-libexec-leaf-dir=xen-$(upstream_version) \ + --disable-blktap1 \ + --disable-blktap2 \ + --disable-qemu-traditional --disable-rombios \ + --with-system-qemu=/usr/bin/qemu-system-i386 \ + --enable-ovmf --with-system-ovmf=/usr/share/ovmf/OVMF.fd \ + --with-system-seabios=/usr/share/seabios/bios-256k.bin + +# tools/firmware/xen-dir is the `shim' used for booting PV guests +# in an HVM container, for security (particularly, for meltdown/spectre +# mitigation). It's actually a hypervisor. On i386 it is not built +# by `make tools' because run that with XEN_COMPILE_ARCH=x86_32 which +# is no longer a supported hypervisor architecture. And we want to +# build it with $(make_args_xen) not $(make_args_tools). So do it +# separately. +override_dh_auto_build: + $(MAKE) $(make_args_xen) xen + $(MAKE) $(make_args_tools) tools docs CONFIG_PV_SHIM=n + case $(flavour) in \ + amd64|i386) \ + $(MAKE) $(make_args_xen) -C tools/firmware/xen-dir ;; \ + esac + touch debian/xen-tools-built.stamp + +# We keep the amount of fixup and messing about with debian/tmp/ +# to a minimum, because when working it is easier to rerun the +# later parts of the build than the whole of the two upstream make installs. +# However, there are three sets of fixes we must make: +override_dh_auto_install: $(TEMPLATED_FILES) + $(MAKE) $(make_args_xen) DESTDIR=$t install-xen + $(MAKE) $(make_args_tools) DESTDIR=$t \ + install-{tools,docs} CONFIG_PV_SHIM=n + : + @# shim install target needs to be run separately because we + @# need to pass it the make_args_xen settings, in particular + @# on i386 bwe need to pass x86_64 here to actually build it. + @# Luckily this target, unlike the build, is a noop on + @# shimless arches, so it does not need to be conditional. + $(MAKE) $(make_args_xen) DESTDIR=$t $(make_args_xen) \ + -C tools/firmware install-shim + : + @# Inexplicably, upstream puts the efi binares in usr/lib64 + find "$t"/usr/lib*/efi -mindepth 1 -maxdepth 1 -print0 | xargs -r -0 mv -t "$t/boot" + : + @# This file contains an arch-specific path and we put it + @# in xen-utils-common, an arch-all package. But the + @# path is only used to put the libdir on LD_LIBRARY_PATH + @# in the hotplug scripts. We have a patch to drop that. + sed -i '/^libdir=/d' $t/etc/xen/scripts/hotplugpath.sh + +# libxenfsimage has an unstable ABI. Our makefile patch puts it in a +# different directory and fixes up the rpath; this rules code excludes the +# header files. +dh_install_excludes += -Xinclude/xenfsimage + +# The upstream build produces these. +dh_install_excludes += -X'*.pyc' + +# The upstream docs build erroneously ships .deps into the html output. +dh_install_excludes += -X/.deps + +# Upstream puts pygrub in its lib directory which is in our per-version +# package, and leaves a symlink in /usr/bin. Exclude the symlink. +# We don't want this in /usr/bin anyway. +dh_install_excludes += -Xusr/bin/pygrub + +# We want the xenstore utilities in their own package. The general +# install does everything from /usr/bin and /usr/share/man, so we +# need to exclude them. debhelpers's -X option is ... odd. Not +# suitable, anyway. So we rm them after running dh_install. +# The installation is done separately via xenstore-utils.install. +xenstore_rm = $(addprefix debian/xen-utils-common/, \ + $(foreach utility, xenstore xenstore-*, \ + usr/bin/$(utility) \ + usr/share/man/man1/$(utility).1 \ + )) + +override_dh_install: + debian/shuffle-binaries $(upstream_version) + : + debian/shuffle-boot-files $(upstream_version) $(flavour) + : + dh_install $(dh_install_excludes) + if test -d debian/xen-utils-common; then rm -v $(xenstore_rm); fi + : + debian/installsharedlibs + +# dh_python3 does not know to look in the funny directory where +# we put the versioned /usr/lib files including some python scripts. +override_dh_python3: + dh_python3 + dh_python3 -pxen-utils-$(upstream_version) \ + usr/lib/xen-$(upstream_version)/bin + +# We have two init scripts. (There used to be xend too.) +override_dh_installinit: + dh_installinit --name xen --no-start -- defaults + dh_installinit --name xendomains --no-start -- defaults + +# dh_strip in dh compat 10 and earlier (which we are at so this +# package builds on stretch) looks at filenames and modes to decide +# what to process. hvmloader doesn't match, so we must trick it. +# It is sufficient to make it executable. And we have to undo +# that again, then. This all happens after dh_install so we operate +# on the package-specific file. +override_dh_strip: + find debian/xen-utils-* -name hvmloader | xargs -r chmod -v +x + dh_strip + find debian/xen-utils-* -name hvmloader | xargs -r chmod -v -x + +# Hardlink the various xenstore-* programs together. This is an +# argv[0]-using binary of which we can have only one copy. We need to +# do this late, because dh_strip breaks hardlinks. +# +# The debug files are fairly large, fairly rarely used, +# and not compressed by the upstream build system. +override_dh_compress: + rdfind -makehardlinks true -makeresultsfile false \ + debian/xenstore-utils/usr/bin + : + dh_compress -Xusr/share/doc/xen/html + find debian/xen-hypervisor-*/usr/lib/debug -type f -print0 \ + | xargs -0r gzip -9vn + +# By default, files in debian/tmp which are not handled by anything +# in rules are ignored. This makes them into errors. +override_dh_missing: + dh_missing --fail-missing + + +# We are dropping the config file /etc/default/xen which appeared in +# earlier versions. See ./ucf-remove-fixup for more details. +override_dh_ucf: + dh_ucf diff --git a/salsa-ci.yml b/salsa-ci.yml new file mode 100644 index 0000000000..d87a0fe9fe --- /dev/null +++ b/salsa-ci.yml @@ -0,0 +1,30 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml + +extract-source: + before_script: + # convert into a gbp patches-unapplied branch using git-debrebase + - apt-get update + - apt-get --yes install git-debrebase + # git-debrebase needs git user setup + - git config user.email "salsa-ci@invalid.invalid" + - git config user.name "salsa-ci" + - git debrebase --force + - git debrebase convert-to-gbp + # work around gbp export-orig replacing variables in .gitarchive-info + - test -d .git/info || mkdir .git/info + - echo ".gitarchive-info -export-subst" >> .git/info/attributes + +variables: + # disable shallow cloning of git repository. This is needed for git-debrebase + GIT_DEPTH: 0 + + RELEASE: 'bullseye' + + # xen currently does not enable hardening when building the hypervisor so + # disable blhc. + SALSA_CI_DISABLE_BLHC: 1 + + SALSA_CI_REPROTEST_ENABLE_DIFFOSCOPE: 1 + diff --git a/scripts/Makefile b/scripts/Makefile new file mode 100644 index 0000000000..08513b90b0 --- /dev/null +++ b/scripts/Makefile @@ -0,0 +1,41 @@ +ETC_SCRIPTS = \ + qemu-ifup + +GLOBAL_SCRIPTS = \ + xen + +GLOBAL_TOOLSTACK_LINKS = \ + xl \ + xm + +GLOBAL_TOOLSTACK_WRAPPER = xen-toolstack-wrapper + +GLOBAL_UTILS_LINKS = \ + xenperf \ + xenpm \ + xentop \ + xentrace \ + xentrace_format \ + xentrace_setmask \ + xentrace_setsize + +GLOBAL_UTILS_WRAPPER = xen-utils-wrapper + +ETC_SCRIPTS_DIR = /etc/xen/scripts +GLOBAL_SCRIPTS_DIR = /usr/sbin +PRIVATE_SCRIPTS_DIR = /usr/lib/xen-common/bin + +install: + install -d $(DESTDIR)$(ETC_SCRIPTS_DIR) + install $(ETC_SCRIPTS) $(DESTDIR)$(ETC_SCRIPTS_DIR) + install -d $(DESTDIR)$(GLOBAL_SCRIPTS_DIR) + install $(GLOBAL_SCRIPTS) $(DESTDIR)$(GLOBAL_SCRIPTS_DIR) + @for i in $(GLOBAL_TOOLSTACK_LINKS); do \ + echo ln -s $(PRIVATE_SCRIPTS_DIR)/$(GLOBAL_TOOLSTACK_WRAPPER) $(DESTDIR)$(GLOBAL_SCRIPTS_DIR)/$$i; \ + ln -s $(PRIVATE_SCRIPTS_DIR)/$(GLOBAL_TOOLSTACK_WRAPPER) $(DESTDIR)$(GLOBAL_SCRIPTS_DIR)/$$i || exit 1; \ + done + @for i in $(GLOBAL_UTILS_LINKS); do \ + echo ln -s $(PRIVATE_SCRIPTS_DIR)/$(GLOBAL_UTILS_WRAPPER) $(DESTDIR)$(GLOBAL_SCRIPTS_DIR)/$$i; \ + ln -s $(PRIVATE_SCRIPTS_DIR)/$(GLOBAL_UTILS_WRAPPER) $(DESTDIR)$(GLOBAL_SCRIPTS_DIR)/$$i || exit 1; \ + done + install -d $(DESTDIR)$(PRIVATE_SCRIPTS_DIR) diff --git a/scripts/qemu-ifup b/scripts/qemu-ifup new file mode 100755 index 0000000000..eb1febe652 --- /dev/null +++ b/scripts/qemu-ifup @@ -0,0 +1,13 @@ +#!/bin/sh + +echo -c 'config qemu network with xen bridge for ' +echo $* + +# Initialise a dummy MAC address. We choose the numerically +# largest non-broadcast address to prevent the address getting +# stolen by an Ethernet bridge for STP purposes. +# (FE:FF:FF:FF:FF:FF) +ip link set $1 address fe:ff:ff:ff:ff:ff || true + +ip link set up dev $1 +brctl addif $2 $1 diff --git a/scripts/xen b/scripts/xen new file mode 100755 index 0000000000..cde4acd61b --- /dev/null +++ b/scripts/xen @@ -0,0 +1,2 @@ +#!/bin/sh +exec xl "$@" diff --git a/scripts/xen-dir b/scripts/xen-dir new file mode 100755 index 0000000000..48fe4043e1 --- /dev/null +++ b/scripts/xen-dir @@ -0,0 +1,10 @@ +#!/bin/sh -e + +VERSION=$(. /usr/lib/xen-common/bin/xen-version); RET=$?; [ $RET -eq 0 ] || exit $RET + +if [ -d "/usr/lib/xen-$VERSION" ]; then + echo "/usr/lib/xen-$VERSION" +else + echo "ERROR: Can't find version $VERSION of xen utils (maybe xen-utils-$VERSION was already removed before rebooting out of Xen $VERSION), bailing out!" >&2 + exit 127 +fi diff --git a/scripts/xen-init-list b/scripts/xen-init-list new file mode 100755 index 0000000000..7ef25fe355 --- /dev/null +++ b/scripts/xen-init-list @@ -0,0 +1,18 @@ +#!/usr/bin/python3 + +import json +import subprocess + +""" +This little script is used by the xendomains init script. It prints all running +domUs with their domain id and name. +""" + +cmd = ('xen', 'list', '-l') +xen_list_json = subprocess.check_output(cmd) +for domU_info in json.loads(xen_list_json): + domid = domU_info['domid'] + if domid == 0: + continue + name = domU_info['config']['c_info']['name'] + print(domid, name) diff --git a/scripts/xen-init-name b/scripts/xen-init-name new file mode 100755 index 0000000000..fe8f61fca1 --- /dev/null +++ b/scripts/xen-init-name @@ -0,0 +1,21 @@ +#!/usr/bin/python3 + +import json +import subprocess +import sys + +""" +This little script is used by the xendomains init script. It gets a filename of +a domU guest config file as argument and uses xen create --dryrun to parse the +config file and extract the domU name from it. + +Note that there is no proper error handling. So, if a user symlinks something +else than a correctly formatted domU config file into /etc/xen/auto (or a +different path configured to use, of course) then this will just do ugly things +and explode. +""" + +cmd = ('xen', 'create', '--quiet', '--dryrun', '--defconfig', sys.argv[1]) +domU_json = subprocess.check_output(cmd) +name = json.loads(domU_json)['c_info']['name'] +print(name) diff --git a/scripts/xen-toolstack b/scripts/xen-toolstack new file mode 100755 index 0000000000..6911d4eacf --- /dev/null +++ b/scripts/xen-toolstack @@ -0,0 +1,4 @@ +#!/bin/sh +set -e +echo >&2 "warning: something called deprecated script $0" +echo xl diff --git a/scripts/xen-toolstack-wrapper b/scripts/xen-toolstack-wrapper new file mode 100755 index 0000000000..f8e15b45f9 --- /dev/null +++ b/scripts/xen-toolstack-wrapper @@ -0,0 +1,4 @@ +#!/bin/sh +set -e +echo >&2 "warning: something called deprecated script $0" +exec xl "$@" diff --git a/scripts/xen-utils-wrapper b/scripts/xen-utils-wrapper new file mode 100755 index 0000000000..6247fd0b29 --- /dev/null +++ b/scripts/xen-utils-wrapper @@ -0,0 +1,41 @@ +#!/bin/sh + +# This portion is fast-path, avoid external programs, NOTE: NOT -e HERE! + +COMMAND="${0##*/}" + +DIR=/sys/hypervisor/version +# these return non-zero if hypervisor is absent, this is detected below +read major 2> /dev/null < $DIR/major +read minor 2> /dev/null < $DIR/minor +VERSION="$major.$minor" + +DIR="/usr/lib/xen-$VERSION/bin" + +[ -x "$DIR/$COMMAND" ] && exec "$DIR/$COMMAND" "$@" + + +# Certainly didn't work, now report failures, slower-path +set -e + +error() { + err="$1" + shift + echo "ERROR: " "$@" >&2 + exit $err +} + +[ -e "/sys/hypervisor/type" ] || error 1 "Can't find hypervisor information in sysfs!" + +read type < /sys/hypervisor/type +if [ "$type" != xen ]; then + [ -n "$type" ] || error 1 "Can't read hypervisor type from sysfs!" + error 1 "Hypervisor is not xen but '$type'!" +fi + +if [ ! -d "/usr/lib/xen-$VERSION" ]; then + error 127 "Can't find version $VERSION of xen utils (maybe xen-utils-$VERSION was already removed before rebooting out of Xen $VERSION), bailing out!" +fi + +error 127 "Unable to execute $DIR/$COMMAND" + diff --git a/scripts/xen-version b/scripts/xen-version new file mode 100755 index 0000000000..5c42ad7351 --- /dev/null +++ b/scripts/xen-version @@ -0,0 +1,24 @@ +#!/bin/sh -e + +error() { + echo "ERROR: " "$@" >&2 + exit 1 +} + +if [ -e "/sys/hypervisor/type" ]; then + read type < /sys/hypervisor/type + if [ "$type" = xen ]; then + DIR=/sys/hypervisor/version + read major < $DIR/major + read minor < $DIR/minor + VERSION="$major.$minor" + elif [ -z "$type" ]; then + error "Can't read hypervisor type from sysfs!" + else + error "Hypervisor is not xen but '$type'!" + fi +else + error "Can't find hypervisor information in sysfs!" +fi + +echo "$VERSION" diff --git a/shuffle-binaries b/shuffle-binaries new file mode 100755 index 0000000000..d49bc7469c --- /dev/null +++ b/shuffle-binaries @@ -0,0 +1,50 @@ +#!/bin/sh +set -e + +version="$1"; shift + +# We wrap all of the programs in /usr/bin with a script +# (xen-utils-wrapper) which chooses the version corresponding to the +# currently-running version of Xen. The actual binaries go +# in xen-utils-$version:usr/lib/xen-$version/bin +# +# We first have to figure out what libraries the binary is linked +# against. We then match against the libraries listed for inclusion +# here: +list=debian/libxenmiscV.install.vsn-in + +t=debian/tmp +vd="/usr/lib/xen-$version/bin" +cd=/usr/lib/xen-common/bin + +mkdir -p "$t/$vd" + +find "$t"/usr/*bin -type f | while read binary; do + # filter for executables (ignore scripts) + file "$binary" | grep -q -eELF.\\+version.\\+interpreter || continue + + reason=$( + strings "$binary" | grep -e^lib.\\+\\.so\\.\[.0-9\]\\+\$ | \ + while read lib; do + lib=${lib%.so.*} + if grep -q -F "usr/lib/*/$lib.so.*" $list; then + printf " %s" "$lib" + fi + done + ) + + # if no reason, then skip + [ -n "$reason" ] || continue + + echo "shuffling $binary$reason" + + mv -v "$binary" "$t/$vd/" + ln -vs "$cd/xen-utils-wrapper" "$binary" + + touch "$0.stamp" +done + +if [ ! -e "$0.stamp" ]; then + echo "Failed to shuffle binaries!" 1>&2 + exit 1 +fi diff --git a/shuffle-boot-files b/shuffle-boot-files new file mode 100755 index 0000000000..176c65f1c4 --- /dev/null +++ b/shuffle-boot-files @@ -0,0 +1,41 @@ +#!/bin/sh + +set -e + +version="$1"; shift +flavour="$1"; shift +t=debian/tmp + +hv="xen-hypervisor-$version-$flavour" +dest="debian/$hv/boot" +mkdir -p "$dest" + +# The upstream build system puts a pile of needless symlinks in /boot, +# like 'xen-4.14.gz', 'xen-4.gz' and 'xen.gz' or even just 'xen'. +# +# Conversely it gives the actual hypervisor binary an +# unhelpfully-varying name, like 'xen-4.14.1-pre.gz'. The symlinks to +# this binary have more stable names, which we can use to our advantage. +# +# First of all, we figure out the version string that is used in the +# upstream build result. So, for xen-4.14.1-pre.gz that would be +# 4.14.1-pre +verstring="$(readlink debian/tmp/boot/xen.gz || + readlink debian/tmp/boot/xen)" +verstring="${verstring##*xen-}" +verstring="${verstring%.gz}" + +# Next we substitute this upstream version string with our own format. +# For our part, we have been in the habit of putting the flavour in the +# name and want to continue to do so for continuity. (This was more +# useful when the -i386 flavour existed and was coinstallable with the +# -amd64 flavour.) +# +# So, e.g. debian/tmp/boot/xen-4.14.1-pre.gz will end up in our package +# as debian/xen-hypervisor-4.14-amd64/boot/xen-4.14-amd64.gz +find "$t/boot" -type f -print | while read f; do + basename="${f#$t/boot/}" + head="${basename%$verstring*}" + tail="${basename#*$verstring}" + cp -v "$f" "${dest}/${head}${version}-${flavour}${tail}" +done diff --git a/source/format b/source/format new file mode 100644 index 0000000000..163aaf8d82 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/template-subst b/template-subst new file mode 100755 index 0000000000..d329bee8b9 --- /dev/null +++ b/template-subst @@ -0,0 +1,41 @@ +#!/usr/bin/perl -wn +# +# Implements the rudimentary templating for *.vsn-in files, +# see the comment in debian/rules. + +use strict; +our %v; +$v{''} = '@'; +BEGIN { + $v{version} = shift @ARGV; + $v{flavour} = shift @ARGV; +} +sub printwarning () { + our $printedwarning; + return if $printedwarning++; + print "# autogenerated, do not edit\n" if $.==1; +} +sub v { + my ($k) = @_; + $v{$k} // die "unknown $k"; +} +our @yes; +printwarning unless m{^\#!}; +if (m/^\s*\?\s*(\w+)\s*(!?)=\s*(.*?)\s*$/) { + my @rhs = split /\s*\|\s*/, $3; + push @yes, (!!(grep { v($1) eq $_ } @rhs) xor !!$2); + next; +} elsif (m/^\s*\?\s*$/) { + defined pop @yes or die "too many lone ? (endings)"; + next; +} elsif (m/^\s*\?/) { + die "syntax"; +} +next if grep { !$_ } @yes; +s{\@(\w*)\@}{ v($1) }ge; +print or die $!; +printwarning; +END { + printwarning; + die "too few lone ? (endings)" if @yes; +} diff --git a/tree/xen-hypervisor-common/etc/default/grub.d/xen.cfg b/tree/xen-hypervisor-common/etc/default/grub.d/xen.cfg new file mode 100644 index 0000000000..900c12df5d --- /dev/null +++ b/tree/xen-hypervisor-common/etc/default/grub.d/xen.cfg @@ -0,0 +1,94 @@ +# When running update-grub with the Xen hypervisor installed, there are +# some additional variables that can be used to pass options to the +# hypervisor or the dom0 kernel. +# +# The configuration in here makes it possible to have different options set +# for the linux kernel when booting with or without Xen. + +echo "Including Xen overrides from /etc/default/grub.d/xen.cfg" + +####################################################################### +# Xen Hypervisor Command Line Options +# +# The first two options are used to generate arguments for the hypervisor. +# Commonly used options are: +# +# dom0_mem= (for arm) +# dom0_mem=,max: (for x86) +# Sets the amount of memory dom0 uses to a fixed size. All other memory +# will be usable for domUs. For x86, this prevents ballooning actions +# from happening to take away memory from the dom0 or return it back. For +# arm, setting this option is required. E.g. (for x86) dom0_mem=4G,max:4G +# +# dom0_max_vcpus=- +# Limits the amount of physical cpus that dom0 is using, so it will not +# try to be scheduled on all available cpus all the time. Xen will try to +# provide the maximum value of vcpus, but will also gracefully deal with +# a situation of hotplugging physical cpus and reduce the number of vcpus +# instead of oversubscribing the system. E.g. dom0_max_vcpus=1-4 +# +# com[12]=, +# Initialize a serial console for the hypervisor. Note that com1 would be +# ttyS0 in Linux when running without Xen. E.g. com1=115200,8n1 +# +# console=[, ...] +# Specify which console(s) Xen should use. E.g. console=com1,vga +# +# xpti=dom0=,domu= (only for x86) +# Override default selection of whether to isolate 64-bit PV guest page +# tables. If the dom0 is only used for managing domUs, and no untrusted +# code is ran inside, xpti for dom0 can be turned off for performance +# reasons. E.g. xpti=dom0=false,domu=true +# +# noreboot=true +# Do not automatically reboot after an error. This is useful for catching +# debug output. +# +# ucode=scan (only for x86) +# Scan the multiboot images mentioned in grub configuration for an cpio image +# that contains cpu microcode. This enables loading microcode that is stored +# in the dom0 initrd.img. +# +# Please also refer to the "Xen Hypervisor Command Line Options" +# documentation for the version of Xen you have installed. This +# documentation can be found at https://xenbits.xen.org/ +# +#GRUB_CMDLINE_XEN_DEFAULT="" +#GRUB_CMDLINE_XEN="" + +####################################################################### +# Dom0 Kernel Command Line Options +# +# The next options are used for creating kernel arguments for the dom0 +# kernel. This allows to have different options for the same kernel used +# natively or as dom0 kernel. +# +# For example: +# +# earlyprintk=xen +# Allows to send early printk messages to the Xen hypervisor console +# +# console=hvc0 +# Redirects the Linux console to the hypervisor console. When running +# under Xen as dom0, this needs to be specified, because the usual ttyS0 +# will not be available. When viewing the serial console, pressing Ctrl-A +# three times will switch between the Linux dom0 and the Xen Hypervisor. +# +#GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT" +#GRUB_CMDLINE_LINUX_XEN_REPLACE="$GRUB_CMDLINE_LINUX" + +# Make booting into Xen the default. Set the following variable to 0 or 1 +# explicitly to avoid the message warning from being printed. +# +#XEN_OVERRIDE_GRUB_DEFAULT= +# +if [ "$XEN_OVERRIDE_GRUB_DEFAULT" = "" ]; then + echo "WARNING: GRUB_DEFAULT changed to boot into Xen by default!" + echo " Edit /etc/default/grub.d/xen.cfg to avoid this warning." + XEN_OVERRIDE_GRUB_DEFAULT=1 +fi +if [ "$XEN_OVERRIDE_GRUB_DEFAULT" = "1" ]; then + GRUB_DEFAULT=$( \ + printf "$(gettext "%s, with Xen hypervisor")" \ + "$GRUB_DISTRIBUTOR GNU/Linux") +fi diff --git a/ucf-remove-fixup b/ucf-remove-fixup new file mode 100755 index 0000000000..33937dee1a --- /dev/null +++ b/ucf-remove-fixup @@ -0,0 +1,44 @@ +#!/usr/bin/perl -wpi~ + +# dh_ucf does not seem have a mode for dropping a ucf-managed config +# file. ucf and ucfr can be used to DTRT but are insufficiently +# coooked. +# +# I think the right thing to do, when dropping a ucf-handled config +# file, is +# (i) stop shipping the original file in /usr/share +# (ii) in postinst, do nothing +# (iii) in postrm purge, delete all traces + +# The result of (i) and (ii) is that the file remains recorded by +# ucf and ucfr, but that the original version of the file is no +# longer present on the user's machine. +# +# (iii) is exactly what dh_ucf puts into the postrm. +# +# So, we can be fairly future-proof with the following approach +# (i) stop shipping the original file in /usr/share +# (ii) call dh_ucf +# (iii) call ucf-remove-fixup (this script) +# which strips out the ucf stuff from the postinst + +use strict; +use Carp; + +our ($package, $configfile); + +BEGIN { + die unless @ARGV == 2; + ($package, $configfile) = @ARGV; + @ARGV = ("debian/$package.postinst.debhelper"); + $/ = '# End automatically added section' +} + +next unless m{$configfile}; +confess "UNEXPECTED $_ ?" unless m{^(?=# Automatically added by dh_ucf)}m; + +print $` or die $!; +$_ = $'; +next unless m{^(?!#)}m; +s{\n}{\n# suppressed by ucf-remove-fixup\n}; +s{^(?!#)}{# }mg; diff --git a/xen-doc.doc-base b/xen-doc.doc-base new file mode 100644 index 0000000000..8124d39fa4 --- /dev/null +++ b/xen-doc.doc-base @@ -0,0 +1,10 @@ +Document: xen-doc-html +Section: System/Administration +Title: Xen HTML documentation +Abstract: Xen hypercall interfaces, manpages, and miscellanea. + Xen upstream provides much of its documentation in HTML form. + This entry referes to the top-level index of the Xen HTML docs. + +Format: HTML +Index: /usr/share/doc/xen/html/index.html +Files: /usr/share/doc/xen/html diff --git a/xen-doc.install b/xen-doc.install new file mode 100644 index 0000000000..a49d03df96 --- /dev/null +++ b/xen-doc.install @@ -0,0 +1 @@ +/usr/share/doc/xen/html diff --git a/xen-doc.links b/xen-doc.links new file mode 100644 index 0000000000..b5ac446e03 --- /dev/null +++ b/xen-doc.links @@ -0,0 +1 @@ +usr/share/doc/xen/html usr/share/doc/xen-doc/html diff --git a/xen-doc.lintian-overrides b/xen-doc.lintian-overrides new file mode 100644 index 0000000000..13a78a2385 --- /dev/null +++ b/xen-doc.lintian-overrides @@ -0,0 +1,3 @@ +documentation-package-not-architecture-independent +# ^ Indeed not. It is arch-specific because the Xen upstream HTML +# documentation contains arch-specific hhypercall API information. diff --git a/xen-hypervisor-V-F.bug-control.vsn-in b/xen-hypervisor-V-F.bug-control.vsn-in new file mode 100644 index 0000000000..3e21b39c90 --- /dev/null +++ b/xen-hypervisor-V-F.bug-control.vsn-in @@ -0,0 +1 @@ +Submit-As: src:xen diff --git a/xen-hypervisor-V-F.install.vsn-in b/xen-hypervisor-V-F.install.vsn-in new file mode 100644 index 0000000000..a211b1d9ac --- /dev/null +++ b/xen-hypervisor-V-F.install.vsn-in @@ -0,0 +1,4 @@ + +usr/lib/debug/xen* usr/lib/debug/ +# ^ The xen* wildcard excludes the shim symbols. The shim is treated +# as part of the toolstack - see xen-utils-V.install.vsn-in. diff --git a/xen-hypervisor-V-F.lintian-overrides.vsn-in b/xen-hypervisor-V-F.lintian-overrides.vsn-in new file mode 100644 index 0000000000..b0362510ca --- /dev/null +++ b/xen-hypervisor-V-F.lintian-overrides.vsn-in @@ -0,0 +1,4 @@ +debug-suffix-not-dbg usr/lib/debug/xen-*.efi.map.gz +# ^ as is traditional for kernels too, we ship the debug information +# in the hypervisor package rather than creating yet another +# package just for this file, which is only 50K or so anyway. diff --git a/xen-hypervisor-V-F.postinst.vsn-in b/xen-hypervisor-V-F.postinst.vsn-in new file mode 100644 index 0000000000..623637b057 --- /dev/null +++ b/xen-hypervisor-V-F.postinst.vsn-in @@ -0,0 +1,37 @@ +#!/bin/bash + +set -e + +case "$1" in + configure) + if command -v update-grub > /dev/null && [ -d /boot/grub ]; then + update-grub || : + fi + + # create or update /run/reboot-required{,.pkgs} if xen hypervisor is + # running + if [ -e "/sys/hypervisor/type" ]; then + type="$(cat /sys/hypervisor/type)" + if [ "$type" = xen ]; then + if [ -d /run ]; then + touch /run/reboot-required + if ! grep -q "^$DPKG_MAINTSCRIPT_PACKAGE$" /run/reboot-required.pkgs 2> /dev/null ; then + echo "$DPKG_MAINTSCRIPT_PACKAGE" >> /run/reboot-required.pkgs + fi + fi + fi + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/xen-hypervisor-V-F.postrm.vsn-in b/xen-hypervisor-V-F.postrm.vsn-in new file mode 100644 index 0000000000..4833411ab6 --- /dev/null +++ b/xen-hypervisor-V-F.postrm.vsn-in @@ -0,0 +1,23 @@ +#!/bin/bash + +set -e + +case "$1" in + remove) + if command -v update-grub > /dev/null && [ -d /boot/grub ]; then + update-grub || : + fi + ;; + + purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/xen-hypervisor-common.docs b/xen-hypervisor-common.docs new file mode 100644 index 0000000000..5405a52a99 --- /dev/null +++ b/xen-hypervisor-common.docs @@ -0,0 +1 @@ +debian/README.Debian.security diff --git a/xen-hypervisor-common.install b/xen-hypervisor-common.install new file mode 100644 index 0000000000..dd007bf7bd --- /dev/null +++ b/xen-hypervisor-common.install @@ -0,0 +1 @@ +../tree/xen-hypervisor-common/* / diff --git a/xen-kconfig b/xen-kconfig new file mode 100644 index 0000000000..3433fda1dd --- /dev/null +++ b/xen-kconfig @@ -0,0 +1,4 @@ +## Xen release branches have debug turned off, but explicitly turn +## it off here so that this build system works right on unstable +## branches (and doesn't generate a debug hypervisor). +CONFIG_DEBUG=n diff --git a/xen-utils-V.README.Debian.vsn-in b/xen-utils-V.README.Debian.vsn-in new file mode 100644 index 0000000000..30bdc8f050 --- /dev/null +++ b/xen-utils-V.README.Debian.vsn-in @@ -0,0 +1,48 @@ +Xen for Debian +============== + +Config behaviour +---------------- + +The Debian packages changes the behaviour of some config options. + +The options "kernel", "initrd" and "loader" searches in the Xen private boot +directory (/usr/lib/xen-$version/boot) first. "bootloader" and "device_model" +also searches the Xen private bin directory (/usr/lib/xen-$version/bin). This +means that the following entries will properly find anything: + loader = 'hvmloader' + bootloader = 'pygrub' + +Network setup +------------- + +The Debian package of Xen don't change the network setup in any way. This +differs from the upstream version, which overwrites the main network card +(eth0) with a bridge setup and may break the network at this point.. + +To setup a bridge please follow the instructions in the manpage for +bridge-utils-interfaces(5). + +Loop devices +------------ + +If you plan hosting virtual domains with file backed block devices (ie. the +ones xen-tools creates by default) be careful about two issues: + +1. Maximum number of loop devices + By default the loop driver supports a maximum of 8 loop devices. Of + course since every Xen domain uses at least two (one for the data and one + for the swap) this number is absolutely insufficient. You should increase + it by adding a file named local-loop in /etc/modprobe.d containing the + string "options loop max_loop=128", if the loop driver is compiled as a + module, or by appending the string max_loop=128 to your kernel parameters + if the driver is in-kernel. Of course you can increase or decrease the + number 128 as you see fit. + +2. Driver loading (only if loop is compiled as a module) + Normally the loop driver gets loaded when the first loop device is + accessed. When using udev, though, the loop devices get created only + after the driver gets loaded. This means that Xen will fail if the loop + driver is not already loaded when it tries to start a file-backed virtual + domain. To fix this just add "loop" in your /etc/modules file, thus + forcing it to be loaded at boot time. diff --git a/xen-utils-V.bug-control.vsn-in b/xen-utils-V.bug-control.vsn-in new file mode 100644 index 0000000000..3e21b39c90 --- /dev/null +++ b/xen-utils-V.bug-control.vsn-in @@ -0,0 +1 @@ +Submit-As: src:xen diff --git a/xen-utils-V.install.vsn-in b/xen-utils-V.install.vsn-in new file mode 100644 index 0000000000..d8a552cb97 --- /dev/null +++ b/xen-utils-V.install.vsn-in @@ -0,0 +1,9 @@ +usr/lib/xen-@version@/bin +usr/lib/xen-@version@/lib/python + +? flavour = amd64 | i386 +usr/lib/xen-@version@/boot +usr/lib/debug/usr/lib/xen-*/boot/* usr/lib/debug/xen-syms-@version@-shim +# ^ Yes, the upstream build system really does install the shim symbols +# file in debian/tmp/usr/lib/debug/usr/lib/xen-@version@/boot/xen-shim-syms +? diff --git a/xen-utils-V.lintian-overrides.vsn-in b/xen-utils-V.lintian-overrides.vsn-in new file mode 100644 index 0000000000..8c0e496b11 --- /dev/null +++ b/xen-utils-V.lintian-overrides.vsn-in @@ -0,0 +1,13 @@ +statically-linked-binary usr/lib/xen-@version@/boot/hvmloader +statically-linked-binary usr/lib/xen-@version@/boot/xen-shim + +binary-has-unneeded-section usr/lib/xen-@version@/boot/xen-shim .note +# ^ that section is certainly needed for the tools etc. to be able +# to load it! + +binary-from-other-architecture usr/lib/debug/xen-syms-@version@-shim/xen-shim-syms +# ^ this is a symbols file for the shim + +binary-or-shlib-defines-rpath usr/lib/xen-@version@/lib/python/xenfsimage.*.so /usr/lib/xen-@version@/lib/x86_64-linux-gnu +# ^ this module needs to load the libxenfsimage .so from within +# the xen-utils private directory. less +/xenfsimage debian/rules diff --git a/xen-utils-V.postinst.vsn-in b/xen-utils-V.postinst.vsn-in new file mode 100644 index 0000000000..8ed507afcc --- /dev/null +++ b/xen-utils-V.postinst.vsn-in @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +case "$1" in + configure) + if [ -x "/etc/init.d/xen" ]; then + # Only call the init script when this xen-utils-@version@ package + # matches the currently running version of Xen. This means, doing + # in-place updates (e.g. a security update for same version). + # + # When installing a xen-utils package for any other Xen version, + # leave the running system alone. + if [ "$(/usr/lib/xen-common/bin/xen-version)" = "@version@" ]; then + invoke-rc.d xen start || exit $? + fi + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/xen-utils-V.prerm.vsn-in b/xen-utils-V.prerm.vsn-in new file mode 100644 index 0000000000..8f580d9245 --- /dev/null +++ b/xen-utils-V.prerm.vsn-in @@ -0,0 +1,31 @@ +#!/bin/bash + +set -e + +case "$1" in + remove|upgrade) + if [ -x "/etc/init.d/xen" ]; then + # Only call the init script when removing or while upgrading for + # the currently running version of Xen. + # + # Otherwise, for example after a Xen version upgrade, autoremoval + # of an obsolete xen-utils-V package would inadvertently stop + # running daemons like xenconsoled. + if [ "$(/usr/lib/xen-common/bin/xen-version)" = "@version@" ]; then + invoke-rc.d xen stop || exit $? + fi + fi + ;; + + deconfigure|failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/xen-utils-common.README.Debian b/xen-utils-common.README.Debian new file mode 100644 index 0000000000..b312a7f27c --- /dev/null +++ b/xen-utils-common.README.Debian @@ -0,0 +1,24 @@ +Xen for Debian +============== + +Config behaviour +---------------- + +The Debian packages changes the behaviour of some config options. + +The options "kernel", "initrd" and "loader" searches in the Xen private boot +directory (/usr/lib/xen-$version/boot) first. "bootloader" and "device_model" +also searches the Xen private bin directory (/usr/lib/xen-$version/bin). This +means that the following entries will properly find anything: + loader = 'hvmloader' + bootloader = 'pygrub' + +Network setup +------------- + +The Debian package of Xen don't change the network setup in any way. This +differs from the upstream version, which overwrites the main network card +(eth0) with a bridge setup and may break the network at this point.. + +To setup a bridge please follow the instructions in the manpage for +bridge-utils-interfaces(5). diff --git a/xen-utils-common.dirs b/xen-utils-common.dirs new file mode 100644 index 0000000000..c745c087a3 --- /dev/null +++ b/xen-utils-common.dirs @@ -0,0 +1 @@ +var/lib/xen diff --git a/xen-utils-common.examples b/xen-utils-common.examples new file mode 100644 index 0000000000..f296b66852 --- /dev/null +++ b/xen-utils-common.examples @@ -0,0 +1 @@ +debian/tmp/etc/xen/cpupool* diff --git a/xen-utils-common.install b/xen-utils-common.install new file mode 100755 index 0000000000..7c318a19dd --- /dev/null +++ b/xen-utils-common.install @@ -0,0 +1,31 @@ +#! /usr/bin/dh-exec --with=install + +# Note: dh-exec breaks dh_missing by failing to register the +# installed files. Also see comments in debian/not-installed. + +etc/xen/scripts +etc/xen/xl* +etc/bash_completion.d/xl.sh => usr/share/bash-completion/completions/xl + +etc/default/xendomains +etc/default/xencommons => usr/share/xen-utils-common/default.xen +etc/xen/oxenstored.conf + +usr/bin +usr/sbin + +usr/share/man + +../scripts/xen usr/sbin + +../scripts/xen-version usr/lib/xen-common/bin +../scripts/xen-dir usr/lib/xen-common/bin +../scripts/xen-utils-wrapper usr/lib/xen-common/bin + +../scripts/xen-init-list usr/lib/xen-common/bin +../scripts/xen-init-name usr/lib/xen-common/bin + +../scripts/qemu-ifup etc/xen/scripts + +../scripts/xen-toolstack-wrapper usr/lib/xen-common/bin +../scripts/xen-toolstack usr/lib/xen-common/bin diff --git a/xen-utils-common.links b/xen-utils-common.links new file mode 100644 index 0000000000..bc0d44ada7 --- /dev/null +++ b/xen-utils-common.links @@ -0,0 +1,2 @@ +usr/share/doc/xen/html usr/share/doc/xen-utils-common/html +usr/share/bash-completion/completions/xl usr/share/bash-completion/completions/xen diff --git a/xen-utils-common.maintscript b/xen-utils-common.maintscript new file mode 100644 index 0000000000..a5046698b6 --- /dev/null +++ b/xen-utils-common.maintscript @@ -0,0 +1,4 @@ +rm_conffile /etc/default/xend 4.11.1-2~ +rm_conffile /etc/xen/xend-config.sxp 4.11.1-2~ +rm_conffile /etc/xen/xend-pci-permissive.sxp 4.11.1-2~ +rm_conffile /etc/xen/xend-pci-quirks.sxp 4.11.1-2~ diff --git a/xen-utils-common.postinst b/xen-utils-common.postinst new file mode 100644 index 0000000000..c77dff087a --- /dev/null +++ b/xen-utils-common.postinst @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +case "$1" in +configure) + install -d -m 2750 -g adm /var/log/xen + ;; + +abort-upgrade|abort-remove|abort-deconfigure) + ;; + +*) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/xen-utils-common.postrm b/xen-utils-common.postrm new file mode 100644 index 0000000000..c96620cd40 --- /dev/null +++ b/xen-utils-common.postrm @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +case "$1" in +purge) + rmdir --ignore-fail-on-non-empty /var/log/xen + ;; + +remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + +*) + echo "postrm called with unknown argument \`$1'" >&2 + exit + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/xen-utils-common.preinst b/xen-utils-common.preinst new file mode 100644 index 0000000000..7e9a51b975 --- /dev/null +++ b/xen-utils-common.preinst @@ -0,0 +1,20 @@ +#!/bin/sh + +set -e + +case "$1" in +install|upgrade) + ;; + +abort-upgrade) + ;; + +*) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/xen-utils-common.ucf b/xen-utils-common.ucf new file mode 100644 index 0000000000..b32b91d1d9 --- /dev/null +++ b/xen-utils-common.ucf @@ -0,0 +1 @@ +/usr/share/xen-utils-common/default.xen /etc/default/xen diff --git a/xen-utils-common.xen.init b/xen-utils-common.xen.init new file mode 100644 index 0000000000..8dac05f9de --- /dev/null +++ b/xen-utils-common.xen.init @@ -0,0 +1,345 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: xen +# Required-Start: $syslog $remote_fs +# Required-Stop: $syslog $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Xen daemons +# Description: Xen daemons +### END INIT INFO + +# Important notes to keep in mind when changing this script: +# +# * This init script is part of the xen-utils-common package. +# * It is *not* called from xen-utils-common maintscripts, but from the +# xen-utils-V package maintscripts instead, and only if V is equal to the +# currently running version of Xen. +# * The xen-utils-V package has a dependency on xen-utils-common >= V. +# * So, while there can be multiple xen-utils-V packages installed, there is +# still only a single xen-utils-common package installed, which matches the +# newest installed Xen version. +# * This means that this script has to be compatible with the other packages +# for any older Xen version that was available in the current and previous +# Debian release. +# +# Example scenarios in which this is needed: +# +# * After upgrading to a new Xen version, the new init script will already be +# used for shutting down the system before reboot. +# * If the user encounters problems and reboots back into the old Xen version, +# this init script will also be used. + +. /lib/init/vars.sh +. /lib/lsb/init-functions + +# Default variables +XENSTORED_DIR="/run/xenstored" + +[ -r /etc/default/xen ] && . /etc/default/xen + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DESC="Xen daemons" + +case "$(cat /sys/hypervisor/type 2>/dev/null)" in +xen) ;; +*) exit 0 ;; # not running under Xen +esac + +VERSION=$(/usr/lib/xen-common/bin/xen-version) +ROOT=$(/usr/lib/xen-common/bin/xen-dir) +if [ $? -ne 0 ]; then + log_warning_msg "No compatible Xen utils for Xen $VERSION" + exit 1 +fi + +XENCONSOLED="$ROOT"/bin/xenconsoled +XENCONSOLED_PIDFILE="/run/xenconsoled.pid" +CXENSTORED="$ROOT"/bin/xenstored +OXENSTORED="$ROOT"/bin/oxenstored +XENSTORED_PIDFILE="/run/xenstore.pid" +QEMU=/usr/bin/qemu-system-i386 +QEMU_PIDFILE="/run/qemu-dom0.pid" +QEMU_ARGS="-xen-domid 0 -xen-attach -name dom0 -nographic -M xenpv -daemonize -monitor /dev/null -serial /dev/null -parallel /dev/null" + +modules_setup() +{ + modprobe xenfs 2>/dev/null + modprobe xen-evtchn 2>/dev/null + modprobe xen-gntdev 2>/dev/null + modprobe xen-acpi-processor 2>/dev/null +} + +xenfs_setup() +{ + [ -e "/proc/xen/capabilities" ] && return 0 + log_progress_msg "xenfs" + [ -d "/proc/xen" ] || return 1 + mount -t xenfs xenfs /proc/xen || return 1 + return 0 +} + +capability_check() +{ + [ -e "/proc/xen/capabilities" ] || return 1 + grep -q "control_d" /proc/xen/capabilities || return 1 + return 0 +} + +env_setup() +{ + [ -d /run/xen ] && return 0 + + mkdir -m 700 /run/xen + [ -x /sbin/restorecon ] && /sbin/restorecon /run/xen +} + +xenconsoled_start() +{ + log_progress_msg "xenconsoled" + xenconsoled_start_real + return $? +} + +xenconsoled_stop() +{ + log_progress_msg "xenconsoled" + xenconsoled_stop_real + return $? +} + +xenconsoled_restart() +{ + log_progress_msg "xenconsoled" + xenconsoled_stop_real + case "$?" in + 0|1) + xenconsoled_start_real + case "$?" in + 0) ;; + *) return 2 ;; + esac + ;; + *) return 2 ;; + esac + return 0 +} + +xenconsoled_start_real() +{ + start-stop-daemon --start --quiet --pidfile "$XENCONSOLED_PIDFILE" --exec "$XENCONSOLED" --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile "$XENCONSOLED_PIDFILE" --exec "$XENCONSOLED" -- \ + $XENCONSOLED_ARGS --pid-file "$XENCONSOLED_PIDFILE" \ + || return 2 +} + +xenconsoled_stop_real() +{ + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile "$XENCONSOLED_PIDFILE" --name xenconsoled + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec "$XENCONSOLED" + [ "$?" = 2 ] && return 2 + rm -f $XENCONSOLED_PIDFILE + return "$RETVAL" +} + +qemu_start() +{ + [ -x $QEMU ] || return 0 + log_progress_msg "qemu" + qemu_start_real + return $? +} + +qemu_stop() +{ + [ -x $QEMU ] || return 0 + log_progress_msg "qemu" + qemu_stop_real + return $? +} + +qemu_restart() +{ + [ -x $QEMU ] || return 0 + log_progress_msg "qemu" + qemu_stop_real + case "$?" in + 0|1) + qemu_start_real + case "$?" in + 0) ;; + *) return 2 ;; + esac + ;; + *) return 2 ;; + esac + return 0 +} + +qemu_start_real() +{ + start-stop-daemon --start --quiet --pidfile "$QEMU_PIDFILE" --exec "$QEMU" --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile "$QEMU_PIDFILE" --exec "$QEMU" -- \ + $QEMU_ARGS -pidfile "$QEMU_PIDFILE" \ + || return 2 +} + +qemu_stop_real() +{ + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile "$QEMU_PIDFILE" --exec "$QEMU" + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + rm -f $QEMU_PIDFILE + return "$RETVAL" +} + + +xenstored_start() +{ + # First, we check if any of xenstored or oxenstored is already running. If + # so, we abort and leave it alone. + for try_xenstored in "$OXENSTORED" "$CXENSTORED"; do + if [ -x $try_xenstored ]; then + start-stop-daemon --start --quiet --pidfile "$XENSTORED_PIDFILE" \ + --exec "$try_xenstored" --test > /dev/null + # s-s-d code 1 here means: "We found a matching live process!" + if [ $? -eq 1 ]; then + return 0 + fi + fi + done + log_progress_msg "xenstored" + [ -d "$XENSTORED_DIR" ] || mkdir -p "$XENSTORED_DIR" + [ -x /sbin/restorecon ] && /sbin/restorecon "$XENSTORED_DIR" + export XENSTORED_ROOTDIR="$XENSTORED_DIR" + # If none of them are running, then try starting one. If the user made an + # explicit choice, then run that. Else try the different xenstored + # implementations we know about in order of preference. + case "$XENSTORED" in + ?*) try_xenstoreds='XENSTORED' ;; + '') try_xenstoreds='OXENSTORED CXENSTORED' ;; + esac + for try_xenstored_var in $try_xenstoreds; do + eval "try_xenstored=\$$try_xenstored_var" + if [ -x $try_xenstored ]; then + if start-stop-daemon --start --quiet \ + --pidfile "$XENSTORED_PIDFILE" \ + --exec /usr/bin/choom -- -n -1000 "$try_xenstored" -- \ + $XENSTORED_ARGS --pid-file "$XENSTORED_PIDFILE"; then + started_xenstored=$try_xenstored + break + fi + fi + done + if [ -z "$started_xenstored" ]; then + log_failure_msg "No suitable xenstored binary found to start." + return 1 + fi + + # Wait for xenstored to actually come up, timing out after 30 seconds + local time=0 + local timeout=30 + while [ $time -lt $timeout ] && ! `xenstore-read -s / >/dev/null 2>&1` ; do + time=$(( $time+1 )) + sleep 1 + done + + # Exit if we timed out + if ! [ $time -lt $timeout ] ; then + return 2 + fi + + # Add some extra entries about dom0 into xenstore + if [ -e $ROOT/bin/xen-init-dom0 ] ; then + $ROOT/bin/xen-init-dom0 > /dev/null + else + # xen-init-dom0 has been present since Stretch. + # Remove this compatibility section in Buster+1 + xenstore-write "/local/domain/0/name" "Domain-0" + xenstore-write "/local/domain/0/domid" "0" + fi +} + +case "$1" in + start) + log_daemon_msg "Starting $DESC" + modules_setup + xenfs_setup + case "$?" in + 0) ;; + *) log_end_msg 1; exit ;; + esac + capability_check + case "$?" in + 0) ;; + *) log_end_msg 0; exit ;; # not a dom0, skip the rest + esac + env_setup + xenstored_start + case "$?" in + 0) ;; + *) log_end_msg 1; exit ;; + esac + xenconsoled_start + case "$?" in + 0|1) ;; + *) log_end_msg 1; exit ;; + esac + qemu_start + case "$?" in + 0|1) ;; + *) log_end_msg 1; exit ;; + esac + log_end_msg 0 + ;; + stop) + capability_check + case "$?" in + 0) ;; + *) exit ;; + esac + log_daemon_msg "Stopping $DESC" + ret=0 + qemu_stop + case "$?" in + 0|1) ;; + *) ret=1 ;; + esac + xenconsoled_stop + case "$?" in + 0|1) ;; + *) ret=1 ;; + esac + log_end_msg $ret + ;; + restart|force-reload) + capability_check + case "$?" in + 0) ;; + *) exit ;; + esac + log_daemon_msg "Restarting $DESC" + ret=0 + qemu_restart + case "$?" in + 0|1) ;; + *) ret=1 ;; + esac + xenconsoled_restart + case "$?" in + 0|1) ;; + *) ret=1 ;; + esac + log_end_msg $ret + ;; + *) + echo "Usage: $0 {start|stop|restart|force-reload}" >&2 + exit 3 + ;; +esac + +exit 0 diff --git a/xen-utils-common.xendomains.default b/xen-utils-common.xendomains.default new file mode 100644 index 0000000000..34aeb12502 --- /dev/null +++ b/xen-utils-common.xendomains.default @@ -0,0 +1,60 @@ +# The xendomains script can send SysRq requests to domains on shutdown. +# If you don't want to MIGRATE, SAVE, or SHUTDOWN, this may be a possibility +# to do a quick and dirty shutdown ("s e i u o") or at least sync the disks +# of the domains ("s"). +# +# XENDOMAINS_SYSRQ= + +# Set this to a non-empty string if you want to migrate virtual machines +# on shutdown. The string will be passed to the xm migrate DOMID command +# as is: It should contain the target IP address of the physical machine +# to migrate to and optionally parameters like --live. Leave empty if +# you don't want to try virtual machine relocation on shutdown. +# If migration succeeds, neither SAVE nor SHUTDOWN will be executed for +# that domain. +# +# XENDOMAINS_MIGRATE= + +# Directory to save running domains to when the system (dom0) is +# shut down. Will also be used to restore domains from if # XENDOMAINS_RESTORE +# is set (see below). Leave empty to disable domain saving on shutdown +# (e.g. because you rather shut domains down). +# If domain saving does succeed, SHUTDOWN will not be executed. +# +XENDOMAINS_SAVE=/var/lib/xen/save + +# This variable determines whether saved domains from XENDOMAINS_SAVE +# will be restored on system startup. +# +XENDOMAINS_RESTORE=true + +# This variable sets the directory where domains configurations +# are stored that should be started on system startup automatically. +# Leave empty if you don't want to start domains automatically +# (or just don't place any xen domain config files in that dir). +# Note that the script tries to be clever if both RESTORE and AUTO are +# set: It will first restore saved domains and then only start domains +# in AUTO which are not running yet. +# Note that the name matching is somewhat fuzzy. +# +XENDOMAINS_AUTO=/etc/xen/auto + +# On xendomains stop, a number of xm commands (xm migrate, save, shutdown, +# shutdown --all) may be executed. In the worst case, these commands may +# stall forever, which will prevent a successful shutdown of the machine. +# If this variable is non-zero, the script will set up a watchdog timer +# for every of these xm commands and time it out after the number of seconds +# specified by this variable. +# Note that SHUTDOWN_ALL will not be called if no virtual machines or only +# zombies are still running, so you don't need to enable this timeout just +# for the zombie case. +# The setting should be large enough to make sure that migrate/save/shutdown +# can succeed. If you do live migrations, keep in mind that live migration +# of a 1GB machine over Gigabit ethernet may actually take something like +# 100s (assuming that live migration uses 10% of the network # bandwidth). +# Depending on the virtual machine, a shutdown may also require a significant +# amount of time. So better setup this variable to a huge number and hope the +# watchdog never fires. +# +XENDOMAINS_STOP_MAXWAIT=300 + diff --git a/xen-utils-common.xendomains.init b/xen-utils-common.xendomains.init new file mode 100644 index 0000000000..907cc117be --- /dev/null +++ b/xen-utils-common.xendomains.init @@ -0,0 +1,219 @@ +#!/bin/bash +### BEGIN INIT INFO +# Provides: xendomains +# Required-Start: $syslog $network $remote_fs xen +# Required-Stop: $syslog $network $remote_fs xen +# Should-Start: drbd iscsi openvswitch-switch nfs-kernel-server +# Should-Stop: drbd iscsi openvswitch-switch nfs-kernel-server +# X-Start-Before: corosync heartbeat libvirtd +# X-Stop-After: corosync heartbeat libvirtd +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start/stop secondary xen domains +# Description: Start / stop domains automatically when domain 0 +# boots / shuts down. +### END INIT INFO + +. /lib/init/vars.sh +. /lib/lsb/init-functions + +xen list &> /dev/null +if test $? -ne 0 +then + exit 0; +fi + +if ! [ -e /proc/xen/privcmd ]; then + exit 0 +fi + +[ -r /etc/default/xendomains ] && . /etc/default/xendomains + +shopt -s nullglob + +check_config_name() +{ + /usr/lib/xen-common/bin/xen-init-name "$1" 2>/dev/null +} + +check_running() +{ + xen domid "$1" > /dev/null 2>&1 + return $? +} + +timeout_coproc() +{ + local TIMEOUT=$1 + shift + + coproc "$@" 2>&1 1>/dev/null + + local COPROC_OUT + exec {COPROC_OUT}<&"${COPROC[0]}" + local PID="$COPROC_PID" + + for no in $(seq 0 $TIMEOUT); do + if [ -z "$COPROC_PID" ]; then break; fi + sleep 1 + log_action_cont_msg + done + + kill -INT "$COPROC_PID" >/dev/null 2>&1 + wait $PID + local rc=$? + log_action_end_msg $rc + + [ $rc -gt 0 ] && cat <&$COPROC_OUT + exec <&$COPROC_OUT- +} + +timeout_domain() +{ + name="$1" + TIMEOUT="$2" + for no in $(seq 0 $TIMEOUT); do + if ! check_running "$name"; then return 0; fi + sleep 1 + log_action_cont_msg + done + return 1 +} + +do_start_restore() +{ + [ -n "$XENDOMAINS_SAVE" ] || return + [ -d "$XENDOMAINS_SAVE" ] || return + [ -n "$XENDOMAINS_RESTORE" ] || return + + for file in $XENDOMAINS_SAVE/*; do + if [ -f $file ] ; then + name="${file##*/}" + log_action_begin_msg "Restoring Xen domain $name (from $file)" + + out=$(xen restore "$file" 2>&1 1>/dev/null) + case "$?" in + 0) + rm "$file" + domains[$name]='started' + log_action_end_msg 0 + ;; + *) + domains[$name]='failed' + log_action_end_msg 1 + echo "$out" + ;; + esac + fi + done +} + +do_start_auto() +{ + [ -n "$XENDOMAINS_AUTO" ] || return + [ -d "$XENDOMAINS_AUTO" ] || return + + for file in $XENDOMAINS_AUTO/*; do + name="$(check_config_name $file)" + + if [ "${domains[$name]}" = started ]; then + : + elif check_running "$name"; then + log_action_msg "Xen domain $name already running" + else + log_action_begin_msg "Starting Xen domain $name (from $file)" + + if [ "${domains[$name]}" = failed ]; then + log_action_end_msg 1 "restore failed" + else + out=$(xen create --quiet --defconfig "$file" 2>&1 1>/dev/null) + case "$?" in + 0) + log_action_end_msg 0 + ;; + *) + log_action_end_msg 1 + echo "$out" + ;; + esac + fi + fi + done +} + +do_start() +{ + declare -A domains + + do_start_restore + do_start_auto +} + +do_stop_migrate() +{ + [ -n "$XENDOMAINS_MIGRATE" ] || return + + /usr/lib/xen-common/bin/xen-init-list | while read id name discard; do + log_action_begin_msg "Migrating Xen domain $name ($id)" + (timeout_coproc "$XENDOMAINS_STOP_MAXWAIT" xen migrate $id $XENDOMAINS_MIGRATE) + done +} + +do_stop_save() +{ + [ -n "$XENDOMAINS_SAVE" ] || return + [ -d "$XENDOMAINS_SAVE" ] || mkdir -m 0700 -p "$XENDOMAINS_SAVE" + + /usr/lib/xen-common/bin/xen-init-list | while read id name discard; do + log_action_begin_msg "Saving Xen domain $name ($id)" + (timeout_coproc "$XENDOMAINS_STOP_MAXWAIT" xen save $id $XENDOMAINS_SAVE/$name) + done +} + +do_stop_shutdown() +{ + /usr/lib/xen-common/bin/xen-init-list | while read id name discard; do + log_action_begin_msg "Shutting down Xen domain $name ($id)" + xen shutdown $id 2>&1 1>/dev/null + log_action_end_msg $? + done + /usr/lib/xen-common/bin/xen-init-list | while read id name discard; do + log_action_begin_msg "Waiting for Xen domain $name ($id) to shut down" + timeout_domain "$name" "$XENDOMAINS_STOP_MAXWAIT" + log_action_end_msg $? + done +} + +do_stop() +{ + do_stop_migrate + do_stop_save + do_stop_shutdown +} + +case "$1" in + start) + do_start + ;; + + stop) + do_stop + ;; + + restart) + do_stop + do_start + ;; + + reload|force-reload) + do_stop + do_start + ;; + + *) + echo "Usage: $0 {start|stop|restart|reload|force-reload}" + exit 3 + ;; +esac + +exit 0 diff --git a/xenstore-utils.install b/xenstore-utils.install new file mode 100644 index 0000000000..4a6c281d6c --- /dev/null +++ b/xenstore-utils.install @@ -0,0 +1,5 @@ +usr/bin/xenstore +usr/bin/xenstore-* +usr/share/man/man1/xenstore.1 +usr/share/man/man1/xenstore-*.1 +# See also xenstore_rm in debian/rules. diff --git a/xenstore-utils.lintian-overrides b/xenstore-utils.lintian-overrides new file mode 100644 index 0000000000..7ba6bc17a7 --- /dev/null +++ b/xenstore-utils.lintian-overrides @@ -0,0 +1,6 @@ +spelling-error-in-binary usr/bin/xenstore* upto up to +# ^ these have --upto as a command line argument + +description-possibly-contains-homepage https://wiki.xen.org/wiki/XenStore +# ^ It's not a homepage, it's a reference to help understand +# why this package might be useful. -- 2.30.2